$opts = array(50, 100, 150, 200, 250, 300, 400, 500); $ret = $frm->select_open($box_name, array('class' => 'tbox')); foreach ($opts as $o) { $ret .= $frm->option($o, $o, $curval == $o); } $ret .= "</select>\n"; return $ret; } $text = ''; switch ($action) { case 'banlog': if (!getperms('0')) { exit; } if (isset($_POST['delete_ban_log'])) { $message = $ipAdministrator->deleteLogFile() ? BANLAN_89 : BANLAN_90; e107::getRender()->tablerender(BANLAN_88, "<div style='text-align:center; font-weight:bold'>" . $message . "</div>"); // FIXME } $from = 0; $amount = 20; // Number per page - could make configurable later if required if ($sub_action) { $from = intval($sub_action); } // @todo format form the 0.8 way $text = "<div style='text-align:center'>\n\t\t<form method='post' action='" . e_SELF . "?banlog-" . $from . "'>\n\t\t<table class='table adminform'>\n\t\t<colgroup>\n\t\t\t<col style='width:20%; vertical-align:top;' />\n\t\t\t<col style='width:30%; vertical-align:top;' />\n\t\t\t<col style='width:30%; vertical-align:top;' />\n\t\t\t<col style='width:30%; vertical-align:top;' />\n\t\t</colgroup>"; // Get entries $banLogEntries = $ipAdministrator->getLogEntries($from, $amount, $num_entry); if (count($banLogEntries) == 0) { $text .= "<tbody><tr><td colspan='4'>" . BANLAN_82 . "</td></tr>";