1 | #######################################################################
|
---|
2 | # PAGE STYLES
|
---|
3 | #######################################################################
|
---|
4 |
|
---|
5 | package Style
|
---|
6 |
|
---|
7 | # to use this style system output
|
---|
8 | # _header_
|
---|
9 | # all your page content, then
|
---|
10 | # _footer_
|
---|
11 |
|
---|
12 | # use the page parameter 'style' to choose the appropriate style
|
---|
13 |
|
---|
14 | # the style system uses
|
---|
15 | # _pagetitle_ - what gets displayed at the top of the browser window
|
---|
16 | # _pagebannerextra_ - anything extra you want displayed in the page banner
|
---|
17 | # _pagefooterextra_ - anything extra you want displayed in the footer
|
---|
18 |
|
---|
19 | # defaults for the above macros
|
---|
20 | _pagetitle_ {_collectionname_}
|
---|
21 | _pagebannerextra_ {}
|
---|
22 | _pagefooterextra_ {}
|
---|
23 |
|
---|
24 | # it also relies on lots of Globals, the most important of these are:
|
---|
25 | # _cookie_ - put in the cgi header
|
---|
26 | # _globalscripts_ - javascript stuff
|
---|
27 | # _httpiconchalk_ - the image down the left of the page
|
---|
28 | # _imagecollection_
|
---|
29 | # _imagehome_
|
---|
30 | # _imagehelp_
|
---|
31 | # _imagepref_
|
---|
32 | # _imagethispage_
|
---|
33 | # _linkotherversion_
|
---|
34 |
|
---|
35 | _header_ {_cgihead_
|
---|
36 | _htmlhead_('background="_httpiconchalk_"')_startspacer__pagebanner_
|
---|
37 | }
|
---|
38 |
|
---|
39 | # this declaration ends up being the same as style=restrict, never mind
|
---|
40 | _header_[version=text] {_cgihead_
|
---|
41 | _htmlhead__pagebanner_
|
---|
42 | }
|
---|
43 |
|
---|
44 | # style=restrict lacks the sidestripe, version links and
|
---|
45 | # language links
|
---|
46 | _header_[style=restrict] {_cgihead_
|
---|
47 | _htmlhead__pagebanner_
|
---|
48 | }
|
---|
49 |
|
---|
50 |
|
---|
51 | # _cgihead_ {Content-type: text/html
|
---|
52 | # _cookie_
|
---|
53 | #
|
---|
54 | # }
|
---|
55 | _cgihead_{}
|
---|
56 |
|
---|
57 |
|
---|
58 | # htmlhead uses:
|
---|
59 | # _1_ - extra parameters for the body tag
|
---|
60 | # _pagetitle_
|
---|
61 | # _globalscripts_
|
---|
62 | _htmlhead_ {
|
---|
63 | <html>
|
---|
64 | <head>
|
---|
65 | <title>_pagetitle_</title>
|
---|
66 | _globalscripts_
|
---|
67 |
|
---|
68 | </head>
|
---|
69 | <body bgcolor="\#ffffff" text="\#000000" link="\#006666"
|
---|
70 | alink="\#cc9900" vlink="\#666633" _1_>
|
---|
71 | }
|
---|
72 |
|
---|
73 |
|
---|
74 | # _startspacer_ is a spacer to get past the 10010 graphic. It contains an open
|
---|
75 | # <table> tag which must eventually be closed by _endspacer_.
|
---|
76 | _startspacer_ {
|
---|
77 | <table border=0 cellspacing=0 cellpadding=0 width="100%">
|
---|
78 | <tr><td valign=top width=65><img src="_httpimg_/spacer.gif" width="65" height="1" alt="" border="0"></td>
|
---|
79 | <td><center><table width="80%"><tr><td>
|
---|
80 | }
|
---|
81 |
|
---|
82 |
|
---|
83 | # pagebanner uses :
|
---|
84 | # _imagecollection_
|
---|
85 | # _imagehome_
|
---|
86 | # _imagehelp_
|
---|
87 | # _imagepref_
|
---|
88 | # _imagethispage_
|
---|
89 | # _pagebannerextra_
|
---|
90 | _pagebanner_ {
|
---|
91 | <center>
|
---|
92 | <table width="537" cellspacing=0 cellpadding=0>
|
---|
93 | <tr valign=top>
|
---|
94 | <td rowspan=2 _alignleft_>_imagecollection_</td>
|
---|
95 | <td _alignright_>_javalinks_</td>
|
---|
96 | </tr>
|
---|
97 |
|
---|
98 | <tr>
|
---|
99 | <td _alignright_>_imagethispage_</td>
|
---|
100 | </tr>
|
---|
101 |
|
---|
102 | <tr>
|
---|
103 | <td colspan=2>_pagebannerextra_</td>
|
---|
104 | </tr>
|
---|
105 | </table>
|
---|
106 | </center>
|
---|
107 | }
|
---|
108 |
|
---|
109 | _pagebanner_[version=text] {
|
---|
110 | <center><h2><b><u>_imagecollection_</u></b></h2></center><p>
|
---|
111 | _javalinks_
|
---|
112 | _pagebannerextra_
|
---|
113 | <p>
|
---|
114 | }
|
---|
115 |
|
---|
116 |
|
---|
117 |
|
---|
118 | # note that _pagefooter_ is for individual pages
|
---|
119 | _footer_ {
|
---|
120 | <p>
|
---|
121 | <_font_>
|
---|
122 | _pagefooterextra_
|
---|
123 | <center><i>_linkotherversion_</i></center>
|
---|
124 | <center><i>_linkotherlanguage_</i></center>
|
---|
125 | </font>
|
---|
126 | </table>
|
---|
127 | _endspacer__htmlfooter_
|
---|
128 | }
|
---|
129 |
|
---|
130 |
|
---|
131 | _footer_[style=restrict] {_pagefooterextra_
|
---|
132 | _htmlfooter_
|
---|
133 | }
|
---|
134 |
|
---|
135 | _footer_[style=htmlonly] {_pagefooterextra_
|
---|
136 | _endspacer__htmlfooter_
|
---|
137 | }
|
---|
138 |
|
---|
139 | _endspacer_ {
|
---|
140 | </td></tr></table>
|
---|
141 | </center>
|
---|
142 | </td></tr>
|
---|
143 | </table>
|
---|
144 | }
|
---|
145 |
|
---|
146 | _htmlfooter_ {
|
---|
147 | </body>
|
---|
148 | </html>
|
---|
149 | }
|
---|
150 |
|
---|
151 |
|
---|
152 | # _alignleft_ and _alignright_ are overriden for right-to-left
|
---|
153 | # writing systems
|
---|
154 | _alignleft_ {align=left}
|
---|
155 | _alignright_ {align=right}
|
---|
156 |
|
---|
157 | #_smallfont_ {font face="Arial,Helvetica,Times" size="-2"}
|
---|
158 | #_font_ {font face="Arial,Helvetica,Times" size="-1"}
|
---|
159 | _font_ {font}
|
---|
160 | _smallfont_ {font size="-1"}
|
---|