- $maxPage = ceil($numrows/$rowsPerPage);
- $self = $_SERVER['PHP_SELF'];
-
- if ($pageNum > 1) {
- $page = $pageNum - 1;
- $prev = " <a href=\"$self?page=$page&rowsperpage=$rowsPerPage\"
- class='whitefooter'>[Prev]</a>";
- $first = " <a href=\"$self?page=1&rowsperpage=$rowsPerPage\"
- class='whitefooter'>[First Page]</a> ";
- } 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 = " <a href=\"$self?page=$page&rowsperpage=$rowsPerPage\"
- class='whitefooter'>[Next]</a>";
- $last = "<a href=\"$self?page=$maxPage&rowsperpage=$rowsPerPage\"
- class='whitefooter'>[Last Page]</a> ";
- } 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 '<input class="mail-purge" type="button" value="Purge Mails ('.
- count($marked).')" onclick="javascript: location.href=\'quarantine.php?op=purge\'"/>';
- echo "<p class=\"page-nav\">$first$prev Showing page $pageNum of
- $maxPage pages $next$last</p>";
+ if ($pageNum < $maxPage) {
+ $page = $pageNum + 1;
+ $next = " <a title=\"Next Page\" href=\"$self?page=$page&rowsperpage=$rowsPerPage\"
+ class='whitefooter'><img class=\"nav-img\" src=\"pics/go-next-symbolic.svg\" alt=\"Next\" /></a> ";
+ $last = " <a title=\"Last Page\" href=\"$self?page=$maxPage&rowsperpage=$rowsPerPage\"
+ class='whitefooter'><img class=\"nav-img\" src=\"pics/go-last-symbolic.svg\" alt=\"Last\" /></a> ";
+ } 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 '<input class="mail-purge" type="button" value="Purge Mails ('.
+ count($marked).')" onclick="javascript: location.href=\'quarantine.php?op=purge\'"/>';
+ echo '<input class="mail-purge" type="button" value="Release checked"
+ onclick="javascript: checkAction(\'release\');"/>';
+ echo '<input class="mail-purge" type="button" value="Delete checked"
+ onclick="javascript: checkAction(\'delete\');"/>';
+ echo '<input class="mail-purge" type="button" value="Block checked"
+ onclick="javascript: checkAction(\'block\');"/>';
+ echo "<p class=\"page-nav\">$first$prev Showing page $pageNum of
+ $maxPage pages $next$last</p>";