X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/b7bec31d1f01101c30ff13eea34e92482bf69a28..c49d593ff36278c6c64d0a06bd8a0b6a0b4d2270:/index.php diff --git a/index.php b/index.php index f5b3e65..54b82d8 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,17 +52,19 @@ $url = urlencode($id); $checkbox = ""; $recipient = "{$row->recipient}"; - $action = ""; + $action = ""; $action .= "\"Release\""; - $action .= " "; + $action .= " "; $action .= "\"Delete\""; + $action .= " "; + $action .= "\"Block"; $sender = $row->sender; $received = strftime("%c", $row->time_iso); $quaratinefor = $util->convertContent($row->quaratinefor); $subject = $row->subject; echo "". - ""; + ""; $i++; } $_SESSION['mailInfo'] = $mailInfo; @@ -71,10 +75,10 @@ if ($pageNum > 1) { $page = $pageNum - 1; - $prev = " \"Previous\""; - $first = " \"First\" "; + $prev = " \"Previous\" "; + $first = " \"First\" "; } else { $prev = ' '; // we're on page one, don't print previous link $first = ' '; // nor the first page link @@ -82,10 +86,10 @@ if ($pageNum < $maxPage) { $page = $pageNum + 1; - $next = " \"Next\""; - $last = "\"Last\" "; + $next = " \"Next\" "; + $last = " \"Last\" "; } else { $next = ' '; // we're on the last page, don't print next link $last = ' '; // nor the last page link
ReceivedCauseReceivedCauseSenderRecipientSubjectAction
$received". "$quaratinefor$sender$recipient$subject$action$checkbox
$subject$action$checkbox