-
Notifications
You must be signed in to change notification settings - Fork 0
/
rough.html
453 lines (433 loc) · 24.1 KB
/
rough.html
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
451
452
453
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<style>
h2{
color: red;
text-decoration: underline;
font-family: cursive;
text-align: center;
}
</style>
</head>
<body>
<div class="col-md-4"></div>
<div class="col-md-3">
<h2>login process :</h2>
<form action="" method="post">
<div class="form-group">
<label for="">Enter Username:</label>
<input type="text" class="form-control" name="uname">
</div>
<div class="form-group">
<label for="">Enter Password:</label>
<input type="text" class="form-control" name="pass">
</div>
<center>
<input type="submit" class="btn btn-info" name="submit" value="login">
</center>
</form>
</div>
</body>
</html>
<div class="explore_bx" style="text-align: right;">
<div class="explore_cards">
<h4>BUS NAME:<pre> Hills fire</pre></h4>
</div>
<div class="explore_cards">
<h4>BUS NO.PLATE:<pre> HP 33 BP 1234</pre></h4>
</div>
<div class="explore_cards">
<h4>DRIVER NAME:<pre> SANDRU</pre></h4>
</div>
<div class="explore_cards">
<h4>DRIVER NO :<pre> 9876504321</pre></h4>
</div>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<link rel="stylesheet" href="style.css">
<title>Nature Website</title>
</head>
<body>
<header>
<video src="video/video.mp4" loop muted></video>
<nav>
<ul>
<li><a href="#">About</a></li>
<li><a href="#">Explore</a></li>
<li><a href="#"><i class="bi bi-geo-alt-fill"></i></a></li>
<li><a href="#">Journal</a></li>
<li><a href="#"><i class="bi bi-search"></i> Search</a></li>
</ul>
</nav>
<section>
<h1>The Great Outdoors</h1>
<p>Wonder often Wonder Always.</p>
<i class="bi bi-play-circle"></i>
</section>
</header>
<div class="explore_bx">
<h2>Explore the world</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aspernatur ex velit quasi? Libero velit sit, praesentium optio, odit nisi fugit ab similique eos quam dolorem?</p>
<div class="explore_cards">
<a href="#" class="exp_card">
<img src="img/img1.jpg" alt="">
<div class="content">8
<h4 class="title">Yumthnag Vally</h4>
<p class="sub">Sikkim</p>
</div>
</a>
<a href="#" class="exp_card">
<img src="img/img2.jpg" alt="">
<div class="content">
<h4 class="title">Nubra Vally</h4>
<p class="sub">Ladakh</p>
</div>
</a>
<a href="#" class="exp_card">
<img src="img/img3.jpg" alt="">
<div class="content">
<h4 class="title">Khajjiar</h4>
<p class="sub">Himachal Pradesh</p>
</div>
</a>
<a href="#" class="exp_card">
<img src="img/img4.jpg" alt="">
<div class="content">
<h4 class="title">Kasmir Vally</h4>
<p class="sub">Kasmir</p>
</div>
</a>
<a href="#" class="exp_card">
<img src="img/img5.jpg" alt="">
<div class="content">
<h4 class="title">Dudhsagar Falls</h4>
<p class="sub">Goa</p>
</div>
</a>
</div>
<button>See More <i class="bi bi-caret-right-fill"></i></button>
</div>
<div class="explore_bx">
<h2>The Journal</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit praesentium optio, odit nisi fugit ab similique eos quam dolorem?</p>
<div class="explore_cards">
<a href="#" class="exp_card">
<img src="img/C_img1.webp" alt="">
<div class="content">
<h6>24 March 2022</h6>
<h4 class="title">Yumthnag Vally</h4>
<p class="sub">Lorem ipsum dolor sit amet consectetur adipisicing elit. Quas explicabo ad beatae sint saepe quasi.</p>
</div>
</a>
<a href="#" class="exp_card">
<img src="img/c_img2.jpg" alt="">
<div class="content">
<h6>24 March 2022</h6>
<h4 class="title">Nubra Vally</h4>
<p class="sub">Lorem ipsum dolor sit amet consectetur adipisicing elit. Quas explicabo ad beatae sint saepe quasi.</p>
</div>
</a>
<a href="#" class="exp_card">
<img src="img/c_img3.jpg" alt="">
<div class="content">
<h6>24 March 2022</h6>
<h4 class="title">Khajjiar</h4>
<p class="sub">Lorem ipsum dolor sit amet consectetur adipisicing elit. Quas explicabo ad beatae sint saepe quasi.</p>
</div>
</a>
</div>
<button>See Photos <i class="bi bi-caret-right-fill"></i></button>
</div>
<footer>
<p>© 2022 THE GREAT OUTDOOR ALL rights reserved</p>
</footer>
<script src="app.js"></script>
</body>
</html>
<form action="book.html" id="booking">
<div class="container" >
<div class="col-md-5" style="background-image: url(img/manish-tulaskar-9JWkRVeUa7E-unsplash.jpg);background-repeat: no-repeat;background-attachment: fixed;width: 45%;border-radius: 5px;">
<div>
<label for="name"><b>Name:</b></label>
<input type="text" class="form-control" name="name" required placeholder="User name:"><br>
</div>
<div>
<label for="mobile"><b>Mobile number:</b></label>
<input type="number" class="form-control" name="mobile_num" required placeholder="mobile_num"><br>
</div>
<div>
<label for="email"><b>Email id:</b></label>
<input type="email" class="form-control" name="email" required placeholder="email"><br>
</div>
<div id="data">
<label for="gender"><b>Gender :</b></label><br>
<div class="form-check">
<input class="form-check-input" type="radio" name="Gender" id="male">
<label class="form-check-label" for="flexRadioDefault1">Male</label><br>
<input class="form-check-input" type="radio" name="Gender" id="female">
<label class="form-check-label" for="flexRadioDefault1">Female</label><br><br>
</div>
</div>
<div>
<label for="aadhar_no"><b>Aadhar number:</b></label><br>
<input type="number" class="form-control" name="aadhar_num" required placeholder="aadhar_num"><br>
</div>
<div id="data">
<label for="dob"><b>DOB:</b></label>
<input type="date" class="form-control" name="dob" required placeholder="User dob"><br>
</div>
<div id="data">
<label for="address"><b>Address:</b></label>
<textarea name="address" type="text" class="form-control" id="address" cols="5" rows="10" required placeholder="permanent address"></textarea><br>
</div>
<div>
<label for="bloodgroup"><b>Blood-group:</b></label>
<input type="text" class="form-control" name="bloodgroup" required placeholder="bloodgroup"><br>
</div>
<div>
<label for="package"><h3>Package:</h3></label><br>
<input class="form-check-input" type="checkbox" id="sikkim" name="sikkim">
<label class="form-check-label">Sikkim</label><br>
<input class="form-check-input" type="checkbox" id="agara" name="agara">
<label class="form-check-label">Agara</label><br>
<input class="form-check-input" type="checkbox" id="chennai" name="chennai">
<label class="form-check-label">Chennai</label><br>
<input class="form-check-input" type="checkbox" id="goa" name="goa">
<label class="form-check-label">Goa</label><br>
<input class="form-check-input" type="checkbox" id="himachalPradesh" name="himachalPradesh">
<label class="form-check-label">HimachalPradesh</label><br>
<input class="form-check-input" type="checkbox" id="jaipur" name="jaipur">
<label class="form-check-label">Jaipur</label><br>
<input class="form-check-input" type="checkbox" id="kashmir" name="kashmir">
<label class="form-check-label">Kashmir</label><br>
<input class="form-check-input" type="checkbox" id="Ladakkh" name="Ladakkh">
<label class="form-check-label">Ladakkh</label><br>
<input class="form-check-input" type="checkbox" id="rajasthan" name="rajasthan">
<label class="form-check-label">Rajasthan</label><br>
<input class="form-check-input" type="checkbox" id="srinagar" name="srinagar">
<label class="form-check-label">Srinagar</label><br>
<input class="form-check-input" type="checkbox" id="udhaipur" name="udhaipur">
<label class="form-check-label">udhaipur</label><br>
<input class="form-check-input" type="checkbox" id="varnasi" name="varnasi">
<label class="form-check-label">varnasi</label><br>
</div>
</div>
<div class="col-md-1"><br></div>
<div class="col-md-5" style="background-image:url(img/manish-tulaskar-9JWkRVeUa7E-unsplash.jpg);background-repeat:no-repeat;background-attachment: fixed;width: 45%;border-radius: 5px;">
<div>
<label for="frm_date"><b>From Date:</b></label>
<input type="date" class="form-control" name="from_date" required ><br>
<label for="end_date"><b>End Date:</b></label><br>
<input type="date" class="form-control" name="end_date" required><br>
</div>
<div>
<label for="food"><b>Food :</b></label>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="flexSwitchCheckDefault">
<label class="form-check-label" for="flexSwitchCheckDefault">With Food</label><br><br>
</div>
</div>
<div>
<label for="members"><b>Members:</b></label>
<input type="number" class="form-control" name="tot_members" required placeholder="Total members"><br>
<input type="number" class="form-control" name="kid_meb" required placeholder="No of kids:"><br>
<input type="number" class="form-control" name="adult_meb" required placeholder="No of adults:"><br>
<input type="number" class="form-control" name="sen_meb" required placeholder="No of senior citizen:"><br><br>
</div>
<div>
<label for="bus"><h3>Bus:</h3></label><br>
<input class="form-check-input" type="radio" name="bus" id="acBus">
<label class="form-check-label" for="flexRadioDefault12">A/C bus</label><br>
<input class="form-check-input" type="radio" name="bus" id="airbus">
<label class="form-check-label" for="flexRadioDefault12">Air bus</label><br>
<input class="form-check-input" type="radio" name="bus" id="superFastBus">
<label class="form-check-label" for="flexRadioDefault12">Super fast</label><br>
<input class="form-check-input" type="radio" name="bus" id="superDulexBus">
<label class="form-check-label" for="flexRadioDefault12">Super dulex</label><br>
<input class="form-check-input" type="radio" name="bus" id="dulexbus">
<label class="form-check-label" for="flexRadioDefault12">Dulex</label><br>
<input class="form-check-input" type="radio" name="bus" id="sleeperBus">
<label class="form-check-label" for="flexRadioDefault12">Sleeper</label><br><br>
</div>
<div>
<label for="hotel"><h3>Hotel:</h3></label><br>
<input class="form-check-input" type="radio" name="hotel" id="platinumHotel">
<label class="form-check-label" for="flexRadioDefault13">Platinum</label><br>
<input class="form-check-input" type="radio" name="hotel" id="goldHotel">
<label class="form-check-label" for="flexRadioDefault13">Gold</label><br>
<input class="form-check-input" type="radio" name="hotel" id="silverHotel">
<label class="form-check-label" for="flexRadioDefault13">Silver</label><br>
<input class="form-check-input" type="radio" name="hotel" id="diamonHotel">
<label class="form-check-label" for="flexRadioDefault13">Diamond</label><br><br>
</div>
<div>
<label for="restarunt"><h3>Restarunt :</h3></label><br>
<input class="form-check-input" type="radio" name="restarunt" id="2StarRestarunt">
<label class="form-check-label" for="flexRadioDefault14">2 star</label><br>
<input class="form-check-input" type="radio" name="restarunt" id="2.5StarRestarunt">
<label class="form-check-label" for="flexRadioDefault14">2.5 star</label><br>
<input class="form-check-input" type="radio" name="restarunt" id="3StarRestarunt">
<label class="form-check-label" for="flexRadioDefault14">3 star</label><br>
<input class="form-check-input" type="radio" name="restarunt" id="3.5StarRestarunt">
<label class="form-check-label" for="flexRadioDefault14">3.5 star</label><br>
<input class="form-check-input" type="radio" name="restarunt" id="3.75StarRestarunt">
<label class="form-check-label" for="flexRadioDefault14">3.75 star</label><br>
<input class="form-check-input" type="radio" name="restarunt" id="4StarRestarunt">
<label class="form-check-label" for="flexRadioDefault14">4 star</label><br>
<input class="form-check-input" type="radio" name="restarunt" id="4.5StarRestarunt">
<label class="form-check-label" for="flexRadioDefault14">4.5 star</label><br><br>
</div>
<button type="submit" class="btn btn-outline-success btn-lg " >Book<i class="bi bi-caret-right-fill"></i></button>
<a href="packages.html"><button class="btn btn-outline-warning btn-lg " >Back<i class="bi bi-caret-left-fill"></i></button>
</a>
</div>
</div>
</form>-->
<!-- <style>
img{
align-items: center;
text-decoration: underline;
}
</style>
<img src="img/gpay qr haarishmurugavel.jpeg" alt=""> -->
<!-- #!C:/Users/haari/AppData/Local/Programs/Python/Python311/python.exe
print("""content-type:text/html \r\n\r\n""")
import pymysql
import cgi,cgitb
cgitb.enable()
conn=pymysql.connect(host="Localhost",user="root",password="",database="tourism")
cur=conn.cursor()
print(""" -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Register form</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<style>
h2 {
color:red;
text-decoration: underline green;
font-family: cursive;
text-align: center;
}
</style>
</head>
<body>
<h2>Registration:</h2>
<form action="#" name="f">
<div class="container">
<div class="col-md-4">
<label for="#"><b>Basic Details :</b></label><br>
<label for="name">Name:</label>
<input type="text" name="name"><br>
<label for="mobile">mobile:</label>
<input type="number" name="mobile"><br>
<label for="email">Email:</label>
<input type="email" name="email"><br>
<label for="aadhar">Aadhar :</label>
<input type="number" name="aadhar"><br>
<label for="start">From Date:</label>
<input type="date" name="start"><br>
<label for="ending">End date :</label>
<input type="date" name="ending"><br>
<label for="members">Members:</label>
<input type="number" name="members"><br>
<label for="kids">Kids:</label>
<input type="number" name="kids"><br>
<label for="adult">Adult:</label>
<input type="number" name="adult"><br>
</div>
<div class="col-md-4">
<label for="bus"><b>Bus :</b></label><br>
<input type="radio" name="bus" value="acbus">
<label>ac bus</label><br>
<input type="radio" name="bus" value="airbus">
<label>air bus</label><br>
<input type="radio" name="bus" value="superfast">
<label>super fast</label><br>
<input type="radio" name="bus" value="superdulex">
<label>super dulex</label><br>
<input type="radio" name="bus" value="Sleeper">
<label>sleeper</label><br>
<label for="hotel"><b>Hotel and Restarunt :</b></label><br>
<input type="radio" name="hotel" value="diamond">
<label>Diamond & 4.5 star</label><br>
<input type="radio" name="hotel" value="Platinum">
<label>Platinum & 4 star</label><br>
<input type="radio" name="hotel" value="gold">
<label>Gold & 3.5 star</label><br>
<input type="radio" name="hotel" value="silver">
<label>Silver & 3 star</label><br>
</div>
<div class="col-md-4">
<label for="packages"><b>Package :</b></label><br>
<input type="radio" name="package" value="sikkim">
<label>sikkim</label><br>
<input type="radio" name="package" value="agara">
<label>agara</label><br>
<input type="radio" name="package" value="chennai">
<label>Chennai</label><br>
<input type="radio" name="package" value="goa">
<label>Goa</label><br>
<input type="radio" name="package" value="himachalPradesh">
<label>HimachalPradesh</label><br>
<input type="radio" name="package" value="jaipur">
<label>Jaipur</label><br>
<input type="radio" name="package" value="kashmir">
<label>Kashmir</label><br>
<input type="radio" name="package" value="srinagar">
<label>Srinagar</label><br>
<input type="radio" name="package" value="udhaipur">
<label>udhaipur</label><br>
<input type="radio" name="package" value="varnasi">
<label>varnasi</label><br>
<input type="submit" name="submit" class="btn btn-outline-success" value="Register">
<input type="reset" name="reset" class="btn btn-outline-warning" value="Reset">
</div>
</div>
</div>
</form>
</body>
</html>""")
f=cgi.FieldStorage()
Name=f.getvalue("name")
Mobile=f.getvalue("mobile")
Email=f.getvalue("email")
Aadhar=f.getvalue("aadhar")
Start=f.getvalue("start")
Ending=f.getvalue("ending")
Members=f.getvalue("members")
Kids=f.getvalue("kids")
Adult=f.getvalue("adult")
Bus=f.getvalue("bus")
Hotel=f.getvalue("hotel")
Package=f.getvalue("package")
Submit=f.getvalue("submit")
if Submit != None:
q = """insert into register(name,email,mobile,aadhar,start,ending,members,kids,adult,bus,hotel,package) values('%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s')""" %(Name,Email,Mobile,Aadhar,Start,Ending,Members,Kids,Adult,Bus,Hotel,Package)
cur.execute(q)
conn.commit()
print("""
<script>
alert("Registration successfully completed");
location.href="book.py?Id=%s";
</script>
""")
conn.close()