Frame resizing and Bug #744947

This commit is contained in:
Garvin Hicking
2003-05-29 14:07:37 +00:00
parent 856eff4425
commit f961825edc
3 changed files with 18 additions and 5 deletions

View File

@@ -23,11 +23,17 @@ if ($cfg['QueryFrame'] && $cfg['QueryFrameJS']) {
}
?>
<?php
if (!isset($error_message) || $error_message == '') {
?>
if (top.frames.queryframe && top.frames.queryframe.document && top.frames.queryframe.document.queryframeform) {
top.frames.queryframe.document.queryframeform.db.value = "<?php echo (isset($db) ? addslashes($db) : ''); ?>";
top.frames.queryframe.document.queryframeform.table.value = "<?php echo (isset($table) ? addslashes($table) : ''); ?>";
}
<?php
}
?>
function reload_querywindow () {
if (top.frames.queryframe && top.frames.queryframe.querywindow && !top.frames.queryframe.querywindow.closed && top.frames.queryframe.querywindow.location) {
<?php echo ($cfg['QueryFrameDebug'] ? 'document.writeln("<a href=\'#\' onClick=\'top.frames.queryframe.querywindow.focus(); return false;\'>Query Window</a> can be updated.<br>");' : ''); ?>
@@ -136,4 +142,4 @@ if (isset($GLOBALS['cfg']['OBGzip']) && $GLOBALS['cfg']['OBGzip']
PMA_outBufferPost($GLOBALS['ob_mode']);
}
?>
?>