-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
106 lines (106 loc) · 3.47 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Lab5 bokningssystem</title>
<script type="text/javascript" src="lab5.js"></script>
<link rel="stylesheet" type="text/css" href="lab5.css" />
</head>
<body>
<div id="container">
<div id="rightside">
<h3>Choose your seat</h3>
<p>
<input type="button" value="x" class="buttonfree" />
Free
<br />
<input type="button" value="x" class="buttontaken" />
Taken
<br />
<input type="button" value="x" class="buttonunavail" />
Unavailable for this ticket class
</p>
<br />
<span id="b1">
<input type="button" value="1" class="buttonunavail" onclick="alert('Not economy class!')" />
</span>
<span id="b2">
<input type="button" value="2" class="buttonunavail" onclick="alert('Not economy class!')" />
</span>
<span id="b3">
<input type="button" value="3" class="buttonunavail" onclick="alert('Not economy class!')" />
</span>
<br />
<span id="b4">
<input type="button" value="4" class="buttonunavail" onclick="alert('Not economy class!')" />
</span>
<span id="b5">
<input type="button" value="5" class="buttonunavail" onclick="alert('Not economy class!')" />
</span>
<span id="b6">
<input type="button" value="6" class="buttonunavail" onclick="alert('Not economy class!')" />
</span>
<br />
<span id="b7">
<input type="button" value="7" class="buttonfree" onclick="bookSeat(value)" />
</span>
<span id="b8">
<input type="button" value="8" class="buttonfree" onclick="bookSeat(value)" />
</span>
<span id="b9">
<input type="button" value="9" class="buttonfree" onclick="bookSeat(value)" />
</span>
<br />
<span id="b10">
<input type="button" value="10" class="buttonfree" onclick="bookSeat(value)" />
</span>
<span id="b11">
<input type="button" value="11" class="buttonfree" onclick="bookSeat(value)" />
</span>
<span id="b12">
<input type="button" value="12" class="buttonfree" onclick="bookSeat(value)" />
</span>
<br />
<span id="b13">
<input type="button" value="13" class="buttonfree" onclick="bookSeat(value)" />
</span>
<span id="b14">
<input type="button" value="14" class="buttonfree" onclick="bookSeat(value)" />
</span>
<span id="b15">
<input type="button" value="15" class="buttonfree" onclick="bookSeat(value)" />
</span>
<br />
<span id="b16">
<input type="button" value="16" class="buttonfree" onclick="bookSeat(value)" />
</span>
<span id="b17">
<input type="button" value="17" class="buttonfree" onclick="bookSeat(value)" />
</span>
<span id="b18">
<input type="button" value="18" class="buttonfree" onclick="bookSeat(value)" />
</span>
<br />
</div>
<div id="leftside">
<form name="details" action="">
<h3>Personal details</h3>
Business class:
<input type="checkbox" name="bizClass" onclick="biz(this)"/>
<br />
First Name:
<input type="text" name="firstName" />
<br />
Last Name:
<input type="text" name="lastName" />
<br />
Seat number:
<span id="bookedseat"></span>
<br />
<input type="button" value="Submit" onclick="printBoard(this.form)" />
</form>
</div>
</div>
</body>
</html>