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

Last change on this file since 12491 was 12441, checked in by kjdon, 18 years ago

changes to make pressing enter submit the query form (for advanced searching)

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