3 // vim: expandtab sw=4 ts=4 sts=4:
6 $is_minimum_common = TRUE;
7 require_once('./libraries/grab_globals.lib.php');
8 require_once('./libraries/common.lib.php');
10 // Gets the default font sizes
11 // garvin: TODO: Should be optimized to not include the whole common.lib.php bunch
12 // but only functions used to determine browser heritage.
16 require_once('./libraries/header_http.inc.php');
18 if (!isset($js_frame)) {
22 if ($js_frame == 'left') {
23 /************************************************************************************
25 ************************************************************************************/
28 * Add styles for positioned layers
30 if (isset($num_dbs) && $num_dbs == '0') {
32 /* No layer effects neccessary */
33 div
{font
-family
: <?php
echo $left_font_family; ?
>; font
-size
: <?php
echo $font_size; ?
>; color
: #000000}
34 .heada
{font
-family
: <?php
echo $left_font_family; ?
>; font
-size
: <?php
echo $font_size; ?
>; color
: #000000}
35 .parent
{font
-family
: <?php
echo $left_font_family; ?
>; color
: #000000; text-decoration: none}
36 .item
, .item
:active
, .item
:hover
, .tblItem
, .tblItem
:active
{font
-family
: <?php
echo $left_font_family; ?
>; font
-size
: <?php
echo $font_smaller; ?
>; color
: #333399; text-decoration: none}
37 .tblItem
:hover
{color
: #FF0000; text-decoration: underline}
40 if (isset($js_capable) && $js_capable != '0') {
41 // Brian Birtles : This is not the ideal method of doing this
42 // but under the 7th June '00 Mozilla build (and many before
43 // it) Mozilla did not treat text between <style> tags as
44 // style information unless it was written with the one call
46 if (isset($js_isDOM) && $js_isDOM != '0') {
48 /* Layer effects neccessary: capable && is_DOM is set. We found a recent CSS-Browser */
49 div
{font
-family
: <?php
echo $left_font_family; ?
>; font
-size
: <?php
echo $font_size; ?
>; color
: #000000}
50 .heada
{font
-family
: <?php
echo $left_font_family; ?
>; font
-size
: <?php
echo $font_size; ?
>; color
: #000000}
51 .headaCnt
{font
-family
: <?php
echo $left_font_family; ?
>; font
-size
: <?php
echo $font_smaller; ?
>; color
: #000000}
52 .parent
{font
-family
: <?php
echo $left_font_family; ?
>; color
: #000000; text-decoration: none; display: block}
53 .child
{font
-family
: <?php
echo $left_font_family; ?
>; font
-size
: <?php
echo $font_smaller; ?
>; color
: #333399; text-decoration: none; display: none}
54 .item
, .item
:active
, .item
:hover
, .tblItem
, .tblItem
:active
{font
-size
: <?php
echo $font_smaller; ?
>; color
: #333399; text-decoration: none}
55 .tblItem
:hover
{color
: #FF0000; text-decoration: underline}
59 /* Layer effeccts neccessary: capable, but no is_DOM. We found an older CSS-Browser */
60 div
{font
-family
: <?php
echo $left_font_family; ?
>; font
-size
: <?php
echo $font_size; ?
>; color
: #000000}
61 .heada
{font
-family
: <?php
echo $left_font_family; ?
>; font
-size
: <?php
echo $font_size; ?
>; color
: #000000}
62 .headaCnt
{font
-family
: <?php
echo $left_font_family; ?
>; font
-size
: <?php
echo $font_smaller; ?
>; color
: #000000}
64 if (isset($js_isIE4) && $js_isIE4 != '0') {
66 /* Additional effects for IE4 */
67 .parent
{font
-family
: <?php
echo $left_font_family; ?
>; color
: #000000; text-decoration: none; display: block}
68 .child
{font
-family
: <?php
echo $left_font_family; ?
>; font
-size
: <?php
echo $font_smaller; ?
>; color
: #333399; text-decoration: none; display: none}
69 .item
, .item
:active
, .item
:hover
, .tblItem
, .tblItem
:active
{font
-size
: <?php
echo $font_smaller; ?
>; color
: #333399; text-decoration: none}
70 .tblItem
:hover
{color
: #FF0000; text-decoration: underline}
75 /* Additional effects for NON-IE4 */
76 .parent
{font
-family
: <?php
echo $left_font_family; ?
>; color
: #000000; text-decoration: none; position: absolute; visibility: hidden}
77 .child
{font
-family
: <?php
echo $left_font_family; ?
>; font
-size
: <?php
echo $font_smaller; ?
>; color
: #333399; position: absolute; visibility: hidden}
78 .item
, .tblItem
{font
-family
: <?php
echo $left_font_family; ?
>; font
-size
: <?php
echo $font_smaller; ?
>; color
: #333399; text-decoration: none}
84 /* Additional effects for left frame not required or not possible because of lacking CSS-capability. */
85 div
{font
-family
: <?php
echo $left_font_family; ?
>; font
-size
: <?php
echo $font_size; ?
>; color
: #000000}
86 .heada
{font
-family
: <?php
echo $left_font_family; ?
>; font
-size
: <?php
echo $font_size; ?
>; color
: #000000}
87 .headaCnt
{font
-family
: <?php
echo $left_font_family; ?
>; font
-size
: <?php
echo $font_smaller; ?
>; color
: #000000}
88 .parent
{font
-family
: <?php
echo $left_font_family; ?
>; color
: #000000; text-decoration: none}
89 .child
{font
-family
: <?php
echo $left_font_family; ?
>; font
-size
: <?php
echo $font_smaller; ?
>; color
: #333399; text-decoration: none}
90 .item
, .item
:active
, .item
:hover
, .tblItem
, .tblItem
:active
{font
-size
: <?php
echo $font_smaller; ?
>; color
: #333399; text-decoration: none}
91 .tblItem
:hover
{color
: #FF0000; text-decoration: underline}
96 /* Always enabled stylesheets (left frame) */
97 body
{font
-family
: <?php
echo $left_font_family; ?
>; font
-size
: <?php
echo $font_size; ?
>}
98 input
{font
-family
: <?php
echo $left_font_family; ?
>; font
-size
: <?php
echo $font_size; ?
>}
99 select
{font
-family
: <?php
echo $left_font_family; ?
>; font
-size
: <?php
echo $font_size; ?
>; background
-color
: #ffffff; color: #000000}
101 } elseif ($js_frame == 'print') {
102 /************************************************************************************
104 ************************************************************************************/
108 body
{font
-family
: <?php
echo $right_font_family; ?
>; font
-size
: <?php
echo $font_size; ?
>; color
: #000000; background-color: #ffffff}
109 h1
{font
-family
: <?php
echo $right_font_family; ?
>; font
-size
: <?php
echo $font_biggest; ?
>; font
-weight
: bold
}
110 table
{border
-width
:1px
; border
-color
:#000000; border-style:solid; border-collapse:collapse; border-spacing:0}
111 th
{font
-family
: <?php
echo $right_font_family; ?
>; font
-size
: <?php
echo $font_size; ?
>; font
-weight
: bold
; color
: #000000; background-color: #ffffff; border-width:1px; border-color:#000000; border-style:solid; padding:2px}
112 td
{font
-family
: <?php
echo $right_font_family; ?
>; font
-size
: <?php
echo $font_size; ?
>; color
: #000000; background-color: #ffffff; border-width:1px; border-color:#000000; border-style:solid; padding:2px}
115 /************************************************************************************
117 ************************************************************************************/
120 /* Always enabled stylesheets (right frame) */
122 font
-family
: <?php
echo $right_font_family; ?
>;
123 font
-size
: <?php
echo $font_size; ?
>;
126 if ($GLOBALS['cfg']['RightBgImage'] == '') {
127 // calls from a css file are relative to itself, so use ../images
128 echo ' background-image: url(../images/vertical_line.png);' . "\n"
129 . ' background-repeat: repeat-y;' . "\n";
131 echo ' background-image: url(' . $GLOBALS['cfg']['RightBgImage'] . ');' . "\n";
132 } // end if... else...
134 background
-color
: <?php
echo $GLOBALS['cfg']['RightBgColor'] . "\n"; ?
>
137 pre
, tt
{font
-size
: <?php
echo $font_size; ?
>}
138 th
{font
-family
: <?php
echo $right_font_family; ?
>; font
-size
: <?php
echo $font_size; ?
>; font
-weight
: bold
; color
: #000000; background-color: <?php echo $GLOBALS['cfg']['ThBgcolor']; ?>}
139 td
{font
-family
: <?php
echo $right_font_family; ?
>; font
-size
: <?php
echo $font_size; ?
>}
140 form
{font
-family
: <?php
echo $right_font_family; ?
>; font
-size
: <?php
echo $font_size; ?
>}
141 input
{font
-family
: <?php
echo $right_font_family; ?
>; font
-size
: <?php
echo $font_size; ?
>}
142 input
.textfield
{font
-family
: <?php
echo $right_font_family; ?
>; font
-size
: <?php
echo $font_size; ?
>; color
: #000000; background-color: #FFFFFF}
143 select
{font
-family
: <?php
echo $right_font_family; ?
>; font
-size
: <?php
echo $font_size; ?
>; color
: #000000; background-color: #FFFFFF}
144 textarea
{font
-family
: <?php
echo $right_font_family; ?
>; font
-size
: <?php
echo $font_size; ?
>; color
: #000000; background-color: #FFFFFF}
145 h1
{font
-family
: <?php
echo $right_font_family; ?
>; font
-size
: <?php
echo $font_biggest; ?
>; font
-weight
: bold
}
146 h2
{font
-family
: <?php
echo $right_font_family; ?
>; font
-size
: <?php
echo $font_bigger; ?
>; font
-weight
: bold
}
147 h3
{font
-family
: <?php
echo $right_font_family; ?
>; font
-size
: <?php
echo $font_size; ?
>; font
-weight
: bold
}
148 a
:link
{font
-family
: <?php
echo $right_font_family; ?
>; font
-size
: <?php
echo $font_size; ?
>; text
-decoration
: none
; color
: #0000FF}
149 a
:visited
{font
-family
: <?php
echo $right_font_family; ?
>; font
-size
: <?php
echo $font_size; ?
>; text
-decoration
: none
; color
: #0000FF}
150 a
:hover
{font
-family
: <?php
echo $right_font_family; ?
>; font
-size
: <?php
echo $font_size; ?
>; text
-decoration
: underline
; color
: #FF0000}
151 a
.nav
:link
{font
-family
: <?php
echo $right_font_family; ?
>; color
: #000000}
152 a
.nav
:visited
{font
-family
: <?php
echo $right_font_family; ?
>; color
: #000000}
153 a
.nav
:hover
{font
-family
: <?php
echo $right_font_family; ?
>; color
: #FF0000}
154 a
.h1
:link
{font
-family
: <?php
echo $right_font_family; ?
>; font
-size
: <?php
echo $font_biggest; ?
>; font
-weight
: bold
; color
: #000000}
155 a
.h1
:active
{font
-family
: <?php
echo $right_font_family; ?
>; font
-size
: <?php
echo $font_biggest; ?
>; font
-weight
: bold
; color
: #000000}
156 a
.h1
:visited
{font
-family
: <?php
echo $right_font_family; ?
>; font
-size
: <?php
echo $font_biggest; ?
>; font
-weight
: bold
; color
: #000000}
157 a
.h1
:hover
{font
-family
: <?php
echo $right_font_family; ?
>; font
-size
: <?php
echo $font_biggest; ?
>; font
-weight
: bold
; color
: #FF0000}
158 a
.h2
:link
{font
-family
: <?php
echo $right_font_family; ?
>; font
-size
: <?php
echo $font_bigger; ?
>; font
-weight
: bold
; color
: #000000}
159 a
.h2
:active
{font
-family
: <?php
echo $right_font_family; ?
>; font
-size
: <?php
echo $font_bigger; ?
>; font
-weight
: bold
; color
: #000000}
160 a
.h2
:visited
{font
-family
: <?php
echo $right_font_family; ?
>; font
-size
: <?php
echo $font_bigger; ?
>; font
-weight
: bold
; color
: #000000}
161 a
.h2
:hover
{font
-family
: <?php
echo $right_font_family; ?
>; font
-size
: <?php
echo $font_bigger; ?
>; font
-weight
: bold
; color
: #FF0000}
162 a
.drop
:link
{font
-family
: <?php
echo $right_font_family; ?
>; color
: #ff0000}
163 a
.drop
:visited
{font
-family
: <?php
echo $right_font_family; ?
>; color
: #ff0000}
164 a
.drop
:hover
{font
-family
: <?php
echo $right_font_family; ?
>; color
: #ffffff; background-color:#ff0000; text-decoration: none}
165 dfn
{font
-style
: normal
}
166 dfn
:hover
{font
-style
: normal
; cursor
: help
}
167 .nav
{font
-family
: <?php
echo $right_font_family; ?
>; color
: #000000}
168 .warning
{font
-family
: <?php
echo $right_font_family; ?
>; font
-size
: <?php
echo $font_size; ?
>; font
-weight
: bold
; color
: #FF0000}
169 td
.topline
{font
-size
: 1px
}
171 border
-top
: 1px solid
#999;
172 border
-right
: 1px solid
#666;
173 border
-left
: 1px solid
#999;
176 -moz
-border
-radius
: 2px
;
182 border
-bottom
: 1px solid
#666;
186 border
: #686868 solid 1px;
195 background
-color
: transparent
;
201 background
-color
: #FFFFFF;
203 border
: 1px solid
#000000;
208 background
: <?php
echo $GLOBALS['cfg']['ThBgcolor']; ?
>;
217 font
-size
: <?php
echo $font_smaller; ?
>;
218 border
: 1px dashed
#000000;
221 .print{font
-family
:arial
;font
-size
:8pt
;}
223 .syntax
{font
-family
: sans
-serif
; font
-size
: <?php
echo $font_smaller; ?
>;}
224 .syntax_comment
{ padding
-left
: 4pt
; padding
-right
: 4pt
;}
227 .syntax_digit_integer
{}
228 .syntax_digit_float
{}
231 .syntax_alpha_columnType
{text
-transform
: uppercase
;}
232 .syntax_alpha_columnAttrib
{text
-transform
: uppercase
;}
233 .syntax_alpha_reservedWord
{text
-transform
: uppercase
; font
-weight
: bold
;}
234 .syntax_alpha_functionName
{text
-transform
: uppercase
;}
235 .syntax_alpha_identifier
{}
236 .syntax_alpha_variable
{}
238 .syntax_quote_backtick
{}
240 echo PMA_SQP_buildCssData();