Need to send the right mime-types to make Gecko happy
[isso.git] / printer.css.php
1 <?php
2 /*=====================================================================*\
3 || ###################################################################
4 || # Iris Studios Shared Object Framework [#]version[#]
5 || # Copyright ©2002-[#]year[#] Iris Studios, Inc.
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 || # Iris Studios Shared Object Framework [#]version[#]
43 || # Copyright ©2002-[#]year[#] Iris Studios, Inc.
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 /* Main window background colour and font colour */
65 body
66 {
67 color: rgb(0, 0, 0);
68
69 background-color: rgb(255, 255, 255);
70 background-image: url({$GLOBALS['isso:callback']->webpath}images/body.gif);
71 background-repeat: repeat-x;
72 background-position: bottom;
73 }
74
75 /* Border area around tables and inbetween spacing */
76 .tborder
77 {
78 border: ridge 4px;
79 }
80
81 /* First row set in all tables */
82 .tcat
83 {
84 color: rgb(55, 55, 55);
85
86 background-image: url({$GLOBALS['isso:callback']->webpath}images/tcat.gif);
87 background-color: rgb(91, 96, 101);
88 background-repeat: repeat-x;
89
90 border-style: outset;
91 border-width: 1px;
92 }
93
94 /* Links within the TCAT class */
95 .tcat a:link, .tcat a:visited, .tcat a:active
96 {
97 color: rgb(55, 55, 55);
98 }
99
100 /* Row under the TCAT row (often used for column headers) */
101 td.thead, .thead td, .alt3
102 {
103 color: rgb(45, 45, 45);
104
105 font-weight: bold;
106 font-size: 11px;
107
108 background-image: url({$GLOBALS['isso:callback']->webpath}images/thead.gif);
109 background-repeat: repeat-x;
110 background-color: rgb(156, 156, 156);
111
112 border-style: outset;
113 border-width: 1px;
114 }
115
116 /* Links for the THEAD class */
117 .thead a:link, .thead a:visited, .thead a:active, .alt3 a:link, .alt3 a:visited, .alt3 a:active
118 {
119 color: rgb(45, 45, 45);
120 }
121
122 /* The first type of row used in the alternation cycle */
123 .alt1
124 {
125 color: rgb(41, 63, 91);
126
127 background-color: rgb(204, 204, 204);
128 }
129
130 /* The second type of row used in the alternation cycle */
131 .alt2
132 {
133 color: rgb(41, 63, 91);
134
135 background-color: rgb(229, 229, 229);
136 }
137
138 /* The third alternation, used in special cases */
139 .alt3
140 {
141 border-width: 0px;
142 }
143
144 /* The last row in the table (often used for the submit buttons) */
145 .tfoot
146 {
147 color: rgb(55, 55, 55);
148
149 background-color: rgb(222, 222, 222);
150
151 border-style: outset;
152 border-width: 1px;
153 }
154
155 /* ################################################################### */
156 /* Text elements */
157 /* ################################################################### */
158
159 /* Font settings for all non-styled elements */
160 body, p, td, tr, ol, ul
161 {
162 font-family: verdana, geneva, arial, helvetica, sans-serif;
163 font-size: 12px;
164 }
165
166 /* Small text (used in copyright) */
167 .smallfont, .copyright, dfn
168 {
169 font-family: tahoma, verdana, geneva, arial, helvetica, sans-serif;
170 font-size: 11px;
171 }
172
173 /* Description text */
174 dfn
175 {
176 font-style: italic;
177 }
178
179 /* Table headings */
180 .tcat, .thead, .tfoot
181 {
182 font-family: tahoma, verdana, geneva, arial, helvetica, sans-serif;
183 font-size: 12px;
184 }
185
186 /* Normal links */
187 a:link, a:visited, a:active
188 {
189 color: rgb(41, 63, 91);
190 }
191
192 /* Hover links */
193 a:hover, .tcat a:hover, .thead a:hover, .tfoot a:hover, .alt3 a:hover
194 {
195 color: rgb(158, 0, 0);
196 }
197
198 .copyright a:hover, .copyright a:link, .copyright a:visited, .copyright a:active
199 {
200 text-decoration: none;
201 }
202
203 /* Mono-space */
204 .code
205 {
206 font-family: 'courier new', courier, monospace;
207 font-size: 9pt;
208 }
209
210 /* ################################################################### */
211 /* Form styling elements */
212 /* ################################################################### */
213
214 /* Input elements in a form */
215 input, textarea, select, option
216 {
217 font-family: 12px verdana, geneva, arial, helvetica, sans-serif;
218 font-size: 12px;
219 }
220
221 /* Input formatting */
222 .input
223 {
224 font-family: tahoma, verdana, geneva, arial, helvetica, sans-serif;
225 font-size: 11px;
226
227 text-indent: 5px;
228
229 margin: 3px 1px 1px 1px;
230 }
231
232 /* Button styling */
233 .button
234 {
235 color: rgb(0, 0, 0);
236
237 font-family: tahoma, verdana, geneva, arial, helvetica, sans-serif;
238 font-size: 11px;
239 font-weight: bold;
240
241 margin: 3px 1px 1px 1px;
242 }
243
244 /* ################################################################### */
245 /* Navigation panel */
246 /* ################################################################### */
247
248 /* The background colour for the navigation frame */
249 .nav_body
250 {
251 background: rgb(136, 136, 136);
252 }
253
254 .nav_body a:link, .nav_body a:active, .nav_body a:hover, .nav_body a:visited
255 {
256 color: rgb(0, 0, 0);
257 text-decoration: none;
258 }
259
260 /* Formatting for groups of nav elements */
261 .nav_group
262 {
263 border-color: rgb(98, 107, 152);
264 border-style: solid;
265 border-width: 0px 2px 1px 2px;
266 }
267
268 /* Nav title border */
269 .nav_title
270 {
271 font-size: 11px
272 font-family: tahoma, verdana, geneva, arial, helvetica, sans-serif;
273 font-weight: bold;
274
275 padding: 2px;
276
277 background-image: url({$GLOBALS['isso:callback']->webpath}images/thead.gif);
278 background-repeat: repeat-x;
279 background-color: rgb(156, 156, 156);
280
281 border-color: rgb(98, 107, 152);
282 border-style: solid;
283 border-width: 2px;
284 }
285
286 /* Cold nav items */
287 .nav_item
288 {
289 padding: 2px 2px 1px 7px;
290
291 font-size: 11px;
292 font-family: tahoma, verdana, geneva, arial, helvetica, sans-serif;
293 font-weight: normal;
294
295 color: rgb(0, 0, 0);
296
297 background-color: rgb(204, 204, 204);
298
299 border-color: rgb(98, 107, 152);
300 border-style: solid;
301 border-width: 0px 0px 1px 0px;
302 }
303
304 /* Hot nav items */
305 .nav_item:hover
306 {
307 background-color: rgb(242, 242, 242);
308 }
309
310 /* ################################################################### */
311 /* Template manager */
312 /* ################################################################### */
313
314 /* The body of the template manager */
315 .manager_body
316 {
317 background: rgb(0, 0, 0);
318 color: rgb(255, 255, 255);
319 }
320
321 /* A group of templates */
322 .manager_group
323 {
324 background: #28394E;
325 color: #8994A4;
326 }
327
328 /* Items in a template group */
329 .manager_group_item
330 {
331 background: #364D6F;
332 color: #AABBD3;
333 }
334 CSS;
335
336 if (!$included)
337 {
338 echo $css;
339 }
340
341 /*=====================================================================*\
342 || ###################################################################
343 || # $HeadURL$
344 || # $Id$
345 || ###################################################################
346 \*=====================================================================*/
347 ?>