|
@@ -24,7 +24,7 @@
|
|
Mark J Crane <[email protected]>
|
|
Mark J Crane <[email protected]>
|
|
*/
|
|
*/
|
|
|
|
|
|
-function paging($num_rows, $param, $rows_per_page) {
|
|
|
|
|
|
+function paging($num_rows, $param, $rows_per_page, $mini = false) {
|
|
|
|
|
|
if (strlen($rows_per_page)==0) {
|
|
if (strlen($rows_per_page)==0) {
|
|
$rows_per_page = "5"; //default number of rows per page
|
|
$rows_per_page = "5"; //default number of rows per page
|
|
@@ -88,7 +88,7 @@ function paging($num_rows, $param, $rows_per_page) {
|
|
$returnearray = array();
|
|
$returnearray = array();
|
|
if ($maxpage > 1) {
|
|
if ($maxpage > 1) {
|
|
//$returnearray[] = $first . $prev ." Page $pagenum of $maxpage " . $next . $last;
|
|
//$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".
|
|
"<script>\n".
|
|
"function go(e) {\n".
|
|
"function go(e) {\n".
|
|
"var page_num;\n".
|
|
"var page_num;\n".
|