* The getType function needs to be ported to 7.2 and 7.3 classes to add
pretty type name and schema support
* Report login errors
-* Edit Query
* Don't offer owner change feature if user is not superuser
-* fix encoding in popup window
+* check use of apostrophes, etc. in tree menu
* @param $return_desc The return link name
* @param $page The current page
*
- * $Id: display.php,v 1.35 2003/12/21 02:03:15 chriskl Exp $
+ * $Id: display.php,v 1.36 2004/02/23 07:23:15 chriskl Exp $
*/
// Include application functions
echo "<p>", $rs->recordCount(), " {$lang['strrows']}</p>\n";
}
else echo "<p>{$lang['strnodata']}</p>\n";
-
+
+ // Navigation links
+ echo "<p>";
// Return
- echo "<p><a class=\"navlink\" href=\"{$_REQUEST['return_url']}\">{$_REQUEST['return_desc']}</a>\n";
+ if (isset($_REQUEST['return_url']) && isset($_REQUEST['return_desc'])) {
+ echo "<a class=\"navlink\" href=\"{$_REQUEST['return_url']}\">{$_REQUEST['return_desc']}</a> |\n";
+ }
+ // Edit SQL link
+ if (isset($_REQUEST['query'])) {
+ echo "<a class=\"navlink\" href=\"database.php?{$misc->href}&action=sql&paginate=on&query=" . urlencode($_REQUEST['query']), "\">{$lang['streditsql']}</a> |\n";
+ }
+
// Expand/Collapse
if ($_REQUEST['strings'] == 'expanded')
- echo "| <a class=\"navlink\" href=\"display.php?{$str}&{$str2}&strings=collapsed&page=",
+ echo "<a class=\"navlink\" href=\"display.php?{$str}&{$str2}&strings=collapsed&page=",
urlencode($_REQUEST['page']), "\">{$lang['strcollapse']}</a>\n";
else
- echo "| <a class=\"navlink\" href=\"display.php?{$str}&{$str2}&strings=expanded&page=",
+ echo "<a class=\"navlink\" href=\"display.php?{$str}&{$str2}&strings=expanded&page=",
urlencode($_REQUEST['page']), "\">{$lang['strexpand']}</a>\n";
// Create report
if (isset($_REQUEST['query']) && $conf['show_reports'] && isset($rs) && is_object($rs) && $rs->recordCount() > 0) {
* how many SQL statements have been strung together with semi-colons
* @param $query The SQL query string to execute
*
- * $Id: sql.php,v 1.17 2004/02/14 11:13:13 chriskl Exp $
+ * $Id: sql.php,v 1.18 2004/02/23 07:23:15 chriskl Exp $
*/
// Include application functions
// Check to see if pagination has been specified. In that case, send to display
// script for pagination
if (isset($_POST['paginate'])) {
- $_REQUEST['return_url'] = "database.php?{$misc->href}&action=sql&paginate=on&query=" . urlencode($_POST['query']);
- $_REQUEST['return_desc'] = $lang['streditsql'];
include('./display.php');
exit;
}