Added webpath system so that images will work
[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 $included = method_exists($this->registry, 'load');
23
24 if (!$included)
25 {
26 $path = ($_SERVER['SCRIPT_URL'] ? $_SERVER['SCRIPT_URL'] : $_SERVER['REQUEST_URI']);
27 $this->registry->webpath = dirname($path) . '/';
28 }
29
30 $css = <<<CSS
31 /* ################################################################### */
32 /* Body and table elements */
33 /* ################################################################### */
34
35 /* Main window background colour and font colour */
36 body
37 {
38 color: #D2D3F0;
39 background: #68768A;
40 }
41
42 /* The row that goes on top of all other content */
43 .phead
44 {
45 color: #1C1C21;
46 font-size: 11pt;
47 font-weight: bold;
48 text-align: left;
49 border-bottom: outset 3px;
50 background: #445B78;
51 padding: 2px 25px; 2px; 25px;
52 }
53
54 /* Border area around tables and inbetween spacing */
55 .tborder
56 {
57 border: ridge 4px;
58 }
59
60 /* First row set in all tables */
61 .tcat
62 {
63 color: #97A9C4;
64 background: #38495E url({$this->registry->webpath}images/tcat.gif);
65 border-bottom: outset 1px;
66 }
67
68 /* Links within the TCAT class */
69 .tcat a:link, .tcat a:visited, .tcat a:active
70 {
71 color: #97A9C4;
72 }
73
74 /* Row under the TCAT row (often used for column headers) */
75 td.thead, .thead td, .alt3
76 {
77 color: #D6E1EC;
78 font-weight: bold;
79 background: #445B78 url({$this->registry->webpath}images/thead.gif);
80 border: inset 1px;
81 }
82
83 /* Links for the THEAD class */
84 .thead a:link, .thead a:visited, .thead a:active, .alt3 a:link, .alt3 a:visited, .alt3 a:active
85 {
86 color: #D6E1EC;
87 }
88
89 /* The first type of row used in the alternation cycle */
90 .alt1
91 {
92 color: #38495E;
93 background: #8994A4;
94 }
95
96 /* The second type of row used in the alternation cycle */
97 .alt2
98 {
99 color: #38495E;
100 background: #ABB2BC;
101 }
102
103 /* The third alternation, used in special cases */
104 .alt3
105 {
106 border: 0px;
107 }
108
109 /* The last row in the table (often used for the submit buttons) */
110 .tfoot
111 {
112 color: #7D7CA3;
113 background: #ECE8D8;
114 border: outset 1px;
115 }
116
117 /* ################################################################### */
118 /* Text elements */
119 /* ################################################################### */
120
121 /* Font settings for all non-styled elements */
122 body, p, td, tr, ol, ul
123 {
124 font: 12px verdana, geneva, arial, helvetica, sans-serif;
125 }
126
127 /* Small text (used in copyright) */
128 .smallfont, .copyright, dfn
129 {
130 font: 11px tahoma, verdana, geneva, arial, helvetica, sans-serif;
131 }
132
133 /* Description text */
134 dfn
135 {
136 font-style: italic;
137 }
138
139 /* Table headings */
140 .tcat, .thead, .tfoot
141 {
142 font: 12px tahoma, verdana, geneva, arial, helvetica, sans-serif;
143 }
144
145 /* Normal links */
146 a:link, a:visited, a:active
147 {
148 color: #293F5B;
149 background: none;
150 }
151
152 /* Hover links */
153 a:hover, .tcat a:hover, .thead a:hover, .tfoot a:hover
154 {
155 color: #D6E1EC;
156 background: #38495E;
157 }
158
159 .copyright a:hover, .copyright a:link, .copyright a:visited, .copyright a:active
160 {
161 text-decoration: none;
162 }
163
164 /* Mono-space */
165 .code
166 {
167 font: 9pt 'courier new', courier, monospace;
168 }
169
170 /* ################################################################### */
171 /* Form styling elements */
172 /* ################################################################### */
173
174 /* Input elements in a form */
175 input, textarea, select, option
176 {
177 font: 12px verdana, geneva, arial, helvetica, sans-serif;
178 }
179
180 /* Input formatting */
181 .input
182 {
183 font: bold 11px tahoma, verdana, geneva, arial, helvetica, sans-serif;
184 text-indent: 5px;
185 margin: 1px;
186 margin-top: 3px;
187 }
188
189 /* Button styling */
190 .button
191 {
192 color: #000000;
193 font: bold 11px tahoma, verdana, geneva, arial, helvetica, sans-serif;
194 margin: 1px;
195 margin-top: 3px;
196 }
197
198 /* ################################################################### */
199 /* Navigation panel */
200 /* ################################################################### */
201
202 /* The background colour for the navigation frame */
203 .nav_body
204 {
205 background: #38495E;
206 }
207
208 .nav_body a:link, .nav_body a:active, .nav_body a:hover, .nav_body a:visited
209 {
210 color: #FFFFFF;
211 text-decoration: none;
212 }
213
214 /* Formatting for groups of nav elements */
215 .nav_group
216 {
217 color: #D6E1EC;
218 background: #445B78;
219 border: #97A9C4 solid 2px;
220 border-width: 0px 2px 1px 2px;
221 }
222
223 /* Nav title border */
224 .nav_title
225 {
226 font: 11px tahoma, verdana, geneva, arial, helvetica, sans-serif;
227 padding: 2px;
228 border: #97A9C4 solid 2px;
229 border-width: 0px 2px 2px 2px;
230 }
231
232 /* Cold nav items */
233 .nav_item
234 {
235 font: 11px tahoma, verdana, geneva, arial, helvetica, sans-serif;
236 padding: 2px 2px 1px 7px;
237 background: #5D7490;
238 border-bottom: #97A9C4 solid 1px;
239 }
240
241 /* Hot nav items */
242 .nav_item_hot
243 {
244 font: 11px tahoma, verdana, geneva, arial, helvetica, sans-serif;
245 padding: 2px 2px 1px 7px;
246 background: #4A5F78;
247 border-bottom: #97A9C4 solid 1px;
248 }
249
250 /* ################################################################### */
251 /* Template manager */
252 /* ################################################################### */
253
254 /* The body of the template manager */
255 .manager_body
256 {
257 background: #38495E;
258 color: #FFFFFF;
259 }
260
261 /* A group of templates */
262 .manager_group
263 {
264 background: #28394E;
265 color: #8994A4;
266 }
267
268 /* Items in a template group */
269 .manager_group_item
270 {
271 background: #364D6F;
272 color: #AABBD3;
273 }
274 CSS;
275
276 if (!$included)
277 {
278 echo $css;
279 }
280
281 /*=====================================================================*\
282 || ###################################################################
283 || # $HeadURL$
284 || # $Id$
285 || ###################################################################
286 \*=====================================================================*/
287 ?>