forked from vydyas/Online-Movie-Ticket-Booking-Script-Free
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmovies.php
executable file
·132 lines (116 loc) · 4.5 KB
/
movies.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
<?php
include('db/db.php');
include('frontend.php');
//Database connection selection
$db=new db();
$db->db_connect();
$db->db_select();
$query="SELECT * FROM movies ORDER BY id DESC";
$result=mysql_query($query);
?>
<html>
<head>
<title>Searh Movie Theatres Online</title>
<style type="text/css">
body{font-family: calibri;}
</style>
<link rel="shortcut icon" type="image/png" href="favicon.ico"/>
<link rel="stylesheet" type="text/css" href="style.css">
<script src="jquery-1.8.0.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
</head>
<body>
<div class="header">
<div class="wrap">
<div class="logo">
<a href="index.html"><img src="images/newui.png" title="Online Movie Ticket Booking" alt="Online Movie Ticket Booking"></a>
</div>
<div class="nav-icon">
<table>
<tbody><tr>
<td id="menu"><a href="index3.php">Home</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="#events" class="popup" data-toggle="modal">Events</a></td>
<td id="menu"><a href="#">Help</a></td>
<td style="padding:5px;"><a href="#"><img src="images/addtheatre.png" width="" height="30px" title="Add Your Own Theatre" alt="Online Movie Ticket Booking"></a></td>
</tr>
</tbody></table>
</div>
<div class="clear"> </div>
</div>
</div>
<center><br/>
<!-- <nav class="menu">
<ul class="active">
<li><a href="index.php">Home</a></li>
<li><a href="movies.php">Movies</a></li>
<li><a href="theatres.php">Theatres</a></li>
<li><a href="trailers.php">Trailers</a></li>
<li><a href="moibile-app.php">Mobile App</a></li>
<li style="float:right;margin-right:10px;">
<a class="toggle-nav" href="#">☰</a>
<input type="text" id="filter" style="padding:3px;width:250px;" placeholder="Search Movies.." ></li>
</ul>
</nav>-->
<table class="data">
<?php
while($row=mysql_fetch_array($result))
{
?>
<tr >
<td id="leftcontents">
<img src="uploads/<?php echo $row['image'];?>" width=100px>
</td>
<td id="rightcontents" valign="top">
<div id="contents">
<b>Movie Name:</b> <a><?php echo $row['name'];?></a><br/>
<b>Cast:</b> <?php echo $row['cast'];?><br/>
<b>Direction:</b> <?php echo $row['director'];?><br/>
<b>Music:</b> <?php echo $row['music'];?><br/>
<b>Description:</b> <?php echo $row['desc'];?><br/>
</div>
</td>
</tr>
<?php
}
?>
</table>
<br/>
</center>
<div id="events" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Events Online</h4>
</div>
<div class="modal-bodys">
oming Soon
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
$("#filter").keyup(function(){
// Retrieve the input field text and reset the count to zero
var filter = $(this).val();
// Loop through the comment list
$("table tr").each(function(){
// If the list item does not contain the text phrase fade it out
if ($(this).text().search(new RegExp(filter, "i")) < 0) {
$(this).fadeOut();
// Show the list item if the phrase matches and increase the count by 1
} else {
$(this).show();
count++;
}
});
});
});
</script>
</body>
</html>