-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathPage2.html
107 lines (100 loc) · 2.9 KB
/
Page2.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
<html>
<head>
<title>
Page 2
</title>
<link rel="stylesheet" href="Page2.css" type="text/css">
</head>
<body onload="myFunction()" style="margin:0;" id="bod">
<div id="loader"></div>
<div style="display:none;" id="myDiv" class="animate-bottom">
<div id="division" onclick="reset()">
<table style="width:100%">
<thead>
<tr>
<th id="one1" align="left"><span class="cls">Trip Type</span></th>
<th id="one2" align="left"><span class="cls">Departure City</span></th>
<th id="one3" align="left"><span class="cls">Destinaiton City</span></th>
<th id="one4" align="left"><span class="cls">Departure Date</span></th>
<th align="left"><span id="one5" class="cls">Return Date</span></th>
<th id="one6" align="left"><span class="cls">Total Travellers</span></th>
</tr>
</thead>
<tbody>
<tr>
<td id="one" class="clsother"></td>
<td id="two" class="clsother"></td>
<td id="three" class="clsother"></td>
<td id="four" class="clsother"></td>
<td id="five" class="clsother"></td>
<td id="six" class="clsother"></td>
</tr>
</tbody>
</table>
</div>
</div>
<script>
var myVar;
function myFunction() {
myVar = setTimeout(showPage, 2000);
}
function showPage() {
document.getElementById("loader").style.display = "none";
document.getElementById("myDiv").style.display = "block";
}
</script>
<script LANGUAGE="JavaScript">
function reset(){
var msg=confirm("Do you want to change the Entered Details?\nOK to Edit");
if(msg){
window.location="ARS.html";
return true;
}
else
{
return false;
}
}
function getParams(){
var idx = document.URL.indexOf('?');
var params = new Array();
if (idx != -1) {
var pairs = document.URL.substring(idx+1, document.URL.length).split('&');
for (var i=0; i<pairs.length; i++){
nameVal = pairs[i].split('=');
params[nameVal[0]] = nameVal[1];
}
}
return params;
}
params = getParams();
Detail = unescape(params["Details"]);
from=unescape(params["from"])
To = unescape(params["to"]);
Departure_date = unescape(params["departure_date"]);
if(params["arrival_date_select"]){
arrival=unescape(params["arrival_date_select"]);
}
passenger=unescape(params["passengers"]);
from=from.charAt(0).toUpperCase()+from.slice(1);
To=To.charAt(0).toUpperCase()+To.slice(1)
document.getElementById('one').innerHTML= (Detail);
document.getElementById('two').innerHTML =from;
document.getElementById("three").innerHTML= To;
document.getElementById("four").innerHTML=Departure_date;
if(params["arrival_date_select"])
{
document.getElementById("five").innerHTML=arrival;
}
else
{ var bleh="Not Coming Back?K.Fine.";
document.getElementById("five").innerHTML=bleh;
document.getElementById("one5").style.opacity=0.5;
document.getElementById("five").style.opacity=0.5;
document.getElementById("five").style.color="#B8B89F";
document.getElementById("one5").style.color="#B8B89F";
}
document.getElementById("six").innerHTML=passenger;
</script>
</body>
</html>