-
Notifications
You must be signed in to change notification settings - Fork 0
/
cgate.php
69 lines (65 loc) · 1.43 KB
/
cgate.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!DOCTYPE html>
<html>
<body background="noodle.jpg">
<style>
div{
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="root";
$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]'");
echo "<br>";
$row=$res->fetch_assoc();?>
<div>
<?php
echo "<strong>".$arr[$i]."<br/>";echo "<hr/>";
while($row)
{
?><form method="POST"><input type="number" name="<?php echo $row['srno']?>" min="0" max="50"><?php echo $row['item'].".....Rs.".$row['price'];
echo "<br/><br/>";
$row=$res->fetch_assoc();
}?></strong>
</div><br><br><?php
}
*/
?>
<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>
</html>