$conf['max_rows'], $max_pages);
// Build strings for GETs
- $str = $misc->href; // . "&page=" . urlencode($_REQUEST['page']);
- if (isset($object)) $str .= "&" . urlencode($subject) . '=' . urlencode($object);
- if (isset($subject)) $str .= "&subject=" . urlencode($subject);
- if (isset($_REQUEST['query'])) $str .= "&query=" . urlencode($_REQUEST['query']);
- if (isset($_REQUEST['count'])) $str .= "&count=" . urlencode($_REQUEST['count']);
- if (isset($_REQUEST['return_url'])) $str .= "&return_url=" . urlencode($_REQUEST['return_url']);
- if (isset($_REQUEST['return_desc'])) $str .= "&return_desc=" . urlencode($_REQUEST['return_desc']);
- if (isset($_REQUEST['search_path'])) $str .= "&search_path=" . urlencode($_REQUEST['search_path']);
- if (isset($_REQUEST['table'])) $str .= "&table=" . urlencode($_REQUEST['table']);
+ $gets = $misc->href;
+ if (isset($object)) $gets .= "&" . urlencode($subject) . '=' . urlencode($object);
+ if (isset($subject)) $gets .= "&subject=" . urlencode($subject);
+ if (isset($_REQUEST['query'])) $gets .= "&query=" . urlencode($_REQUEST['query']);
+ if (isset($_REQUEST['count'])) $gets .= "&count=" . urlencode($_REQUEST['count']);
+ if (isset($_REQUEST['return_url'])) $gets .= "&return_url=" . urlencode($_REQUEST['return_url']);
+ if (isset($_REQUEST['return_desc'])) $gets .= "&return_desc=" . urlencode($_REQUEST['return_desc']);
+ if (isset($_REQUEST['search_path'])) $gets .= "&search_path=" . urlencode($_REQUEST['search_path']);
+ if (isset($_REQUEST['table'])) $gets .= "&table=" . urlencode($_REQUEST['table']);
// This string just contains sort info
- $str2 = "sortkey=" . urlencode($_REQUEST['sortkey']) .
+ $getsort = "sortkey=" . urlencode($_REQUEST['sortkey']) .
"&sortdir=" . urlencode($_REQUEST['sortdir']);
-
+
if ($save_history && is_object($rs) && ($type == 'QUERY')) //{
$misc->saveScriptHistory($_REQUEST['query']);
if (is_object($rs) && $rs->recordCount() > 0) {
// Show page navigation
- $misc->printPages($_REQUEST['page'], $max_pages, "display.php?page=%s&{$str}&{$str2}&nohistory=t&strings=" . urlencode($_REQUEST['strings']));
+ $misc->printPages($_REQUEST['page'], $max_pages, "display.php?page=%s&{$gets}&{$getsort}&nohistory=t&strings=" . urlencode($_REQUEST['strings']));
echo "<table>\n<tr>";
// Check that the key is actually in the result set. This can occur for select
echo "<th class=\"data\">", $misc->printVal($finfo->name), "</th>\n";
}
else {
- echo "<th class=\"data\"><a href=\"display.php?{$str}&sortkey=", ($j + 1), "&sortdir=";
+ echo "<th class=\"data\"><a href=\"display.php?{$gets}&sortkey=", ($j + 1), "&sortdir=";
// Sort direction opposite to current direction, unless it's currently ''
echo ($_REQUEST['sortdir'] == 'asc' && $_REQUEST['sortkey'] == ($j + 1)) ? 'desc' : 'asc';
echo "&strings=", urlencode($_REQUEST['strings']),
} else {
echo "<td class=\"opbutton{$id}\"><a href=\"display.php?action=confeditrow&strings=",
urlencode($_REQUEST['strings']), "&page=",
- urlencode($_REQUEST['page']), "&{$key_str}&{$str}&{$str2}\">{$lang['stredit']}</a></td>\n";
+ urlencode($_REQUEST['page']), "&{$key_str}&{$gets}&{$getsort}\">{$lang['stredit']}</a></td>\n";
echo "<td class=\"opbutton{$id}\"><a href=\"display.php?action=confdelrow&strings=",
urlencode($_REQUEST['strings']), "&page=",
- urlencode($_REQUEST['page']), "&{$key_str}&{$str}&{$str2}\">{$lang['strdelete']}</a></td>\n";
+ urlencode($_REQUEST['page']), "&{$key_str}&{$gets}&{$getsort}\">{$lang['strdelete']}</a></td>\n";
}
}
$j = 0;
echo "</table>\n";
echo "<p>", $rs->recordCount(), " {$lang['strrows']}</p>\n";
// Show page navigation
- $misc->printPages($_REQUEST['page'], $max_pages, "display.php?page=%s&{$str}&{$str2}&strings=" . urlencode($_REQUEST['strings']));
+ $misc->printPages($_REQUEST['page'], $max_pages, "display.php?page=%s&{$gets}&{$getsort}&strings=" . urlencode($_REQUEST['strings']));
}
else echo "<p>{$lang['strnodata']}</p>\n";
// Navigation links
echo "<ul class=\"navlink\">\n";
+
// Return
if (isset($_REQUEST['return_url']) && isset($_REQUEST['return_desc']))
echo "\t<li><a href=\"{$_REQUEST['return_url']}\">{$_REQUEST['return_desc']}</a></li>\n";
// Expand/Collapse
if ($_REQUEST['strings'] == 'expanded')
- echo "\t<li><a href=\"display.php?{$str}&{$str2}&strings=collapsed&page=",
+ echo "\t<li><a href=\"display.php?{$gets}&{$getsort}&strings=collapsed&page=",
urlencode($_REQUEST['page']), "\">{$lang['strcollapse']}</a></li>\n";
else
- echo "\t<li><a href=\"display.php?{$str}&{$str2}&strings=expanded&page=",
+ echo "\t<li><a href=\"display.php?{$gets}&{$getsort}&strings=expanded&page=",
urlencode($_REQUEST['page']), "\">{$lang['strexpand']}</a></li>\n";
// Create report
urlencode($object), "&{$misc->href}\">{$lang['strinsert']}</a></li>\n";
// Refresh
- echo "\t<li><a href=\"display.php?{$str}&{$str2}&strings=", urlencode($_REQUEST['strings']),
+ echo "\t<li><a href=\"display.php?{$gets}&{$getsort}&strings=", urlencode($_REQUEST['strings']),
"&page=" . urlencode($_REQUEST['page']),
"\">{$lang['strrefresh']}</a></li>\n";
echo "</ul>\n";