Font family is now language dependant

This commit is contained in:
Loïc Chapeaux
2001-07-07 15:13:58 +00:00
parent 02df5c20c0
commit 0bae68a09d
3 changed files with 31 additions and 48 deletions

View File

@@ -22,25 +22,18 @@ header('Content-Type: text/html; charset=' . $charset);
<title>phpMyAdmin</title>
<style type="text/css">
<!--
<?php
// Hard coded font name and size depends on charset. This is a temporary and
// uggly fix
$font_family = ($charset == 'iso-8859-1')
? 'helvetica, arial, geneva, sans-serif'
: 'sans-serif';
?>
body {font-family: <?php echo $font_family; ?>; font-size: 10pt}
th {font-family: <?php echo $font_family; ?>; font-size: 10pt; font-weight: bold; background-color: <?php echo $cfgThBgcolor;?>;}
td {font-family: <?php echo $font_family; ?>; font-size: 10pt;}
form {font-family: <?php echo $font_family; ?>; font-size: 10pt}
h1 {font-family: <?php echo $font_family; ?>; font-size: 16pt; font-weight: bold}
A:link {font-family: <?php echo $font_family; ?>; font-size: 10pt; text-decoration: none; color: blue}
A:visited {font-family: <?php echo $font_family; ?>; font-size: 10pt; text-decoration: none; color: blue}
A:hover {font-family: <?php echo $font_family; ?>; font-size: 10pt; text-decoration: underline; color: red}
A:link.nav {font-family: <?php echo $font_family; ?>; color: #000000}
A:visited.nav {font-family: <?php echo $font_family; ?>; color: #000000}
A:hover.nav {font-family: <?php echo $font_family; ?>; color: red;}
.nav {font-family: <?php echo $font_family; ?>; color: #000000}
body {font-family: <?php echo $right_font_family; ?>; font-size: 10pt}
th {font-family: <?php echo $right_font_family; ?>; font-size: 10pt; font-weight: bold; background-color: <?php echo $cfgThBgcolor;?>}
td {font-family: <?php echo $right_font_family; ?>; font-size: 10pt;}
form {font-family: <?php echo $right_font_family; ?>; font-size: 10pt}
h1 {font-family: <?php echo $right_font_family; ?>; font-size: 16pt; font-weight: bold}
A:link {font-family: <?php echo $right_font_family; ?>; font-size: 10pt; text-decoration: none; color: #0000ff}
A:visited {font-family: <?php echo $right_font_family; ?>; font-size: 10pt; text-decoration: none; color: #0000ff}
A:hover {font-family: <?php echo $right_font_family; ?>; font-size: 10pt; text-decoration: underline; color: #FF0000}
A:link.nav {font-family: <?php echo $right_font_family; ?>; color: #000000}
A:visited.nav {font-family: <?php echo $right_font_family; ?>; color: #000000}
A:hover.nav {font-family: <?php echo $right_font_family; ?>; color: #FF0000}
.nav {font-family: <?php echo $right_font_family; ?>; color: #000000}
//-->
</style>
</head>