-
Notifications
You must be signed in to change notification settings - Fork 32
/
newindex.php
executable file
·167 lines (138 loc) · 3.88 KB
/
newindex.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
<!DOCTYPE HTML>
<?php
include('db/db.php');
include('frontend.php');
//Database connection selection
$db=new db();
$db->db_connect();
$db->db_select();
$frontend=new frontend();
//loation
$array=$frontend->getlocation();
$size=sizeof($array);
$t_size=$size;
$i=0;
$t=0;
//slider
$array1=$frontend->slider();
$size1=sizeof($array1);
$s=0;
$j=1;
?>
<html>
<head>
<title>Searh Movie Theatres Online</title>
<link rel="shortcut icon" type="image/png" href="favicon.ico"/>
<link href="css/style.css" rel="stylesheet"/>
<link href="select2.css" rel="stylesheet"/>
<link rel="stylesheet" type="text/css" href="engine1/style.css" />
<link rel="stylesheet" href="modal.css">
</head>
<body>
<div class="bar">
</div>
<center style="margin-top:10px;">
<table>
<tr>
<td style="background:transparent !important;">
<div style="padding:15px;margin-top:-10px;width:300px;border:solid 1px #eee;">
<img src="images/logo2.jpg" width=286px height=100px>
<hr size=1 color="#eee"/>
<span style="color:red;font-size:20px">Search By</span> <span id="selection" style="font-size:20px">Location</span><br/><br/>
<div id="mm">
<select style="width:300px;" name="location" id="location">
<option value="">Select Location...</option>
<?php
while($size>0)
{
?>
<option value="<?php echo $array[$i]['id'];?>"><?php echo $array[$i]['name'];?></option>
<?php
$size--;
$i++;
}
?>
</select><br/><br/>
<a href="#" id="submit">Search Movies</a>
<br/><br/>
<center><img src="ajax-loader.gif" alt="Loading..." id="ajax"></center>
</div>
</div>
</td>
<td>
<table>
<tr>
<td id="menu"><a href="theatres.php" >Theatres</a></td>
<td id="menu"><a href="movies.php">Movies</a></td>
<td id="menu"><a href="trailers.php">Trailers</a></td>
<td id="menu"><a href="#">Mobile App</a></td>
<td id="menu"><a href="contact.php">Contact</a></td>
</tr>
<tr>
<td colspan=5>
<!--<img src="images/aaa.png" height=245px width=610px>-->
<div id="wowslider-container1">
<div class="ws_images">
<ul>
<?php
while($size1>0)
{
?>
<li><img src="slider/<?php echo $array1[$s]['image']; ?>" alt="213" title="213" id="wows1_0" width=612px height=248px/></li>
<?php
$size1--;
$s++;
}
?>
</ul></div>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</center>
<center>
<h1 id="asdf">Please Select Loation</h1>
<div id="result">
</div>
</center>
<script src="jquery-1.8.0.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script src="select2.js"></script>
<script>
$(document).ready(function()
{
$("#location").select2();
});
</script>
<script type="text/javascript">
$(function()
{
$('#submit').click(function()
{
var location=$('#location').val();
$('#asdf').hide();
if(location=='')
{
alert("Please Select Location...");
return false;
}
$('#ajax').show();
$.post("load1.php",
{
location:location
},
function(data,status)
{
$('#result').html(data);
$('#ajax').hide();
});
});
});
</script>
<script type="text/javascript" src="engine1/wowslider.js"></script>
<script type="text/javascript" src="engine1/script.js"></script>
</body>
</html>