Ver Mensaje Individual
  #10 (permalink)  
Antiguo 12/01/2013, 21:37
xoceunder
 
Fecha de Ingreso: junio-2012
Ubicación: En el Mundo
Mensajes: 759
Antigüedad: 11 años, 10 meses
Puntos: 10
Respuesta: duda a actualizar datos al eliminar

segunda parte del codigo

Código PHP:
Ver original
  1. <tr>
  2.         <td height="21" style="background:url(../images/Phim_131.gif);background-repeat:no-repeat;">&nbsp;<a class="Menu">ADMINISTRATION</a></td>
  3.     </tr>
  4.     <tr>
  5.         <td align="center" style="background:url(../images/Phim_100.gif);background-repeat:no-repeat;">
  6.             <table id="tabla-style" width="100%" cellspacing="0" cellpadding="0" border="0">
  7.             <tbody>
  8.              <tr>
  9.               <td height="26">&nbsp;<a href="index.php?admin=home" class="LeftMenu">Home</a></td>
  10.              </tr>
  11.              <tr>
  12.               <td height="26">&nbsp;<a href="index.php?admin=movie" class="LeftMenu">Movie</a></td>
  13.              </tr>
  14.              <tr>
  15.               <td height="26">&nbsp;<a href="index.php?admin=addmovie" class="LeftMenu">Add Movie</a></td>
  16.              </tr>
  17.              <tr>
  18.               <td height="26">&nbsp;<a href="index.php?admin=config" class="LeftMenu">Configuration</a></td>
  19.              </tr>  
  20.              </tbody>
  21.          </table>          
  22.          </td>
  23.     </tr>
  24.  
  25.     <tr>
  26.         <td ><img width="155" height="8" alt="" src="http://www.forosdelweb.com/f18/images/Phim_27.gif"></td>
  27.     </tr>
  28.  </table>
  29.  
  30. </p><p style="margin-top: 5px">
  31. <table width="155" cellspacing="0" cellpadding="0" border="0" align="center" class="DarkText" id="table17">
  32.      <tr>
  33.         <td height="20" background="../images/Phim_11.gif" align="right" class="BarText">
  34.         Statistics</td>
  35.     </tr>
  36.     <tr>
  37.         <td background="../images/Phim_100.gif" align="center">    
  38.             <p align="left" style="margin-top: 5px; margin-bottom: 5px">&nbsp;
  39.                 Total Categories: <b><?php echo $row_list_cat_total["C_Total"]; ?></b></p>
  40.             <p align="left" style="margin-top: 5px; margin-bottom: 5px">&nbsp;
  41.                 Total Movies: <b><?php echo $row_list_movie_total["C_Total"]; ?></b></p>
  42.             <p align="left" style="margin-top: 5px; margin-bottom: 5px">&nbsp;
  43.                 Total Views: <b><?php echo $row_list_movie_view["S_Total"]; ?></b></p>        </td>
  44.     </tr>
  45.     <tr>
  46.         <td><img width="155" height="8" alt="" src="http://www.forosdelweb.com/f18/images/Phim_27.gif"></td>
  47.     </tr>
  48. </table>
  49. </p></td>
  50. <!-- Fin columna Right -->
  51.  
  52. <!--  columna Center -->       
  53.          <td valign="top" align="center">
  54.          <p style="margin-top: -10px">
  55.  
  56.     <table width="659px" cellspacing="0" cellpadding="0" border="0" id="table5">
  57.        <tr>
  58.         <td height="32" background="../images/Phim_Admin.gif">
  59.             <table width="100%" cellspacing="0" cellpadding="0" border="0" id="table29">
  60.                 <tr>
  61.                     <td class="MainBar">Latest Movies</td>
  62.                 </tr>
  63.             </table>        </td>
  64.     </tr>
  65.     <!--  block_rand -->
  66.     <tr>
  67.         <td background="../images/Phim_14.gif" align="center">
  68.           <p style="margin-top: 0; margin-bottom: 3px">&nbsp;</p>
  69. <?php if($action == "home"){ ?>        
  70.             Contenido
  71. <?php } if($action == "movie"){
  72.  
  73. if (isset($_GET["d_id"]) ) {
  74.      $status = remove_movie($_GET["d_id"]);
  75. } else{
  76.  
  77. ?>
  78. <table align="center" border="1" cellpadding="0" cellspacing="1" bordercolor="#000000" style="border-collapse:collapse;" width="600">
  79.   <tr>
  80.     <td colspan="3" align="center">
  81.     <?php if ($status <> "") {
  82.         print("<br><font color=\"#347C2C\">".$status."</font><br><br>");
  83.     } ?>
  84.     </td>
  85.   </tr>
  86.   <tr align="center" bgcolor="#E0E0E0">
  87.     <td>ID</td>
  88.     <td>Title Movie</td>
  89.     <td>Actions</td>
  90.   </tr>  
  91.   <?php do { ?>
  92.     <tr align="center">
  93.       <td><?php echo $row_list_movie['id']; ?></td>
  94.       <td><?php echo $row_list_movie['title']; ?></td>
  95.       <td style="position:center center;">
  96. <a href="index.php?admin=movie&amp;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&amp;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&amp;d_id=<?php echo $row_list_movie['id']; ?>" title="Eliminar"><img src="http://www.forosdelweb.com/f18/images/close.png">
  97.       </td>
  98.     </tr>
  99.     <?php } while ($row_list_movie = mysql_fetch_assoc($list_movie)); ?>
  100. </table>
  101. <br />
  102. <table border="0" width="50%" align="center">
  103.   <tr>
  104.     <td width="23%" align="center"><?php if ($pageNum_list_movie > 0) { // Show if not first page ?>
  105.           <a href="<?php printf("%s?pageNum_list_movie=%d%s", $currentPage, 0, $queryString_list_movie); ?>"><img src="First.gif" border=0></a>
  106.           <?php } // Show if not first page ?>
  107.     </td>
  108.     <td width="31%" align="center"><?php if ($pageNum_list_movie > 0) { // Show if not first page ?>
  109.           <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>
  110.           <?php } // Show if not first page ?>
  111.     </td>
  112.     <td width="23%" align="center"><?php if ($pageNum_list_movie < $totalPages_list_movie) { // Show if not last page ?>
  113.           <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>
  114.           <?php } // Show if not last page ?>
  115.     </td>
  116.     <td width="23%" align="center"><?php if ($pageNum_list_movie < $totalPages_list_movie) { // Show if not last page ?>
  117.           <a href="<?php printf("%s?pageNum_list_movie=%d%s", $currentPage, $totalPages_list_movie, $queryString_list_movie); ?>"><img src="Last.gif" border=0></a>
  118.           <?php } // Show if not last page ?>
  119.     </td>
  120.   </tr>
  121. </table>
  122. <?php } } if($action == "addmovie"){ ?>
  123.  
  124. <?php } if($action == "config"){
  125. if (isset($_POST["send"]) and $_POST["send"] == "Save!") {
  126.     $status = update_config($_POST["info1"], $_POST["info2"], $_POST["info3"], $_POST["info4"]);
  127. }
  128. ?> 
  129.  
  130. <form method="post" action="">
  131. <fieldset style="width:600px;">
  132. <legend>Configurations Web Site</legend>
  133. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  134.   <tr>
  135.     <td width="49%">
  136. Title:<br />
  137. Name of your website.
  138.     </td>
  139.     <td width="2%">&nbsp;</td>
  140.     <td width="49%"><input type="text" value="<?php echo $view_info["title"]; ?>" size="50" name="info1"></td>
  141.   </tr>
  142.   <tr>
  143.     <td>&nbsp;</td>
  144.     <td>&nbsp;</td>
  145.     <td>&nbsp;</td>
  146.   </tr>
  147.   <tr>
  148.     <td>
  149. Description:<br />
  150. Short description of your website.
  151.     </td>
  152.     <td>&nbsp;</td>
  153.     <td><input type="text" value="<?php echo $view_info["description"]; ?>" size="50" name="info2"></td>
  154.   </tr>
  155.   <tr>
  156.     <td>&nbsp;</td>
  157.     <td>&nbsp;</td>
  158.     <td>&nbsp;</td>
  159.   </tr>
  160.   <tr>
  161.     <td>
  162. Address:<br />
  163. Enter the url where my site is hosted, without the last diagonal.
  164.     </td>
  165.     <td>&nbsp;</td>
  166.     <td><input type="text" value="<?php echo $view_info["site_add"]; ?>" size="50" name="info3"></td>
  167.   </tr>
  168.   <tr>
  169.     <td>&nbsp;</td>
  170.     <td>&nbsp;</td>
  171.     <td>&nbsp;</td>
  172.   </tr>
  173.   <tr>
  174.     <td>
  175. Maintenance Mode:<br />
  176. This will make the site inaccessible to users. If you want, you can also enter a short message (255 characters) to display.
  177.     </td>
  178.     <td>&nbsp;</td>
  179.     <td><input type="text" value="<?php echo $view_info["site_modo"]; ?>" size="50" name="info4"></td>
  180.   </tr>
  181.   <tr>
  182.     <td colspan="3" height="2px;">&nbsp;</td>
  183.   </tr>
  184.   <tr>
  185.     <td colspan="3" align="center">
  186.     <?php if ($status <> "") {
  187.         print("<br><font color=\"#347C2C\">".$status."</font><br><br>");
  188.     } ?>
  189.     </td>
  190.   </tr>
  191.   <tr>
  192.     <td colspan="3" align="right"><input type="submit" value="Save!" name="send"></td>
  193.   </tr>
  194. </table>
  195. </fieldset>
  196.  
  197. <?php } ?> 
  198.      <p style="margin-top: 0; margin-bottom: 3px">&nbsp;</p>   
  199.     </td>
  200.     </tr>
  201.     <tr>
  202.         <td><img width="659px" height="5" alt="" src="images/skin_28.gif"></td>
  203.     </tr>
  204. </table>
  205. </p>
  206. <p>
  207. </p></td>
  208. <!-- Fin columna Center -->    
  209.  
  210. <!--  columna left -->
  211.        <td width="170px" valign="top" align="left">
  212.  
  213.          <p style="margin-top: -10px">
  214.  
  215.          </td>
  216.        </tr>
  217.      </table></td>
  218.    </tr>
  219. <!-- Fin columna left -->
  220.    <tr>
  221.      <td height="72"  class="footerText">&nbsp;
  222.        <p align="center"><b>Copyright - 2011 @<?php echo $view_info["title"]; ?>     </td>
  223.    </tr>
  224.   </table>
  225.  </div>
  226. </body>
  227. </html>
  228. <?php
  229. mysql_free_result($list_movie);
  230. ?>