-
Notifications
You must be signed in to change notification settings - Fork 5
/
payment.php
221 lines (193 loc) · 8.23 KB
/
payment.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
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
<?php
session_start();
if(!isset($_SESSION["user"]))
{
header("location:index.php");
}
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>PUNERI HOTEL</title>
<!-- Bootstrap Styles-->
<link href="assets/css/bootstrap.css" rel="stylesheet" />
<!-- FontAwesome Styles-->
<link href="assets/css/font-awesome.css" rel="stylesheet" />
<!-- Morris Chart Styles-->
<!-- Custom Styles-->
<link href="assets/css/custom-styles.css" rel="stylesheet" />
<!-- Google Fonts-->
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />
<!-- TABLE STYLES-->
<link href="assets/js/dataTables/dataTables.bootstrap.css" rel="stylesheet" />
</head>
<body>
<div id="wrapper">
<nav class="navbar navbar-default top-navbar" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="home.php"><?php echo $_SESSION["user"]; ?> </a>
</div>
<ul class="nav navbar-top-links navbar-right">
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" aria-expanded="false">
<i class="fa fa-user fa-fw"></i> <i class="fa fa-caret-down"></i>
</a>
<ul class="dropdown-menu dropdown-user">
<li><a href="usersetting.php"><i class="fa fa-user fa-fw"></i> User Profile</a>
</li>
<li><a href="settings.php"><i class="fa fa-gear fa-fw"></i> Settings</a>
</li>
<li class="divider"></li>
<li><a href="logout.php"><i class="fa fa-sign-out fa-fw"></i> Logout</a>
</li>
</ul>
<!-- /.dropdown-user -->
</li>
<!-- /.dropdown -->
</ul>
</nav>
<!--/. NAV TOP -->
<nav class="navbar-default navbar-side" role="navigation">
<div class="sidebar-collapse">
<ul class="nav" id="main-menu">
<li>
<a href="home.php"><i class="fa fa-dashboard"></i> Status</a>
</li>
<li>
<a href="messages.php"><i class="fa fa-desktop"></i> News Letters</a>
</li>
<li>
<a href="roombook.php"><i class="fa fa-bar-chart-o"></i>Room Booking</a>
</li>
<li>
<a class="active-menu" href="payment.php"><i class="fa fa-qrcode"></i> Payment</a>
</li>
<li>
<a href="profit.php"><i class="fa fa-qrcode"></i> Profit</a>
</li>
<li>
<a href="logout.php" ><i class="fa fa-sign-out fa-fw"></i> Logout</a>
</li>
</div>
</nav>
<!-- /. NAV SIDE -->
<div id="page-wrapper" >
<div id="page-inner">
<div class="row">
<div class="col-md-12">
<h1 class="page-header">
Payment Details<small> </small>
</h1>
</div>
</div>
<!-- /. ROW -->
<div class="row">
<div class="col-md-12">
<!-- Advanced Tables -->
<div class="panel panel-default">
<div class="panel-body">
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover" id="dataTables-example">
<thead>
<tr>
<th>Name</th>
<th>Room type</th>
<th>Bed Type</th>
<th>Check in</th>
<th>Check out</th>
<th>No of Room</th>
<th>Meal Type</th>
<th>Room Rent</th>
<th>Bed Rent</th>
<th>Meals </th>
<th>Gr.Total</th>
<th>Print</th>
</tr>
</thead>
<tbody>
<?php
include ('db.php');
$sql="select * from payment";
$re = mysqli_query($con,$sql);
while($row = mysqli_fetch_array($re))
{
$id = $row['id'];
if($id % 2 ==1 )
{
echo"<tr class='gradeC'>
<td>".$row['title']." ".$row['fname']." ".$row['lname']."</td>
<td>".$row['troom']."</td>
<td>".$row['tbed']."</td>
<td>".$row['cin']."</td>
<td>".$row['cout']."</td>
<td>".$row['nroom']."</td>
<td>".$row['meal']."</td>
<td>".$row['ttot']."</td>
<td>".$row['mepr']."</td>
<td>".$row['btot']."</td>
<td>".$row['fintot']."</td>
<td><a href=print.php?pid=".$id ." <button class='btn btn-primary'> <i class='fa fa-print' ></i> Print</button></td>
</tr>";
}
else
{
echo"<tr class='gradeU'>
<td>".$row['title']." ".$row['fname']." ".$row['lname']."</td>
<td>".$row['troom']."</td>
<td>".$row['tbed']."</td>
<td>".$row['cin']."</td>
<td>".$row['cout']."</td>
<td>".$row['nroom']."</td>
<td>".$row['meal']."</td>
<td>".$row['ttot']."</td>
<td>".$row['mepr']."</td>
<td>".$row['btot']."</td>
<td>".$row['fintot']."</td>
<td><a href=print.php?pid=".$id ." <button class='btn btn-primary'> <i class='fa fa-print' ></i> Print</button></td>
</tr>";
}
}
?>
</tbody>
</table>
</div>
</div>
</div>
<!--End Advanced Tables -->
</div>
</div>
<!-- /. ROW -->
</div>
</div>
</div>
<!-- /. PAGE INNER -->
</div>
<!-- /. PAGE WRAPPER -->
<!-- /. WRAPPER -->
<!-- JS Scripts-->
<!-- jQuery Js -->
<script src="assets/js/jquery-1.10.2.js"></script>
<!-- Bootstrap Js -->
<script src="assets/js/bootstrap.min.js"></script>
<!-- Metis Menu Js -->
<script src="assets/js/jquery.metisMenu.js"></script>
<!-- DATA TABLE SCRIPTS -->
<script src="assets/js/dataTables/jquery.dataTables.js"></script>
<script src="assets/js/dataTables/dataTables.bootstrap.js"></script>
<script>
$(document).ready(function () {
$('#dataTables-example').dataTable();
});
</script>
<!-- Custom Js -->
<script src="assets/js/custom-scripts.js"></script>
</body>
</html>