<?php
-/* vim: set ts=4 tw=0 sw=4 noet: */
+/* vim: set ts=4 tw=4 sw=4 noet: */
require_once 'config.php';
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()) {
echo $util->getHeader();
echo $util->getHeading();
- echo "<span class=\"user\">{$util->getUser()}
- <a title=\"Logout\" href=\"auth.php?op=logout\">Logout</a></span>";
+ echo "Rows per page <input type=\"text\" value=\"$rowsPerPage\" id=\"rows\"
+ size=\"2\"/><input type=\"button\" onclick=\"javascript: updateRowsPerPage()\"
+ value=\"Change\"/><span class=\"user\">{$util->getUser()}
+ <a title=\"Logout\" href=\"auth.php?op=logout\">Logout</a></span>";
$which = ($util->isAdmin() == true) ? 'all' : $util->getUser();
$rows = $DB->getQMails($offset, $rowsPerPage, $which);
$numrows = $DB->numRows();