forked from vydyas/Online-Movie-Ticket-Booking-Script-Free
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocation.php
executable file
·252 lines (223 loc) · 9.19 KB
/
location.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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
<?php
include('db/db.php');
include('frontend.php');
//Database connection selection
$db=new db();
$db->db_connect();
$db->db_select();
$frontend=new frontend();
//lcoation
$array=$frontend->getlocation();
$size=sizeof($array);
$t_size=$size;
$i=0;
$t=0;
if($_GET['url'])
{
$url=mysql_real_escape_string($_GET['url']);
$url=explode('/', $url);
$city=ucfirst($url[0]);
$locationquery=mysql_query("SELECT id FROM location where location='$city' ");
$location_row=mysql_fetch_array($locationquery);
$location_id=$location_row['id'];
$moviesquery=mysql_query("SELECT m.id,m.name,m.image,m.lang,ass.todate FROM assign_show ass LEFT JOIN movies m on m.id=ass.fk_movie_id WHERE ass.fk_location_id='$location_id' group by m.name order by ass.show_id desc");
}
else
{
echo '404 Not URL Available.';
}
?>
<!DOCTYPE HTML>
<html>
<head>
<title>Movie Tickets <?php echo $city; ?> Online Booking, Show Timings -CinemaChoodu</title>
<meta property="og:title" content="Movie Tickets <?php echo $city; ?> Online Booking, Show Timings, Showtimes & Prices-CinemaChoodu.com"/>
<meta property="og:description" content="Movie Tickets Online Booking , Movie Tickets Booking, <?php echo $city; ?> Movie Releases, Movies Schedule in <?php echo $city; ?>, <?php echo $city; ?> Movie Tickets rates, Theatre Hall, Movie Tickets Online at Cinemachoodu.com "/>
<meta name="keywords" content="Cinemachoodu,Movies Now Playing in <?php echo $city; ?>,book movie tickets online,how to buy movie tickets online,book movie tickets,online movie ticket booking,buy movie tickets online,buy movie tickets,buy tickets online,buy movies tickets,cinemas,movies in theaters,movie theaters,ticket booking,online ticket booking,Ticket Booking,Movie Reviews,Songs,Movie Tickets Online Booking , Movie Tickets Booking, <?php echo $city; ?> Movie Releases, Movies Schedule in <?php echo $city; ?>, <?php echo $city; ?> Movie Tickets rates, Theatre Hall, Movie Tickets Online at Cinemachoodu.com "/>
<meta property="og:site_name" content="CinemaChoodu.com"/>
<meta http-equiv="Pragma" Content="no-cache">
<meta http-equiv="Expires" Content="0">
<meta name="author" content="Cinema Choodu" />
<meta name="distribution" content="global" />
<meta name="robots" content="index, follow" />
<meta name="rating" content="general" />
<meta http-equiv="content-language" content="ll-cc">
<meta name="description" content="Movie Tickets Online Booking ,Movies Now Playing in <?php echo $city; ?>,<?php echo $city; ?> Movies,Theatres in srikakulam <?php echo $city; ?>, Movie Trailers,Movie Tickets Online at Cinemachoodu.com" />
<link href="http://www.cinemachoodu.com/css/newui.css" rel='stylesheet' type='text/css' />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" type="image/png" href="http://www.cinemachoodu.com/favicon.ico"/>
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
</script>
<!----webfonts---->
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800' rel='stylesheet' type='text/css'>
<!----//webfonts---->
<!-- Global CSS for the page and tiles -->
<link rel="stylesheet" href="http://www.cinemachoodu.com/css/main.css">
<script src="http://www.cinemachoodu.com/js/jquery.js"></script>
<link href="http://www.cinemachoodu.com/select2.css" rel="stylesheet"/>
<script src="http://www.cinemachoodu.com/select2.js"></script>
<script>
$(document).ready(function()
{
$(".se-pre-con").fadeOut("slow");
$("#location").select2();
$("#selectdate").select2();
});
</script>
</head>
<body>
<div class="se-pre-con"></div>
<!---start-wrap---->
<!---start-header---->
<div class="header">
<div class="wrap">
<div class="logo">
<a href="index.html"><img src="http://www.cinemachoodu.com/images/newui.png" title="Online Movie Ticket Booking" alt="Online Movie Ticket Booking" /></a>
</div>
<div class="nav-icon">
<table>
<tr>
<td>
<select style="width:150px" name="location" id="location">
<option value="">Select Location...</option>
<?php
while($size>0)
{
?>
<option value="<?php echo $array[$i]['id'];?>" <?php echo (($array[$i]['id']==$location_id)?"selected":""); ?>><?php echo $array[$i]['name'];?></option>
<?php
$size--;
$i++;
}
?>
</select>
</td>
</tr>
</table>
</div>
<div class="clear"> </div>
</div>
</div>
<!---//End-header---->
<!---start-content---->
<div class="content">
<div class="wrap">
<div id="main" role="main">
<H1>Movies Now Playing in <?php echo $city; ?></h1><br/>
<ul id="tiles">
<!-- These are our grid blocks -->
<?php
$i=1;
while($row=mysql_fetch_array($moviesquery))
{
?>
<li >
<img src="http://cinemachoodu.com/uploads/<?php echo $row['image'];?>" alt=" <?php echo $row['name'];?> Movie Ticket Booking" title="<?php echo $row['name'];?> Online Movie Ticket Booking" id="movieimage<?php echo $i;?>" >
<div class="post-info">
<div class="post-basic-info">
<span id="movievalue<?php echo $i;?>" style="display:none"><?php echo $row['id']; ?></span>
<h2><a href="#" id="movielink<?php echo $i;?>"><?php echo $row['name'];?></a></h2>
</div>
</div>
</li>
<?php
echo " <script>
$(function()
{
$('#movieimage".$i."').click(function()
{
var mov_id=$('#movievalue".$i."').text();
var loc=$('#location option:selected').text();
var loc_id=$('#location').val();
var link=$('#movielink".$i."').text();
link=link.split(' ');
link=link.join('-');
self.location='http://cinemachoodu.com/'+loc+'/'+link+'/'+loc_id+'-'+mov_id+'.html';
});
});
</script>";
$i++;
}
?>
<li onclick="location.href='single-page.html';">
<img src="http://cinemachoodu.com/images/songs.png" title ="A to Z Movie Songs Download" alt ="A to Z Movie Songs Download" >
<div class="post-info">
<div class="post-basic-info">
<h3><a href="#">Download Songs</a></h3>
</div>
</div>
</li>
<li onclick="location.href='single-page.html';">
<img src="http://cinemachoodu.com/images/reviews.png" alt ="Movie Reviews" title ="Movie Reviews" >
<div class="post-info">
<div class="post-basic-info">
<h3><a href="#">Movie Reviews</a></h3>
</div>
</div>
</li>
</ul>
</div>
</div>
</div>
<!---//End-content---->
<!----wookmark-scripts---->
<script src="http://www.cinemachoodu.com/js/jquery.imagesloaded.js"></script>
<script src="http://www.cinemachoodu.com/js/jquery.wookmark.js"></script>
<script type="text/javascript">
(function ($){
var $tiles = $('#tiles'),
$handler = $('li', $tiles),
$main = $('#main'),
$window = $(window),
$document = $(document),
options = {
autoResize: true, // This will auto-update the layout when the browser window is resized.
container: $main, // Optional, used for some extra CSS styling
offset: 20, // Optional, the distance between grid items
itemWidth:280 // Optional, the width of a grid item
};
/**
* Reinitializes the wookmark handler after all images have loaded
*/
function applyLayout() {
$tiles.imagesLoaded(function() {
// Destroy the old handler
if ($handler.wookmarkInstance) {
$handler.wookmarkInstance.clear();
}
// Create a new layout handler.
$handler = $('li', $tiles);
$handler.wookmark(options);
});
}
/**
* When scrolled all the way to the bottom, add more tiles
*/
// Call the layout function for the first time
applyLayout();
// Capture scroll event.
$window.bind('scroll.wookmark', onScroll);
})(jQuery);
</script>
<!----//wookmark-scripts---->
<!----start-footer--->
<div class="footer">
<p>Design by <a href="http://facebook.com/siddhucse">Siddhu Vydyabhushana</a></p>
</div>
<!----//End-footer--->
<!---//End-wrap---->
<script type="text/javascript">
$(function()
{
$('#location').change(function()
{
var loc_id=$('#location option:selected').text();
self.location='http://cinemachoodu.com/movies/'+loc_id;
});
});
</script>
<?php
include('googleanalytics.php');
?>
</body>
</html>