This repository has been archived by the owner on Mar 13, 2023. It is now read-only.
forked from lephuongbg/moviesquare
-
Notifications
You must be signed in to change notification settings - Fork 0
/
book.html
202 lines (175 loc) · 7.8 KB
/
book.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
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
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="Movie Square Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat." />
<meta name="keywords" content="Ex ea, commodo, consequat, duis aute irure, dolor in, reprehenderit" />
<title>Movie Square - Home</title>
<!-- CSS -->
<link href="css/rs.css" rel="stylesheet" type="text/css" />
<link href="css/myriadpro.css" rel="stylesheet" type="text/css" />
<link href="css/dropkick.css" rel="stylesheet" type="text/css" />
<!-- Custom CSS -->
<link href="css/ms.css" rel="stylesheet" type="text/css" />
<link href="css/booking.css" rel="stylesheet" type="text/css" />
<!-- Javascript and JQuery -->
<script src="js/jquery-1.7.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/jquery.dropkick-1.0.0.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
$(function () {
$('.default').dropkick();
});
</script>
</head>
<body>
<div class="w">
<div id="header">
<h1><a href="index.php">Movie Square</a></h1>
<div id="nav">
<ul>
<li><a href="index.php">Home </a></li>
<li class="current"><a href="book.html">Ticket Booking</a></li>
<li><a href="movies.php">Movies</a></li>
<li><a href="news.php">News & Events</a></li>
<li><a href="services.php">Services</a></li>
<li><a href="aboutus.php">About Us</a></li>
</ul>
</div>
</div>
<div id="filmBar"></div>
<div class="progressBar">
<div class="currentStep" style="width:25%">
<span>Choose Movie & Time</span>
</div>
<div class="progressStatus">Progress 25%</div>
</div>
<div id="dateBox">
<div class="dateTabs">
<a href="#" class="selected">Today</a>
<a href="#">Next three days</a>
<a href="#">This week</a>
<a href="#">Display all</a>
</div>
</div>
<div id="main">
<div id="content">
<div class="padding">
<h1>Movie Schedule</h1>
<div id="query_result">
</div>
</div>
</div>
<div id="sidebar">
<div class="padding">
<div class="box">
<form method="post" onsubmit="return false;">
<!--<h3>Select cinemas</h3>
<div class="box mod">
<input type="checkbox" name="cinema" value="hn_vincom" id="cinema_01" class="the_lorax chronicle titanic ice_age_4 prometheus the_artist john_carter wrath_of_the_titans" />
<label for="cinema_01">Hà Nội - Vincom</label><br />
<input type="checkbox" name="cinema" value="hn_ncc" id="cinema_02" class="the_lorax titanic ice_age_4 prometheus the_artist john_carter wrath_of_the_titans" />
<label for="cinema_02">Hà Nội - NCC</label><br />
<input type="checkbox" name="cinema" value="hn_platinum" id="cinema_03" class="chronicle titanic ice_age_4 the_artist act_of_valor john_carter wrath_of_the_titans" />
<label for="cinema_03">Hà Nội - Platinum</label><br />
<input type="checkbox" name="cinema" value="hcm_vincom" id="cinema_04" class="the_lorax chronicle titanic ice_age_4 prometheus the_artist act_of_valor" />
<label for="cinema_04">HCM - Vincom</label><br />
<input type="checkbox" name="cinema" value="hcm_galaxy" id="cinema_05" class="the_lorax chronicle titanic ice_age_4 the_artist act_of_valor wrath_of_the_titans" />
<label for="cinema_05">HCM - Galaxy</label><br />
</div>-->
<h3>Select movies</h3>
<input type="checkbox" name="movie" value="the_lorax" id="movie_01"/>
<label for="movie_01">The Lorax</label><br />
<input type="checkbox" name="movie" value="chronicle" id="movie_02"/>
<label for="movie_02">Chronicle</label><br />
<input type="checkbox" name="movie" value="titanic" id="movie_03"/>
<label for="movie_03">Titanic</label><br />
<input type="checkbox" name="movie" value="ice_age_4" id="movie_04"/>
<label for="movie_04">Ice Age 4</label><br />
<input type="checkbox" name="movie" value="prometheus" id="movie_05"/>
<label for="movie_05">Prometheus</label><br />
<input type="checkbox" name="movie" value="the_artist" id="movie_06"/>
<label for="movie_06">The Artist</label><br />
<input type="checkbox" name="movie" value="act_of_valor" id="movie_07"/>
<label for="movie_07">Act of Valor</label><br />
<input type="checkbox" name="movie" value="john_carter" id="movie_08"/>
<label for="movie_08">John Carter</label><br />
<input type="checkbox" name="movie" value="wrath_of_the_titans" id="movie_09"/>
<label for="movie_09">Wrath of the Titans</label><br />
<button class="button" id="submit_query">Search</button>
</form>
<div class="clr"></div>
</div>
</div>
</div>
<div class="clr"></div>
</div>
<div id="filmBarGrey"></div>
<div id="footer">
<ul>
<li class="current"><a href="index.php">Home </a></li>
<li><a href="book.html">Ticket Booking</a></li>
<li><a href="movies.php">Movies</a></li>
<li><a href="news.php">News & Events</a></li>
<li><a href="services.php">Services</a></li>
<li><a href="aboutus.php">About Us</a></li>
</ul>
<h3>Movie Square Entertainment Jsc © Copyright 2012</h3>
<p>Address: Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua<br />
Phone: 123-123456 | Fax: 123-123456 | Email: contact@moviesquare.com</p>
<div class="socialIcons">
<a href="#" title="Find us on Facebook"><img src="images/facebook.png" /></a><a href="#" title="Follow us on Twitter"><img src="images/twitter.png" /></a><a href="#" title="Your Channel on Youtube"><img src="images/youtube.png" /></a><a href="#" title="Get RSS Feeds"><img src="images/rss.png" /></a>
</div>
</div>
</div>
<script type="text/javascript">
today = new Date();
$("input[name=movie]").each(function() {
$(this).removeAttr("checked");
});
$("#submit_query").click(function() {
movies = $("input[name=movie]:checked");
if (movies.length == 0) {
alert("You haven't choose any movie!");
return;
}
// Update Schedule
schedule = $("#query_result");
schedule.empty();
movies.each(function() {
m = $(this);
schedule.append("<div class='box mod'><h1><a href='#'>" + getTitle(m) + "</a></h1>");
//c_query.each(function() {
//c = $(this);
//if (c.hasClass(m.val())) {
//$("#query_result .box").last().append("<div class='itemBox'><h4>" + $("label[for=" + m.attr("id") + "]").html() + "</h4><br >\n");
var i = 0, period = parseInt($(".selected").attr("id"));
var date = today.getDate(), month = today.getMonth(), year = today.getFullYear();
do {
date++;
if (date>31) {
date -= 31;
month++;
if (month>12)
year++;
}
$("#query_result .box").last().append("<span class='s_date'>" + date + "/" + month + "/" + year + "</span>\n" + generateTimeblock() + "<br>");
} while (++i<period && Math.floor(Math.random()*100)<80);
//}
//});
});
schedule.append("</div>");
});
function generateTimeblock() {
var html = "";
var timeblocks = new Array("10:00", "11:30", "14:00", "16:45", "20:00", "21:30");
for (i in timeblocks)
if (Math.floor(Math.random()*100)<75)
html += "<span class='s_timeblock'><a href='book-step-2.html'>" + timeblocks[i] + "</a></span>\n";
return html;
}
function getTitle(o) {
return $("label[for=" + o.attr("id") + "]").html();
}
</script>
</body>
</html>