Complete solution for restaurant or cafe site
Buy now
Instructions Contact Us
  Admin area Visitor area

Installation

  1. Upload all files from installation package to your server.
  2. Run install.php (type in your browser address like http://your-domain.com/path-to-script/install.php).
  3. Follow installation wizard instructions.
  4. Rename or remove install.php file.
  5. Script installed. Go to http://your-domain.com/path-to-script/admin.php to start!

Usage

To use front-end functions of the script you will need to add
<? require_once("user_function.php"); ?>
to your php file.

There are 4 functions provided:
  1. menu_links([menu_page])

    Output list of links to cafe/restaurant menues.

    Example 1:

    in file example.php code
    <? menu_links(); ?>
    will show list of links like this:
    <span class="menues_link"><a href="example.php?menuid=menu_id" class="menues_link">menu name</a></span>

    Example 2:

    in file example.php code
    <? menu_links('index.php'); ?>
    will show list of links like this:
    <span class="menues_link"><a href="index.php?menuid=menu_id" class="menues_link">menu name</a></span>

  2. menu_list(menu_id [, category_page [,item_page]])

    Show specified menu.
    Optional parameters are pages where category and item would be shown. If you will not use additional parameters no links to category or item pages will be shown.

    Example 1:

    <? menu_list(1); ?>
    will show menu without links to item and category pages.

    Example 2:

    <? menu_list(1,'','index.php'); ?>
    will show menu with links to items pages and without links to category pages.
    Links to item pages will look like
    <a href="index.php?itemid=item_id" class="item_link">item name</a>

    Example 3:

    <? menu_list(1,'index.php?','index.php'); ?>
    will show menu with links to categories pages and items pages. Links to categories pages will look like
    <a href="index.php?catid=category_id" class="category_link">category name</a>
    Links to item pages will look like
    <a href="index.php?itemid=item_id" class="item_link">item name</a>

  3. cat_list(category_id[,item_page])

    Show specified category.

    Example 1:

    <? cat_list(1); ?>
    will show category without links to item pages.

    Example 2:

    <? cat_list(1,'index.php'); ?>
    will show menu with links to items pages.
    Links to item pages will look like
    <a href="index.php?itemid=item_id" class="item_link">item name</a>

  4. item_list(item_id)

    Show specified item.
    Example 1:

    <? item_list(1); ?>
    will show item page.