[Kos-cvs] kos-web/contents news.i,1.4,1.5
thomas at kos.enix.org
thomas at kos.enix.org
Thu Dec 30 00:25:24 CET 2004
Update of /var/cvs/kos/kos-web/contents
In directory the-doors:/tmp/cvs-serv11307
Modified Files:
news.i
Log Message:
Changement de la tête des news.
Index: news.i
===================================================================
RCS file: /var/cvs/kos/kos-web/contents/news.i,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- news.i 9 Jul 2002 15:57:12 -0000 1.4
+++ news.i 29 Dec 2004 23:25:22 -0000 1.5
@@ -5,11 +5,6 @@
$result = kos_bd_query("SELECT * FROM News ORDER BY Date DESC LIMIT 10");
- echo "<table border=\"0\" CELLSPACING=\"0\" CELLPADDING=\"10\">\n";
-
- if($lang == "")
- $lang == "fr";
-
for ($i=0; $row=mysql_fetch_row($result); $i++) {
$Sender = $row[2];
@@ -19,28 +14,15 @@
$News = $row[4];
$Date = en_date_convert($row[1]);
}
- else
+ else
{
$News = $row[3];
$Date = fr_date_convert($row[1]);
}
- if($News == FALSE)
- {
- echo "</table>";
- return;
- }
-
- if ($i % 2) {
- echo "<tr bgcolor=\"$table_color1\">\n";
- } else {
- echo "<tr bgcolor=\"$table_color2\">\n";
- }
- echo "<td><small><strong>$Date</strong></small></td>\n";
- echo "<td width=15> </td>\n";
- echo "<td>$News</td>\n";
- echo "</tr>\n";
+ echo "<h2>$Date</h2>\n";
+ echo $News;
+ echo "\n";
}
- echo "</table>\n";
?>
More information about the Kos-cvs
mailing list