-
Notifications
You must be signed in to change notification settings - Fork 2
/
invoice.php
221 lines (173 loc) · 6.48 KB
/
invoice.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
include('connection.php');
if(isset($_POST['id'])){
$id = $_POST['id'];
$amt = $_POST['amt'];
$paid = mysqli_query("UPDATE pass SET paid = paid + '$amt' WHERE id = '$id'");
$result = mysqli_query("select * from pass where id = '$id'");
$row = mysqli_fetch_array($result);
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Cloud Based Bus Pass System</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:200,300,400,700,900|Display+Playfair:200,300,400,700">
<link rel="stylesheet" href="fonts/icomoon/style.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/magnific-popup.css">
<link rel="stylesheet" href="css/jquery-ui.css">
<link rel="stylesheet" href="css/owl.carousel.min.css">
<link rel="stylesheet" href="css/owl.theme.default.min.css">
<link rel="stylesheet" href="css/bootstrap-datepicker.css">
<link rel="stylesheet" href="fonts/flaticon/font/flaticon.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/build/mediaelementplayer.min.css">
<link rel="stylesheet" href="css/aos.css">
<link rel="stylesheet" href="css/style.css">
<style>
@media print {
#printPageButton {
display: none;
}
footer{
display: none;
}
}
</style>
</head>
<body>
<div class="site-wrap">
<div class="site-mobile-menu">
<div class="site-mobile-menu-header">
<div class="site-mobile-menu-close mt-3">
<span class="icon-close2 js-menu-toggle"></span>
</div>
</div>
<div class="site-mobile-menu-body"></div>
</div>
<header class="site-navbar py-1" role="banner">
<div class="container">
<div class="row align-items-center">
<div class="col-6 col-xl-2">
<h1 class="mb-0"><a href="index.html" class="text-black h2 mb-0">Travelers</a></h1>
</div>
<div class="col-10 col-md-8 d-none d-xl-block">
<nav class="site-navigation position-relative text-right" role="navigation">
<ul class="site-menu js-clone-nav mx-auto d-none d-lg-block">
<li class="active">
<a href="index.html">Home</a>
</li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
<li><a href="manage.php">Manage Pass</a></li>
<li><a href="bus_details.html">Bus Details</a></li>
</ul>
</nav>
</div>
</div>
</div>
</header>
<div class="site-section bg-light">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="p-4 mb-3 bg-white">
<p class="mb-0 font-weight-bold" style="float: left;">Id    </p>
<p class="mb-4">
<?php
echo $row['id'];
?>
</p>
<p class="mb-0 font-weight-bold" style="float: left;">Name    </p>
<p class="mb-4">
<?php
echo $row['name'];
?>
</p>
<p class="mb-0 font-weight-bold" style="float: left;">Mobile    </p>
<p class="mb-4">
<?php
echo $row['contact'];
?>
</p>
<p class="mb-0 font-weight-bold" style="float: left;">Email Address    </p>
<p class="mb-4">
<?php
echo $row['email'];
?>
</p>
<p class="mb-0 font-weight-bold" style="float: left;">Valid Till    </p>
<p class="mb-4">
<?php
echo $row['date'];
?>
</p>
<p class="mb-0 font-weight-bold" style="float: left;">From - To    </p>
<p class="mb-4">
GLA University -
<?php
echo $row['dest'];
?>
</p>
<p class="mb-0 font-weight-bold" style="float: left;">Amount Paid    </p>
<p class="mb-4">
<?php
echo $row['paid'];
?>
</p>
<button id="printPageButton" class="btn btn-primary py-1 px-5 text-white" onclick="window.print()">Print Pass</button>
</div>
</div>
</div>
</div>
</div>
<footer class="site-footer">
<div class="container">
<div class="row">
<div class="col-lg-4">
<div class="mb-5">
<h3 class="footer-heading mb-4">About Travelers</h3>
<p>Provides student a pass for their daily life to travel to/from GLA University, Mathura</p>
</div>
</div>
<div class="col-lg-4 mb-5 mb-lg-0" style="margin-left: auto;">
<div class="row mb-5">
<div class="col-md-12">
<h3 class="footer-heading mb-4">Navigations</h3>
</div>
<div class="col-md-6 col-lg-6">
<ul class="list-unstyled">
<li><a href="#">Home</a></li>
<li><a href="#">About Us</a></li>
<li><a href="#">Contact Us</a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="row pt-5 mt-5 text-center">
<div class="col-md-12">
<p>
Copyright ©<script>document.write(new Date().getFullYear());</script> All rights reserved
</p>
</div>
</div>
</div>
</footer>
</div>
<script src="js/jquery-3.3.1.min.js"></script>
<script src="js/jquery-migrate-3.0.1.min.js"></script>
<script src="js/jquery-ui.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/owl.carousel.min.js"></script>
<script src="js/jquery.stellar.min.js"></script>
<script src="js/jquery.countdown.min.js"></script>
<script src="js/jquery.magnific-popup.min.js"></script>
<script src="js/bootstrap-datepicker.min.js"></script>
<script src="js/aos.js"></script>
<script src="js/main.js"></script>
</body>
</html>