<tr>
<td height="21" style="background:url(../images/Phim_131.gif);background-repeat:no-repeat;"> <a class="Menu">ADMINISTRATION</a></td>
</tr>
<tr>
<td align="center" style="background:url(../images/Phim_100.gif);background-repeat:no-repeat;">
<table id="tabla-style" width="100%" cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td height="26"> <a href="index.php?admin=home" class="LeftMenu">Home</a></td>
</tr>
<tr>
<td height="26"> <a href="index.php?admin=movie" class="LeftMenu">Movie</a></td>
</tr>
<tr>
<td height="26"> <a href="index.php?admin=addmovie" class="LeftMenu">Add Movie</a></td>
</tr>
<tr>
<td height="26"> <a href="index.php?admin=config" class="LeftMenu">Configuration</a></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td ><img width="155" height="8" alt="" src="http://www.forosdelweb.com/f18/images/Phim_27.gif"></td>
</tr>
</table>
</p><p style="margin-top: 5px">
<table width="155" cellspacing="0" cellpadding="0" border="0" align="center" class="DarkText" id="table17">
<tr>
<td height="20" background="../images/Phim_11.gif" align="right" class="BarText">
Statistics</td>
</tr>
<tr>
<td background="../images/Phim_100.gif" align="center">
<p align="left" style="margin-top: 5px; margin-bottom: 5px">
Total Categories: <b><?php echo $row_list_cat_total["C_Total"]; ?></b></p>
<p align="left" style="margin-top: 5px; margin-bottom: 5px">
Total Movies: <b><?php echo $row_list_movie_total["C_Total"]; ?></b></p>
<p align="left" style="margin-top: 5px; margin-bottom: 5px">
Total Views: <b><?php echo $row_list_movie_view["S_Total"]; ?></b></p> </td>
</tr>
<tr>
<td><img width="155" height="8" alt="" src="http://www.forosdelweb.com/f18/images/Phim_27.gif"></td>
</tr>
</table>
</p></td>
<!-- Fin columna Right -->
<!-- columna Center -->
<td valign="top" align="center">
<p style="margin-top: -10px">
<table width="659px" cellspacing="0" cellpadding="0" border="0" id="table5">
<tr>
<td height="32" background="../images/Phim_Admin.gif">
<table width="100%" cellspacing="0" cellpadding="0" border="0" id="table29">
<tr>
<td class="MainBar">Latest Movies</td>
</tr>
</table> </td>
</tr>
<!-- block_rand -->
<tr>
<td background="../images/Phim_14.gif" align="center">
<p style="margin-top: 0; margin-bottom: 3px"> </p>
<?php if($action == "home"){ ?>
Contenido
<?php } if($action == "movie"){
if (isset($_GET["d_id"]) ) { $status = remove_movie($_GET["d_id"]);
} else{
?>
<table align="center" border="1" cellpadding="0" cellspacing="1" bordercolor="#000000" style="border-collapse:collapse;" width="600">
<tr>
<td colspan="3" align="center">
<?php if ($status <> "") {
print("<br><font color=\"#347C2C\">".$status."</font><br><br>");
} ?>
</td>
</tr>
<tr align="center" bgcolor="#E0E0E0">
<td>ID</td>
<td>Title Movie</td>
<td>Actions</td>
</tr>
<?php do { ?>
<tr align="center">
<td><?php echo $row_list_movie['id']; ?></td>
<td><?php echo $row_list_movie['title']; ?></td>
<td style="position:center center;">
<a href="index.php?admin=movie&id=<?php echo $row_list_movie['id']; ?>" title="Editar"><img src="http://www.forosdelweb.com/f18/images/editar.png"></a> <a href="index.php?admin=movie&pid=4" title="Reproductores"><img src="http://www.forosdelweb.com/f18/images/video.png"></a> <a onclick="if(confirm('Esta seguro que desea continuar?') == false){return false;}" href="index.php?admin=movie&d_id=<?php echo $row_list_movie['id']; ?>" title="Eliminar"><img src="http://www.forosdelweb.com/f18/images/close.png">
</td>
</tr>
</table>
<br />
<table border="0" width="50%" align="center">
<tr>
<td width="23%" align="center"><?php if ($pageNum_list_movie > 0) { // Show if not first page ?>
<a href="<?php printf("%s?pageNum_list_movie=%d%s", $currentPage, 0, $queryString_list_movie); ?>"><img src="First.gif" border=0></a>
<?php } // Show if not first page ?>
</td>
<td width="31%" align="center"><?php if ($pageNum_list_movie > 0) { // Show if not first page ?>
<a href="<?php printf("%s?pageNum_list_movie=%d%s", $currentPage, max(0, $pageNum_list_movie - 1), $queryString_list_movie); ?>"><img src="Previous.gif" border=0></a>
<?php } // Show if not first page ?>
</td>
<td width="23%" align="center"><?php if ($pageNum_list_movie < $totalPages_list_movie) { // Show if not last page ?>
<a href="<?php printf("%s?pageNum_list_movie=%d%s", $currentPage, min($totalPages_list_movie, $pageNum_list_movie + 1), $queryString_list_movie); ?>"><img src="Next.gif" border=0></a>
<?php } // Show if not last page ?>
</td>
<td width="23%" align="center"><?php if ($pageNum_list_movie < $totalPages_list_movie) { // Show if not last page ?>
<a href="<?php printf("%s?pageNum_list_movie=%d%s", $currentPage, $totalPages_list_movie, $queryString_list_movie); ?>"><img src="Last.gif" border=0></a>
<?php } // Show if not last page ?>
</td>
</tr>
</table>
<?php } } if($action == "addmovie"){ ?>
<?php } if($action == "config"){
if (isset($_POST["send"]) and
$_POST["send"] == "Save!") { $status = update_config($_POST["info1"], $_POST["info2"], $_POST["info3"], $_POST["info4"]);
}
?>
<form method="post" action="">
<fieldset style="width:600px;">
<legend>Configurations Web Site</legend>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="49%">
Title:<br />
Name of your website.
</td>
<td width="2%"> </td>
<td width="49%"><input type="text" value="<?php echo $view_info["title"]; ?>" size="50" name="info1"></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>
Description:<br />
Short description of your website.
</td>
<td> </td>
<td><input type="text" value="<?php echo $view_info["description"]; ?>" size="50" name="info2"></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>
Address:<br />
Enter the url where my site is hosted, without the last diagonal.
</td>
<td> </td>
<td><input type="text" value="<?php echo $view_info["site_add"]; ?>" size="50" name="info3"></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>
Maintenance Mode:<br />
This will make the site inaccessible to users. If you want, you can also enter a short message (255 characters) to display.
</td>
<td> </td>
<td><input type="text" value="<?php echo $view_info["site_modo"]; ?>" size="50" name="info4"></td>
</tr>
<tr>
<td colspan="3" height="2px;"> </td>
</tr>
<tr>
<td colspan="3" align="center">
<?php if ($status <> "") {
print("<br><font color=\"#347C2C\">".$status."</font><br><br>");
} ?>
</td>
</tr>
<tr>
<td colspan="3" align="right"><input type="submit" value="Save!" name="send"></td>
</tr>
</table>
</fieldset>
<?php } ?>
<p style="margin-top: 0; margin-bottom: 3px"> </p>
</td>
</tr>
<tr>
<td><img width="659px" height="5" alt="" src="images/skin_28.gif"></td>
</tr>
</table>
</p>
<p>
</p></td>
<!-- Fin columna Center -->
<!-- columna left -->
<td width="170px" valign="top" align="left">
<p style="margin-top: -10px">
</td>
</tr>
</table></td>
</tr>
<!-- Fin columna left -->
<tr>
<td height="72" class="footerText">
<p align="center"><b>Copyright - 2011 @<?php echo $view_info["title"]; ?> </td>
</tr>
</table>
</div>
</body>
</html>
<?php
?>