attempt at fixing result paging in table select
authorchriskl <chriskl>
Mon, 5 May 2003 14:26:15 +0000 (14:26 +0000)
committerchriskl <chriskl>
Mon, 5 May 2003 14:26:15 +0000 (14:26 +0000)
display.php

index e652e747504430ef6a0cf4172800512b9aa5ea35..d170e60059a6290b6a4942d8233ad60fc96718fe 100644 (file)
@@ -9,7 +9,7 @@
         * @param $return_desc The return link name
         * @param $page The current page
         *
-        * $Id: display.php,v 1.13 2003/05/05 03:03:53 chriskl Exp $
+        * $Id: display.php,v 1.14 2003/05/05 14:26:15 chriskl Exp $
         */
 
        // Include application functions
        $rs = &$localData->browseSQL($sub, $_REQUEST['count'], $_REQUEST['page'], $conf['max_rows'], $max_pages);
 
        if (is_object($rs) && $rs->recordCount() > 0) {
+               // If action is set, then pass it along
+               global $action;
+               if (isset($action)) $action_str = 'action=' . urlencode($action);
+               else $action_str = '';
+
                // Show page navigation
                $misc->printPages($_REQUEST['page'], $max_pages, "{$PHP_SELF}?page=%s&{$misc->href}&query=" .
                        urlencode($_REQUEST['query']) . '&count=' . urlencode($_REQUEST['count']) . '&return_url=' .
-                       urlencode($_REQUEST['return_url']) . '&return_desc=' . urlencode($_REQUEST['return_desc']));
+                       urlencode($_REQUEST['return_url']) . '&return_desc=' . urlencode($_REQUEST['return_desc']) .
+                       $action_str);
                echo "<table>\n<tr>";
                reset($rs->f);
                while(list($k, ) = each($rs->f)) {