X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/a0aacaacc4fdf4b96bdaaf03f7b222681a31668a..295514a751fc0fe6c41af884c0f0acb3ad81f0fa:/index.php diff --git a/index.php b/index.php index 4d24a35..7b94429 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,9 @@ 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,8 +35,8 @@ echo "
Received | Cause | "; echo "Sender | Recipient | Subject | Action | "; - echo ""; + echo " | "; echo " | $received | ". "$quaratinefor | $sender | $recipient | ". - "$subject | $action | $checkbox | "; + "$subject | $action | $checkbox | "; $i++; } $_SESSION['mailInfo'] = $mailInfo; @@ -71,10 +72,10 @@ if ($pageNum > 1) { $page = $pageNum - 1; - $prev = "[[]"; - $first = "[]"; + $prev = " "; + $first = " "; } else { $prev = ' '; // we're on page one, don't print previous link $first = ' '; // nor the first page link @@ -82,10 +83,10 @@ if ($pageNum < $maxPage) { $page = $pageNum + 1; - $next = "[[]"; - $last = "[]"; + $next = " "; + $last = " "; } else { $next = ' '; // we're on the last page, don't print next link $last = ' '; // nor the last page link
---|