Ver Mensaje Individual
  #4 (permalink)  
Antiguo 06/09/2004, 12:51
Avatar de Malocado
Malocado
 
Fecha de Ingreso: septiembre-2004
Mensajes: 24
Antigüedad: 19 años, 7 meses
Puntos: 0
Ya ta

Ya está, ya lo encontré en este mismo foro. Gracias por la ayuda.

Aquí dejo el codigo tal y como lo quería:

Código PHP:
<style type="text/css">
.Estilo1 {font-size: xx-small; font-weight: bold; font-family: Verdana, Arial, Helvetica, sans-serif;}
.Estilo2 {font-size: xx-small; font-family: Verdana, Arial, Helvetica, sans-serif;}
.Estilo3 {font-size: xx-small; font-weight: bold; font-family: Verdana, Arial, Helvetica, sans-serif; color: #006699; }
A:link {COLOR: #006699; TEXT-DECORATION: none}
A:active {COLOR: #006699; TEXT-DECORATION: none}
A:visited {COLOR: #006699; TEXT-DECORATION: none}
A:hover {COLOR: #ff6600; TEXT-DECORATION: none}
</style>
<table width="100%"  border="0" cellpadding="0" cellspacing="0">
<?
// Función para mostrar directorios
    
$list_ignore = array ('.','..','phpMyAdmin','index');
    
$handle=opendir(".");
    
$i 0;
    while (
$file readdir($handle)) 
    {
        if (
is_dir($file) && !in_array($file,$list_ignore))
        {    
            
$tab[$i]=$file;
            
$i++;
        }
    }
    
closedir($handle);
?>
<tr bgcolor="#D2D2D2">
<td width="25%"><span class="Estilo1"><b>Nombre</b></span></div></td>
<td width="25%"><span class="Estilo1"><b>Carpeta</b></span></div></td>
<td width="25%"><span class="Estilo1"><b>Hora</b></span></div></td>
<td width="25%"><span class="Estilo1"><b>Fecha de creación</b></span></div></td>
</tr>
<tr>
<td>
<?
// Función para abrir el enlace
sort($tab);
if (
$i)
    foreach (
$tab as $rep)
    {
        echo (
'<span class=Estilo2><a target="_blank" href="'.$rep.'">*'.$rep.'</a></span><br>');
    }
else
echo 
"<span class='Estilo2'>No hay carpetas</span>";
?>
</td>
<td>
<?
// Función para Explorar la carpeta
if ($i)
    foreach (
$tab as $rep)
    {
echo (
'<a target="_blank" href="c:/Servidor/web/'.$rep.' "><span class=Estilo2>*Explorar</span></a><br>');
    }
?>
</td>
<td>
<span class=Estilo2>
<?
// Función de Hora de creación
if ($i)
    foreach (
$tab as $rep)
    {
    echo 
""date("*H:i:s",    filemtime ($rep));
    echo (
'<br>');
    }
?></span>
</td>
<td>
<span class=Estilo2>
<?
// Función de Fecha de creación
if ($i)
    foreach (
$tab as $rep)
    {
    echo 
""date("*d-m-Y",    filemtime ($rep));
    echo (
'<br>');
    }
?></span>
</td>
</tr>
</table>
Espero que esto también le sirva a más gente.

Saludos