-
Notifications
You must be signed in to change notification settings - Fork 1
/
menu.php
123 lines (122 loc) · 4.33 KB
/
menu.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<?php
function formatMoney($number, $fractional=false) {
if ($fractional) {
$number = sprintf('%.2f', $number);
}
while (true) {
$replaced = preg_replace('/(-?\d+)(\d\d\d)/', '$1,$2', $number);
if ($replaced != $number) {
$number = $replaced;
} else {
break;
}
}
return $number;
}
?>
<html>
<head>
<title>Company Name</title>
<link rel="icon" type="image/png" href="images/favicon.png" />
<link href="css/style.css" media="screen" rel="stylesheet" type="text/css" />
<!--sa poip up-->
<link href="admin/src/facebox.css" media="screen" rel="stylesheet" type="text/css" />
<script src="admin/lib/jquery.js" type="text/javascript"></script>
<script src="admin/src/facebox.js" type="text/javascript"></script>
<script type="text/javascript">
jQuery(document).ready(function($) {
$('a[rel*=facebox]').facebox({
loadingImage : 'admin/src/loading.gif',
closeImage : 'admin/src/closelabel.png'
})
})
</script>
</head>
<body>
<div class="row-top">
<div class="main">
<div class="wrapper">
<h1><a href="">Company Name<br><span style="font-family: arial; font-size: 15px;">Restaurant</span></a></h1>
<nav>
<ul class="menu">
<li><a href="index.php">Home</a></li>
<li><a class="active" href="menu.php">Menu</a></li>
<li><a href="functionhall.php">Function Hall</a></li>
<li><a href="reservation.php">Reservation</a></li>
<li><a href="about-us.php">About Us</a></li>
<li><a href="contact.php">Contact Us</a></li>
<li><a href="loginform.php">login</a></li>
</ul>
</nav>
</div>
</div>
</div>
<div class="row-bot">
<div class="row-bot-bg">
<div class="maincon">
<div class="slider-wrapper">
<div class="slider">
<div id="slidercon">
<div id="title" style="text-align:center;font-size: 18px;">
Menu List
</div>
<div id="about" style="overflow: scroll; height: 390px;">
<ul class="price-list p2">
<strong style="font-size: 18px;">Specialty</strong>
<?php
include('connect.php');
$id='specialty';
$result = $db->prepare("SELECT * FROM menu WHERE mcat= :mmm");
$result->bindParam(':mmm', $id);
$result->execute();
for($i=0; $row = $result->fetch(); $i++){
?>
<li><span>Php <?php $dsds=$row['price'];
echo formatMoney($dsds, true);
?></span><a rel="facebox" href="menudetails.php?id=<?php echo $row['id']; ?>"><?php echo $row['name']; ?></a></li>
<?php
}
?>
</ul>
<ul class="price-list p2">
<strong style="font-size: 18px;">Lunch and Dinner</strong>
<br><strong style="font-size: 12px; font-style:italic;">( Combo 250 - 1 soup/3 main course/1 salad/1 desert/rice/soft drinks )</strong>
<br><strong style="font-size: 12px; font-style:italic;">( Combo 315 - 1 soup/4 main course/1 salad/1 desert/rice/soft drinks )</strong>
<br><strong style="font-size: 12px; font-style:italic;">( Combo 400 - 1 soup/4 main course/2 salad/2 desert/rice/soft drinks )</strong>
<?php
$id='lunch_and_dinner';
$result = $db->prepare("SELECT * FROM menu WHERE mcat= :mmm");
$result->bindParam(':mmm', $id);
$result->execute();
for($i=0; $row = $result->fetch(); $i++){
?>
<li><span><?php echo $row['price']; ?></span><a rel="facebox" href="menudetails.php?id=<?php echo $row['id']; ?>"><?php echo $row['name']; ?></a></li>
<?php
}
?>
</ul>
<ul class="price-list p2">
<strong style="font-size: 18px;">Merienda</strong>
<br><strong style="font-size: 12px; font-style:italic;">( Combo 285 - 2 pasta/2 meat/3 bread/2 dessert/softdrinks )</strong>
<?php
$id='merienda';
$result = $db->prepare("SELECT * FROM menu WHERE mcat= :mmm");
$result->bindParam(':mmm', $id);
$result->execute();
for($i=0; $row = $result->fetch(); $i++){
?>
<li><span><?php echo $row['price']; ?></span><a rel="facebox" href="menudetails.php?id=<?php echo $row['id']; ?>"><?php echo $row['name']; ?></a></li>
<?php
}
?>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="footer">© Copyright Company Name</div>
</body>
</php>