- <html>
-
- <head>
- <meta http-equiv=Content-Language content=fr>
- <title>ACTUELLEMENT DANS LE REPERTOIRE</title>
- </head>
-
- <body>
-
-
- <p align="center"><font color="#000080" size="5"><b>ACTUELLEMENT DANS LE
- DOSSIER</b></font></p>
-
- <br>
- <p> </p>
- <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#C0C0C0" width="100%" bgcolor="#C0C0C0">
- <tr>
- <td width="47%" bgcolor=#EFEDDE>
- <font size=5 color=#000000><center><b>Dossier</b></center></a></td>
- <td width="3%"> </td>
- <td width="42%" bgcolor=#FFFFFF>
- <font size=5 color=#0000cc><center><b>Fichier</b></center>
-
- </tr>
- </table>
- <br>
-
- <?
- $t = -2;
- $dosc = "./"; // mettez ici la position du dossier souhaiter par rapport à la position du fichier php (si c'est la même ne touchez rien
- $ouvdos = opendir($dosc);
- echo "<table border=1 cellpadding=0 cellspacing=0 style=border-collapse: collapse bordercolor=#cccccc bgcolor=#cccccc width=100%> <tr>" ;
- while ($file = readdir($ouvdos))
- {
- $extension=strrchr($file,".");
- if ($extension=="") // affichages des dossiers
- echo "<td width=20% bgcolor=#EFEDDE><a href=\"".$dosc.$file."\"><font size=5 style=\"text-decoration: none\" color=#000000><center><b>".$file."</b></center></a></td>";
- else
- if ($extension!="."&&$extension!="..") // affichage des fichiers
- echo "<td width=20% bgcolor=#FFFFFF><a href=\"".$dosc.$file."\"><font size=5 style=\"text-decoration: none\" color=#0000cc><center><b>".$file."</b></center>
- </font></a><font size=5 style=\"text-decoration: none\" color=#0000cc></td>";
- $t++;
- if ($t>4) // 4=nombre de colonnes -1 (donc 5)
- {
- $t=0;
- echo " </tr> <tr> ";
-
- } }
- echo "</table>";
- closedir ($ouvdos);
- ?>
-
- </body>
-
- </html>
<html>
<head>
<meta http-equiv=Content-Language content=fr>
<title>ACTUELLEMENT DANS LE REPERTOIRE</title>
</head>
<body>
<p align="center"><font color="#000080" size="5"><b>ACTUELLEMENT DANS LE
DOSSIER</b></font></p>
<br>
<p> </p>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#C0C0C0" width="100%" bgcolor="#C0C0C0">
<tr>
<td width="47%" bgcolor=#EFEDDE>
<font size=5 color=#000000><center><b>Dossier</b></center></a></td>
<td width="3%"> </td>
<td width="42%" bgcolor=#FFFFFF>
<font size=5 color=#0000cc><center><b>Fichier</b></center>
</tr>
</table>
<br>
<?
$t = -2;
$dosc = "./"; // mettez ici la position du dossier souhaiter par rapport à la position du fichier php (si c'est la même ne touchez rien
$ouvdos = opendir($dosc);
echo "<table border=1 cellpadding=0 cellspacing=0 style=border-collapse: collapse bordercolor=#cccccc bgcolor=#cccccc width=100%> <tr>" ;
while ($file = readdir($ouvdos))
{
$extension=strrchr($file,".");
if ($extension=="") // affichages des dossiers
echo "<td width=20% bgcolor=#EFEDDE><a href=\"".$dosc.$file."\"><font size=5 style=\"text-decoration: none\" color=#000000><center><b>".$file."</b></center></a></td>";
else
if ($extension!="."&&$extension!="..") // affichage des fichiers
echo "<td width=20% bgcolor=#FFFFFF><a href=\"".$dosc.$file."\"><font size=5 style=\"text-decoration: none\" color=#0000cc><center><b>".$file."</b></center>
</font></a><font size=5 style=\"text-decoration: none\" color=#0000cc></td>";
$t++;
if ($t>4) // 4=nombre de colonnes -1 (donc 5)
{
$t=0;
echo " </tr> <tr> ";
} }
echo "</table>";
closedir ($ouvdos);
?>
</body>
</html>