Пример #1
0
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);
}
else
{echo "<br/>";}
for($i=0;$i<7;$i++){
$res=$con->query("select * from menu where res_id=4 and foodtype='$arr[$i]'");
Пример #2
0
  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();
}
?>
</form>
</body>
Пример #3
0
  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
{echo "<br/>";}
for($i=0;$i<5;$i++){
$res=$con->query("select * from menu where res_id=5 and foodtype='$arr[$i]'");
Пример #4
0
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);
}
else
{echo "<br/>";}
for($i=0;$i<6;$i++){