Added colors
authorJoey Schulze <joey@infodrom.org>
Sun, 7 Oct 2007 11:30:50 +0000 (11:30 +0000)
committerJoey Schulze <joey@infodrom.org>
Sun, 7 Oct 2007 11:30:50 +0000 (11:30 +0000)
src/Infodrom/events/find.wml

index 93c731e..6273a43 100644 (file)
@@ -63,7 +63,7 @@
        if ($year > 0) {
          echo ($event_table_end);
        }
-       $color = $nowcolor;
+       $color = "<coln>";
        printf ("<h3>Events in %s</h3>", $thisyear);
        echo ($event_table_start);
        $year = $thisyear;
@@ -73,6 +73,7 @@
       $row['city'] = ereg_replace (" ", "&nbsp;", $row['city']);
       $row['country'] = ereg_replace (" ", "&nbsp;", $row['country']);
 
+      $color = $color == "<cold>"?"<coln>" : "<cold>";
       printf ($event_row, $color, $row['oid'], $row['name'], $row['cancelled'] == 1?" *cancelled*":"",
              $row['city'], $row['country'], $date);
     }