some html oriented cleanups for pop-up windows
authorxzilla <xzilla>
Thu, 10 Jan 2008 17:41:34 +0000 (17:41 +0000)
committerxzilla <xzilla>
Thu, 10 Jan 2008 17:41:34 +0000 (17:41 +0000)
history.php
sqledit.php

index 4cdc443f017f7f863decfad3428f7d67979bc444..c67f457fb6bb401c3f638189acb7b2d4635f51b7 100644 (file)
@@ -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";
                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";
 
index 4eed468c1c7f93c3b1da27c06a260a1680ff674b..5e66788a294adf29667e86bba0be92743f0a0b03 100644 (file)
@@ -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
                
                $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());