source: trunk/protemix/macros/base.dm@ 3207

Last change on this file since 3207 was 3207, checked in by sjboddie, 22 years ago

* empty log message *

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 7.5 KB
Line 
1#######################################################################
2# GLOBAL MACROS
3#######################################################################
4
5package 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_ {
70var loaded = new Array();
71function 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
82function 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
100name="_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_httppagesubdocs_ {_httppagex_(subdocs)}
127
128_httpcollimg_ {_httpcollection_/index/assoc}
129_httpdocimg_ {_httpcollimg_/_thisOID_}
130
131_httpcollection_ {_httpprefix_/collect/_cgiargc_}
132
133_httppagex_ {_gwcgi_?e=_compressedoptions_&a=p&p=_1_}
134_httppageabout_ {_httppagex_(about)}
135_httppagehome_ {_httppageabout_}
136
137_httpcurrentdocument_ {_gwcgi_?e=_compressedoptions_&cl=_cgiargcl_&d=_cgiargd_}
138_httpquery_ {_gwcgi_?e=_compressedoptions_&a=q}
139_httpBrowse_ {_gwcgi_?e=_compressedoptions_&a=br}
140
141# _httpdoc_ is the same as _httpdocument_ - _httpdocument_
142# may occasionally be altered by the server however
143_httpdocument_ {_gwcgi_?e=_compressedoptions_&a=d}
144_httpdoc_ {_gwcgi_?e=_compressedoptions_&a=d}
145
146_httpextlink_ {_gwcgi_?e=_compressedoptions_&a=extlink}
147_httpbuild_ {_gwcgi_?e=_compressedoptions_&a=bc}
148
149_httpiconchalk_ {_httpcollection_/images/bg.gif}
150_widthchalk_ {2000}
151_heightchalk_ {10}
152
153_httpicondivb_ {_httpimg_/divb.gif}
154_widthdivb_ {_pagewidth_}
155_heightdivb_ {17}
156
157_httpicongsdl_ {_httpimg_/gsdl.gif}
158_widthgsdl_ {140}
159_heightgsdl_ {77}
160
161_httpiconitext_ {_httpimg_/itext.gif}
162_widthitext_ {16}
163_heightitext_ {21}
164
165_httpiconibtext_ {_httpimg_/ibtext.gif}
166_widthibtext_ {16}
167_heightibtext_ {21}
168
169_httpiconless_ {_httpimg_/less.gif}
170_widthless_ {30}
171_heightless_ {16}
172
173_httpiconmore_ {_httpimg_/more.gif}
174_widthmore_ {30}
175_heightmore_ {16}
176
177_httpiconspacer_ {_httpimg_/spacer.gif}
178_widthspacer_ {42}
179_heightspacer_ {4}
180
181_httpicontabspace_ {_httpimg_/tabspace.gif}
182_widthtabspace_ {23}
183_heighttabspace_ {1}
184
185_httpicontspace_ {_httpimg_/tspace.gif}
186_heighttspace_ {17}
187
188_httpiconhhome_ {_httpimg_/h\_home.gif}
189_widthhhome_ {200}
190_heighthhome_ {57}
191
192_httpiconarrrght_ {_httpimg_/arrrght.gif}
193_widtharrrght_ {23}
194_heightarrrght_ {15}
195
196_httpiconopenbook_ {_httpimg_/openbook.gif}
197_widthopenbook_ {28}
198_heightopenbook_ {23}
199
200_httpiconaopenbk_ {_httpimg_/aopenbk.gif}
201_widthaopenbk_ {28}
202_heightaopenbk_ {23}
203
204_httpiconopenfldr_ {_httpimg_/openfldr.gif}
205_widthopenfldr_ {23}
206_heightopenfldr_ {15}
207
208_httpiconaopenfdr_ {_httpimg_/aopenfdr.gif}
209_widthaopenfdr_ {23}
210_heightaopenfdr_ {15}
211
212_httpiconbook_ {_httpimg_/book.gif}
213_widthbook_ {18}
214_heightbook_ {11}
215
216_httpiconabook_ {_httpimg_/abook.gif}
217_widthabook_ {18}
218_heightabook_ {11}
219
220_httpiconbshelf_ {_httpimg_/bshelf.gif}
221_widthbshelf_ {20}
222_heightbshelf_ {16}
223
224_httpiconabshelf_ {_httpimg_/abshelf.gif}
225_widthabshelf_ {20}
226_heightabshelf_ {16}
227
228_httpiconsmtext_ {_httpimg_/smtext.gif}
229_widthsmtext_ {23}
230_heightsmtext_ {15}
231
232_httpiconasmtext_ {_httpimg_/asmtext.gif}
233_widthasmtext_ {23}
234_heightasmtext_ {15}
235
236_httpiconclsdfldr_ {_httpimg_/clsdfldr.gif}
237_widthclsdfldr_ {23}
238_heightclsdfldr_ {15}
239
240_httpiconaclsdfdr_ {_httpimg_/aclsdfdr.gif}
241_widthaclsdfdr_ {23}
242_heightaclsdfdr_ {15}
243
244_httpiconipdf_ {_httpimg_/ipdf.gif}
245_widthipdf_ {26}
246_heightipdf_ {26}
247
248#######################################################################
249# Icons
250#
251# Must not include links (so they can be used as links). If you want to
252# include links use _image
253#######################################################################
254
255_iconnext_{&nbsp;&gt;}
256
257_iconprev_{&lt;&nbsp;}
258
259_icontabsearchgreen_ {<img
260src="_httpicontsrchgr_" width=_widthtsrchx_ border=0>}
261
262_icontabTitlegreen_ {<img
263src="_httpiconttitlgr_" width=_widthttitlx_ border=0>}
264
265_iconblankbar_ {<center><img src="_httpcollection_/images/bar2.gif"></center>}
266
267_icontext_ {<img border=0 align=absmiddle src="_httpiconitext_" width=_widthitext_ height=_heightitext_ alt="_texticontext_">}
268
269_iconblanktext_ {<img border=0 align=absmiddle src="_httpiconibtext_" width=_widthibtext_ height=_heightibtext_>}
270
271_iconclosedbook_ {<img src="_httpiconbook_" width=_widthbook_ height=_heightbook_ border=0 alt="_texticonclosedbook_">}
272
273_icondoc_ {doc}
274
275_iconpdf_ {pdf}
276
277#######################################################################
278# Image links
279#
280# These might include a link (not like an _icon_
281#######################################################################
282
283_imagehome_ {_If_("_cgiargu_" ne "1",_imagehome2_)}
284_imagehome2_ {_gsimage_(_httppagehome_,_httpiconchomeof_,_httpiconchomeon_,homer,_textimagehome_)}
Note: See TracBrowser for help on using the repository browser.