Font faces now depends on charset (temporary fix)
This commit is contained in:
@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
|
||||
$Id$
|
||||
$Source$
|
||||
|
||||
2001-07-02 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
||||
* left.js & left.php3: font face now depends on charset (temporary fix).
|
||||
|
||||
2001-07-02 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* bug 436108, quotes into manual requests: db_readdump.php3
|
||||
|
||||
|
20
left.js
20
left.js
@@ -238,31 +238,31 @@ if (capable) {
|
||||
// to write().
|
||||
if (isDOM) {
|
||||
var lstyle = '<style type="text/css">'
|
||||
+ '.parent {font-family: Verdana, Arial, Helvetica, sans-serif; color: #000000; text-decoration:none; display:block}'
|
||||
+ '.child {font-family: Verdana, Arial, Helvetica, sans-serif; color: #000000; text-decoration:none; display:none}'
|
||||
+ '.parent {font-family: ' + fontFamily + '; color: #000000; text-decoration:none; display:block}'
|
||||
+ '.child {font-family: ' + fontFamily + '; color: #000000; text-decoration:none; display:none}'
|
||||
+ '.item { color: darkblue; text-decoration:none; font-size: 8pt;}'
|
||||
+ '.highlight { color: red; font-size: 8pt;}'
|
||||
+ '.heada { font: 12px\/13px; Times}'
|
||||
+ 'DIV { color:black; }'
|
||||
+ 'div { color:black; }'
|
||||
+ '<\/style>';
|
||||
write(lstyle);
|
||||
}
|
||||
else {
|
||||
write('<style type="text/css">');
|
||||
if (isIE4) {
|
||||
write('.parent {font-family: Verdana, Arial, Helvetica, sans-serif; color: #000000; text-decoration:none;}');
|
||||
write('.child {font-family: Verdana, Arial, Helvetica, sans-serif; color: #000000; text-decoration:none; display:none}');
|
||||
write('.parent {font-family: ' + fontFamily + '; color: #000000; text-decoration:none;}');
|
||||
write('.child {font-family: ' + fontFamily + '; color: #000000; text-decoration:none; display:none}');
|
||||
write('.item { color: darkblue; text-decoration:none; font-size: 8pt;}');
|
||||
write('.highlight { color: red; font-size: 8pt;}');
|
||||
write('.heada { font: 12px\/13px; Times}');
|
||||
write('DIV { color:black; }');
|
||||
write('div { color:black; }');
|
||||
}
|
||||
else {
|
||||
write('.parent {font-family: Verdana, Arial, Helvetica, sans-serif; color: #000000; text-decoration:none; position:absolute; visibility:hidden; color: black;}');
|
||||
write('.child {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt;color: #000000; position:absolute; visibility:hidden}');
|
||||
write('.parent {font-family:' + fontFamily + '; color: #000000; text-decoration:none; position:absolute; visibility:hidden; color: black;}');
|
||||
write('.child {font-family: ' + fontFamily + '; font-size: 8pt;color: #000000; position:absolute; visibility:hidden}');
|
||||
write('.item { color: darkblue; text-decoration:none;}');
|
||||
write('.regular {font-family: Arial,Helvetica,sans-serif; position:absolute; visibility:hidden}');
|
||||
write('DIV { color:black; }');
|
||||
write('.regular {font-family: ' + fontFamily + '; position:absolute; visibility:hidden}');
|
||||
write('div { color:black; }');
|
||||
}
|
||||
write('<\/style>');
|
||||
}
|
||||
|
@@ -44,6 +44,7 @@ header('Content-Type: text/html; charset=' . $charset);
|
||||
var isIE4 = ((typeof(document.all) != 'undefined') && (parseInt(navigator.appVersion) >= 4)) ? 1 : 0;
|
||||
var isNS4 = (typeof(document.layers) != 'undefined') ? 1 : 0;
|
||||
var capable = (isDOM || isIE4 || isNS4) ? 1 : 0;
|
||||
var fontFamily = '<?php echo (($charset == 'iso-8859-1') ? 'verdana, helvetica, arial, geneva, sans-serif' : 'sans-serif'); ?>';
|
||||
//-->
|
||||
</script>
|
||||
<script src="left.js" type="text/javascript" language="javascript1.2"></script>
|
||||
|
Reference in New Issue
Block a user