-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathechalanstatus.php
More file actions
450 lines (397 loc) · 13.1 KB
/
Copy pathechalanstatus.php
File metadata and controls
450 lines (397 loc) · 13.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
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
<?php
include('connection.php');
?>
<!DOCTYPE html>
<html>
<head>
<title>ecops-about</title><meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style type="text/css">
body{
background-color: green;
}
li a{
text-decoration: none;
}
li{
list-style-type: none;
}
.navbar {
overflow: hidden;
background-color:green;
}
.navbar a {
float: left;
font-size: 16px;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
.dropdown {
float: left;
overflow: hidden;
}
.dropdown .dropbtn {
font-size: 16px;
border: none;
outline: none;
color: white;
padding: 14px 16px;
background-color: inherit;
font-family: inherit;
margin: 0;
}
.navbar a:hover, .dropdown:hover .dropbtn {
background-color:rgb(53,53,53) ;
}
.dropdown-content {
display: none;
color: white;
position: absolute;
background-color: green;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
}
.dropdown-content a {
float: none;
color: white;
border: 1px solid white;
padding: 12px 16px;
text-decoration: none;
display: block;
text-align: left;
}
.dropdown-content a:hover {
background-color: rgb(53,53,53);
}
.dropdown:hover .dropdown-content {
display: block;
}
#ww{
width:500px;
height: 250px;
background-color: white;
position: relative;
left: 500px;
}* {
box-sizing: border-box;
}
body {
background-color: #f1f1f1;
}
#regForm {
background-color: #ffffff;
margin: 100px auto;
font-family: Raleway;
padding: 40px;
width: 70%;
min-width: 300px;
}
h1 {
text-align: center;
}
input {
padding: 10px;
width: 100%;
font-size: 17px;
font-family: Raleway;
border: 1px solid #aaaaaa;
}
/* Mark input boxes that gets an error on validation: */
input.invalid {
background-color: #ffdddd;
}
/* Hide all steps by default: */
.tab {
display: none;
}
button {
background-color: #4CAF50;
color: #ffffff;
border: none;
padding: 10px 20px;
font-size: 17px;
font-family: Raleway;
cursor: pointer;
}
button:hover {
opacity: 0.8;
}
#prevBtn {
background-color: #bbbbbb;
}
/* Make circles that indicate the steps of the form: */
.step {
height: 15px;
width: 15px;
margin: 0 2px;
background-color: #bbbbbb;
border: none;
border-radius: 50%;
display: inline-block;
opacity: 0.5;
}
.step.active {
opacity: 1;
}
/* Mark the steps that are finished and valid: */
.step.finish {
background-color: #4CAF50;
}
#ll{
padding: 50px;
}
footer{
background: #000000;
color: white;
}
#qq1 li{
padding-bottom: 3px;
}
#wee li{
padding-bottom: 3px;
}
#wee1{
padding-bottom: 3px;
}
</style>
</head>
<body oncontextmenu="return false;">
<div id="menu">
<div id="pic" style="background-color: rgb(53,53,53);" ><center><img src="logo.jpeg" style="width:200px;height:100px;"></center><a href="login.php" style="text-decoration: none;position: relative;left:95%;bottom:100px;color:white;" >login</a></div>
<div class="navbar">
<a href="home.php">Home</a>
<a href="about.php">About</a>
<div class="dropdown">
<button class="dropbtn"onclick="window.location.href = 'our organisation.php';">Our Organisation
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-content">
<a href="missionandvission.php">Mission and Vision</a>
<a href="organisation.php">Organisation Structure</a>
<a href="policeranks.php">Police Ranks</a>
<a href="medals.php">Medals</a>
<a href="emregency.php">Emergency Numbers</a>
<a href="dosanddonts.php">Do's and Don'ts</a>
</div>
</div>
<div class="dropdown">
<button class="dropbtn" onclick="window.location.href = 'citizenservices.php';">Citizen Services
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-content">
<a href="compliant form.php">File a Complaint</a>
<a href="passport.php">Passport Status</a>
<a href="echalanstatus.php">E-Chalan Payment</a>
<a href="citizencharter.php">Citizen Charter</a>
<a href="mostwanted.php">Most Wanted Criminals</a>
</div>
</div>
<div class="dropdown">
<button class="dropbtn " onclick="window.location.href = 'applicationform.php';">Application Forms
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-content">
<a href="armed.php">Armed License</a>
<a href="pass.php">Passport License</a>
<a href="driving.php">Driving License</a>
</div>
</div>
<a href="faqs.php">FAQ'S</a>
<div class="dropdown">
<button class="dropbtn "onclick="window.location.href = 'links.php';">External Links
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-content">
<a href="https://www.interpol.int/en">Interpol</a>
<a href="https://wcd.nic.in/">Ministry of Women and Child</a>
<a href="http://www.cbi.gov.in">CBI</a>
<a href="https://mha.gov.in/">Ministry of Human Affairs</a>
<a href="https://www.digitalindia.gov.in">Digital India</a>
<a href="https://rti.gov.in/">RTI</a>
</div>
</div>
<a href="suggessions.php">SUGGESSIONS</a>
<a href="ecopsdocumentation.pdf" target="_BLANK">DOCS</a>
</div>
</div>
<div id="qq">
<?php
if(isset($_POST['subm'])){
$sql = "INSERT INTO `echalan` (`first`, `last`, `vechileno`, `drivinglicence`, `email`, `phone`, `echalanregno`, `amount`, `paymentno`)
VALUES (' ".$_POST['fname']."',' ".$_POST['lname']."',' ".$_POST['vno']."',' ".$_POST['dno']."',' ".$_POST['email']."',' ".$_POST['phone']."', ' ".$_POST['eno']."',' ".$_POST['amount']." ',' ".$_POST['paymentno']." ')";
$result = mysqli_query($con,$sql);
$url="https://www.way2sms.com/api/v1/sendCampaign";
$mess="Hi There,Thanks FOr Choosing Ecops,your payment is successfully received ";
$pho=$_POST['phone'];
$message = urlencode($mess);// urlencode your message
$curl = curl_init();
curl_setopt($curl, CURLOPT_POST, 1);// set post data to true
curl_setopt($curl, CURLOPT_POSTFIELDS, "apikey=LOQ5C5A82I8OFAJJMWRNM3T9ZMWO9ESJ&secret=X143C6WY2147ESJG&usetype=stage&phone=$pho&senderid=ksdkamesh99@gmail.com&message=[$message]");// post data
// query parameter values must be given without squarebrackets.
// Optional Authentication:
curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$result11 = curl_exec($curl);
curl_close($curl);
}
?>
<form id="regForm" action="echalanstatus.php" method="POST">
<h1 style="background-image: linear-gradient(90deg,blue,red,violet);"><b>EChallan Payment</b></h1>
<div class="tab">Name:
<p><input placeholder="First name..." name="fname" type="text"></p>
<p><input placeholder="Last name..." name="lname" type="text"></p>
</div>
<div class="tab">Vechile Details:
<p><input placeholder="Vechile No..." name="vno" type="text"></p>
<p><input placeholder="Driving License..." name="dno" type="text"></p>
</div>
<div class="tab">Contact Info:
<p><input placeholder="E-mail..." name="email" type="email"></p>
<p><input placeholder="Phone..." name="phone" type="phone"></p>
</div>
<div class="tab">echalan reg no:
<p><input placeholder="echalan reg no" name="eno" type="text"></p>
<p><input placeholder="Amount" name="amount" type="text"></p>
</div>
<div class="tab">Payment Method Through Google Pay:
<br>
Using Any BHIM UPI Do THE Payment,By scanning the QR CoDE Below:
<br>
<img src="googlepay.jpeg" width="300px" height="400px">
<img src="bhim.jpg" width="400px" height="100px" style="display: inline-block;">
<p><input placeholder="Payment Reference No..." name="paymentno" type="text"></p>
<input type="submit" name="subm" value="submit" onclick="func()">
</div>
<div style="overflow:auto;">
<div style="float:right;">
<button type="button" id="prevBtn" onclick="nextPrev(-1)">Previous</button>
<button type="button" id="nextBtn" onclick="nextPrev(1)">Next</button>
</div>
</div>
<!-- Circles which indicates the steps of the form: -->
<div style="text-align:center;margin-top:40px;">
<span class="step"></span>
<span class="step"></span>
<span class="step"></span>
<span class="step"></span>
<span class="step"></span>
</div>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script type="text/javascript">
function func(){
swal("Successfully Submitted", " ", "success");
}
</script>
</form>
</div><script>
var currentTab = 0; // Current tab is set to be the first tab (0)
showTab(currentTab); // Display the current tab
function showTab(n) {
// This function will display the specified tab of the form...
var x = document.getElementsByClassName("tab");
x[n].style.display = "block";
//... and fix the Previous/Next buttons:
if (n == 0) {
document.getElementById("prevBtn").style.display = "none";
} else {
document.getElementById("prevBtn").style.display = "inline";
}
if (n == (x.length - 1)) {
document.getElementById("nextBtn").style.display = "none";
} else {
document.getElementById("nextBtn").innerHTML = "Next";
}
//... and run a function that will display the correct step indicator:
fixStepIndicator(n)
}
function nextPrev(n) {
// This function will figure out which tab to display
var x = document.getElementsByClassName("tab");
// Exit the function if any field in the current tab is invalid:
if (n == 1 && !validateForm()) return false;
// Hide the current tab:
x[currentTab].style.display = "none";
// Increase or decrease the current tab by 1:
currentTab = currentTab + n;
// if you have reached the end of the form...
if (currentTab >= x.length) {
// ... the form gets submitted:
document.getElementById("regForm").submit();
return false;
}
// Otherwise, display the correct tab:
showTab(currentTab);
}
function validateForm() {
// This function deals with validation of the form fields
var x, y, i, valid = true;
x = document.getElementsByClassName("tab");
y = x[currentTab].getElementsByTagName("input");
// A loop that checks every input field in the current tab:
for (i = 0; i < y.length; i++) {
// If a field is empty...
if (y[i].value == "") {
// add an "invalid" class to the field:
y[i].className += " invalid";
// and set the current valid status to false
valid = false;
}
}
// If the valid status is true, mark the step as finished and valid:
if (valid) {
document.getElementsByClassName("step")[currentTab].className += " finish";
}
return valid; // return the valid status
}
function fixStepIndicator(n) {
// This function removes the "active" class of all steps...
var i, x = document.getElementsByClassName("step");
for (i = 0; i < x.length; i++) {
x[i].className = x[i].className.replace(" active", "");
}
//... and adds the "active" class on the current step:
x[n].className += " active";
}
</script>
</body>
<footer>
<div id="qq1" style="text-align: left;display: inline-block;">
<h5 style="padding-left: 40px;padding-top: 10px;border-bottom: 1px solid white"><ul>Site Links</ul></h5>
<ul style="text-decoration: none;list-style-type: none;padding-left: 60px;">
<li><a href="about.php">About Us</a></li>
<li><a href="our organisation.php">our organisation</a></li>
<li><a href="citizenservices.php">citizen services</a></li>
<li><a href="faqs.php" >FAQ's</a></li>
<li><a href="links.php">External Links</a></li>
<li><a href="applicationform.php">Application Forms</a></li>
</ul>
</div>
<div id="wee" style="text-align: left;display: inline-block;position: relative;left: 100px;bottom: 60px;">
<h5 style="border-bottom: 1px solid white"><uL>Follow Us On</uL></h5>
<ul style="text-decoration: none;list-style-type: none; padding-left: 40px;">
<li><a href="https://www.facebook.com">Facebook</a></li>
<li><a href="https://twitter.com/?lang=en">Twitter</a></li>
<li><a href="https://www.instagram.com/?hl=en">Instagram</a></li>
</ul>
</div>
<div id="wee1" style="text-align: left;display: inline-block;position: relative;left: 200px;bottom: 90px;">
<h5 style="border-bottom: 1px solid white;padding-bottom: 10px;"><center>Legal</center></h5>
<ul style="text-decoration: none;list-style-type: none; padding-left: 30px;">
<li><a href="">Privacy</a></li>
<li><a href="">Terms</a></li>
</ul>
</div>
<div id="wee2" style="text-align: left;display: inline-block;position: relative;left: 800px;bottom: 0px;">
<h5 style="border-bottom: 1px solid white" ><center><ul>Contact Us</ul></center></h5>
<p><center>Ecops<br>Patna, Bihar (800005), India<br>
Phone: +91-0612-237 1715 / 237 2715<br>
FAX : +91-0612-2670631 , 0612-2660480</center></p>
<center><img src="home.jpeg" width="100px" height="50px"></center>
</div><marquee direction="right"><a href="help.php" style="color: white;text-decoration: none;">Issues In Website?Click here</a></marquee >
<p><center>CopyRight© 2019 India<br>All Rights Reserved</center></p>
</footer>
</html>