Fix bug #2876417 "SQL window too small size to see bottom buttons (Execute)"
authorGuillaume (ioguix) de Rorthais <ioguix@free.fr>
Tue, 28 Sep 2010 22:04:25 +0000 (00:04 +0200)
committerGuillaume (ioguix) de Rorthais <ioguix@free.fr>
Tue, 28 Sep 2010 22:04:25 +0000 (00:04 +0200)
Enabled scrollbars and bigger window size

classes/Misc.php
sqledit.php

index b9bf917fc14c760c249aaff3e459fb60e816d05b..77e4ca1abe67cdc867f4b90f42a935133ed3d7c8 100644 (file)
                                        '';
 
                                echo "<td style=\"text-align: right\">";
-                               echo "<ul class=\"toplink\">\n\t<li><a class=\"toplink\" href=\"{$sql_url}sql\" target=\"sqledit\" onclick=\"window.open('{$sql_url}sql','{$sql_window_id}','toolbar=no,width=600,height=400,resizable=yes,scrollbars=no').focus(); return false;\">{$lang['strsql']}</a></li>\n";
+                               echo "<ul class=\"toplink\">\n\t<li><a class=\"toplink\" href=\"{$sql_url}sql\" target=\"sqledit\" onclick=\"window.open('{$sql_url}sql','{$sql_window_id}','toolbar=no,width=700,height=500,resizable=yes,scrollbars=yes').focus(); return false;\">{$lang['strsql']}</a></li>\n";
                                echo "\t<li><a class=\"toplink\" href=\"{$history_url}\" onclick=\"window.open('{$history_url}','{$history_window_id}','toolbar=no,width=800,height=600,resizable=yes,scrollbars=yes').focus(); return false;\">{$lang['strhistory']}</a></li>\n";
-                               echo "\t<li><a class=\"toplink\" href=\"{$sql_url}find\" target=\"sqledit\" onclick=\"window.open('{$sql_url}find','{$sql_window_id}','toolbar=no,width=600,height=400,resizable=yes,scrollbars=no').focus(); return false;\">{$lang['strfind']}</a></li>\n";
+                               echo "\t<li><a class=\"toplink\" href=\"{$sql_url}find\" target=\"sqledit\" onclick=\"window.open('{$sql_url}find','{$sql_window_id}','toolbar=no,width=700,height=500,resizable=yes,scrollbars=yes').focus(); return false;\">{$lang['strfind']}</a></li>\n";
                                echo "\t<li><a class=\"toplink\" href=\"servers.php?action=logout&amp;logoutServer=".htmlspecialchars($server_info['host']).":".htmlspecialchars($server_info['port']).":".htmlspecialchars($server_info['sslmode'])."\"{$logout_shared}>{$lang['strlogout']}</a></li>\n";
                                echo "</ul>\n";
                                echo "</td>";
index 5beb2437e6baf691ff79f6f4d02fefe49a6cbfd6..de1773bce602f1e32f1afdb594dc352ea5ed0cb2 100644 (file)
                echo ": <input type=\"text\" name=\"search_path\" size=\"50\" value=\"",
                        htmlspecialchars($_REQUEST['search_path']), "\" /></label></p>\n";
                
-               echo "<textarea style=\"width: 100%;\" rows=\"10\" cols=\"50\" name=\"query\">",
+               echo "<textarea style=\"width:98%;\" rows=\"10\" cols=\"50\" name=\"query\">",
                        htmlspecialchars($_SESSION['sqlquery']), "</textarea>\n";
-               echo "<label for=\"paginate\"><input type=\"checkbox\" id=\"paginate\" name=\"paginate\"", (isset($_REQUEST['paginate']) ? ' checked="checked"' : ''), " />&nbsp;{$lang['strpaginate']}</label>\n";
+               echo "<p><label for=\"paginate\"><input type=\"checkbox\" id=\"paginate\" name=\"paginate\"", (isset($_REQUEST['paginate']) ? ' checked="checked"' : ''), " />&nbsp;{$lang['strpaginate']}</label></p>\n";
                
                echo "<p><input type=\"submit\" value=\"{$lang['strexecute']}\" />\n";
                echo "<input type=\"reset\" value=\"{$lang['strreset']}\" /></p>\n";