-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
110 lines (103 loc) · 4.63 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="bluebootstrap.css">
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<!-- AmMap library -->
<script src="ammap/ammap.js" type="text/javascript"></script>
<script src="ammap/maps/js/worldLow.js" type="text/javascript"></script>
<link rel="stylesheet" href="http://www.dreamlineworld.com/map/ammap/ammap.css" type="text/css">
<script src="amMapScript.js" type="text/javascript"></script>
<!-- Latest compiled JavaScript -->
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<title>Travel the world on a student budget!</title>
<script type="text/javascript">
var datefield=document.createElement("input")
datefield.setAttribute("type", "date")
if (datefield.type!="date"){ //if browser doesn't support input type="date", load files for jQuery UI Date Picker
document.write('<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" />\n')
document.write('<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"><\/script>\n')
document.write('<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"><\/script>\n')
}
</script>
<script>
if (datefield.type!="date"){ //if browser doesn't support input type="date", initialize date picker widget:
jQuery(function($){ //on document.ready
$('#departure').datepicker();
$('#duration').datepicker();
})
}
</script>
<script>$(document).bind("mobileinit", function(){$.mobile.ajaxEnabled = false;});</script>
</head>
<body>
<nav class="navbar navbar-default">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="index.html">StudentTravels</a>
</div>
<div>
<ul class="nav navbar-nav">
<li class="active"><a href="index.html">Home</a></li>
<li><a href="results.php?destination=Australia">Info</a></li>
</ul>
</div>
</div>
</nav>
<div class="container">
<div id="mapdiv" class="mapdiv" style="width: 100%; height: 336px; margin-left: auto;margin-right: auto;"></div>
<form role="form" id="travelsearchform" action="results.php" method="get">
<div class="form-group">
<input type="number" min="1" max="10000" name="budget" class="form-control" placeholder="Enter budget(£) (eg. 400)" autofocus /><br />
</div>
<div class="form-group">
Enter destination <br />
<input id="dest" name="destination" class="form-control" placeholder="Leave blank for a random destination!" /><br />
<!--Rickroll any destination not in the database!-->
</div>
<div class="form-group">
<select name="airport" class="form-control">
<option value="blank">---Select Airport---</option>
<option value="heathrow">London Heathrow</option>
<option value="gatwick">London Gatwick</option>
<option value="machester">Manchester</option>
<option value="stansted">London Stansted</option>
<option value="edinburgh">Edinburgh</option>
<option value="luton">London Luton</option>
<option value="southampton">Southampton</option>
<option value="birmingham">Birmingham</option>
<option value="glasgow">Glasgow</option>
<option value="bristol">Bristol</option>
<option value="newcastle">Newcastle</option>
<option value="eastmidlands">East Midlands International</option>
<option value="johnlennon">Liverpool John Lennon</option>
<option value="belfast">Belfast International</option>
<option value="aberdeen">Aberdeen</option>
</select><br />
</div>
<div class="form-group">
<select name="packagedetail" class="form-control">
<option value="hotelandflight">Hotel & Flights</option>
<option value="hotelonly">Hotel Only</option>
<option value="flightsonly">Flights Only</option>
</select><br />
</div>
<div class="form-group">
Departure date <br />
<input type="date" class="form-control" id="departure" name="departure" size="20" /><br />
</div>
<div class="form-group">
Return date<br />
<input type="date" class="form-control" id="duration" name="duration" size="20" /><br />
</div>
<div class="form-group">
<input type="submit" value="Search" class="form-control" />
</div>
</form>
</div>
</body>
</html>