Contacts / CDR: Minified top paging controls.
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
*/
|
||||
|
||||
function paging($num_rows, $param, $rows_per_page) {
|
||||
function paging($num_rows, $param, $rows_per_page, $mini = false) {
|
||||
|
||||
if (strlen($rows_per_page)==0) {
|
||||
$rows_per_page = "5"; //default number of rows per page
|
||||
@@ -88,7 +88,7 @@ function paging($num_rows, $param, $rows_per_page) {
|
||||
$returnearray = array();
|
||||
if ($maxpage > 1) {
|
||||
//$returnearray[] = $first . $prev ." Page $pagenum of $maxpage " . $next . $last;
|
||||
$returnearray[] = "<center nowrap>".$prev." <input id='paging_page_num' class='formfld' style='max-width: 50px; min-width: 50px; text-align: center;' type='text' value='".($pagenum+1)."' onfocus='this.select();' onkeypress='return go(event);'> <strong>".$maxpage."</strong> ".$next."</center>\n".
|
||||
$returnearray[] = "<center nowrap>".$prev.((!$mini) ? " <input id='paging_page_num' class='formfld' style='max-width: 50px; min-width: 50px; text-align: center;' type='text' value='".($pagenum+1)."' onfocus='this.select();' onkeypress='return go(event);'> <strong>".$maxpage."</strong> " : null).$next."</center>\n".
|
||||
"<script>\n".
|
||||
"function go(e) {\n".
|
||||
"var page_num;\n".
|
||||
|
||||
Reference in New Issue
Block a user