-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathBatch-n-Package.php
More file actions
268 lines (223 loc) · 10.1 KB
/
Batch-n-Package.php
File metadata and controls
268 lines (223 loc) · 10.1 KB
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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
<?php
include_once 'includes/dbh.inc.php';
$query3 = "SELECT * FROM Batch;";
$res3 = mysqli_query($conn, $query3) or die( mysqli_error($conn));
$query4 = "SELECT * FROM Package;";
$res4 = mysqli_query($conn, $query4) or die( mysqli_error($conn));
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="Dashboard">
<meta name="keyword" content="Dashboard, Bootstrap, Admin, Template, Theme, Responsive, Fluid, Retina">
<title>THE ENERGY HUB</title>
<!-- Favicons -->
<link href="img/favicon.jpg" rel="icon">
<!-- Bootstrap core CSS -->
<link href="lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!--external css-->
<link href="lib/font-awesome/css/font-awesome.css" rel="stylesheet" />
<!-- Custom styles for this template -->
<link href="css/style.css" rel="stylesheet">
<link href="css/style-responsive.css" rel="stylesheet">
<link href="css/table-responsive.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Acme&family=Kalam:wght@300;400;700&display=swap" rel="stylesheet">
<style>
body {
font-size: 16px;
font-family: 'Acme', sans-serif;
font-family: 'Kalam', cursive;
}
</style>
</head>
<body>
<section id="container">
<!-- **********************************************************************************************************************************************************
TOP BAR CONTENT & NOTIFICATIONS
*********************************************************************************************************************************************************** -->
<!--header start-->
<header class="header black-bg">
<div class="sidebar-toggle-box">
<div class="fa fa-bars tooltips" data-placement="right" data-original-title="Toggle Navigation"></div>
</div>
<!--logo start-->
<a href="home.php" class="logo"><b>THE ENERGY<span>HUB</span></b></a>
<!--logo end-->
<div class="top-menu">
<ul class="nav pull-right top-menu">
<li><a class="logout" href="index.php" style="font-size: 18px;">Logout</a></li>
</ul>
</div>
</header>
<!--header end-->
<!-- **********************************************************************************************************************************************************
MAIN SIDEBAR MENU
*********************************************************************************************************************************************************** -->
<!--sidebar start-->
<aside>
<div id="sidebar" class="nav-collapse ">
<!-- sidebar menu start-->
<ul class="sidebar-menu" id="nav-accordion">
<p class="centered"><a href="about.php"><img src="img/favicon.jpg" class="img-circle" width="80"></a></p>
<h5 class="centered" style="font-size: 16px;"> MORE ABOUT US?</h5>
<li class="mt">
<li class="sub-menu">
<a href="javascript:;">
<i class="fa fa-dashboard"></i>
<span style="font-size: 17px;">Dashboard</span>
</a>
<ul class="sub">
<li><a href="gallery.html" style="font-size: 14px;">Gallery</a></li>
<li><a href="pricing_table.html" style="font-size: 14px;">Pricing Chart</a></li>
</ul>
</li>
</li>
<li class="sub-menu">
<a href="javascript:;">
<i class="fa fa-tasks"></i>
<span style="font-size: 17px;">Forms</span>
</a>
<ul class="sub">
<li><a href="TrainerForm.php" style="font-size: 14px;">Trainer Form</a></li>
<li><a href="MemberForm.php" style="font-size: 14px;">Member Form</a></li>
<li><a href="contactform.php" style="font-size: 14px;">Contact Form</a></li>
</ul>
</li>
<li class="sub-menu">
<a href="javascript:;">
<i class="fa fa-th"></i>
<span style="font-size: 17px;">Data Tables</span>
</a>
<ul class="sub">
<li><a href="General-table.php" style="font-size: 14px;">General</a></li>
<li><a href="Batch-n-Package.php" style="font-size: 14px;">Batches n Packages</a></li>
<li><a href="count.php" style="font-size: 14px;">Count</a></li>
<li><a href="Accounts.php" style="font-size: 14px;">Accounts</a></li>
</ul>
</li>
</ul>
<!-- sidebar menu end-->
</div>
</aside>
<!--sidebar end-->
<!-- **********************************************************************************************************************************************************
MAIN CONTENT
*********************************************************************************************************************************************************** -->
<!--main content start-->
<section id="main-content">
<section class="wrapper">
<h3><i class="fa fa-angle-right"></i> Batch and Package wise data</h3>
<div class="row mt">
<div class="col-lg-12">
<div class="content-panel">
<h4><i class="fa fa-angle-right"></i>Daily Batches</h4>
<section id="unseen">
<table class="table table-hover table-bordered table-striped table-condensed">
<thead>
<tr>
<th class="numeric">Batch No</th>
<th>Timings</th>
<th>Edit</th>
<th>Delete</th>
</tr>
</thead>
<tbody>
<?php
while($rows = mysqli_fetch_array($res3))
{
?>
<tr>
<td><?php echo $rows['Batch No']?></td>
<td><?php echo $rows['Timings']?></td>
<td>
<a href="addbatch.php?edit=<?php echo $rows['Batch No'];?>" class="btn btn-primary btn-xs"><i class="fa fa-pencil"></i></a>
</td>
<td>
<a href="includes/addbatch.inc.php?delete=<?php echo $rows['Batch No'];?>" class="btn btn-danger btn-xs"><i class="fa fa-trash-o "></i></a>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</section>
</div>
<!-- /content-panel -->
</div>
<!-- /col-lg-4 -->
</div>
<div class="row mt">
<div class="col-lg-12">
<div class="content-panel">
<h4><i class="fa fa-angle-right"></i>Available Packages</h4>
<section id="unseen">
<table class="table table-hover table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Package ID</th>
<th>Package Type</th>
<th>Amount(in INR)</th>
<th>Edit</th>
<th>Delete</th>
</tr>
</thead>
<tbody>
<?php
while($rows = mysqli_fetch_array($res4))
{
?>
<tr>
<td><?php echo $rows['Package Id']?></td>
<td><?php echo $rows['Package Type']?></td>
<td><?php echo $rows['Amount(in INR)']?></td>
<td>
<a href="addpackage.php?edit=<?php echo $rows['Package Id'];?>" class="btn btn-primary btn-xs"><i class="fa fa-pencil"></i></a>
</td>
<td>
<a href="includes/addpackage.inc.php?delete=<?php echo $rows['Package Id'];?>" class="btn btn-danger btn-xs"><i class="fa fa-trash-o "></i></a>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</section>
</div>
<!-- /content-panel -->
</div>
<!-- /col-lg-4 -->
</div>
<!-- /row -->
</section>
<!-- /wrapper -->
</section>
<!-- /MAIN CONTENT -->
<!--main content end-->
<section>
<!--footer start-->
<footer class="site-footer">
<div class="text-center">
<a href="Batch-n-Package.php" class="go-top">
<i class="fa fa-angle-up"></i>
</a>
</div>
</footer>
<!--footer end-->
</section>
</section>
<!-- js placed at the end of the document so the pages load faster -->
<script src="lib/jquery/jquery.min.js"></script>
<script src="lib/bootstrap/js/bootstrap.min.js"></script>
<script class="include" type="text/javascript" src="lib/jquery.dcjqaccordion.2.7.js"></script>
<script src="lib/jquery.scrollTo.min.js"></script>
<script src="lib/jquery.nicescroll.js" type="text/javascript"></script>
<!--common script for all pages-->
<script src="lib/common-scripts.js"></script>
<!--script for this page-->
</body>
</html>