bug 981939 and problem with db dropdown in original theme
This commit is contained in:
@@ -5,6 +5,12 @@ phpMyAdmin - Changelog
|
||||
$Id$
|
||||
$Source$
|
||||
|
||||
2004-07-05 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* footer.inc.php, index.php, queryframe.php: bug 981939, database
|
||||
selection in left frame under Opera, and problems with dropdown
|
||||
in left frame when many databases are there (original theme),
|
||||
thanks to Michael Keck
|
||||
|
||||
2004-07-02 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* main.php: put Create button on the same line as the input field
|
||||
|
||||
|
@@ -30,18 +30,28 @@ if ($cfg['QueryFrame'] && $cfg['QueryFrameJS']) {
|
||||
$num_tables_disp = ' (-)';
|
||||
}
|
||||
?>
|
||||
var dbBoxSetupDone = false;
|
||||
function dbBoxSetup() {
|
||||
if (dbBoxSetupDone != true) {
|
||||
if (parent.frames.queryframe && parent.frames.queryframe.document.left && parent.frames.queryframe.document.left.lightm_db) {
|
||||
parent.frames.queryframe.document.left.lightm_db.value = '<?php echo addslashes($db); ?>';
|
||||
dbBoxSetupDone = true;
|
||||
} else {
|
||||
setTimeout("dbBoxSetup();",500);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (parent.frames.queryframe && parent.frames.queryframe.document && parent.frames.queryframe.document.queryframeform) {
|
||||
parent.frames.queryframe.document.queryframeform.db.value = "<?php echo (isset($db) ? addslashes($db) : ''); ?>";
|
||||
parent.frames.queryframe.document.queryframeform.table.value = "<?php echo (isset($table) ? addslashes($table) : ''); ?>";
|
||||
}
|
||||
if (parent.frames.queryframe && parent.frames.queryframe.document && parent.frames.queryframe.document.left) {
|
||||
parent.frames.queryframe.document.left.lightm_db.value = "<?php echo (isset($db) ? addslashes($db) : ''); ?>";
|
||||
for (i=0;i<parent.frames.queryframe.document.left.lightm_db.options.length;i++) {
|
||||
if (parent.frames.queryframe.document.left.lightm_db.options[i].selected) {
|
||||
noption=new Option("<?php echo addslashes($db) . $num_tables_disp; ?>","<?php echo addslashes($db); ?>");
|
||||
parent.frames.queryframe.document.left.lightm_db.options[i]=noption;
|
||||
parent.frames.queryframe.document.left.lightm_db.value = "<?php echo (isset($db) ? addslashes($db) : ''); ?>";
|
||||
}
|
||||
if (parent.frames.queryframe && parent.frames.queryframe.document && parent.frames.queryframe.document.left && parent.frames.queryframe.document.left.lightm_db) {
|
||||
selidx = parent.frames.queryframe.document.left.lightm_db.selectedIndex;
|
||||
if (parent.frames.queryframe.document.left.lightm_db.options[selidx].value == "<?php echo addslashes($db); ?>") {
|
||||
parent.frames.queryframe.document.left.lightm_db.options[selidx].text = "<?php echo addslashes($db) . $num_tables_disp; ?>";
|
||||
} else {
|
||||
parent.frames.queryframe.location.reload();
|
||||
setTimeout("dbBoxSetup();",2000);
|
||||
}
|
||||
}
|
||||
<?php
|
||||
|
@@ -65,7 +65,7 @@ $logo_image = $GLOBALS['pmaThemeImage'] . 'logo_left.png';
|
||||
$query_frame_height = 0;
|
||||
if (@file_exists($logo_image)) {
|
||||
$tmp_imgsize = @getimagesize($logo_image);
|
||||
$query_frame_height = ($tmp_imgsize[1] + 15);
|
||||
$query_frame_height = ($tmp_imgsize[1] + 15 + ((!isset($_COOKIE['pma_theme']) || $_COOKIE['pma_theme']=='original') ? 25 : 0));
|
||||
}
|
||||
if ($query_frame_height == 0) {
|
||||
$query_frame_height = 60;
|
||||
|
@@ -229,7 +229,7 @@ if ($num_dbs > 1) {
|
||||
echo PMA_generate_common_hidden_inputs();
|
||||
echo ' <input type="hidden" name="hash" value="' . $hash . '" />' . "\n";
|
||||
?>
|
||||
<select name="lightm_db" onchange="this.form.submit();this.blur();">
|
||||
<select name="lightm_db" onchange="this.form.submit();">
|
||||
<?php
|
||||
echo ' <option value="">(' . $strDatabases . ') ...</option>' . "\n";
|
||||
$table_list = '';
|
||||
|
Reference in New Issue
Block a user