MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: /home/asjudine/public_html/listar_archivos.php
<?php require_once('../Connections/LOCAL.php'); ?>

<?php
mysql_select_db($database_LOCAL, $LOCAL);
$query_Recordset1 = "SELECT id, nombre, fecha, tipo FROM archivos";
$Recordset1 = mysql_query($query_Recordset1, $LOCAL) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);


printf("<style type='text/css'><!--.Estilo5 {font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: #000066; }--></style>");

printf("<table width='700' border='1' align='center' cellpadding='1' cellspacing='1'>
            <tr bgcolor='#FFFFCC'>
              <th colspan='4' scope='col'><span class='Estilo5'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
             </tr>
            <tr bgcolor='#FFFFCC'><th scope='col'><span class='Estilo5'>ID</span></th>
                   <th scope='col'><span class='Estilo5'>NOMBRE</span></th>
                   <th scope='col'><span class='Estilo5'>FECHA ENVIO</span></th>				   
                   <th scope='col'><span class='Estilo5'>TIPO DE ARCHIVO</span></th>				   				   
		    </tr>");


 while($Filas = mysql_fetch_array($Recordset1))
  {
      printf("<tr><td><div align='center'><a href='descargar_archivos.php?id=$Filas[id]' class='Estilo5 Estilo6'>Descargar</a></div></td>
                        <td><div align='center'><span class='Estilo7'>".$Filas["nombre"]."</span></div></td>
                        <td><div align='center'><span class='Estilo7'>".$Filas["fecha"]."</span></div></td>
                        <td><div align='center'><span class='Estilo7'>".$Filas["tipo"]."</span></div></td></tr>");
    }
	echo "</table>"; 
    mysql_free_result($Recordset1);
?>