We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 02af4f8e authored by clint's avatar clint

fix zebra logic

parent 8fde60cf
......@@ -75,7 +75,9 @@ if ($req_user) {
if(PEAR::isError($res)) {
die($res->getMessage());
}
$i = 0;
while($row = $res->fetchRow(MDB2_FETCHMODE_ASSOC)) {
$i++;
echo ($i % 2 == 0) ? "<tr class=\"even\">" : "<tr class=\"odd\">";
foreach($row as $field => $value) {
if($field == "time") {
......@@ -83,7 +85,7 @@ if ($req_user) {
}
echo "<td>". stripslashes($value) . "</td>";
}
echo "</tr>";
echo "</tr>\n";
}
?>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment