[ Index ]
 

Code source de SPIP 1.9.2c

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/dist/vignettes/ -> index.php (source)

   1  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
   2  <html>
   3  <head>
   4      <title>Index des vignettes de Spip</title>
   5      <link rel="up" href="../">
   6  </head>
   7  <body>
   8      <center>
   9          <h1>Index des vignettes de <a href='http://www.spip.net'>Spip</a></h1>
  10  <table><tr><th colspan='10'>Format png &amp; gif</th>
  11  <?php
  12      $myDir = opendir('.');
  13      $i= 0;
  14      while($file = readdir($myDir)) {
  15        
  16        if (ereg("\.(png|gif)$", $file)) {
  17          $r = "\n\t<td style='text-align:center; padding:10px'>$file<br /><img src='$file' alt='$file' /></td>";
  18          if ($i%10) echo $r; else echo "</tr>\n<tr>", $r;
  19          $i++;
  20        }
  21      }
  22  ?>
  23  
  24          </tr></table>
  25      </center>
  26  </body>
  27  </html>


Généré le : Wed Nov 21 10:20:27 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics