"; $table .= "TimeModule / PriorityUsername / AddressMessage"; $table .= ""; $n = 0; foreach($events as $event) { $oe = ($n++ % 2 == 0) ? "even" : "odd"; $table .= ""; $table .= "".$event['date_sent'].""; $table .= "".$event['section']." / ".$event['priority'].""; $table .= "".html_escape($event['username'])." / ".$event['address'].""; $table .= "".html_escape($event['message']).""; $table .= ""; } $table .= ""; global $page; $page->set_title("Event Log"); $page->set_heading("Event Log"); $page->add_block(new NavBlock()); $page->add_block(new Block("Events", $table)); } } ?>