-
Notifications
You must be signed in to change notification settings - Fork 43
/
index.php
156 lines (86 loc) · 2.81 KB
/
index.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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<?php
session_start();
require "admin/includes/functions.php";
require "admin/includes/db.php";
$get_recent = $db->query("SELECT * FROM food LIMIT 9");
$result = "";
if($get_recent->num_rows) {
while($row = $get_recent->fetch_assoc()) {
$result .= "<div class='parallax_item'>
<a href='detail.php?fid=".$row['id']."'><img src='image/FoodPics/".$row['id'].".jpg' width='80px' height='80px' />
<div class='detail'>
<h4>".$row['food_name']."</h4>
<p class='desc'>".substr($row['food_description'], 0, 33)."...</p>
<p class='price'>#".$row['food_price']."</p>
</div>
<p class='clear'></p>
</a>
</div>";
}
}else{
}
?>
<!Doctype html>
<html lang="en">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<head>
<title>MFORS</title>
<link rel="stylesheet" href="css/main.css" />
<script src="js/jquery.min.js" ></script>
<script src="js/myscript.js"></script>
<style>
img[src*="https://cloud.githubusercontent.com/assets/23024110/20663010/9968df22-b55e-11e6-941d-edbc894c2b78.png"] {
display: none;}
</style>
</head>
<body>
<?php require "includes/header.php"; ?>
<div class="parallax" onclick="remove_class()">
<div class="parallax_head">
<h2>Welcome</h2>
<h3>We are Excited to Cook for You</h3>
</div>
</div>
<div class="content" onclick="remove_class()">
<a href="reservation.php" class="submit">BOOK A TABLE</a>
</div>
<div class="content remove_pad" onclick="remove_class()">
<div class="inner_content on_parallax">
<h2><span class="fresh">Discover Fresh Menu</span></h2>
<div class="parallax_content">
<?php echo $result; ?>
<p class="clear"></p>
</div>
</div>
</div>
<div class="content" onclick="remove_class()">
<div class="inner_content">
<div class="contact">
<div class="left">
<h3>LOCATION</h3>
<p>Buk New Site, New Campus</p>
<p>Kano State</p>
</div>
<div class="left">
<h3>CONTACT</h3>
<p>08054645432, 07086898709</p>
<p>[email protected]</p>
</div>
<p class="left"></p>
<div class="icon_holder">
<a href="#"><img src="image/icons/Facebook.png" alt="image/icons/Facebook.png" /></a>
<a href="#"><img src="image/icons/Google+.png" alt="image/icons/Google+.png" /></a>
<a href="#"><img src="image/icons/Twitter.png" alt="image/icons/Twitter.png" /></a>
</div>
</div>
</div>
</div>
<div class="footer_parallax" onclick="remove_class()">
<div class="on_footer_parallax">
<p>© <?php echo strftime("%Y", time()); ?> <span>MyRestaurant</span>. All Rights Reserved</p>
</div>
</div>
</body>
</html>