Extensions: List view updates.

This commit is contained in:
Nate
2019-11-18 13:31:06 -07:00
parent 6eddd05cba
commit 0e56d1b7e5
6 changed files with 511 additions and 188 deletions
+4 -2
View File
@@ -123,8 +123,10 @@
//prepare to page the results
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
$param = "&search=".$search;
$page = $_GET['page'];
if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; }
if ($_GET['show'] == "all" && permission_exists('email_template_all')) {
$param .= "&show=all";
}
$page = is_numeric($_GET['page']) ? $_GET['page'] : 0;
list($paging_controls, $rows_per_page) = paging($num_rows, $param, $rows_per_page);
list($paging_controls_mini, $rows_per_page) = paging($num_rows, $param, $rows_per_page, true);
$offset = $rows_per_page * $page;