This repository has been archived by the owner on Oct 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
acco-travel-form.php
211 lines (200 loc) · 8.74 KB
/
acco-travel-form.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
<?php
session_start();
if ($_SESSION["email"] == "") {
header('Location: ./signin.php');
exit();
}
if($_SESSION['form_submit']=='fail') {
echo "<font size=4.5 color=red>There was a problem in submission, please try again.</font>";
}
?>
<html>
<head>
<title>13th Annual Alumni Meet · Logged in!</title>
<?php include 'topHead.php'; ?>
</head>
<body>
<div class="container-fluid">
<form action="acco-travel-form-continue.php" method="post">
<h2> Travel Details </h2>
<div class="form-group">
<label for="Name">Arrival Date</label>
<select name="arrDate" class="form-control">
<option>12th January 2016</option>
<option>13th January 2016</option>
<option>14th January 2016</option>
<option>15th January 2016</option>
<option>16th January 2016</option>
<option>17th January 2016</option>
</select>
</div>
<div class="form-group">
<label for="Name">Arrival Time</label>
<input class="form-control" type="time" placeholder="Arrival Time" name="arrTime">
</div>
<div class="form-group">
<label for="Name">Arrival Station/Airport</label>
<input class="form-control" type="text" placeholder="CCU/Howrah/Kharagpur/Other" name="arrSt">
</div>
<div class="form-group">
<label for="Name">Train/Flight Name</label>
<input class="form-control" type="text" placeholder="Train/Flight Name" name="trainName">
</div>
<div class="form-group">
<label for="Name">Train/Flight Number</label>
<input class="form-control" type="text" placeholder="Train/Flight Number" name="trainNo">
</div>
<div class="form-group">
<label for="Name">Number of Accompanying Person</label>
<input class="form-control" type="number" placeholder="No of Accompanying Person" name="accNo">
</div>
<div class="form-group">
<label for="Name">Your Secondary Phone Number</label>
<input class="form-control" type="number" placeholder="No of Accompanying Person" name="secPhone">
</div>
<div class="form-group">
<label for="Name">Do you require a cab from Kolkata to IIT Kharagpur?</label>
<select name="iscab" class="form-control" onchange="checkCab(this)">
<option>No</option>
<option>Yes</option>
</select>
</div>
<div class="form-group" style="display:none; margin-left:5%" id="ifcab">
<label for="Name">If Cab is required:</label><br>
<label for="Name">Pickup Destination</label>
<input class="form-control" type="text" placeholder="From where you require the cab" name="cabWhere">
<label for="Name">Pickup Date</label>
<input class="form-control" type="date" placeholder="Date when the cab is required" name="cabDate">
<label for="Name">Pickup Time</label>
<input class="form-control" type="time" placeholder="Time when the cab is required" name="cabWhen">
<label for="Name"> Total Number of People travelling in cab</label>
<input class="form-control" type="number" placeholder="Total people in cab" name="cabPpl">
<label for="Name">Cab Preference</label>
<select name="acabPref" class="form-control">
<option>Swift dezire</option>
<option>Scorpio</option>
<option>Honda City</option>
<option>Indigo</option>
</select>
</div>
<br><br>
<div class="form-group">
<label for="Name">Departure Date</label>
<select name="depDate" class="form-control">
<option>16th January 2016</option>
<option>17th January 2016</option>
<option>18th January 2016</option>
<option>19th January 2016</option>
<option>20th January 2016</option>
<option>21st January 2016</option>
</select>
</div>
<div class="form-group">
<label for="Name">On Departure, Do you require a cab to Kolkata?</label>
<select name="iscab2" class="form-control" onchange="checkCab2(this)">
<option>No</option>
<option>Yes</option>
</select>
</div>
<div class="form-group" style="display:none; margin-left:5%" id="ifcab2">
<label for="Name">If Cab is required</label><br>
<div class="form-group">
<label for="Name">Departure Time</label>
<input class="form-control" type="time" placeholder="Arrival Time" name="depTime">
</div>
<div class="form-group">
<label for="Name">Departure Station/Airport</label>
<input class="form-control" type="text" placeholder="CCU/Howrah/Kharagpur/Other" name="depSt">
</div>
<label for="Name">Cab Preference</label>
<select name="dcabPref" class="form-control">
<option>Swift dezire</option>
<option>Scorpio</option>
<option>Honda City</option>
<option>Indigo</option>
</select>
</div>
<hr>
<h2> Accommodation Details </h2>
<div class="form-group">
<label for="Name">Number of Accompanying Person</label>
<select class="form-control" name="accNo2" onchange="checkAcc(this)">
<option>0</option>
<option>1</option>
<option>2</option>
<option>3</option>
</select>
</div>
<div class="form-group" style="display:none; margin-left:5%" id="ifacc1">
<label for="Name">Accompanying Persons</label><br>
<label for="Name">1.</label><br>
<label for="Name">Name of Person</label>
<input class="form-control" type="text" placeholder="Name" name="accName1">
<label for="Name">Relationship with the Person</label>
<input class="form-control" type="text" placeholder="Relationship" name="accRel1">
<label for="Name">Age</label>
<input class="form-control" type="number" placeholder="Age" name="accAge1">
</div>
<div class="form-group" style="display:none; margin-left:5%" id="ifacc2">
<label for="Name">2.</label><br>
<label for="Name">Name of Person</label>
<input class="form-control" type="text" placeholder="Name" name="accName2">
<label for="Name">Relationship with the Person</label>
<input class="form-control" type="text" placeholder="Relationship" name="accRel2">
<label for="Name">Age</label>
<input class="form-control" type="number" placeholder="Age" name="accAge2">
</div>
<div class="form-group" style="display:none; margin-left:5%" id="ifacc3">
<label for="Name">3.</label><br>
<label for="Name">Name of Person</label>
<input class="form-control" type="text" placeholder="Name" name="accName3">
<label for="Name">Relationship with the Person</label>
<input class="form-control" type="text" placeholder="Relationship" name="accRel3">
<label for="Name">Age</label>
<input class="form-control" type="number" placeholder="Age" name="accAge3">
</div>
<div class="form-group" style="margin-top:20px;">
<label>Preferred Alumni You Want to Share the room/take adjacent room with:</label><br>
<label for="Name">Name</label>
<input class="form-control" type="text" placeholder="Name of preferred person" name="prefName">
<label for="Name">Year of Graduation of Preferred Person:</label>
<input class="form-control" type="number" placeholder="Year of Graduation of preferred person" name="prefYear">
<label for="Name">Department of the person</label>
<input class="form-control" type="text" placeholder="Department of preferred person" name="prefDep">
<label for="Name">Hall of the person</label>
<input class="form-control" type="text" placeholder="Hall of preferred person" name="prefHall">
</div>
<button type="submit" class="btn btn-success btn-lg btn-block" name="button">SUBMIT</button>
</form>
</div>
<script type="text/javascript">
function checkCab(x) {
if(x.options[x.selectedIndex].text=="Yes") {
document.getElementById("ifcab").style.display="block";
}
else {
document.getElementById("ifcab").style.display="none";
}
}
function checkCab2(x) {
if(x.options[x.selectedIndex].text=="Yes") {
document.getElementById("ifcab2").style.display="block";
}
else {
document.getElementById("ifcab2").style.display="none";
}
}
function checkAcc(x) {
var n=x.options[x.selectedIndex].text;
var y= new Array("ifacc1","ifacc2","ifacc3");
var i;
for(i=0;i<n;i++) {
document.getElementById(y[i]).style.display="block";
}
for(i=n;i<3;i++) {
document.getElementById(y[i]).style.display="none";
}
}
</script>
</body>
</html>