Пример #1
0
<!DOCTYPE html>
<html>
<body background="coffee.jpg">
<style>
div{
 border:1px solid white;
  border-radius:20px;
  padding:20px;
}
</style>
<?php 
ob_start();
$i = 1;
require 'menu.php';
$menu_obj = new menu();
$menu_obj->getid(4);
//$rest_id = 4;
$arr = array('coffee', 'tea', 'frappe', 'lemonade', 'sundae', 'smoothie', 'eats');
include 'restaurant.php';
$r_obj = new restaurant();
$r_obj->display_menu($arr, 7, 4);
/*$host = "localhost";
$username="******";
$password="";
$database = "hotels";
$con = new mysqli($host,$username,$password,$database);

if($con -> connect_error)
{
trigger_error('DB connection failed:'.$con -> connect_error,E_USER_ERROR);
}
Пример #2
0
 border: 1px solid #0000ff;
  border-radius:20px;
  padding:20px;
  background-color:white;
}
body{
opacity:0.7;

}
</style>
<?php 
ob_start();
$i = 1;
require 'menu.php';
$menu_obj = new menu();
$menu_obj->getid(5);
$arr = array('Soup', 'Appetizers- Sea Food', 'Rice and Noodles', 'Desserts', 'Beer');
include 'restaurant.php';
$r_obj = new restaurant();
$r_obj->display_menu($arr, 5, 5);
/*$host = "localhost";
$username="******";
$password="";
$database = "hotels";
$con = new mysqli($host,$username,$password,$database);

if($con -> connect_error)
{
trigger_error('DB connection failed:'.$con -> connect_error,E_USER_ERROR);
}
else
Пример #3
0
div{
 border: 1px solid #0000ff;
  border-radius:20px;
  padding:20px;
  background-color:white;
opacity:0.5;
  }
body{
}
</style>
<?php 
ob_start();
$i = 1;
require 'menu.php';
$menu_obj = new menu();
$menu_obj->getid(3);
$arr = array('pizza', 'salad');
include 'restaurant.php';
$r_obj = new restaurant();
$r_obj->display_menu($arr, 2, 3);
?>
<br><br>
<input type="image" src="button.jpe" name='sub'>
<?php 
if (isset($_POST['sub_x'], $_POST['sub_y'])) {
    //require 'menu.php';
    //$menu_obj = new menu();
    $menu_obj->select_item();
    //include 'order.php';
    //disp_order();
}
Пример #4
0
 border: 1px solid #0000ff;
  border-radius:20px;
  padding:20px;
  background-color:white;
}
body{
opacity:0.7;

}
</style>
<?php 
ob_start();
$i = 1;
require 'menu.php';
$menu_obj = new menu();
$menu_obj->getid(2);
$arr = array('Taco', 'Nachos', 'Burrito', 'Quesadillas', 'Desserts and Sides');
include 'restaurant.php';
$r_obj = new restaurant();
$r_obj->display_menu($arr, 5, 2);
?>
<br><br>
<input type="image" src="button.jpe" name='sub'>
<?php 
if (isset($_POST['sub_x'], $_POST['sub_y'])) {
    //require 'menu.php';
    //$menu_obj = new menu();
    $menu_obj->select_item();
    //include 'order.php';
    //disp_order();
}
Пример #5
0
<body background="fish1.jpg">
<style>
div{
background-color: #DFFFBF;
opacity: 0.6;
 border: 1px solid #0000ff;
  border-radius:20px;
  padding:20px;
}
</style>
<?php 
ob_start();
$i = 1;
require 'menu.php';
$menu_obj = new menu();
$menu_obj->getid(6);
//$rest_id = 6;
$arr = array('Salads', 'Soups', 'Appetizers', 'Main Course', 'Indian Breads', 'Desserts');
include 'restaurant.php';
$r_obj = new restaurant();
$r_obj->display_menu($arr, 6, 6);
/*
$host = "localhost";
$username="******";
$password="";
$database = "hotels";
$con = new mysqli($host,$username,$password,$database);

if($con -> connect_error)
{
trigger_error('DB connection failed:'.$con -> connect_error,E_USER_ERROR);
Пример #6
0
  border-radius:20px;
  padding:20px;
  opacity:0.6;
  background-color:white;
}
#colour{
color:black;
}

</style>
<?php 
ob_start();
$i = 1;
require 'menu.php';
$menu_obj = new menu();
$menu_obj->getid(1);
//$rest_id = 1;
$arr = array('south indian', 'pav bhaji', 'sandwich', 'pizza', 'punjabi', 'roti', 'rice');
include 'restaurant.php';
$r_obj = new restaurant();
$r_obj->display_menu($arr, 7, 1);
/*
$host = "localhost";
$username="******";
$password="";
$database = "hotels";
$con = new mysqli($host,$username,$password,$database);

if($con -> connect_error)
{
trigger_error('DB connection failed:'.$con -> connect_error,E_USER_ERROR);