<?php
set_time_limit(0);
session_start();
include("../db.php");
if(isset($_SESSION['logged_in']) != true) exit;
?>
<html>
<head>
<style type="text/css">
<!--
body {
background-color: black;
}
h1{
font-size:20px;
font-family:Arial, Helvetica, sans-serif;
}
div, td, tr, table, p{
font-size:10px;
font-family:Arial, Helvetica, sans-serif;
color:white;
}
a:link {
color:white;
text-decoration: underline;
}
a:visited {
color:white;
text-decoration: underline;
}
a:hover {
text-decoration: underline;
color:white;
}
a:active {
text-decoration: underline;
color:white;
}
input{
font-size:10px;
font-family:Tahoma;
-->
</style>
</head>
<body>
<br>
<form name="DataEntry" method="post" action="<?=$_SERVER['PHP_SELF']?>" enctype="multipart/form-data">
<input type="hidden" name="TheFunction" value="1">
<p> </p>
<div align="center">
<img src="../images/pizza_dude.php?text=<?= urlencode('Select a video to modify') ?>&font_size=18">
<table cellpadding=25>
<?php
$catid = (isset($_GET['category_id'])) ? $_GET['category_id'] : '0';
$sql = 'Select * from `videos`';
$result = mysql_query($sql);
$i = 0;
echo "<tr>\r\n";
while($row = mysql_fetch_assoc($result)){
if($i == 3){
echo "</tr>\r\n<tr>\r\n";
$i = 0;
}
echo '<td align="center"><a href="modify_video.php?video_id='.$row['video_id'].'"><img src="../videos/thumbnail.php?video_id='.$row['video_id'].'" border=0><br><br><img src="../images/pizza_dude.php?text='.urlencode(substr($row['video_title'],0, 12).'...').'&font_size=15" title="'.htmlentities($row['video_title']).'" border=0></td>'."\r\n";
$i++;
}
echo "</tr>\r\n";
?>
</table>
</div>
<p align="center"> </p>
</form>
</body>
</html>