summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxzilla2008-01-10 17:41:34 +0000
committerxzilla2008-01-10 17:41:34 +0000
commit255d543905619a76f56a0abf73a634cd4466e79e (patch)
tree66faaa7b650a8562a3face925988db73b8503f79
parent58f698ca3551bcf9e2afe18b6e8d458abbc2d05c (diff)
some html oriented cleanups for pop-up windows
-rw-r--r--history.php8
-rw-r--r--sqledit.php10
2 files changed, 12 insertions, 6 deletions
diff --git a/history.php b/history.php
index 4cdc443f..c67f457f 100644
--- a/history.php
+++ b/history.php
@@ -3,7 +3,7 @@
/**
* Alternative SQL editing window
*
- * $Id: history.php,v 1.1 2007/11/29 23:23:56 ioguix Exp $
+ * $Id: history.php,v 1.2 2008/01/10 17:41:34 xzilla Exp $
*/
// Include application functions
@@ -80,6 +80,9 @@
if ($confirm) {
$misc->printHeader($lang['strhistory']);
+
+ // Bring to the front always
+ echo "<body onload=\"window.focus();\">\n";
echo "<h3>{$lang['strdelhistory']}</h3>\n";
echo "<p>{$lang['strconfdelhistory']}</p>\n";
@@ -103,6 +106,9 @@
if ($confirm) {
$misc->printHeader($lang['strhistory']);
+ // Bring to the front always
+ echo "<body onload=\"window.focus();\">\n";
+
echo "<h3>{$lang['strclearhistory']}</h3>\n";
echo "<p>{$lang['strconfclearhistory']}</p>\n";
diff --git a/sqledit.php b/sqledit.php
index 4eed468c..5e66788a 100644
--- a/sqledit.php
+++ b/sqledit.php
@@ -3,7 +3,7 @@
/**
* Alternative SQL editing window
*
- * $Id: sqledit.php,v 1.37 2007/11/30 06:04:43 xzilla Exp $
+ * $Id: sqledit.php,v 1.38 2008/01/10 17:41:34 xzilla Exp $
*/
// Include application functions
@@ -53,9 +53,9 @@
$misc->printTabs($misc->getNavTabs('popup'), 'find');
- echo "<form action=\"database.php\" method=\"get\" target=\"detail\">\n<p>";
+ echo "<form action=\"database.php\" method=\"get\" target=\"detail\">\n";
_printConnection();
- echo "</p><p><input name=\"term\" value=\"", htmlspecialchars($_GET['term']),
+ echo "<p><input name=\"term\" value=\"", htmlspecialchars($_GET['term']),
"\" size=\"32\" maxlength=\"{$data->_maxNameLen}\" />\n";
// Output list of filters. This is complex due to all the 'has' and 'conf' feature possibilities
@@ -109,9 +109,9 @@
$misc->printTabs($misc->getNavTabs('popup'), 'sql');
- echo "<form action=\"sql.php\" method=\"post\" target=\"detail\">\n<p>";
+ echo "<form action=\"sql.php\" method=\"post\" target=\"detail\">\n";
_printConnection();
- echo "</p>\n";
+ echo "\n";
if ($data->hasSchemas()) {
if (!isset($_REQUEST['search_path']))
$_REQUEST['search_path'] = implode(',',$data->getSearchPath());