X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/bb06f1727e40a566d487b1b5ede2794d292b27ad..dbfceb07227c009a2f411cdb2d32b0311773759e:/index.php diff --git a/index.php b/index.php index 6852624..00e9a8b 100644 --- a/index.php +++ b/index.php @@ -1,10 +1,10 @@ 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,8 +25,10 @@ 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(); @@ -34,6 +36,8 @@ echo ""; echo "
"; echo ""; + echo ""; echo ""; $mailInfo = array(); @@ -46,6 +50,7 @@ $id = $row->mail_id; $mailInfo[$id] = serialize($row); $url = urlencode($id); + $checkbox = ""; $recipient = "{$row->recipient}"; $action = ""; $action .= "\"Release\""; @@ -57,7 +62,7 @@ $subject = $row->subject; echo "". - ""; + ""; $i++; } $_SESSION['mailInfo'] = $mailInfo; @@ -69,9 +74,9 @@ if ($pageNum > 1) { $page = $pageNum - 1; $prev = " [Prev]"; + class='whitefooter'>\"Previous\" "; $first = " [First Page] "; + class='whitefooter'>\"First\" "; } else { $prev = ' '; // we're on page one, don't print previous link $first = ' '; // nor the first page link @@ -80,9 +85,9 @@ if ($pageNum < $maxPage) { $page = $pageNum + 1; $next = " [Next]"; - $last = "[Last Page] "; + class='whitefooter'>\"Next\" "; + $last = " \"Last\" "; } else { $next = ' '; // we're on the last page, don't print next link $last = ' '; // nor the last page link @@ -91,6 +96,10 @@ $_SESSION['marked'] = serialize($marked); echo ''; + echo ''; + echo ''; echo "

$first$prev Showing page $pageNum of $maxPage pages $next$last

";
ReceivedCauseSenderRecipientSubjectAction
$received". "$quaratinefor$sender$recipient$subject$action
$subject$action$checkbox