X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/f60d3406e610e1028dd0552a6c727df3db4523c4..60aad80e946dc086047ad7871f4e6d0db41e4777:/index.php diff --git a/index.php b/index.php index 2714d9a..84f6782 100644 --- a/index.php +++ b/index.php @@ -4,7 +4,7 @@ require_once $CFG->root . 'lib/db_factory.php'; require_once $CFG->root . 'lib/utils.inc.php'; - $util = Utils::getInstance(); + $util = new Utils; unset($_SESSION['mailInfo']); if ($util->isLoggedIn()) { @@ -25,17 +25,19 @@ echo $util->getHeader(); echo $util->getHeading(); - echo "{$util->getUser()} - Logout"; + echo "Rows per page {$util->getUser()} + Logout"; $which = ($util->isAdmin() == true) ? 'all' : $util->getUser(); $rows = $DB->getQMails($offset, $rowsPerPage, $which); $numrows = $DB->numRows(); echo "$numrows quarantined mail(s)"; echo ""; - echo "
"; + echo ""; echo ""; - echo ""; + echo ""; echo ""; $mailInfo = array(); @@ -50,9 +52,9 @@ $url = urlencode($id); $checkbox = ""; $recipient = "{$row->recipient}"; - $action = ""; + $action = ""; $action .= "\"Release\""; - $action .= " "; + $action .= " "; $action .= "\"Delete\""; $sender = $row->sender; $received = strftime("%c", $row->time_iso); @@ -71,9 +73,9 @@ if ($pageNum > 1) { $page = $pageNum - 1; - $prev = " \"Previous\" "; - $first = " \"First\" "; } else { $prev = ' '; // we're on page one, don't print previous link @@ -82,9 +84,9 @@ if ($pageNum < $maxPage) { $page = $pageNum + 1; - $next = " \"Next\" "; - $last = " \"Last\" "; } else { $next = ' '; // we're on the last page, don't print next link
ReceivedCauseReceivedCauseSenderRecipientSubjectAction