Change BSRouter::route() to BSRouter::dispatch()
[isso.git] / printer.css.php
1 <?php
2 /*=====================================================================*\
3 || ###################################################################
4 || # Blue Static ISSO Framework [#]issoversion[#]
5 || # Copyright ©2002-[#]year[#] Blue Static
6 || #
7 || # This program is free software; you can redistribute it and/or modify
8 || # it under the terms of the GNU General Public License as published by
9 || # the Free Software Foundation; version [#]gpl[#] of the License.
10 || #
11 || # This program is distributed in the hope that it will be useful, but
12 || # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 || # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 || # more details.
15 || #
16 || # You should have received a copy of the GNU General Public License along
17 || # with this program; if not, write to the Free Software Foundation, Inc.,
18 || # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
19 || ###################################################################
20 \*=====================================================================*/
21
22 error_reporting(E_ALL & ~E_NOTICE);
23
24 $included = true;
25
26 if (!isset($GLOBALS['isso:callback']))
27 {
28 if (!method_exists($GLOBALS['isso:callback'], 'load'))
29 {
30 $included = false;
31 $path = (isset($_SERVER['SCRIPT_URL']) ? $_SERVER['SCRIPT_URL'] : $_SERVER['REQUEST_URI']);
32 $GLOBALS['isso:callback']->webpath = dirname($path) . '/';
33
34 // Gecko browsers need this to display right
35 header("Content-Type: text/css");
36 }
37 }
38
39 $css = <<<CSS
40 /*=====================================================================*\
41 || ###################################################################
42 || # Blue Static ISSO Framework [#]issoversion[#]
43 || # Copyright ©2002-[#]year[#] Blue Static
44 || #
45 || # This program is free software; you can redistribute it and/or modify
46 || # it under the terms of the GNU General Public License as published by
47 || # the Free Software Foundation; version [#]gpl[#] of the License.
48 || #
49 || # This program is distributed in the hope that it will be useful, but
50 || # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
51 || # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
52 || # more details.
53 || #
54 || # You should have received a copy of the GNU General Public License along
55 || # with this program; if not, write to the Free Software Foundation, Inc.,
56 || # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
57 || ###################################################################
58 \*=====================================================================*/
59
60 /* ################################################################### */
61 /* Body and table elements */
62 /* ################################################################### */
63
64 /* Work-around for Mozilla (bug #243751) and Opera (bug #???) bugs in viewpoint rendering */
65 html
66 {
67 height: 100%;
68 }
69
70 /* Main window background colour and font colour */
71 body
72 {
73 color: rgb(96, 106, 90);
74
75 background-color: rgb(232, 255, 198);
76
77 padding: 15px;
78 }
79
80 /* Border area around tables and inbetween spacing */
81 .tborder
82 {
83 border: none;
84 }
85
86 /* First row set in all tables */
87 .tcat
88 {
89 color: rgb(30, 35, 46);
90 font-weight: bold;
91 text-align: center;
92
93 background-color: rgb(109, 187, 45);
94 }
95
96 /* Links within the TCAT class */
97 .tcat a:link, .tcat a:visited, .tcat a:active
98 {
99 color: rgb(55, 55, 55);
100 }
101
102 /* Row under the TCAT row (often used for column headers) */
103 .thead, .alt3
104 {
105 color: rgb(45, 45, 45);
106
107 font-weight: bold;
108 font-size: 11px;
109
110 background-color: rgb(165, 165, 165);
111 }
112
113 /* Links for the THEAD class */
114 .thead a:link, .thead a:visited, .thead a:active, .alt3 a:link, .alt3 a:visited, .alt3 a:active
115 {
116 color: rgb(45, 45, 45);
117 }
118
119 /* The first type of row used in the alternation cycle */
120 .alt1
121 {
122 color: rgb(41, 63, 91);
123
124 background-color: rgb(237, 245, 230);
125 }
126
127 /* The second type of row used in the alternation cycle */
128 .alt2
129 {
130 color: rgb(41, 63, 91);
131
132 background-color: rgb(255, 255, 255);
133 }
134
135 /* The third alternation, used in special cases */
136 .alt3
137 {
138 border-width: 0px;
139 }
140
141 /* The last row in the table (often used for the submit buttons) */
142 .tfoot
143 {
144 color: rgb(55, 55, 55);
145 text-align: center;
146 font-weight: bold;
147
148 background-color: rgb(64, 64, 64);
149 }
150
151 /* ################################################################### */
152 /* Text elements */
153 /* ################################################################### */
154
155 /* Font settings for all non-styled elements */
156 body
157 {
158 font-family: verdana, geneva, arial, helvetica, sans-serif;
159 font-size: 11px;
160 }
161
162 /* Small text (used in copyright) */
163 .smallfont, .copyright, dfn
164 {
165 font-family: tahoma, verdana, geneva, arial, helvetica, sans-serif;
166 font-size: 9px;
167 }
168
169 /* Description text */
170 dfn
171 {
172 font-style: italic;
173 }
174
175 /* Table headings */
176 .tcat, .thead, .tfoot
177 {
178 font-family: tahoma, verdana, geneva, arial, helvetica, sans-serif;
179 font-size: 12px;
180 }
181
182 /* Normal links */
183 a:link, a:visited, a:active
184 {
185 color: rgb(109, 187, 45);
186 }
187
188 /* Hover links */
189 a:hover, .tcat a:hover, .thead a:hover, .tfoot a:hover, .alt3 a:hover
190 {
191 color: rgb(143, 236, 9);
192 }
193
194 .copyright a:hover, .copyright a:link, .copyright a:visited, .copyright a:active
195 {
196 text-decoration: none;
197 }
198
199 /* Mono-space */
200 .code
201 {
202 font-family: 'courier new', courier, monospace;
203 font-size: 9pt;
204 }
205
206 /* ################################################################### */
207 /* Form styling elements */
208 /* ################################################################### */
209
210 /* Input elements in a form */
211 input, textarea, select, option
212 {
213 font-family: verdana, geneva, arial, helvetica, sans-serif;
214 font-size: 11px;
215 }
216
217 /* Input formatting */
218 .input
219 {
220 font-family: tahoma, verdana, geneva, arial, helvetica, sans-serif;
221 font-size: 11px;
222
223 text-indent: 5px;
224
225 margin: 3px 1px 1px 1px;
226 }
227
228 /* Button styling */
229 .button
230 {
231 color: rgb(0, 0, 0);
232
233 font-family: tahoma, verdana, geneva, arial, helvetica, sans-serif;
234 font-size: 11px;
235 font-weight: bold;
236
237 margin: 3px 1px 1px 1px;
238 }
239
240 /* ################################################################### */
241 /* Navigation panel */
242 /* ################################################################### */
243
244 /* The links that appear in the upper-right corner */
245 #toplinks
246 {
247 float: right;
248
249 font-size: 14px;
250 }
251
252 #toplinks #toplinks-links
253 {
254 font-size: 10px;
255 }
256
257 /* Wrapper for the entire navigation system; including tabs */
258 #wrapper
259 {
260 padding-top: 12px;
261 }
262
263 /* The content panel that draws the background color for the panel */
264 #contentbody
265 {
266 padding: 5px;
267
268 background-color: rgb(255, 255, 255);
269
270 border-color: rgb(124, 128, 135);
271 border-width: 1px;
272 border-style: solid;
273
274 color: rgb(55, 55, 55);
275
276 width: 100%;
277 }
278
279 /* The actual tabbar */
280 #tabbar
281 {
282 height: 35px;
283
284 padding-left: 10px;
285
286 margin-top: 10px;
287 margin-bottom: -14px;
288 }
289
290 /* Links in the tabbar */
291 #tabbar a
292 {
293 font-weight: bold;
294 color: rgb(122, 151, 101);
295
296 text-transform: uppercase;
297 text-decoration: none;
298
299 padding: 8px 0px 8px 0px;
300 margin: 0px;
301
302 background-image: url({$GLOBALS['isso:callback']->webpath}images/tabs.gif);
303 background-repeat: no-repeat;
304 background-position: 0% -35px;
305 }
306
307 /* Blocks of the tab link */
308 #tabbar a span
309 {
310 height: 33px;
311 width: 100%;
312
313 padding: 8px 15px 8px 15px;
314
315 background-image: url({$GLOBALS['isso:callback']->webpath}images/tabs-ends.gif);
316 background-repeat: no-repeat;
317 background-position: 100% -35px;
318 }
319
320 /* The current, active tab */
321 #tabbar #focustab, #tabbar #focustab a:hover
322 {
323 color: rgb(64, 64, 64);
324
325 background-position: 0% 0px;
326
327 padding: 8px 0px 9px 0px;
328 }
329
330 /* Blocks of a focused tab link */
331 #tabbar #focustab span
332 {
333 background-position: 100% 0px;
334
335 padding-bottom: 9px;
336 }
337
338 /* Hovered tabs */
339 #tabbar a:hover
340 {
341 background-position: 0% -70px;
342
343 color: rgb(143, 236, 9);
344 }
345
346 /* Blocks of a hovered tab link */
347 #tabbar a:hover span
348 {
349 background-position: 100% -70px;
350 }
351
352 /* Main content frame <td> */
353 #mainbody
354 {
355 width: 80%;
356
357 vertical-align: top;
358
359 padding: 5px 5px 5px 0px;
360 }
361
362 #wrapper #contentbody #mainbody table
363 {
364 width: 100%;
365 }
366
367 /* Menu frame <td> */
368 #menu
369 {
370 width: 20%;
371
372 padding: 15px;
373
374 vertical-align: top;
375 }
376
377 /* A menu list of items */
378 #menu ul
379 {
380 list-style: none;
381
382 padding: 0px;
383 margin: 0px;
384 }
385
386 /* An individual item in the menu list */
387 #menu li span
388 {
389 display: block;
390
391 padding: 2px 2px 2px 7px;
392 margin-top: 1px;
393
394 background-color: rgb(208, 208, 208);
395 }
396
397 /* Links in the menu list */
398 #menu li a
399 {
400 color: rgb(64, 64, 64);
401 text-decoration: none;
402 font-size: 10px;
403 font-weight: bold;
404 }
405
406 /* A :hover for the row of a menu item */
407 #menu li a:hover span
408 {
409 background-color: rgb(158, 236, 95);
410 }
411
412 /* A header item row */
413 #menu li.header span
414 {
415 font-weight: bold;
416 text-transform: uppercase;
417 color: rgb(255, 255, 255);
418
419 padding: 3px;
420
421 background-color: rgb(96, 106, 90);
422 }
423
424 /* A focused item row */
425 #menu li.focus span
426 {
427 background-color: rgb(182, 216, 154);
428
429 text-decoration: underline;
430 }
431
432 CSS;
433
434 if (!$included)
435 {
436 echo $css;
437 }
438
439 /*=====================================================================*\
440 || ###################################################################
441 || # $HeadURL$
442 || # $Id$
443 || ###################################################################
444 \*=====================================================================*/
445 ?>