Updated documentation.
[openemr.git] / interface / main / myadmin / css / phpmyadmin.css.php
bloba58c3cf5b304d281027a9e65626788f91fe9335c
1 <?php
2 /* $Id$ */
3 // vim: expandtab sw=4 ts=4 sts=4:
5 chdir('..');
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.
13 PMA_setFontSizes();
15 $ctype = 'css';
16 require_once('./libraries/header_http.inc.php');
18 if (!isset($js_frame)) {
19 $js_frame = 'left';
22 if ($js_frame == 'left') {
23 /************************************************************************************
24 * LEFT FRAME
25 ************************************************************************************/
27 /**
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}
38 <?php
39 } else {
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
45 // to write().
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}
56 <?php
57 } else {
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}
63 <?php
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}
71 <?php
73 else {
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}
79 <?php
82 } else {
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}
92 <?php
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}
100 <?php
101 } elseif ($js_frame == 'print') {
102 /************************************************************************************
103 * PRINT VIEW
104 ************************************************************************************/
107 /* For printview */
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}
113 <?php
114 } else {
115 /************************************************************************************
116 * RIGHT FRAME
117 ************************************************************************************/
120 /* Always enabled stylesheets (right frame) */
121 body {
122 font-family: <?php echo $right_font_family; ?>;
123 font-size: <?php echo $font_size; ?>;
124 color: #000000;
125 <?php
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";
130 } else {
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}
170 td.tab {
171 border-top: 1px solid #999;
172 border-right: 1px solid #666;
173 border-left: 1px solid #999;
174 border-bottom: none;
175 border-radius: 2px;
176 -moz-border-radius: 2px;
178 table.tabs {
179 border-top: none;
180 border-right: none;
181 border-left: none;
182 border-bottom: 1px solid #666;
185 fieldset {
186 border: #686868 solid 1px;
187 padding: 0.5em;
189 fieldset fieldset {
190 margin: 0.8em;
193 button.mult_submit {
194 border: none;
195 background-color: transparent;
198 .pdflayout {
199 overflow: hidden;
200 clip: inherit;
201 background-color: #FFFFFF;
202 display: none;
203 border: 1px solid #000000;
204 position: relative;
207 .pdflayout_table {
208 background: <?php echo $GLOBALS['cfg']['ThBgcolor']; ?>;
209 color: #000000;
210 overflow: hidden;
211 clip: inherit;
212 z-index: 2;
213 display: inline;
214 visibility: inherit;
215 cursor: move;
216 position: absolute;
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;}
225 .syntax_digit {}
226 .syntax_digit_hex {}
227 .syntax_digit_integer {}
228 .syntax_digit_float {}
229 .syntax_punct {}
230 .syntax_alpha {}
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 {}
237 .syntax_quote {}
238 .syntax_quote_backtick {}
239 <?php
240 echo PMA_SQP_buildCssData();