1 | package preferences
|
---|
2 |
|
---|
3 |
|
---|
4 | #######################################################################
|
---|
5 | # java images/scripts
|
---|
6 | #######################################################################
|
---|
7 |
|
---|
8 | # the _javalinks_ macros are the flashy image links at the top right of
|
---|
9 | # the page. this is overridden here as we don't want a 'preferences'
|
---|
10 | # link on this page
|
---|
11 |
|
---|
12 | _javalinks_ {_imagehome__imagehelp_}
|
---|
13 | _javalinks_ [v=1] {
|
---|
14 | _imagehome_<br>
|
---|
15 | _imagehelp_<br>
|
---|
16 | }
|
---|
17 |
|
---|
18 |
|
---|
19 | #######################################################################
|
---|
20 | # scripts
|
---|
21 | # note that changing either the "m" or the "o" argument
|
---|
22 | # from the preferences page necessitates reseting the "r"
|
---|
23 | # argument to 1
|
---|
24 | #######################################################################
|
---|
25 |
|
---|
26 | _pagescriptextra_ {
|
---|
27 | // preferences scripts generated from \_preferences:pagescriptextra\_
|
---|
28 |
|
---|
29 | savedhrefs = new Object();
|
---|
30 |
|
---|
31 | argk = "";
|
---|
32 | args = "";
|
---|
33 | argm = "";
|
---|
34 | argo = "";
|
---|
35 | argb = "";
|
---|
36 |
|
---|
37 | function initialize () \{
|
---|
38 | for (i = 0; i < document.links.length; i++)
|
---|
39 | savedhrefs[i] = document.links[i].href;
|
---|
40 | \}
|
---|
41 |
|
---|
42 | function updatehrefs () \{
|
---|
43 | for (i = 0; i < document.links.length; i++)
|
---|
44 | document.links[i].href = savedhrefs[i] + argk + args + argm + argo + argb;
|
---|
45 | \}
|
---|
46 |
|
---|
47 | function updatek (value) \{
|
---|
48 | if (value != _cgiargk_) argk = "&k=" + value;
|
---|
49 | else argk = "";
|
---|
50 | updatehrefs();
|
---|
51 | \}
|
---|
52 |
|
---|
53 | function updates (value) \{
|
---|
54 | if (value != _cgiargs_) args = "&s=" + value;
|
---|
55 | else args = "";
|
---|
56 | updatehrefs();
|
---|
57 | \}
|
---|
58 |
|
---|
59 | function updatem () \{
|
---|
60 | value = document.PrefForm.m.options[document.PrefForm.m.selectedIndex].value;
|
---|
61 | if (value != _cgiargm_) argm = "&r=1&m=" + value;
|
---|
62 | else argm = "";
|
---|
63 | updatehrefs();
|
---|
64 | \}
|
---|
65 |
|
---|
66 | function updateo () \{
|
---|
67 | value = document.PrefForm.o.options[document.PrefForm.o.selectedIndex].value;
|
---|
68 | if (value != _cgiargo_) argo = "&r=1&o=" + value;
|
---|
69 | else argo = "";
|
---|
70 | updatehrefs();
|
---|
71 | \}
|
---|
72 |
|
---|
73 | function updateb (value) \{
|
---|
74 | if (value != _cgiargb_) argb = "&b=" + value;
|
---|
75 | else argb = "";
|
---|
76 | updatehrefs();
|
---|
77 | \}
|
---|
78 |
|
---|
79 | function updatel () \{
|
---|
80 | value = document.PrefForm.l.options[document.PrefForm.l.selectedIndex].value;
|
---|
81 | location.href = location.href + argk + args + argm + argo + argb + "&l=" + value;
|
---|
82 | \}
|
---|
83 |
|
---|
84 | function updatev () \{
|
---|
85 | value = document.PrefForm.v.options[document.PrefForm.v.selectedIndex].value;
|
---|
86 | location.href = location.href + argk + args + argm + argo + argb + "&v=" + value;
|
---|
87 | \}
|
---|
88 |
|
---|
89 | function updatew () \{
|
---|
90 | value = document.PrefForm.w.options[document.PrefForm.w.selectedIndex].value;
|
---|
91 | location.href = location.href + argk + args + argm + argo + argb + "&nw=" + value;
|
---|
92 | \}
|
---|
93 |
|
---|
94 | }
|
---|
95 |
|
---|
96 | #######################################################################
|
---|
97 | # headers
|
---|
98 | # these are overridden so we can put an onLoad event handler
|
---|
99 | # in the <body> tag of this page
|
---|
100 | #######################################################################
|
---|
101 |
|
---|
102 |
|
---|
103 | _header_ {_cgihead_
|
---|
104 | _htmlhead_(background="_httpiconchalk_" onLoad="initialize();")_startspacer__pagebanner_
|
---|
105 | }
|
---|
106 |
|
---|
107 | # this declaration ends up being the same as style=restrict, never mind
|
---|
108 | _header_[v=1] {_cgihead_
|
---|
109 | _htmlhead_(onLoad="initialize();")_pagebanner_
|
---|
110 | }
|
---|
111 |
|
---|
112 |
|
---|
113 | #######################################################################
|
---|
114 | # page content
|
---|
115 | #######################################################################
|
---|
116 |
|
---|
117 | _pagetitle_ {_collectionname_: _textpreferences_}
|
---|
118 | _imagethispage_ {_iconthispage_}
|
---|
119 |
|
---|
120 | _caseoption_ {
|
---|
121 | <input type=radio name=k value=1 onClick="updatek(1);"
|
---|
122 | _If_(_cgiargk_, checked)>_textignorecase_<br>
|
---|
123 | <input type=radio name=k value=0 onClick="updatek(0);"
|
---|
124 | _If_(_cgiargk_,, checked)>_textmatchcase_
|
---|
125 | }
|
---|
126 |
|
---|
127 | _stemoption_ {
|
---|
128 | <input type=radio name=s value=1 onClick="updates(1);"
|
---|
129 | _If_(_cgiargs_, checked)>_textstem_<br>
|
---|
130 | <input type=radio name=s value=0 onClick="updates(0);"
|
---|
131 | _If_(_cgiargs_,, checked)>_textnostem_
|
---|
132 | }
|
---|
133 |
|
---|
134 | _maxdocoption_ {
|
---|
135 | <select name="m" onChange="updatem();">
|
---|
136 | <option value="50"_If_("_cgiargm_" eq "50", selected)>50
|
---|
137 | <option value="100"_If_("_cgiargm_" eq "100", selected)>100
|
---|
138 | <option value="200"_If_("_cgiargm_" eq "200", selected)>200
|
---|
139 | </select>
|
---|
140 | }
|
---|
141 |
|
---|
142 | _hitsperpageoption_ {
|
---|
143 | <select name="o" onChange="updateo();">
|
---|
144 | <option value="10"_If_("_cgiargo_" eq "10", selected)>10
|
---|
145 | <option value="20"_If_("_cgiargo_" eq "20", selected)>20
|
---|
146 | <option value="50"_If_("_cgiargo_" eq "50", selected)>50
|
---|
147 | <option value="100")_If_("_cgiargo_" eq "100", selected)>all
|
---|
148 | </select>
|
---|
149 | }
|
---|
150 |
|
---|
151 | _modeoption_ {
|
---|
152 | <input type=radio name=b value=0 onClick="updateb(0);"
|
---|
153 | _If_(_cgiargb_,, checked)>_textsimplemode_<br>
|
---|
154 | <input type=radio name=b value=1 onClick="updateb(1);"
|
---|
155 | _If_(_cgiargb_, checked)>_textadvancedmode_
|
---|
156 | }
|
---|
157 |
|
---|
158 | _languageoption_ {
|
---|
159 | _textlanguage_
|
---|
160 | <select name="l" onChange="updatel();">
|
---|
161 | <option value="en"_If_("_cgiargl_",, selected)_If_("_cgiargl_" eq "en", selected)>English
|
---|
162 | <option value="mi"_If_("_cgiargl_" eq "mi", selected)>Mäori
|
---|
163 | <option value="zh"_If_("_cgiargl_" eq "zh", selected)>Chinese
|
---|
164 | </select>
|
---|
165 | }
|
---|
166 |
|
---|
167 | _encodingoption_ {
|
---|
168 | _textencoding_
|
---|
169 | <select name="w" onChange="updatew();">
|
---|
170 | <option value="w" _If_("_cgiargw_" eq "w",selected)>Western (ISO-8859-1)
|
---|
171 | <option value="u" _If_("_cgiargw_" eq "u",selected)>UTF-8
|
---|
172 | <option value="g" _If_("_cgiargw_" eq "g",selected)>GBK
|
---|
173 | </select>
|
---|
174 | }
|
---|
175 |
|
---|
176 | _formatoption_ {
|
---|
177 | _textformat_
|
---|
178 | <select name="v" onChange="updatev();">
|
---|
179 | <option value="0"_If_("_cgiargv_" eq "0", selected)>_textgraphical_
|
---|
180 | <option value="1"_If_("_cgiargv_" eq "1", selected)>_texttextual_
|
---|
181 | </select>
|
---|
182 | }
|
---|
183 |
|
---|
184 | _content_ {
|
---|
185 | <center>
|
---|
186 | _navigationbar_
|
---|
187 | </center>
|
---|
188 | <blockquote>
|
---|
189 |
|
---|
190 | <form name=PrefForm method=get action="_gwcgi_">
|
---|
191 |
|
---|
192 | <input type="hidden" name="e" value="_compressedoptions_">
|
---|
193 |
|
---|
194 | <p>_caseoption_
|
---|
195 |
|
---|
196 | <p>_stemoption_
|
---|
197 |
|
---|
198 | <p>
|
---|
199 | _textprefop_
|
---|
200 |
|
---|
201 | <p>
|
---|
202 | _modeoption_
|
---|
203 |
|
---|
204 | <p>
|
---|
205 | _languageoption_
|
---|
206 |
|
---|
207 | <p>
|
---|
208 | _encodingoption_
|
---|
209 |
|
---|
210 | <p>
|
---|
211 | _formatoption_
|
---|
212 |
|
---|
213 | </blockquote>
|
---|
214 | </form>
|
---|
215 | }
|
---|
216 |
|
---|
217 |
|
---|
218 | #######################################################################
|
---|
219 | # https
|
---|
220 | #######################################################################
|
---|
221 |
|
---|
222 | _httpiconhpref_ {_httpimg_/h\_pref.gif}
|
---|
223 | _httpiconhpref_ [l=mi] {_httpimg_/mh\_pref.gif}
|
---|
224 | _widthhpref_ {200}
|
---|
225 | _widthhpref_ [l=mi] {220}
|
---|
226 | _heighthpref_ {57}
|
---|
227 |
|
---|
228 |
|
---|
229 | #######################################################################
|
---|
230 | # icons
|
---|
231 | #######################################################################
|
---|
232 |
|
---|
233 | _iconthispage_ {<img src="_httpiconhpref_" alt="_textpreferences_" width="_widthhpref_" height="_heighthpref_">}
|
---|
234 | _iconthispage_ [l=mi] {<img src="_httpimg_/mh\_pref.gif" alt="" width="220" height="57">}
|
---|
235 |
|
---|
236 |
|
---|
237 | #######################################################################
|
---|
238 | # english macros
|
---|
239 | #######################################################################
|
---|
240 |
|
---|
241 | _textpreferences_ {Preferences}
|
---|
242 | _textignorecase_ { ignore case differences}
|
---|
243 | _textmatchcase_ { upper/lower case must match}
|
---|
244 | _textstem_ { ignore word endings}
|
---|
245 | _textnostem_ { whole word must match}
|
---|
246 | _textprefop_ {Return up to _maxdocoption_ hits with _hitsperpageoption_ hits per page.}
|
---|
247 | _textlanguage_ {Interface language: }
|
---|
248 | _textencoding_ {Encoding: }
|
---|
249 | _textformat_ {Interface format: }
|
---|
250 | _textsimplemode_ {simple query mode}
|
---|
251 | _textadvancedmode_ {advanced query mode (allows boolean searching using !, &, |, and parenthesis)}
|
---|
252 | _textgraphical_ {Graphical}
|
---|
253 | _texttextual_ {Textual}
|
---|
254 |
|
---|
255 |
|
---|
256 | #######################################################################
|
---|
257 | # maori macros
|
---|
258 | #######################################################################
|
---|
259 |
|
---|
260 | _textpreferences_ [l=mi] {Whiriwhiringa}
|
---|
261 | _textignorecase_ [l=mi] { hei aha te pü matua me te pü iti}
|
---|
262 | _textmatchcase_ [l=mi] { me tika te pü matua me te pü iti}
|
---|
263 | _textstem_ [l=mi] { hei aha te kümuri}
|
---|
264 | _textnostem_ [l=mi] { me tika te kümuri}
|
---|
265 | _textprefop_ [l=mi] {Whakahokia mai te _maxdocoption_ kupu, ä, kia _hitsperpageoption_ kupu ki ia whärangi.}
|
---|
266 | _textlanguage_ [l=mi] {Reo: }
|
---|
267 | _textencoding_ [l=mi] {Whakatakotoranga pü: }
|
---|
268 | _textformat_ [l=mi] {Whakatakotoranga whärangi: }
|
---|
269 | _textsimplemode_ [l=mi] {te rapu whäiti}
|
---|
270 | _textadvancedmode_ [l=mi] {te rapu whänui (ka taea te whakamahia ngä pü boolean,
|
---|
271 | përä i te !, &, |, me te "()" hoki)}
|
---|
272 | _textgraphical_ [l=mi] {Whakaahua}
|
---|
273 | _texttextual_ [l=mi] {Käore he whakaahua}
|
---|
274 |
|
---|
275 |
|
---|
276 |
|
---|
277 |
|
---|