-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathadmin.php
301 lines (241 loc) · 7.97 KB
/
admin.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
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Bayan ni Juan</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Free HTML5 Website Template by FreeHTML5.co" />
<meta name="keywords" content="free html5, free template, free bootstrap, free website template, html5, css3, mobile first, responsive" />
<meta name="author" content="FreeHTML5.co" />
<!--
//////////////////////////////////////////////////////
FREE HTML5 TEMPLATE
DESIGNED & DEVELOPED by FreeHTML5.co
Website: http://freehtml5.co/
Email: info@freehtml5.co
Twitter: http://twitter.com/fh5co
Facebook: https://www.facebook.com/fh5co
//////////////////////////////////////////////////////
-->
<!-- Facebook and Twitter integration -->
<meta property="og:title" content=""/>
<meta property="og:image" content=""/>
<meta property="og:url" content=""/>
<meta property="og:site_name" content=""/>
<meta property="og:description" content=""/>
<meta name="twitter:title" content="" />
<meta name="twitter:image" content="" />
<meta name="twitter:url" content="" />
<meta name="twitter:card" content="" />
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
<link rel="shortcut icon" href="favicon.ico">
<link href='https://fonts.googleapis.com/css?family=Work+Sans:400,300,600,400italic,700' rel='stylesheet' type='text/css'>
<!-- Animate.css -->
<link rel="stylesheet" href="css/animate.css">
<!-- Magnific Popup -->
<link rel="stylesheet" href="css/magnific-popup.css">
<!-- Bootstrap -->
<link rel="stylesheet" href="css/bootstrap.css">
<!-- Icomoon Icon Fonts-->
<link rel="stylesheet" href="css/icomoon.css">
<!-- Theme style -->
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/nav-bar.css">
<link rel="stylesheet" type="text/css" href="css/image-holder.css">
<style>
/* The Modal (background) */
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
padding-top: 100px; /* Location of the box */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0,0,0); /* Fallback color */
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
/* Modal Content */
.modal-content {
background-color: #fefefe;
margin: auto;
padding: 20px;
border: 1px solid #888;
width: 80%;
}
/* The Close Button */
.close {
color: #aaaaaa;
float: right;
font-size: 28px;
font-weight: bold;
}
.close:hover,
.close:focus {
color: #000;
text-decoration: none;
cursor: pointer;
}
</style>
<!-- Modernizr JS -->
<script src="js/modernizr-2.6.2.min.js"></script>
<!-- FOR IE9 below -->
<!--[if lt IE 9]>
<script src="js/respond.min.js"></script>
<![endif]-->
</head>
<?php include'sessionadmin.php'; ?>
<body>
<header id="fh5co-header">
<?php include ('pages/admin_nav-bar.php'); ?>
</header>
<div id="fh5co-wrap">
<header id="fh5co-header">
<?php include ('pages/admin_nav-bar.php'); ?>
</header>
<div class="fh5co-hero" style="background-image: url(images/0005-baec-painting1-e1448047881412.jpg);" data-stellar-background-ratio="0.5">
<div class="overlay"></div>
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2 col-sm-12 col-sm-offset-0 col-xs-12 col-xs-offset-0 text-center fh5co-table">
<div class="fh5co-intro fh5co-table-cell">
<h1 class="text-center">"Pilipinas: Magbayanihan tayo"</h1>
</div>
</div>
</div>
</div>
</div>
<div class="fh5co-section">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="row">
<div class="col-md-12">
<h2><b>Mga listahan ng Palabas<b></h2>
</div>
</div>
</div>
<div class="col-md-6">
<?php
include 'db.php';
$sql = mysql_query("SELECT v_id,caption,video_name,
(CASE WHEN status = 0 THEN 'Pending'
WHEN status = 1 THEN 'Approval'
END) AS status
FROM video ORDER BY v_id DESC")or die("".mysql_error());
while($row = mysql_fetch_array($sql)) {
echo
"
<form method='post' action='updatestatus.php'>
<label>".$row['caption']."</label><br>
<video width='300' height='200' controls>
<source src='videos/".$row['video_name']."' type='video/mp4'>
</video>
<input type='hidden' name='v_id' value=".$row['v_id'].">
<select name='status'>
<option value=".$row['status'].">".$row['status']."</option>
<option value='1'>Approve</option>
</select>
<input type='submit' name='update' value='Update'>
<br>
</form>
";
}?>
</div>
<div class="col-md-6">
</div>
</div>
<div class="col-md-6"><br><br>
<h2>Bakit ang Pilipino kilala <br> sa bayanihan?</h2>
<div class="image-container">
<img src="images/bayanihan.jpg" alt="Avatar" class="image">
<div class="overlay">
<div class="text">Siyasatin</div>
</div>
</div>
</div>
<div class="col-md-6"><br><br>
<div class="container">
<img src="images/share-story.jpg" alt="Avatar" style="width:auto; height:250px;"><br><br>
<p>If you have story . Just <a href="">send to us.</a></p>
</div>
</div>
</div>
</div>
</div> <!-- END fh5co-wrap -->
<footer id="fh5co-footer">
<div class="container">
<div class="row">
<div class="col-md-4">
<h3>About Us</h3>
<p>This site provides information on how beautiful the Philippines is.</p>
</div>
<div class="col-md-3 col-md-push-1">
<h3>Quick Links</h3>
<ul>
<li><a href="#">About Us</a></li>
<li><a href="#">Products</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Blog</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
<div class="col-md-3 col-md-push-1">
<h3>Follow Us</h3>
<ul class="fh5co-social">
<li><a href="#"><i class="icon-twitter"></i> <span>Twitter</span></a></li>
<li><a href="#"><i class="icon-facebook"></i> <span>Facebook</span></a></li>
<li><a href="#"><i class="icon-instagram"></i> <span>Instagram</span></a></li>
<li><a href="#"><i class="icon-google"></i> <span>Google Plus</span></a></li>
</ul>
</div>
</div>
<div class="row">
<div class="col-md-12 fh5co-copyright text-center">
<p><small>© 2018 BLUEHACK . Team FAILED </small>
</div>
</div>
</div>
</footer>
<script>
// Get the modal
var modal = document.getElementById('myModal');
// Get the button that opens the modal
var btn = document.getElementById("myBtn");
// Get the <span> element that closes the modal
var span = document.getElementsByClassName("close")[0];
// When the user clicks the button, open the modal
btn.onclick = function() {
modal.style.display = "block";
}
// When the user clicks on <span> (x), close the modal
span.onclick = function() {
modal.style.display = "none";
}
// When the user clicks anywhere outside of the modal, close it
window.onclick = function(event) {
if (event.target == modal) {
modal.style.display = "none";
}
}
</script>
<!-- jQuery -->
<script src="js/jquery.min.js"></script>
<!-- jQuery Easing -->
<script src="js/jquery.easing.1.3.js"></script>
<!-- Bootstrap -->
<script src="js/bootstrap.min.js"></script>
<!-- Waypoints -->
<script src="js/jquery.waypoints.min.js"></script>
<!-- Stellar -->
<script src="js/jquery.stellar.min.js"></script>
<!-- MAIN JS -->
<script src="js/main.js"></script>
</body>
</html>