set_title("Event Log"); $page->set_heading("Event Log"); $page->add_block(new NavBlock()); $this->display_table($page, $events); $this->display_controls($page); } protected function display_table($page, $events) { $table = " "; foreach($events as $event) { $entry = html_escape($event['entry']); $table .= " "; } $table .= "
User + - IP + - Entry
Date + - Event + -
{$event['name']} {$event['owner_ip']} {$entry}
{$event['date']} {$event['event']}
"; $page->add_block(new Block("Log Contents", $table)); } protected function display_controls($page) { $html = "
"; $page->add_block(new Block(null, $html, "main", 60)); } } ?>