X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/0da9e6e7d82b2cb758626d1ee4eb6b3297d667b1..100f34ebf3e5f5c4706bdf044f4bf1ac2cd85ed7:/index.php diff --git a/index.php b/index.php index ec831b0..de0f743 100644 --- a/index.php +++ b/index.php @@ -1,114 +1,62 @@ root . 'lib/db_factory.php'; require_once $CFG->root . 'lib/utils.inc.php'; $util = new Utils; - unset($_SESSION['mailInfo']); if ($util->isLoggedIn()) { - if (isset($_GET['rowsperpage'])) { - $rowsPerPage = $_GET['rowsperpage']; - } else { - $rowsPerPage = 20; - } - - $pageNum = 1; - if (isset($_GET['page'])) { - $pageNum = $_GET['page']; - } - - $offset = ($pageNum - 1) * $rowsPerPage; - - $util->setHeading('Quarantine Administration'); + $util->setHeading('WB List and Quarantine Administration'); echo $util->getHeader(); echo $util->getHeading(); +?> +

Introduction

+

+ Lorem ipsum dolor. Nascetur. Etiam eu netus purus quam elit sem penatibus. Sit, quis tempus in erat. Adipiscing lacus elit. Hendrerit velit ac montes mus tempor accumsan, ante, aptent parturient pharetra integer. Duis proin nisi. Magnis, habitasse dolor urna torquent at, scelerisque. Neque amet ante. Consectetuer luctus tellus, leo dictum cum. Donec consectetuer suscipit proin ad luctus non. Arcu hac metus nec elementum, euismod. Per, orci nunc mus lorem nec adipiscing taciti, mi magna. Volutpat sapien. Nisi. Dictumst. +

+

+ Iaculis nibh nisl potenti per, praesent lacinia, netus. Quam et nunc nisl gravida quis, mus. Augue. Bibendum tellus lacinia quisque primis justo et mollis velit vivamus. Ad class eu vitae et sed scelerisque conubia consectetuer facilisis vitae id duis, ultrices. Eget nunc eni eleifend iaculis, senectus ac ullamcorper enim, habitasse et. Pharetra quisque elit ad nulla augue bibendum proin. Nulla, enim, metus vitae porttitor id, mi. Iaculis. Amet. Sollicitudin dapibus ante a. Pretium. Conubia fringilla elit. Senectus velit vivamus tempus, ut mauris laoreet diam vestibulum. Donec taciti. Mi dictumst praesent, felis et tempor ad auctor. Volutpat imperdiet etiam. Eget vehicula adipiscing ligula eni, adipiscing. Integer consectetuer posuere dui. +

+

+ Augue curae pharetra hymenaeos tempor ad nullam consectetuer blandit. Tincidunt nisi, sit consectetuer nulla ad. Aptent. Mattis interdum nisi dis sapien nonummy, posuere. Vivamus dui, id vivamus ut. Sollicitudin porta in erat mi curabitur augue lorem. Urna. Mi. Aptent etiam adipiscing eu, habitant. Massa. Morbi. Nonummy pellentesque litora ipsum dignissim suscipit ad turpis netus phasellus ut. Feugiat egestas pede adipiscing tristique velit magnis orci etiam litora aenean. +

+

Status

+ - 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 ""; - - $mailInfo = array(); - $i = 0; - foreach ($rows as $row) { - if ($i % 2) - echo ''; - else - echo ''; - $id = $row->mail_id; - $mailInfo[$id] = serialize($row); - $url = urlencode($id); - $checkbox = ""; - $recipient = "{$row->recipient}"; - $action = ""; - $action .= "\"Release\""; - $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; - echo "
ReceivedCauseSenderRecipientSubjectAction
$received". - "$quaratinefor$sender$recipient$subject$action$checkbox
"; - - $maxPage = ceil($numrows/$rowsPerPage); - $self = $_SERVER['PHP_SELF']; - - if ($pageNum > 1) { - $page = $pageNum - 1; - $prev = " \"Previous\" "; - $first = " \"First\" "; - } else { - $prev = ' '; // we're on page one, don't print previous link - $first = ' '; // nor the first page link - } - - if ($pageNum < $maxPage) { - $page = $pageNum + 1; - $next = " \"Next\" "; - $last = " \"Last\" "; - } else { - $next = ' '; // we're on the last page, don't print next link - $last = ' '; // nor the last page link - } - $marked = $DB->getMarked($which); - $_SESSION['marked'] = serialize($marked); - echo ''; - echo ''; - echo ''; - echo ''; - echo "

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

"; - +getFooter(); } else { header('Location: auth.php'); } -?> +?> \ No newline at end of file