-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cab booking.html
96 lines (78 loc) · 2.06 KB
/
Cab booking.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
<html>
<head>
<style>
.body { background-image: url(C:\Users\moham\Desktop\HTML\priroda-nebo-oblaka-samolet.jpg); }
</style>
<title>Fight Booking</title>
</head>
<body>
<center> <h1 style="background-color: grey; color: white;">Cab Booking</h1> </center>
<div class="body" style="background-color:FFD700; color:black ; padding:40px;">
<h4>From</h4>
<input type="text" >
<h4>To</h4>
<input type="text">
<script>
function mydate()
{
//alert("");
document.getElementById("dt").hidden=false;
document.getElementById("ndt").hidden=true;
}
function mydate1()
{
d=new Date(document.getElementById("dt").value);
dt=d.getDate();
mn=d.getMonth();
mn++;
yy=d.getFullYear();
document.getElementById("ndt").value=dt+"/"+mn+"/"+yy
document.getElementById("ndt").hidden=false;
document.getElementById("dt").hidden=true;
}
</script>
<h4>Departing Date</h4>
<input type="date" >
<script>
function mydate()
{
//alert("");
document.getElementById("dt").hidden=false;
document.getElementById("ndt").hidden=true;
}
function mydate1()
{
d=new Date(document.getElementById("dt").value);
dt=d.getDate();
mn=d.getMonth();
mn++;
yy=d.getFullYear();
document.getElementById("ndt").value=dt+"/"+mn+"/"+yy
document.getElementById("ndt").hidden=false;
document.getElementById("dt").hidden=true;
}
</script>
<h4>Returning Date</h4>
<input type="date" >
<h4>Seats</h4>
<form>
<input type="radio" name="gender" value="male" checked> 1<br>
<input type="radio" name="gender" value="female" checked> 2<br>
<input type="radio" name="gender" value="other" checked> 3
</form>
<h4>Class</h4>
<form>
<select name="cars" size="3" multiple>
<option value="volvo">Economy </option>
<option value="saab">Business</option>
<option value="fiat">First Class</option>
</select>
<br><br>
<form>
<input type="checkbox" name="gender" value="male" checked> Kids(4-10) <br>
</form>
<input type="submit" value="submit" onclick=window.open("file:///C:/Users/user/Desktop/SEM%202/HTML%20programs/cabboo")>
</form>
</div>
</body>
</html>