Hooray for stylesheets.
This commit is contained in:
134
header.inc.php3
134
header.inc.php3
@@ -18,135 +18,13 @@ if ($GLOBALS['cfg']['OBGzip']) {
|
||||
}
|
||||
}
|
||||
|
||||
// garvin: For re-usability, moved http-headers and stylesheets
|
||||
// to a seperate file. It can now be included by header.inc.php3,
|
||||
// queryframe.php3, querywindow.php3.
|
||||
|
||||
/**
|
||||
* Sends http headers
|
||||
*/
|
||||
// Don't use cache (required for Opera)
|
||||
$GLOBALS['now'] = gmdate('D, d M Y H:i:s') . ' GMT';
|
||||
header('Expires: ' . $GLOBALS['now']); // rfc2616 - Section 14.21
|
||||
header('Last-Modified: ' . $GLOBALS['now']);
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate, pre-check=0, post-check=0, max-age=0'); // HTTP/1.1
|
||||
header('Pragma: no-cache'); // HTTP/1.0
|
||||
// Define the charset to be used
|
||||
header('Content-Type: text/html; charset=' . $GLOBALS['charset']);
|
||||
include('./libraries/header_http.inc.php3');
|
||||
include('./libraries/header_meta_style.inc.php3');
|
||||
|
||||
|
||||
/**
|
||||
* Sends the beginning of the html page then returns to the calling script
|
||||
*/
|
||||
// Gets the font sizes to use
|
||||
PMA_setFontSizes();
|
||||
// Defines the cell alignment values depending on text direction
|
||||
if ($GLOBALS['text_dir'] == 'ltr') {
|
||||
$GLOBALS['cell_align_left'] = 'left';
|
||||
$GLOBALS['cell_align_right'] = 'right';
|
||||
} else {
|
||||
$GLOBALS['cell_align_left'] = 'right';
|
||||
$GLOBALS['cell_align_right'] = 'left';
|
||||
}
|
||||
?>
|
||||
<!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>
|
||||
<title>phpMyAdmin</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $GLOBALS['charset']; ?>" />
|
||||
<?php
|
||||
if (!empty($GLOBALS['cfg']['PmaAbsoluteUri'])) {
|
||||
echo '<base href="' . $GLOBALS['cfg']['PmaAbsoluteUri'] . '" />' . "\n";
|
||||
}
|
||||
?>
|
||||
<style type="text/css">
|
||||
<!--
|
||||
body {
|
||||
font-family: <?php echo $GLOBALS['right_font_family']; ?>;
|
||||
font-size: <?php echo $GLOBALS['font_size']; ?>;
|
||||
color: #000000;
|
||||
<?php
|
||||
if ($GLOBALS['cfg']['RightBgImage'] == '') {
|
||||
echo ' background-image: url(\'./images/vertical_line.png\');' . "\n"
|
||||
. ' background-repeat: repeat-y;' . "\n";
|
||||
} else {
|
||||
echo ' background-image: url(\'' . $GLOBALS['cfg']['RightBgImage'] . '\');' . "\n";
|
||||
} // end if... else...
|
||||
?>
|
||||
background-color: <?php echo $GLOBALS['cfg']['RightBgColor'] . "\n"; ?>
|
||||
}
|
||||
pre, tt {font-size: <?php echo $GLOBALS['font_size']; ?>}
|
||||
th {font-family: <?php echo $GLOBALS['right_font_family']; ?>; font-size: <?php echo $GLOBALS['font_size']; ?>; font-weight: bold; color: #000000; background-color: <?php echo $GLOBALS['cfg']['ThBgcolor']; ?>}
|
||||
td {font-family: <?php echo $GLOBALS['right_font_family']; ?>; font-size: <?php echo $GLOBALS['font_size']; ?>}
|
||||
form {font-family: <?php echo $GLOBALS['right_font_family']; ?>; font-size: <?php echo $GLOBALS['font_size']; ?>}
|
||||
input {font-family: <?php echo $GLOBALS['right_font_family']; ?>; font-size: <?php echo $GLOBALS['font_size']; ?>}
|
||||
input.textfield {font-family: <?php echo $GLOBALS['right_font_family']; ?>; font-size: <?php echo $GLOBALS['font_size']; ?>; color: #000000; background-color: #FFFFFF}
|
||||
select {font-family: <?php echo $GLOBALS['right_font_family']; ?>; font-size: <?php echo $GLOBALS['font_size']; ?>; color: #000000; background-color: #FFFFFF}
|
||||
textarea {font-family: <?php echo $GLOBALS['right_font_family']; ?>; font-size: <?php echo $GLOBALS['font_size']; ?>; color: #000000; background-color: #FFFFFF}
|
||||
h1 {font-family: <?php echo $GLOBALS['right_font_family']; ?>; font-size: <?php echo $GLOBALS['font_biggest']; ?>; font-weight: bold}
|
||||
h2 {font-family: <?php echo $GLOBALS['right_font_family']; ?>; font-size: <?php echo $GLOBALS['font_bigger']; ?>; font-weight: bold}
|
||||
h3 {font-family: <?php echo $GLOBALS['right_font_family']; ?>; font-size: <?php echo $GLOBALS['font_size']; ?>; font-weight: bold}
|
||||
a:link {font-family: <?php echo $GLOBALS['right_font_family']; ?>; font-size: <?php echo $GLOBALS['font_size']; ?>; text-decoration: none; color: #0000FF}
|
||||
a:visited {font-family: <?php echo $GLOBALS['right_font_family']; ?>; font-size: <?php echo $GLOBALS['font_size']; ?>; text-decoration: none; color: #0000FF}
|
||||
a:hover {font-family: <?php echo $GLOBALS['right_font_family']; ?>; font-size: <?php echo $GLOBALS['font_size']; ?>; text-decoration: underline; color: #FF0000}
|
||||
a.nav:link {font-family: <?php echo $GLOBALS['right_font_family']; ?>; color: #000000}
|
||||
a.nav:visited {font-family: <?php echo $GLOBALS['right_font_family']; ?>; color: #000000}
|
||||
a.nav:hover {font-family: <?php echo $GLOBALS['right_font_family']; ?>; color: #FF0000}
|
||||
a.h1:link {font-family: <?php echo $GLOBALS['right_font_family']; ?>; font-size: <?php echo $GLOBALS['font_biggest']; ?>; font-weight: bold; color: #000000}
|
||||
a.h1:active {font-family: <?php echo $GLOBALS['right_font_family']; ?>; font-size: <?php echo $GLOBALS['font_biggest']; ?>; font-weight: bold; color: #000000}
|
||||
a.h1:visited {font-family: <?php echo $GLOBALS['right_font_family']; ?>; font-size: <?php echo $GLOBALS['font_biggest']; ?>; font-weight: bold; color: #000000}
|
||||
a.h1:hover {font-family: <?php echo $GLOBALS['right_font_family']; ?>; font-size: <?php echo $GLOBALS['font_biggest']; ?>; font-weight: bold; color: #FF0000}
|
||||
a.h2:link {font-family: <?php echo $GLOBALS['right_font_family']; ?>; font-size: <?php echo $GLOBALS['font_bigger']; ?>; font-weight: bold; color: #000000}
|
||||
a.h2:active {font-family: <?php echo $GLOBALS['right_font_family']; ?>; font-size: <?php echo $GLOBALS['font_bigger']; ?>; font-weight: bold; color: #000000}
|
||||
a.h2:visited {font-family: <?php echo $GLOBALS['right_font_family']; ?>; font-size: <?php echo $GLOBALS['font_bigger']; ?>; font-weight: bold; color: #000000}
|
||||
a.h2:hover {font-family: <?php echo $GLOBALS['right_font_family']; ?>; font-size: <?php echo $GLOBALS['font_bigger']; ?>; font-weight: bold; color: #FF0000}
|
||||
a.drop:link {font-family: <?php echo $GLOBALS['right_font_family']; ?>; color: #ff0000}
|
||||
a.drop:visited {font-family: <?php echo $GLOBALS['right_font_family']; ?>; color: #ff0000}
|
||||
a.drop:hover {font-family: <?php echo $GLOBALS['right_font_family']; ?>; color: #ffffff; background-color:#ff0000; text-decoration: none}
|
||||
dfn {font-style: normal}
|
||||
dfn:hover {font-style: normal; cursor: help}
|
||||
.nav {font-family: <?php echo $GLOBALS['right_font_family']; ?>; color: #000000}
|
||||
.warning {font-family: <?php echo $GLOBALS['right_font_family']; ?>; font-size: <?php echo $GLOBALS['font_size']; ?>; font-weight: bold; color: #FF0000}
|
||||
td.topline {font-size: 1px}
|
||||
td.tab {
|
||||
border-top: 1px solid #999;
|
||||
border-right: 1px solid #666;
|
||||
border-left: 1px solid #999;
|
||||
border-bottom: none;
|
||||
border-radius: 2px;
|
||||
-moz-border-radius: 2px;
|
||||
}
|
||||
table.tabs {
|
||||
border-top: none;
|
||||
border-right: none;
|
||||
border-left: none;
|
||||
border-bottom: 1px solid #666;
|
||||
}
|
||||
|
||||
.print{font-family:arial;font-size:8pt;}
|
||||
|
||||
.syntax {font-family: sans-serif; font-size: <?php echo $font_smaller; ?>;}
|
||||
.syntax_comment {}
|
||||
.syntax_digit {}
|
||||
.syntax_digit_hex {}
|
||||
.syntax_digit_integer {}
|
||||
.syntax_digit_float {}
|
||||
.syntax_punct {}
|
||||
.syntax_alpha {text-transform: lowercase;}
|
||||
.syntax_alpha_columnType {text-transform: uppercase;}
|
||||
.syntax_alpha_columnAttrib {text-transform: uppercase;}
|
||||
.syntax_alpha_reservedWord {text-transform: uppercase; font-weight: bold;}
|
||||
.syntax_alpha_functionName {text-transform: uppercase;}
|
||||
.syntax_alpha_identifier {}
|
||||
.syntax_alpha_variable {}
|
||||
.syntax_quote {}
|
||||
.syntax_quote_backtick {}
|
||||
<?php
|
||||
echo PMA_SQP_buildCssData();
|
||||
?>
|
||||
//-->
|
||||
</style>
|
||||
|
||||
<?php
|
||||
$title = '';
|
||||
if (isset($GLOBALS['db'])) {
|
||||
$title .= str_replace('\'', '\\\'', $GLOBALS['db']);
|
||||
@@ -246,7 +124,7 @@ if ($cfg['QueryFrame'] && $cfg['QueryFrameJS']) {
|
||||
}
|
||||
?>
|
||||
|
||||
if (top.frames.queryframe) {
|
||||
if (top.frames.queryframe && top.frames.queryframe.document && top.frames.queryframe.document.queryframeform) {
|
||||
top.frames.queryframe.document.queryframeform.db.value = "<?php echo (isset($db) ? htmlspecialchars($db) : ''); ?>";
|
||||
top.frames.queryframe.document.queryframeform.table.value = "<?php echo (isset($table) ? htmlspecialchars($table) : ''); ?>";
|
||||
}
|
||||
|
Reference in New Issue
Block a user