-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathe_requirements.php
executable file
·177 lines (170 loc) · 5.74 KB
/
e_requirements.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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<?php
include_once ('root.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<title>Shop Management System</title>
<!-- Bootstrap CSS -->
<link
rel="stylesheet"
type="text/css"
href="assets/css/bootstrap.min.css"
/>
<!-- Icon -->
<link rel="stylesheet" type="text/css" href="assets/fonts/line-icons.css" />
<!-- Slicknav -->
<link rel="stylesheet" type="text/css" href="assets/css/slicknav.css" />
<!-- Nivo Lightbox -->
<link
rel="stylesheet"
type="text/css"
href="assets/css/nivo-lightbox.css"
/>
<!-- Animate -->
<link rel="stylesheet" type="text/css" href="assets/css/animate.css" />
<!-- Main Style -->
<link rel="stylesheet" type="text/css" href="assets/css/main.css" />
<!-- Responsive Style -->
<link rel="stylesheet" type="text/css" href="assets/css/responsive.css" />
<!--fa fa icon-->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
</head>
<body>
<!-- Header Area wrapper Starts -->
<header id="header-wrap">
<!-- Navbar Start -->
<nav class="navbar navbar-expand-lg fixed-top scrolling-navbar">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button
class="navbar-toggler"
type="button"
data-toggle="collapse"
data-target="#main-navbar"
aria-controls="main-navbar"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
<span class="icon-menu"></span>
<span class="icon-menu"></span>
<span class="icon-menu"></span>
</button>
</div>
<div class="collapse navbar-collapse" id="main-navbar">
<ul class="navbar-nav mr-auto w-100 justify-content-end">
<li class="nav-item">
<a class="nav-link" href="e_order.php">Orders</a>
</li>
<li class="nav-item">
<a class="nav-link" href="e_menu.php">Menu</a>
</li>
<li class="nav-item">
<a class="nav-link" href="e_ingredients.php">Ingredients</a>
</li>
<li class="nav-item active">
<a class="nav-link" href="e_requirements.php">Requirements</a>
</li>
</ul>
</div>
</div>
<!-- Mobile Menu Start -->
<ul class="mobile-menu">
<li>
<a class="page-scroll" href="e_order.php">Orders</a>
</li>
<li>
<a class="page-scroll" href="e_menu.php">Menu</a>
</li>
<li>
<a class="page-scroll" href="e_ingredients.php">Ingredients</a>
</li>
<li>
<a class="page-scroll" href="e_requirements.php">Requirements</a>
</li>
</ul>
<!-- Mobile Menu End -->
</nav>
<!-- Navbar End -->
</header>
<br /><br /><br />
<section class="section-padding">
<div class="container">
<h1
class="section-title wow fadeInUp animated"
data-wow-delay="0.2s"
style="
visibility: visible;
-webkit-animation-delay: 0.2s;
-moz-animation-delay: 0.2s;
animation-delay: 0.2s;
"
>
Requirements for each dish
</h1>
<br />
<table style="width: 100%" id="menu" class="styled-table">
<?php
// selecting dish requirements along with their quantities
$sql = "SELECT * from requirements";
if($result = mysqli_query($link,$sql)){
if(mysqli_num_rows($result) > 0){
?>
<thead>
<tr>
<th>Dish name</th>
<th>Ingredient name</th>
<th>Quantity</th>
</tr>
</thead>
<?php
while($row = mysqli_fetch_array($result)){
$i = $row['d_name'];
$q = $row['i_name'];
$r = $row['r_quantity'];
?>
<tr>
<td><?php echo $i; ?></td>
<td><?php echo $q; ?></td>
<td><?php echo $r; ?></td>
</tr>
<?php
}
}
}
?>
</thead>
</table>
<div class="container-fluid br-line"></div>
</div>
</section>
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="assets/js/jquery-min.js"></script>
<script src="assets/js/popper.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/jquery.countdown.min.js"></script>
<script src="assets/js/jquery.nav.js"></script>
<script src="assets/js/jquery.easing.min.js"></script>
<script src="assets/js/wow.js"></script>
<script src="assets/js/jquery.slicknav.js"></script>
<script src="assets/js/nivo-lightbox.js"></script>
<script src="assets/js/main.js"></script>
</body>
</html>