Changeset 12780
- Timestamp:
- 2006-09-20T09:31:39+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/macros/query.dm
r12768 r12780 152 152 _If_(_jselection_,_getjarg_) 153 153 _If_(_nselection_,_getnarg_) 154 155 value = document.QueryForm.t.options[document.QueryForm.t.selectedIndex].value; 156 if (value != "_cgiargt_") stdarg += "&t="+value; 157 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 \} 158 159 stdarg += "&r=1&hs=1"; 159 160 return stdarg; … … 177 178 value = document.QueryForm.n.options[document.QueryForm.n.selectedIndex].value; 178 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; 179 185 } 180 186 … … 190 196 function initialize () \{ 191 197 192 if (document.QueryForm.fqf != null) \{initfqf();\} 193 initfqv(); 194 if ( "_cgiargb_" == "1") \{ 195 initfqs(); 196 initfqk(); 197 initfqc(); 198 initq(); 199 \} 200 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(); \} 201 204 \} 202 205 … … 215 218 \} 216 219 220 217 221 // fqf - the field selection box 218 222 function initfqf() \{ … … 548 552 _If_(_cgiargct_,_selectqueryform_,_queryform_) 549 553 </div> 554 550 555 _If_(_searchhistorylist_,<center>_searchhistorybar_</center><br> 551 556 <center> … … 580 585 _ifeellucky_ { <br><input type="checkbox" name="ifl">_textifeellucky_ } 581 586 _useifeellucky_ { } # Set this to _ifeellucky_ if you want this functionality available 587 588 _allowformbreak_{</span> <span class="textselect">} 582 589 583 590 _queryformcontent_{ … … 621 628 } 622 629 623 _smallquerybox_ {< input type="text" name="q" value="_cgiargq_" size="50"> <input type="submit" value="_textbeginsearch_">}630 _smallquerybox_ {<nobr><input type="text" name="q" value="_cgiargq_" size="50"> <input type="submit" value="_textbeginsearch_"></nobr>} 624 631 625 632 _largequerybox_ { … … 639 646 <form name="QueryForm" method="get" action="_gwcgi_"> 640 647 641 <table><tr><td> 642 <nobr> 648 <table><tr><td align="left"> 643 649 _textformselect_ 644 </nobr>645 650 </td></tr> 651 <tr><td> 646 652 _If_(_cgiargb_,_advancedforms_,_simpleforms_) 653 </tr></td> 647 654 </table> 648 655 _If_(_cgiargb_,<div class="divbar"> </div> 649 <center>_advancedformextra_</center>)656 _advancedformextra_) 650 657 651 658 </form> … … 654 661 655 662 _advancedforms_{ 656 <t r><td><center> <table border="0" cellspacing="0" cellpadding="0" width="90%">657 <tr><th></th><th align="left">_textwordphrase_</th> <th colspan="2"><nobr>_textfoldstem_</nobr></th><th align="center"> _textinfield_</th></tr>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"> _textinfield_</th></tr> 658 665 _advformlist_ 659 <tr> <td colspan="2"><input type="button" value="_textclearform_" onClick="clearForm();"></td>660 <td colspan=" 3"><table>661 <t r><td><input type="button" value="_textbeginsearch_" onClick="beginSearch();"></td>662 </tr> </table></td></tr>663 </table> </td></tr>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> 664 671 } 665 672 666 673 _advancedformextra_{ 667 674 <table> 668 <tr><td >_textadvquery_</td></tr>675 <tr><td align="left">_textadvquery_</td></tr> 669 676 <tr><td><textarea name="q" cols="57" rows="3" onChange="updateq();">_cgiargq_</textarea></td> 670 677 <td valign="bottom"> … … 674 681 675 682 _simpleforms_{ 676 <t r><td><center> <table border="0" cellspacing="0" cellpadding="0" width="90%">683 <table border="0" cellspacing="0" cellpadding="0" width="90%"> 677 684 <tr><th align="left">_textwordphrase_</th><th align="left"> _textinfield_</th></tr> 678 685 _regformlist_ 679 <tr> <td><input type="button" value="_textclearform_" onClick="clearForm();"></td>680 <td ><table>681 <t r><td><input type="button" value="_textbeginsearch_" onClick="beginSearch();"></td>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> 682 689 </tr> 683 </table></td></tr> 684 </table></td></tr>} 690 </table>} 685 691 686 692 _regformelement_{ 687 <t d><input type="text" size="39" name="fqv" onChange="updatefqv();" onkeypress="updatefqv(); entersubmit(event);"></td>688 <td>_fqfselection_</td> }693 <tr><td><input type="text" size="39" name="fqv" onChange="updatefqv();" onkeypress="updatefqv(); entersubmit(event);"></td> 694 <td>_fqfselection_</td></tr>} 689 695 690 696 #has no and/or/not selection box 691 697 _firstadvformelement_{ 692 <t d></td><td><input type="text" size="31" name="fqv" onChange="updatefqv();" onkeypress="updatefqv(); entersubmit(event);"></td>693 <td align="center"><input type="checkbox" name="fqk" onClick="updatefqk();"></td>694 <td align="center"><input type="checkbox" name="fqs" onClick="updatefqs();"></td> 695 <td align="right">_fqfselection_</td> }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>} 696 702 697 703 _advformelement_{ 698 <t d>_fqcselection_</td>704 <tr><td>_fqcselection_</td> 699 705 <td><input type="text" size="31" name="fqv" onChange="updatefqv();" onkeypress="updatefqv(); entersubmit(event);"></td> 700 <td align="center"><input type="checkbox" name="fqk" onClick="updatefqk();"></td> 701 <td align="center"><input type="checkbox" name="fqs" onClick="updatefqs();"></td> 702 <td align="right">_fqfselection_</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 703 711 704 712 _fqcselection_ { … … 711 719 _textselect_ {_If_(_cgiargb_,_chooseadvancedsearch_,_textsimplesearch_)} 712 720 _chooseadvancedsearch_ {_If_(_cgiargct_,_If_("_cgiargct_" eq "2",_textadvancedlucenesearch_,_textadvancedmgppsearch_),_textadvancedsearch_} 713 _textformselect_ {_If_(_cgiargb_,_textformadvancedsearch_,_textformsimplesearch_)} 721 _textformselect_ {_If_(_cgiargb_,_chooseformadvancedsearch_,_textformsimplesearch_)} 722 _chooseformadvancedsearch_ {_If_("_cgiargct_" eq "1",_textformadvancedsearchmgpp_)_If_("_cgiargct_" eq "2",_textformadvancedsearchlucene_)} 723 714 724 # mg uses hselection for index, mgpp uses fqfselection 715 725 _indexselection_{_If_(_cgiargct_,_fqfselection_,_hselection_)}
Note:
See TracChangeset
for help on using the changeset viewer.