1 | #######################################################################
|
---|
2 | # GLOBAL MACROS
|
---|
3 | #######################################################################
|
---|
4 |
|
---|
5 | package Global
|
---|
6 |
|
---|
7 | ##########
|
---|
8 |
|
---|
9 | # not sure exactly what this is used for but it seems it needs to default
|
---|
10 | # to something
|
---|
11 | _optsite_ {}
|
---|
12 |
|
---|
13 |
|
---|
14 | ##########
|
---|
15 |
|
---|
16 | _htmlextra_ {}
|
---|
17 |
|
---|
18 | _starthighlight_ {<span style="background: #FFFF77">}
|
---|
19 | _endhighlight_ {</span>}
|
---|
20 |
|
---|
21 | #######################################################################
|
---|
22 | # page content
|
---|
23 | #
|
---|
24 | # these should always be overridden for each page/collection
|
---|
25 | #######################################################################
|
---|
26 |
|
---|
27 | _content_ {<p><h2>oops</h2>
|
---|
28 | _textdefaultcontent_}
|
---|
29 | _pagetitle_ {_textdefaulttitle_}
|
---|
30 | _imagethispage_ {}
|
---|
31 | _iconcollection_ {}
|
---|
32 | _collectionname_ {}
|
---|
33 |
|
---|
34 | _imagecollection_ {<img src="_httpcollection_/images/protemixlogo.gif">}
|
---|
35 |
|
---|
36 | # width of tabs when displaying tables of contents
|
---|
37 | _tabwidth_ {25}
|
---|
38 |
|
---|
39 | #######################################################################
|
---|
40 | # Macros whose values are set from within the server at runtime. These
|
---|
41 | # are here only for reference and to set default values if required.
|
---|
42 | #######################################################################
|
---|
43 |
|
---|
44 | # _win32_ will be set to 1 if we're on windows
|
---|
45 | _win32_ {}
|
---|
46 |
|
---|
47 | _navigationbar_ {}
|
---|
48 | _widthtspace_ {2}
|
---|
49 |
|
---|
50 | # all cgi args are set as _cgiargX_ macros - those I've put here
|
---|
51 | # are those that need to default to something
|
---|
52 | _cgiargd_ {}
|
---|
53 | _cgiargcl_ {}
|
---|
54 |
|
---|
55 | # set from within the query action
|
---|
56 | _hselection_ {}
|
---|
57 | _jselection_ {}
|
---|
58 | _nselection_ {}
|
---|
59 | #granularity selection for mgpp
|
---|
60 | _gselection_ {}
|
---|
61 |
|
---|
62 | #######################################################################
|
---|
63 | # flashy rollover image macro
|
---|
64 | #
|
---|
65 | #######################################################################
|
---|
66 |
|
---|
67 | # imagescript should always be included in html header if there are
|
---|
68 | # flashy images on the page
|
---|
69 | _imagescript_ {
|
---|
70 | var loaded = new Array();
|
---|
71 | function gbutton (image, onimage) \{
|
---|
72 | if (image && image.src && (image.out == null || typeof(image.out) == typeof(void(0)))) \{
|
---|
73 | s = image.src;
|
---|
74 | image.out = new Image();
|
---|
75 | image.out.src = s;
|
---|
76 | image.over = new Image();
|
---|
77 | image.over.src = onimage;
|
---|
78 | loaded[image.name] = image;
|
---|
79 | \}
|
---|
80 | \}
|
---|
81 |
|
---|
82 | function roll (imagename, over) \{
|
---|
83 | if (document.images) \{
|
---|
84 | if (over) i = "over";
|
---|
85 | else i = "out";
|
---|
86 | image = loaded[imagename];
|
---|
87 | if (image) image.src = eval("image."+i+".src");
|
---|
88 | \}
|
---|
89 | \}
|
---|
90 | }
|
---|
91 |
|
---|
92 | # gsimage should be used to define an instance of a flashy image
|
---|
93 | # parameters are:
|
---|
94 | # 1. the url to go to when the button is clicked
|
---|
95 | # 2. the url of the "off" image
|
---|
96 | # 3. the url of the "on" image
|
---|
97 | # 4. the name of the image (must be unique)
|
---|
98 | # 5. image alt text
|
---|
99 | _gsimage_ {<a href="_1_" onMouseover="roll('_4_',1);" onMouseOut="roll('_4_',0);"><img
|
---|
100 | name="_4_" src="_2_" onLoad="gbutton(this,'_3_');" border=0 alt="_5_"></a>}
|
---|
101 |
|
---|
102 | #######################################################################
|
---|
103 | # java images/scripts
|
---|
104 | #######################################################################
|
---|
105 |
|
---|
106 | # the _javalinks_ macros are the flashy image links at the top right of
|
---|
107 | # the page.
|
---|
108 |
|
---|
109 | _javalinks_ {}
|
---|
110 |
|
---|
111 |
|
---|
112 | #######################################################################
|
---|
113 | # general web macros
|
---|
114 | #######################################################################
|
---|
115 |
|
---|
116 | _mailaddr_ {[email protected]}
|
---|
117 |
|
---|
118 | _gsdltop_ {_top}
|
---|
119 |
|
---|
120 | #######################################################################
|
---|
121 | # http macros
|
---|
122 | #
|
---|
123 | # These contain the url without any quotes
|
---|
124 | #######################################################################
|
---|
125 |
|
---|
126 | _httpcollimg_ {_httpcollection_/index/assoc}
|
---|
127 | _httpdocimg_ {_httpcollimg_/_thisOID_}
|
---|
128 |
|
---|
129 | _httpcollection_ {_httpprefix_/collect/_cgiargc_}
|
---|
130 |
|
---|
131 | _httppagex_ {_gwcgi_?e=_compressedoptions_&a=p&p=_1_}
|
---|
132 | _httppageabout_ {_httppagex_(about)}
|
---|
133 | _httppagehome_ {_httppageabout_}
|
---|
134 |
|
---|
135 | _httpcurrentdocument_ {_gwcgi_?e=_compressedoptions_&cl=_cgiargcl_&d=_cgiargd_}
|
---|
136 | _httpquery_ {_gwcgi_?e=_compressedoptions_&a=q}
|
---|
137 | _httpBrowse_ {_gwcgi_?e=_compressedoptions_&a=br}
|
---|
138 |
|
---|
139 | # _httpdoc_ is the same as _httpdocument_ - _httpdocument_
|
---|
140 | # may occasionally be altered by the server however
|
---|
141 | _httpdocument_ {_gwcgi_?e=_compressedoptions_&a=d}
|
---|
142 | _httpdoc_ {_gwcgi_?e=_compressedoptions_&a=d}
|
---|
143 |
|
---|
144 | _httpextlink_ {_gwcgi_?e=_compressedoptions_&a=extlink}
|
---|
145 | _httpbuild_ {_gwcgi_?e=_compressedoptions_&a=bc}
|
---|
146 |
|
---|
147 | _httpiconchalk_ {_httpcollection_/images/bottombgnd.gif}
|
---|
148 | _widthchalk_ {2000}
|
---|
149 | _heightchalk_ {10}
|
---|
150 |
|
---|
151 | _httpicondivb_ {_httpimg_/divb.gif}
|
---|
152 | _widthdivb_ {_pagewidth_}
|
---|
153 | _heightdivb_ {17}
|
---|
154 |
|
---|
155 | _httpicongsdl_ {_httpimg_/gsdl.gif}
|
---|
156 | _widthgsdl_ {140}
|
---|
157 | _heightgsdl_ {77}
|
---|
158 |
|
---|
159 | _httpiconitext_ {_httpimg_/itext.gif}
|
---|
160 | _widthitext_ {16}
|
---|
161 | _heightitext_ {21}
|
---|
162 |
|
---|
163 | _httpiconibtext_ {_httpimg_/ibtext.gif}
|
---|
164 | _widthibtext_ {16}
|
---|
165 | _heightibtext_ {21}
|
---|
166 |
|
---|
167 | _httpiconless_ {_httpimg_/less.gif}
|
---|
168 | _widthless_ {30}
|
---|
169 | _heightless_ {16}
|
---|
170 |
|
---|
171 | _httpiconmore_ {_httpimg_/more.gif}
|
---|
172 | _widthmore_ {30}
|
---|
173 | _heightmore_ {16}
|
---|
174 |
|
---|
175 | _httpiconspacer_ {_httpimg_/spacer.gif}
|
---|
176 | _widthspacer_ {42}
|
---|
177 | _heightspacer_ {4}
|
---|
178 |
|
---|
179 | _httpicontabspace_ {_httpimg_/tabspace.gif}
|
---|
180 | _widthtabspace_ {23}
|
---|
181 | _heighttabspace_ {1}
|
---|
182 |
|
---|
183 | _httpicontspace_ {_httpimg_/tspace.gif}
|
---|
184 | _heighttspace_ {17}
|
---|
185 |
|
---|
186 | _httpiconhhome_ {_httpimg_/h\_home.gif}
|
---|
187 | _widthhhome_ {200}
|
---|
188 | _heighthhome_ {57}
|
---|
189 |
|
---|
190 | _httpiconarrrght_ {_httpimg_/arrrght.gif}
|
---|
191 | _widtharrrght_ {23}
|
---|
192 | _heightarrrght_ {15}
|
---|
193 |
|
---|
194 | _httpiconopenbook_ {_httpimg_/openbook.gif}
|
---|
195 | _widthopenbook_ {28}
|
---|
196 | _heightopenbook_ {23}
|
---|
197 |
|
---|
198 | _httpiconaopenbk_ {_httpimg_/aopenbk.gif}
|
---|
199 | _widthaopenbk_ {28}
|
---|
200 | _heightaopenbk_ {23}
|
---|
201 |
|
---|
202 | _httpiconopenfldr_ {_httpimg_/openfldr.gif}
|
---|
203 | _widthopenfldr_ {23}
|
---|
204 | _heightopenfldr_ {15}
|
---|
205 |
|
---|
206 | _httpiconaopenfdr_ {_httpimg_/aopenfdr.gif}
|
---|
207 | _widthaopenfdr_ {23}
|
---|
208 | _heightaopenfdr_ {15}
|
---|
209 |
|
---|
210 | _httpiconbook_ {_httpimg_/book.gif}
|
---|
211 | _widthbook_ {18}
|
---|
212 | _heightbook_ {11}
|
---|
213 |
|
---|
214 | _httpiconabook_ {_httpimg_/abook.gif}
|
---|
215 | _widthabook_ {18}
|
---|
216 | _heightabook_ {11}
|
---|
217 |
|
---|
218 | _httpiconbshelf_ {_httpimg_/bshelf.gif}
|
---|
219 | _widthbshelf_ {20}
|
---|
220 | _heightbshelf_ {16}
|
---|
221 |
|
---|
222 | _httpiconabshelf_ {_httpimg_/abshelf.gif}
|
---|
223 | _widthabshelf_ {20}
|
---|
224 | _heightabshelf_ {16}
|
---|
225 |
|
---|
226 | _httpiconsmtext_ {_httpimg_/smtext.gif}
|
---|
227 | _widthsmtext_ {23}
|
---|
228 | _heightsmtext_ {15}
|
---|
229 |
|
---|
230 | _httpiconasmtext_ {_httpimg_/asmtext.gif}
|
---|
231 | _widthasmtext_ {23}
|
---|
232 | _heightasmtext_ {15}
|
---|
233 |
|
---|
234 | _httpiconclsdfldr_ {_httpimg_/clsdfldr.gif}
|
---|
235 | _widthclsdfldr_ {23}
|
---|
236 | _heightclsdfldr_ {15}
|
---|
237 |
|
---|
238 | _httpiconaclsdfdr_ {_httpimg_/aclsdfdr.gif}
|
---|
239 | _widthaclsdfdr_ {23}
|
---|
240 | _heightaclsdfdr_ {15}
|
---|
241 |
|
---|
242 | _httpiconipdf_ {_httpimg_/ipdf.gif}
|
---|
243 | _widthipdf_ {26}
|
---|
244 | _heightipdf_ {26}
|
---|
245 |
|
---|
246 | #######################################################################
|
---|
247 | # Icons
|
---|
248 | #
|
---|
249 | # Must not include links (so they can be used as links). If you want to
|
---|
250 | # include links use _image
|
---|
251 | #######################################################################
|
---|
252 |
|
---|
253 | _iconnext_{ >}
|
---|
254 |
|
---|
255 | _iconprev_{< }
|
---|
256 |
|
---|
257 | _icontabsearchgreen_ {<img
|
---|
258 | src="_httpicontsrchgr_" width=_widthtsrchx_ border=0>}
|
---|
259 |
|
---|
260 | _icontabTitlegreen_ {<img
|
---|
261 | src="_httpiconttitlgr_" width=_widthttitlx_ border=0>}
|
---|
262 |
|
---|
263 | _iconblankbar_ {<center><img src="_httpcollection_/images/bar.gif"></center>}
|
---|
264 |
|
---|
265 | _icontext_ {<img border=0 align=absmiddle src="_httpiconitext_" width=_widthitext_ height=_heightitext_ alt="_texticontext_">}
|
---|
266 |
|
---|
267 | _iconblanktext_ {<img border=0 align=absmiddle src="_httpiconibtext_" width=_widthibtext_ height=_heightibtext_>}
|
---|
268 |
|
---|
269 | _iconclosedbook_ {<img src="_httpiconbook_" width=_widthbook_ height=_heightbook_ border=0 alt="_texticonclosedbook_">}
|
---|
270 |
|
---|
271 | _icondoc_ {<img border=0 align=absmiddle src="_httpiconimsword_" width=_widthimsword_ height=_heightimsword_ alt="_texticonmsword_">}
|
---|
272 |
|
---|
273 | _iconpdf_ {<img border=0 align=absmiddle src="_httpiconipdf_" width=_widthipdf_ height=_heightipdf_ alt="_texticonpdf_">}
|
---|
274 |
|
---|
275 | #######################################################################
|
---|
276 | # Image links
|
---|
277 | #
|
---|
278 | # These might include a link (not like an _icon_
|
---|
279 | #######################################################################
|
---|
280 |
|
---|
281 | _imagehome_ {_If_("_cgiargu_" ne "1",_imagehome2_)}
|
---|
282 | _imagehome2_ {_gsimage_(_httppagehome_,_httpiconchomeof_,_httpiconchomeon_,homer,_textimagehome_)}
|
---|