source: trunk/gsdl/macros/query.dm@ 13433

Last change on this file since 13433 was 13433, checked in by kjdon, 17 years ago

fixed up some tr-td tags in the wrong order

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 20.0 KB
Line 
1# this file must be UTF-8 encoded
2package query
3
4
5#######################################################################
6# Macros whose values are set from within the server at runtime. These
7# are here only for reference and to set default values if required.
8#######################################################################
9
10_quotedquery_ {}
11_freqmsg_ {}
12_stopwordsmsg_ {}
13_resultline_ {}
14_thisfirst_ {}
15_thislast_ {}
16_nextfirst_ {}
17_nextlast_ {}
18_prevfirst_ {}
19_prevlast_ {}
20_searchhistorylist_ {}
21#_histvalue0_ to _histvalue19_
22_advformlist_ {}
23_regformlist_ {}
24#_fqfselection_ {}
25
26
27#######################################################################
28# icons
29#######################################################################
30
31_queryresultsbar_ {
32<div class="divbar">
33<p class="navbar">_texthresults_</p>
34</div>
35}
36
37_searchhistorybar_ {
38<div class="divbar">
39<p class="navbar">_texticonsearchhistorybar_</p>
40</div>
41}
42
43
44# _iconnext_ and _iconprev_ are overridden in this package as we
45# don't want alt text here
46_iconnext_{<img src="_httpiconmore_" width="_widthmore_" height="_heightmore_" border="0" align="top">}
47_iconnext_ [v=1] {}
48_iconprev_{<img src="_httpiconless_" width="_widthless_" height="_heightless_" border="0" align="top">}
49_iconprev_ [v=1] {}
50
51# the small squares for search history
52## " " ## handmade ## mstds ##
53_httpiconmstdsqrof_ {_httpimg_/mstdsof.gif}
54_httpiconmstdsqron_ {_httpimg_/mstdson.gif}
55_widthmstdsqrx_ {13}
56_heightmstdsqrx_ {13}
57
58#######################################################################
59# images
60#######################################################################
61
62# _imagethispage_ set in nav_css/nav_ns4 macro files
63
64#the buttons for the search history entries
65# takes one arg - the entry number (0-num entries)
66_imagehistbutton_ {<a href="_httpquery_" onMouseover="roll('histbutton_1_',1);" onMouseOut="roll('histbutton_1_',0);" onClick="inputQuery(histvalue_1_); return false;"><img name="histbutton_1_" src="_httpiconmstdsqrof_" onLoad="gbutton(this,'_httpiconmstdsqron_');" border="0" alt="_textusequery_" title="_textusequery_"></a>}
67
68
69#######################################################################
70# scripts (and some macros for the scripts)
71#######################################################################
72
73_pagescriptextra_ {_If_("_cgiargqt_" eq "1", _formpagescriptextra_, _selectpagescriptextra_)
74_If_("_cgiarghd_" ne "0",_historypagescriptextra_) }
75
76_selectpagescriptextra_{_If_("_cgiargqto_" eq "2", _formpagescriptextra_,_dummypagescriptextra_)}
77_dummypagescriptextra_{function initialize() \{
78\} }
79_formpagescriptextra_ {
80// query scripts generated by \_query:pagescriptextra\_
81
82_standardfunctions_
83_formfunctions_
84_searchfunctions_
85
86function getsearchargs () \{
87
88 var args="";
89 args = "&fqa=0&fqv="+argfqv+"&fqf="+argfqf;
90 _If_(_cgiargb_,args += "&fqk="+argfqk+"&fqs="+argfqs+"&fqc="+argfqc;)
91
92 return args;
93\}
94
95
96
97function getqueryargs () \{
98 return "&fqa=1"+"&q="+argq+"&fqv="+argfqv+"&fqf="+argfqf+
99 "&fqk="+argfqk+"&fqs="+argfqs+"&fqc="+argfqc ;
100\}
101
102}
103
104_historypagescriptextra_{
105
106var histvalue0='_histvalue0_';
107var histvalue1='_histvalue1_';
108var histvalue2='_histvalue2_';
109var histvalue3='_histvalue3_';
110var histvalue4='_histvalue4_';
111var histvalue5='_histvalue5_';
112var histvalue6='_histvalue6_';
113var histvalue7='_histvalue7_';
114var histvalue8='_histvalue8_';
115var histvalue9='_histvalue9_';
116var histvalue10='_histvalue10_';
117var histvalue11='_histvalue11_';
118var histvalue12='_histvalue12_';
119var histvalue13='_histvalue13_';
120var histvalue14='_histvalue14_';
121var histvalue15='_histvalue15_';
122var histvalue16='_histvalue16_';
123var histvalue17='_histvalue17_';
124var histvalue18='_histvalue18_';
125var histvalue19='_histvalue19_';
126
127function inputQuery(value) \{
128 if ("_cgiargqt_" == "0") \{ // text search
129 document.QueryForm.q.value += " "+value;
130 document.QueryForm.q.focus();
131 \}
132 else \{
133 if ("_cgiargb_" == "1") \{ // advanced query
134 document.QueryForm.q.value += " "+value;
135 document.QueryForm.q.focus();
136 updateq();
137 \}
138 else \{ // simple form search
139 // do something here, what??
140 \}
141 \}
142\}
143
144}
145
146_standardfunctions_{
147
148 function getstdargs() \{
149
150 stdarg = "";
151 _If_(_gselection_,_getgarg_)
152 _If_(_jselection_,_getjarg_)
153 _If_(_nselection_,_getnarg_)
154 _If_(_sfselection_,_getsfarg_)
155 if (document.QueryForm.t != null) \{
156 value = document.QueryForm.t.options[document.QueryForm.t.selectedIndex].value;
157 if (value != "_cgiargt_") stdarg += "&t="+value;
158 \}
159 stdarg += "&r=1&hs=1";
160 return stdarg;
161 \}
162
163}
164
165_getgarg_{
166 if (document.QueryForm.g!= null) \{
167 value = document.QueryForm.g.options[document.QueryForm.g.selectedIndex].value;
168 if (value != "_cgiargg_") stdarg += "&g="+value;
169 \}
170}
171
172_getjarg_{
173 value = document.QueryForm.j.options[document.QueryForm.j.selectedIndex].value;
174 if (value != "_cgiargj_") stdarg += "&j="+value;
175}
176
177_getnarg_{
178 value = document.QueryForm.n.options[document.QueryForm.n.selectedIndex].value;
179 if (value != "_cgiargn_") stdarg += "&n="+value;
180}
181
182_getsfarg_{
183 value = document.QueryForm.sf.options[document.QueryForm.sf.selectedIndex].value;
184 if (value != "_cgiargsf_") stdarg += "&sf="+value;
185}
186
187_formfunctions_{
188
189argfqf="_cgiargfqf_";
190argfqv="_cgiargfqv_";
191argfqk="_cgiargfqk_";
192argfqs="_cgiargfqs_";
193argfqc="_cgiargfqc_";
194argq = "";
195
196function initialize () \{
197
198 if (document.QueryForm.fqf != null) \{initfqf(); \}
199 if (document.QueryForm.fqv != null) \{initfqv(); \}
200 if (document.QueryForm.fqs != null) \{initfqs(); \}
201 if (document.QueryForm.fqk != null) \{initfqk(); \}
202 if (document.QueryForm.fqc != null) \{initfqc(); \}
203 if (document.QueryForm.q != null) \{initq(); \}
204\}
205
206// makes a form submit itself when enter is pressed in a text field
207function entersubmit(event) \{
208
209 if (window.event && window.event.keyCode == 13) \{
210 beginSearch();
211 \} else \{
212 if (event && event.which == 13) \{
213 beginSearch();
214 \} else \{
215 return true;
216 \}
217 \}
218\}
219
220
221// fqf - the field selection box
222function initfqf() \{
223 var i;
224 fqf = argfqf.split(",");
225 num_opts = document.QueryForm.fqf[0].options.length; // assumes all have the same options
226 for (i=0; i<fqf.length && i<document.QueryForm.fqf.length; i++) \{
227 if (fqf[i] != "")\{
228 for (j=0;j<num_opts;j++) \{
229 if (fqf[i]== document.QueryForm.fqf[i].options[j].value) \{
230 document.QueryForm.fqf[i].options[j].selected = true;
231 break;
232 \}
233 \}
234 \}
235 \}
236 if (fqf.length < document.QueryForm.fqf.length) \{ // initialize remaining ones
237 for (i=fqf.length;i<document.QueryForm.fqf.length;i++) \{
238 var z=i;
239 while (z >= num_opts) \{
240 z = z-(num_opts);
241 \}
242 document.QueryForm.fqf[i].options[z].selected = true;
243
244 \}
245 \}
246 updatefqf();
247
248\}
249
250function updatefqf() \{
251
252 var i;
253 argfqf = "";
254 var j = document.QueryForm.fqf[0].selectedIndex;
255 argfqf += document.QueryForm.fqf[0].options[j].value;
256 for (i=1; i<document.QueryForm.fqf.length;i++) \{
257 j = document.QueryForm.fqf[i].selectedIndex;
258 argfqf += "," + document.QueryForm.fqf[i].options[j].value;
259 \}
260
261\}
262
263
264function clearfqf() \{
265 var i;
266 for (i=0;i<document.QueryForm.fqf.length;i++) \{
267 var z = i;
268 if (i >= document.QueryForm.fqf[i].options.length) z = z-document.QueryForm.fqf[i].options.length;
269 document.QueryForm.fqf[i].options[z].selected = true;
270 \}
271 updatefqf();
272\}
273
274// fqc - the boolean operator selection box
275function initfqc() \{
276 var i,j;
277 fqc = argfqc.split(",");
278 if (_cgiargfqn_ == 2) \{ // there will only be one fqc element
279 for (j=0;j<document.QueryForm.fqc.options.length;j++) \{
280 if (fqc[0] == document.QueryForm.fqc.options[j].value) \{
281 document.QueryForm.fqc.options[j].selected = true;
282 break;
283 \}
284 \}
285 \}
286 else \{
287 for (i=0; i<fqc.length;i++) \{
288 for (j=0;j<document.QueryForm.fqc[i].options.length;j++) \{
289 if (fqc[i] == document.QueryForm.fqc[i].options[j].value) \{
290 document.QueryForm.fqc[i].options[j].selected = true;
291 break;
292 \}
293 \}
294 \}
295 \}
296 updatefqc();
297
298\}
299
300function updatefqc() \{
301
302 var i,j;
303 argfqc = "";
304 if (_cgiargfqn_ == 2) \{
305 j = document.QueryForm.fqc.selectedIndex;
306 argfqc += document.QueryForm.fqc.options[j].value;
307 \}
308 else \{
309 j = document.QueryForm.fqc[0].selectedIndex;
310 argfqc += document.QueryForm.fqc[0].options[j].value;
311 for (i=1;i<document.QueryForm.fqc.length;i++) \{
312 j = document.QueryForm.fqc[i].selectedIndex;
313 argfqc += "," + document.QueryForm.fqc[i].options[j].value;
314 \}
315 \}
316
317\}
318
319
320function clearfqc() \{
321
322 var i;
323 if (_cgiargfqn_ == 2) \{
324 document.QueryForm.fqc.options[0].selected = true;
325 \}
326 else \{
327 for (i=0; i<document.QueryForm.fqc.length; i++) \{
328 document.QueryForm.fqc[i].options[0].selected = true;
329 \}
330 \}
331 updatefqc();
332\}
333
334// fqv - the query word/phrase text box
335function initfqv() \{
336 var i;
337 fqv= argfqv.split(",");
338 for (i=0; i<fqv.length && i<document.QueryForm.fqv.length; i++) \{
339 document.QueryForm.fqv[i].value = fqv[i];
340 \}
341 updatefqv();
342
343
344\}
345
346 //argfqv += escape(format(document.QueryForm.fqv[0].value));
347
348function updatefqv() \{
349 var i;
350 argfqv="";
351 argfqv += format(document.QueryForm.fqv[0].value);
352 for (i=1; i<document.QueryForm.fqv.length;i++) \{
353 argfqv += ",";
354 argfqv += format(document.QueryForm.fqv[i].value);
355 \}
356\}
357
358function clearfqv() \{
359 var i;
360 for (i=0; i< document.QueryForm.fqv.length;i++) \{
361 document.QueryForm.fqv[i].value = "";
362 \}
363 updatefqv();
364\}
365
366// fqs - the stemming checkboxes
367function initfqs() \{
368
369 var i;
370 fqs = argfqs.split(",");
371 for (i=0; i<fqs.length; i++) \{
372 if (fqs[i]=="1") \{
373 document.QueryForm.fqs[i].checked = true;
374 \}
375 \}
376 updatefqs();
377
378\}
379
380function updatefqs() \{
381 argfqs="";
382 if (document.QueryForm.fqs[0].checked) \{
383 argfqs += "1";
384 \}
385 else \{
386 argfqs += "0";
387 \}
388 var i;
389 for (i=1; i<document.QueryForm.fqs.length; i++) \{
390 if (document.QueryForm.fqs[i].checked) \{
391 argfqs += ",1";
392 \}
393 else \{
394 argfqs += ",0";
395 \}
396 \}
397\}
398
399
400function clearfqs() \{
401 var i;
402 for (i=0; i<document.QueryForm.fqs.length; i++) \{
403 document.QueryForm.fqs[i].checked = false;
404 \}
405 updatefqs();
406\}
407
408// kqk - the casefolding checkboxes
409function initfqk() \{
410 var i;
411 fqk = argfqk.split(",");
412 for (i=0; i<fqk.length; i++) \{
413 if (fqk[i]=="1") \{
414 document.QueryForm.fqk[i].checked = true;
415 \}
416 \}
417 updatefqk();
418
419\}
420
421
422function updatefqk() \{
423 argfqk="";
424 if (document.QueryForm.fqk[0].checked) \{
425 argfqk += "1";
426 \}
427 else \{
428 argfqk += "0";
429 \}
430 var i;
431 for (i=1; i<document.QueryForm.fqk.length; i++) \{
432 if (document.QueryForm.fqk[i].checked) \{
433 argfqk += ",1";
434 \}
435 else \{
436 argfqk += ",0";
437 \}
438 \}
439\}
440
441function clearfqk() \{
442 var i;
443 for (i=0; i<document.QueryForm.fqk.length; i++) \{
444 document.QueryForm.fqk[i].checked = false;
445 \}
446 updatefqk();
447\}
448
449// q - the advanced query box
450function initq() \{
451 updateq();
452\}
453
454function updateq() \{
455
456 argq = "";
457 argq += format(document.QueryForm.q.value);
458\}
459
460function clearq() \{
461 document.QueryForm.q.value="";
462\}
463
464
465// convert commas and spaces to plus
466// also convert other illegal characters to %xx codes
467function format(string) \{
468 var str = "" + string;
469 var out = "", flag = 0;
470 var ch = "";
471 var j;
472 for (j = 0; j < str.length; j++) \{
473 ch=str.charAt(j);
474 if (ch == " "|| ch == ",") \{
475 if ( flag == 0) \{
476 out += "+";
477 flag=1;
478 \}
479 continue;
480 \}
481 if (ch == ";" || ch == ":" || ch == "/" || ch == "?" ||
482 ch == "@" || ch == "&" || ch == "=" || ch == "#") \{
483 out += escape(ch);
484 flag=0;
485 continue;
486 \}
487 out += str.charAt(j);
488 flag=0;
489 \}
490 return out;
491\}
492
493}
494
495#_httpquery_ has a=q&e=compressedargs
496#if adv form, need to set k=0 and s=0
497_advformargs_{_If_(_cgiargb_,&k=0&s=0)}
498
499_searchfunctions_ {
500
501function beginSearch() \{
502window.location="_httpquery_"+getstdargs()+"_advformargs_"+getsearchargs();
503\}
504
505function runQuery() \{
506window.location="_httpquery_"+getstdargs()+"_advformargs_"+getqueryargs();
507\}
508
509function clearForm() \{
510 clearfqf();
511 clearfqv();
512
513 if ("_cgiargb_" == "1") \{
514 clearfqk();
515 clearfqs();
516 clearfqc();
517 \}
518
519\}
520
521}
522
523#######################################################################
524# headers
525# these are overridden so we can put an onLoad event handler
526# in the <body> tag of this page - for mgpp, form search pages
527#######################################################################
528
529#copied from prefs
530
531_header_ {_cgihead_
532_htmlhead_(class="bgimage" onLoad="initialize();")_startspacer__pagebanner_
533}
534
535# this declaration ends up being the same as style=restrict, never mind
536_header_[v=1] {_cgihead_
537_htmlhead_(onLoad="initialize();")_pagebanner_
538}
539
540#######################################################################
541# page content
542#######################################################################
543
544
545_pagetitle_ {_If_(_cgiargq_,_textquerytitle_,_textnoquerytitle_)}
546
547
548_content_ {
549_optnavigationbar_
550<div class="document">
551<div class="queryform">
552_If_(_cgiargct_,_selectqueryform_,_queryform_)
553</div>
554
555_If_(_searchhistorylist_,<center>_searchhistorybar_</center><br>
556<center>
557_searchhistorylist_
558</center>)
559_If_(_cgiargq_,_queryresultsbar_
560<small>
561_freqmsg_
562_textpostprocess_
563_If_(_stopwordsmsg_,(_stopwordsmsg_))</small><br />
564_resultline_
565,<div class="divbar">&nbsp;</div>)
566}
567
568_selectqueryform_{_If_("_cgiargqt_" eq "1",_fieldqueryform_,_queryform_)}
569
570_queryform_ {
571<!-- query form (\_query:plainqueryform\_) -->
572<form name="QueryForm" method="get" action="_gwcgi_">
573<p>
574<input type="hidden" name="a" value="q">
575<input type="hidden" name="r" value="1">
576<input type="hidden" name="hs" value="1">
577<input type="hidden" name="e" value="_decodedcompressedoptions_">
578_queryformcontent_
579_optdatesearch_
580</p>
581</form>
582<!-- end of query form -->
583}
584
585_ifeellucky_ { <br><input type="checkbox" name="ifl">_textifeellucky_ }
586_useifeellucky_ { } # Set this to _ifeellucky_ if you want this functionality available
587
588_allowformbreak_{</span> <span class="textselect">}
589
590_queryformcontent_{
591<span class="textselect">
592_textselect_
593</span>
594
595<span class="querybox">
596_If_(_cgiargqb_,_largequerybox_,_smallquerybox_)
597_useifeellucky_
598</span>
599}
600
601# Automatically set by receptionist if config file switches
602# date searching on
603_optdatesearch_ { }
604
605
606_datesearch_
607{<table><tr><td>
608 <center>
609_textstartdate_
610<input type="text" name="ds" value="_cgiargds_" size="4" maxlength="4">
611<select name="dsbc" value="_cgiargdsbc_" size="1">
612 <option value="0"_If_(_cgiargdsbc_,, selected)>_textad_
613 <option value="1"_If_(_cgiargdsbc_, selected)>_textbc_
614</select>
615_textenddate_
616<input type="text" name="de" value="_cgiargde_" size="4" maxlength="4">
617<select name="debc" size="1">
618 <option value="0" _If_(_cgiargdebc_,, selected)>_textad_
619 <option value="1" _If_(_cgiargdebc_, selected)>_textbc_
620</select>
621</center>
622</td></tr>
623<tr><td>
624_textexplaineras_
625</td></tr>
626</table>
627</center>
628}
629
630_smallquerybox_ {<nobr><input type="text" name="q" value="_cgiargq_" size="50">&nbsp;<input type="submit" value="_textbeginsearch_"></nobr>}
631
632_largequerybox_ {
633<tr><td><textarea name="q" cols="63" rows="10">
634_cgiargq_
635</textarea></td></tr>
636<tr align="right"><td><table>
637<tr><td><input type="submit" value="_textbeginsearch_"></td>
638</tr></table></td></tr>}
639
640
641_fieldqueryform_ {
642<noscript>
643<p><b>_textnojsformwarning_</b><p>
644</noscript>
645<!-- field query form (\_query:fieldqueryform\_) -->
646<form name="QueryForm" method="get" action="_gwcgi_">
647
648<table><tr><td align="left">
649_textformselect_
650</td></tr>
651<tr><td>
652_If_(_cgiargb_,_advancedforms_,_simpleforms_)
653</td></tr>
654</table>
655_If_(_cgiargb_,<div class="divbar">&nbsp;</div>
656_advancedformextra_)
657
658</form>
659<!-- end of query form -->
660}
661
662_advancedforms_{
663<table border="0" cellspacing="0" cellpadding="0" width="90%">
664<tr><th></th><th align="left">_textwordphrase_</th>_If_("_cgiargct_" eq "1",<th colspan="2"><nobr>_textfoldstem_</nobr></th>)<th align="center">&nbsp;&nbsp;_textinfield_</th></tr>
665_advformlist_
666<tr>
667<td colspan="2" align="left"><input type="button" value="_textclearform_" onClick="clearForm();"></td>
668<td colspan="3" align="right"><input type="button" value="_textbeginsearch_" onClick="beginSearch();"></td>
669</tr>
670</table>
671}
672
673_advancedformextra_{
674<table>
675<tr><td align="left">_textadvquery_</td></tr>
676<tr><td><textarea name="q" cols="57" rows="3" onChange="updateq();">_cgiargq_</textarea></td>
677<td valign="bottom">
678<input type="button" value="_textrunquery_" onClick="runQuery();"></td></tr>
679</table>
680}
681
682_simpleforms_{
683<table border="0" cellspacing="0" cellpadding="0" width="90%">
684<tr><th align="left">_textwordphrase_</th><th align="left">&nbsp;&nbsp;_textinfield_</th></tr>
685_regformlist_
686<tr>
687<td align="left"><input type="button" value="_textclearform_" onClick="clearForm();"></td>
688<td align="right"><input type="button" value="_textbeginsearch_" onClick="beginSearch();"></td>
689</tr>
690</table>}
691
692_regformelement_{
693<tr><td><input type="text" size="39" name="fqv" onChange="updatefqv();" onkeypress="updatefqv(); entersubmit(event);"></td>
694<td>_fqfselection_</td></tr>}
695
696#has no and/or/not selection box
697_firstadvformelement_{
698<tr><td></td><td><input type="text" size="31" name="fqv" onChange="updatefqv();" onkeypress="updatefqv(); entersubmit(event);"></td>
699_If_("_cgiargct_" eq "1",<td align="center"><input type="checkbox" name="fqk" onClick="updatefqk();"></td>
700<td align="center"><input type="checkbox" name="fqs" onClick="updatefqs();"></td>)
701<td align="right">_fqfselection_</td></tr>}
702
703_advformelement_{
704<tr><td>_fqcselection_</td>
705<td><input type="text" size="31" name="fqv" onChange="updatefqv();" onkeypress="updatefqv(); entersubmit(event);"></td>
706_If_("_cgiargct_" eq "1",<td align="center"><input type="checkbox" name="fqk" onClick="updatefqk();"></td>
707<td align="center"><input type="checkbox" name="fqs" onClick="updatefqs();"></td>)
708<td align="right">_fqfselection_</td></tr>}
709
710
711
712_fqcselection_ {
713<select name="fqc" onChange="updatefqc();">
714<option value="and">_textand_
715<option value="or">_textor_
716<option value="not">_textandnot_
717</select>}
718
719_textselect_ {_If_(_cgiargb_,_chooseadvancedsearch_,_textsimplesearch_)}
720_chooseadvancedsearch_ {_If_(_cgiargct_,_If_("_cgiargct_" eq "2",_textadvancedlucenesearch_,_textadvancedmgppsearch_),_textadvancedsearch_}
721_textformselect_ {_If_(_cgiargb_,_chooseformadvancedsearch_,_textformsimplesearch_)}
722_chooseformadvancedsearch_ {_If_("_cgiargct_" eq "1",_textformadvancedsearchmgpp_)_If_("_cgiargct_" eq "2",_textformadvancedsearchlucene_)}
723
724# mg uses hselection for index, mgpp uses fqfselection
725_indexselection_{_If_(_cgiargct_,_fqfselection_,_hselection_)}
726
727# we want to put the links to previous/next pages of results
728# in the footer
729_pagefooterextra_ {
730<center>
731<table cellspacing="0" cellpadding="0" width="_pagewidth_">
732<tr>
733<td align="left">_If_(_prevfirst_,<a href="_httpquery_&amp;r=_prevfirst_">_iconprev__textmatches__prevfirst_ - _prevlast_</a>)</td>
734<td align="right">_If_(_nextfirst_,<a href="_httpquery_&amp;r=_nextfirst_">_textmatches__nextfirst_ - _nextlast__iconnext_</a>)</td>
735</tr></table>
736</center>
737
738</div> <!-- document -->
739}
740
741_querytypeselection_ {
742<select name="t">
743<option value="1"_If_(_cgiargt_, selected)>_If_(_cgiargb_,_textranked_,_textsome_)
744<option value="0"_If_(_cgiargt_,, selected)>_If_(_cgiargb_,_textboolean_,_textall_)
745</select>
746}
747
748
749_formquerytypesimpleselection_ {
750<select name="t">
751<option value="1"_If_(_cgiargt_, selected)>_textsome_
752<option value="0"_If_(_cgiargt_,, selected)>_textall_
753</select>
754}
755
756_formquerytypeadvancedselection_ {
757<select name="t">
758<option value="1"_If_(_cgiargt_, selected)>_textranked_
759<option value="0"_If_(_cgiargt_,, selected)>_textnatural_
760</select>
761}
762
763# this one is not used by english.dm any more. But I have added it back for the other languages that haven't updated the translations for their form search macros.
764_formquerytypeselection_ {
765<select name="t">
766<option value="1"_If_(_cgiargt_, selected)>_If_(_cgiargb_,_textranked_,_textsome_)
767<option value="0"_If_(_cgiargt_,, selected)>_If_(_cgiargb_,_textnatural_,_textall_)
768</select>
769}
770
Note: See TracBrowser for help on using the repository browser.