forked from vydyas/Online-Movie-Ticket-Booking-Script-Free
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathevents.php
executable file
·132 lines (114 loc) · 4.02 KB
/
events.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);
$frontend=new frontend();
$array2=$frontend->recent();
$size2=sizeof($array2);
$d=0;
$k=1;
?>
<html>
<head>
<title>Searh Events Online</title>
<link rel="stylesheet" href="modal.css">
<script src="js/jquery.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<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>
</head>
<body style="background:#eee">
<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">trailers</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;"><input type="text" class="filterinput" style="padding:3px;width:250px;" placeholder="Search Movies.." ></li>
</ul>
</nav>-->
<div>
<?php
$m=0;
while($size2>0)
{
$m++;
$id=$array2[$d]['id'];
$query=mysql_query("SELECT youtube FROM trailers WHERE movie_id='$id'");
$result=mysql_fetch_array($query);
?>
<a href="#myModal" class="popup" id="<?php echo $result['youtube']; ?>" data-toggle="modal"><img src="uploads/<?php echo $array2[$d]['image']; ?>" alt="image01" width=135px height=180px/></a>
<?php
$size2--;
$d++;
if($m%8==0)
{
?>
<br/><br/>
<?php
}
}
?>
<br/>
</div>
</center>
<div id="myModal" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Movie Trailer</h4>
</div>
<div class="modal-body">
</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">
$(function()
{
$('.popup').click(function()
{
var id=$(this).attr("id");
var url="//www.youtube.com/embed/"+id;
var iframe='<iframe width="560" height="315" src='+url+' frameborder="0" allowfullscreen></iframe>';
$('.modal-body').html(iframe);
});
});
</script>
</body>
</html>