From 53a983d55020a791195e096d30cfe0681dbedfe3 Mon Sep 17 00:00:00 2001
From: chriskl
Date: Wed, 17 Sep 2003 09:03:15 +0000
Subject: [PATCH] nicola's fixes for sql window and topbar
---
sqledit.php | 182 ++++++++++++++++++++++++++--------------------------
topbar.php | 10 ++-
2 files changed, 94 insertions(+), 98 deletions(-)
diff --git a/sqledit.php b/sqledit.php
index e617ebc2..52e6f698 100644
--- a/sqledit.php
+++ b/sqledit.php
@@ -1,44 +1,44 @@
-getDatabases();
-
- if ($databases->recordCount() > 0) {
- echo "{$lang['strdatabase']}: \n";
- }
- else {
- echo "\n";
- }
- }
-
+getDatabases();
+
+ if ($databases->recordCount() > 0) {
+ echo "
{$lang['strdatabase']}:
\n";
+ }
+ else {
+ echo "\n";
+ }
+ }
+
/**
* Searches for a named database object
*/
@@ -52,60 +52,58 @@
echo "{$lang['strfind']}
\n";
echo "\n";
- }
-
- /**
- * Allow execution of arbitrary SQL statements on a database
- */
- function doDefault() {
- global $PHP_SELF, $data, $localData, $misc;
- global $lang, $conf;
-
- if (!isset($_POST['query'])) $_POST['query'] = '';
-
- $misc->printPopUpNav();
- echo "{$lang['strsql']}
\n";
-
- echo "
\n";
-
- echo $misc->form;
-
- echo "\n";
- }
-
- $misc->printHeader($lang['strsql']);
-
- // Bring to the front always
- echo "\n";
-
- switch ($action) {
- case 'find':
- doFind();
- break;
- case 'sql':
- default:
- doDefault();
- break;
- }
-
- $misc->printFooter();
-
-?>
+ }
+
+ /**
+ * Allow execution of arbitrary SQL statements on a database
+ */
+ function doDefault() {
+ global $PHP_SELF, $data, $localData, $misc;
+ global $lang, $conf;
+
+ if (!isset($_POST['query'])) $_POST['query'] = '';
+
+ $misc->printPopUpNav();
+ echo "{$lang['strsql']}
\n";
+
+ echo "\n";
+ }
+
+ $misc->printHeader($lang['strsql']);
+
+ // Bring to the front always
+ echo "\n";
+
+ switch ($action) {
+ case 'find':
+ doFind();
+ break;
+ case 'sql':
+ default:
+ doDefault();
+ break;
+ }
+
+ $misc->printFooter();
+
+?>
diff --git a/topbar.php b/topbar.php
index 4f480cd2..45107907 100755
--- a/topbar.php
+++ b/topbar.php
@@ -3,7 +3,7 @@
/**
* Top menu for phpPgAdmin
*
- * $Id: topbar.php,v 1.17 2003/09/10 02:39:09 chriskl Exp $
+ * $Id: topbar.php,v 1.18 2003/09/17 09:03:15 chriskl Exp $
*/
// Include application functions
@@ -14,7 +14,7 @@
?>
-  |
+  |
|
|
- |
- |
+ |
+ |
|
--
2.39.5