fix to remove scrollbar bug in IE without quirks mode

This commit is contained in:
Sebastian Mendel
2006-07-08 09:35:52 +00:00
parent beca72fb69
commit 757ba7b8da
4 changed files with 53 additions and 28 deletions

View File

@@ -6,6 +6,10 @@ $Id$
$Source$
2006-07-08 Sebastian Mendel <cybot_tm@users.sourceforge.net>
* left.php, libraries/header_meta_style.inc.php, libraries/header.inc.php:
fix to remove scrollbar bug in IE without quirks mode
2006-07-07 Marc Delisle <lem9@users.sourceforge.net>
* db_details_qbe.php: deactivated some work in progress

View File

@@ -2,18 +2,18 @@
/* $Id$ */
// vim: expandtab sw=4 ts=4 sts=4:
/**
* display db and table selection
* the navigation frame - displays server, db and table selection tree
*/
/**
* Gets a core script and starts output buffering work
*/
require_once('./libraries/common.lib.php');
require_once './libraries/common.lib.php';
// free the session file, for the other frames to be loaded
session_write_close();
require_once('./libraries/ob.lib.php');
require_once './libraries/ob.lib.php';
if ($GLOBALS['cfg']['OBGzip']) {
$ob_mode = PMA_outBufferModeGet();
if ($ob_mode) {
@@ -21,8 +21,8 @@ if ($GLOBALS['cfg']['OBGzip']) {
}
}
require_once('./libraries/bookmark.lib.php');
require_once('./libraries/relation.lib.php');
require_once './libraries/bookmark.lib.php';
require_once './libraries/relation.lib.php';
$cfgRelation = PMA_getRelationsParam();
/**
@@ -52,13 +52,13 @@ $db_start = $db;
// to a seperate file. It can now be included by libraries/header.inc.php,
// querywindow.php.
require_once('./libraries/header_http.inc.php');
require_once './libraries/header_http.inc.php';
/**
* Displays the frame
*/
// remove vertical scroll bar bug in ie
echo '<?xml version="1.0" encoding="' . $GLOBALS['charset'] . '"?>';
// xml declaration moves IE into quirks mode, making much trouble with CSS
/* echo '<?xml version="1.0" encoding="' . $GLOBALS['charset'] . '"?>'; */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
@@ -103,6 +103,16 @@ echo '<?xml version="1.0" encoding="' . $GLOBALS['charset'] . '"?>';
}
//]]>
</script>
<?php /* remove vertical scroll bar bug in ie */ ?>
<!--[if gte IE 6]>
<style type="text/css">
/* <![CDATA[ */
html {
overflow-y: scroll;
}
/* ]]> */
</style>
<![endif]-->
</head>
<body id="body_leftFrame">

View File

@@ -50,11 +50,11 @@ if (empty($GLOBALS['is_header_sent'])) {
(!empty($GLOBALS['cfg']['Server']['host']) ? $GLOBALS['cfg']['TitleServer'] :
$GLOBALS['cfg']['TitleDefault']))
);
// here, the function does not exist with this configuration: $cfg['ServerDefault'] = 0;
// here, the function does not exist with this configuration: $cfg['ServerDefault'] = 0;
$is_superuser = function_exists('PMA_isSuperuser') && PMA_isSuperuser();
?>
<script type="text/javascript" language="javascript">
<!--
// <![CDATA[
// Updates the title of the frameset if possible (ns4 does not allow this)
if (typeof(parent.document) != 'undefined' && typeof(parent.document) != 'unknown'
&& typeof(parent.document.title) == 'string') {
@@ -72,7 +72,7 @@ if (empty($GLOBALS['is_header_sent'])) {
? str_replace('\'', '\\\'', $GLOBALS['strNoDropDatabases']) : ''; ?>';
var confirmMsg = '<?php echo(($GLOBALS['cfg']['Confirm']) ? str_replace('\'', '\\\'', $GLOBALS['strDoYouReally']) : ''); ?>';
var confirmMsgDropDB = '<?php echo(($GLOBALS['cfg']['Confirm']) ? str_replace('\'', '\\\'', $GLOBALS['strDropDatabaseStrongWarning']) : ''); ?>';
//-->
// ]]>
</script>
<script src="./js/functions.js" type="text/javascript" language="javascript"></script>
<?php
@@ -84,7 +84,7 @@ if (empty($GLOBALS['is_header_sent'])) {
var jsUserEmpty = '<?php echo str_replace('\'', '\\\'', $GLOBALS['strUserEmpty']); ?>';
var jsPasswordEmpty = '<?php echo str_replace('\'', '\\\'', $GLOBALS['strPasswordEmpty']); ?>';
var jsPasswordNotSame = '<?php echo str_replace('\'', '\\\'', $GLOBALS['strPasswordNotSame']); ?>';
//-->
// ]]>
</script>
<script src="./js/user_password.js" type="text/javascript" language="javascript"></script>
<?php
@@ -96,7 +96,7 @@ if (empty($GLOBALS['is_header_sent'])) {
var jsUserEmpty = '<?php echo str_replace('\'', '\\\'', $GLOBALS['strUserEmpty']); ?>';
var jsPasswordEmpty = '<?php echo str_replace('\'', '\\\'', $GLOBALS['strPasswordEmpty']); ?>';
var jsPasswordNotSame = '<?php echo str_replace('\'', '\\\'', $GLOBALS['strPasswordNotSame']); ?>';
//-->
// ]]>
</script>
<script src="./js/server_privileges.js" type="text/javascript" language="javascript"></script>
<script src="./js/functions.js" type="text/javascript" language="javascript"></script>
@@ -107,21 +107,21 @@ if (empty($GLOBALS['is_header_sent'])) {
// js index validation stuff
var errorMsg0 = '<?php echo str_replace('\'', '\\\'', $GLOBALS['strFormEmpty']); ?>';
var errorMsg1 = '<?php echo str_replace('\'', '\\\'', $GLOBALS['strNotNumber']); ?>';
//-->
// ]]>
</script>
<script src="./js/indexes.js" type="text/javascript" language="javascript"></script>
<?php
} elseif (isset($js_to_run) && $js_to_run == 'tbl_change.js') {
echo "\n";
?>
//-->
// ]]>
</script>
<script src="./js/tbl_change.js" type="text/javascript" language="javascript"></script>
<?php
} else {
echo "\n";
?>
//-->
// ]]>
</script>
<?php
}
@@ -130,18 +130,28 @@ if (empty($GLOBALS['is_header_sent'])) {
// Reloads the navigation frame via JavaScript if required
PMA_reloadNavigation();
?>
<script src="./js/tooltip.js" type="text/javascript"
language="javascript"></script>
<meta name="OBGZip" content="<?php echo ($cfg['OBGzip'] ? 'true' : 'false'); ?>" />
</head>
<script src="./js/tooltip.js" type="text/javascript"
language="javascript"></script>
<meta name="OBGZip" content="<?php echo ($cfg['OBGzip'] ? 'true' : 'false'); ?>" />
<?php /* remove vertical scroll bar bug in ie */ ?>
<!--[if gte IE 6]>
<style type="text/css">
/* <![CDATA[ */
html {
overflow-y: scroll;
}
/* ]]> */
</style>
<![endif]-->
</head>
<body>
<div id="TooltipContainer" onmouseover="holdTooltip();" onmouseout="swapTooltip('default');"></div>
<body>
<div id="TooltipContainer" onmouseover="holdTooltip();" onmouseout="swapTooltip('default');"></div>
<?php
// Include possible custom headers
if (file_exists('./config.header.inc.php')) {
require('./config.header.inc.php');
require './config.header.inc.php';
}

View File

@@ -18,22 +18,23 @@ if ($GLOBALS['text_dir'] == 'ltr') {
$GLOBALS['cell_align_right'] = 'left';
}
// removes the bug with the horizontal scrollbar in IE (it's allways shown, if need it or not)
echo "<?xml version=\"1.0\" encoding=\"" . $GLOBALS['charset'] . "\"?".">";
// xml declaration moves IE into quirks mode, making much trouble with CSS
/* echo '<?xml version="1.0" encoding="' . $GLOBALS['charset'] . '"?>'; */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $GLOBALS['available_languages'][$GLOBALS['lang']][2]; ?>" lang="<?php echo $GLOBALS['available_languages'][$GLOBALS['lang']][2]; ?>" dir="<?php echo $GLOBALS['text_dir']; ?>">
<head>
<link rel="icon" href="./favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />
<title><?php
<link rel="icon" href="./favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />
<title><?php
if (!empty($page_title)) {
echo htmlspecialchars($page_title);
} else {
echo 'phpMyAdmin';
}
?></title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $GLOBALS['charset']; ?>" />
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $GLOBALS['charset']; ?>" />
<link rel="stylesheet" type="text/css" href="<?php echo defined('PMA_PATH_TO_BASEDIR') ? PMA_PATH_TO_BASEDIR : './'; ?>css/phpmyadmin.css.php?<?php echo PMA_generate_common_url(); ?>&amp;js_frame=<?php echo isset($print_view) ? 'print' : 'right'; ?>" />
<link rel="stylesheet" type="text/css" href="<?php echo defined('PMA_PATH_TO_BASEDIR') ? PMA_PATH_TO_BASEDIR : './'; ?>css/print.css?<?php echo PMA_generate_common_url(); ?>" media="print" />