Update of /home/spip-cvs/spip/ecrire/img_pack
In directory alan:/tmp/cvs-serv27163
Modified Files:
index.php3
Log Message:
attribut Alt dans les images (N. Krebs)
Index: index.php3
RCS file: /home/spip-cvs/spip/ecrire/img_pack/index.php3,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- index.php3 18 Oct 2004 20:45:01 -0000 1.2
+++ index.php3 25 Oct 2004 06:29:30 -0000 1.3
@@ -1,18 +1,22 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
-<title>Index of img_pack</title>
+ <title>Index des icones de Spip</title>
+ <link rel="up" href="../">
</head>
<body>
-<h1>Index of img_pack</h1>
-<table>
+ <center>
+ <h1>Index des icones de <a href='http://www.spip.net'>Spip</a></h1>
+ <table>
<?php
$myDir = opendir('.');
while($file = readdir($myDir)) {
- if (ereg("(.+)\.(png|gif)$", $file, $match))
- echo "<tr><td>$file<td><img src=$file>\n";
+ if (ereg("\.(png|gif)$", $file))
+ echo " <tr><td>$file</td><td><img src='$file' alt='$file' /></td></tr>\n";
}
?>
-</table>
+
+ </table>
+ </center>
</body>
</html>
\ No newline at end of file