Changeset 3168 for trunk/protemix/macros/query.dm
- Timestamp:
- 2002-06-23T22:58:30+12:00 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/protemix/macros/query.dm
r3162 r3168 28 28 29 29 _iconthispage_ {<img src="_httpiconhsearch_" alt="_texticonthispage_" width="_widthhsearch_" height="_heighthsearch_">} 30 _iconthispage_ [v=1] {<h2>_texticonthispage_</h2>}31 30 32 31 _iconqueryresultsbar_ {<img src="_httpiconqryresb_" width="_widthqryresb_" height="_heightqryresb_" alt="_texticonqueryresultsbar_">} 33 _iconqueryresultsbar_[v=1] {_texticonqueryresultsbar_}34 32 35 33 # _iconnext_ and _iconprev_ are overridden in this package as we 36 34 # don't want alt text here 37 35 _iconnext_{<img src="_httpiconmore_" width=_widthmore_ height=_heightmore_ border=0 align=top>} 38 _iconnext_ [v=1] {}39 36 _iconprev_{<img src="_httpiconless_" width=_widthless_ height=_heightless_ border=0 align=top>} 40 _iconprev_ [v=1] {}41 37 42 38 ####################################################################### … … 75 71 form.c3.options.length = 0; 76 72 73 var isselected = 0; 77 74 for (i = 0; i < options[c2].length; i++) \{ 78 75 form.c3.options[i] = new Option(options[c2][i], options[c2][i]); 76 if (options[c2][i] == "_cgiargc3_") \{ 77 form.c3.selectedIndex = i; 78 isselected = 1; 79 \} 79 80 \} 80 81 form.c3.selectedIndex = 0; 82 81 if (!isselected) form.c3.selectedIndex = 0; 83 82 \} 84 83 } … … 88 87 } 89 88 90 _pagetitle_ { _If_(_cgiargq_,_textquerytitle_,_textnoquerytitle_)}89 _pagetitle_ {} 91 90 92 91 _content_ { … … 97 96 _queryform_ 98 97 </center> 99 _If_(_cgiargq_,<center>_iconqueryresultsbar_</center><br> 100 <small> 101 _freqmsg_ 102 _textpostprocess_</small><br> 98 <center>_iconblankbar_</center><br> 103 99 _resultline_ 104 ,<center>_iconblankbar_</center>)<br>105 100 } 106 101 … … 109 104 <input type=hidden name="a" value="q"> 110 105 <input type=hidden name="r" value="1"> 106 <input type=hidden name="g" value="Section"> 111 107 <input type=hidden name="e" value="_decodedcompressedoptions_"> 112 108 <p> … … 116 112 <td align="center"> 117 113 <select name="c1"> 118 <option value="" >Any119 <option value="Animal" >Animal120 <option value="Human" >Human121 <option value="Other" >Other114 <option value=""_If_(_cgiargc1_,, selected)>Any 115 <option value="Animal"_If_("_cgiargc1_" eq "Animal", selected)>Animal 116 <option value="Human"_If_("_cgiargc1_" eq "Human", selected)>Human 117 <option value="Other"_If_("_cgiargc1_" eq "Other", selected)>Other 122 118 </select> 123 119 </td> … … 129 125 <td align="center"> 130 126 <select name="c2" onChange='initialize()'> 131 <option value="" >Any132 <option value="Pharmacokinetics" >Pharmacokinetics133 <option value="Pharmacodynamics" >Pharmacodynamics134 <option value="Safety/Side Effects/Toxicity" >Safety/Side Effects/Toxicity135 <option value="Other" >Other136 <option value="Efficacy" >Efficacy137 <option value="Contraindications" >Contraindications138 <option value="Precautions" >Precautions127 <option value=""_If_(_cgiargc2_,, selected)>Any 128 <option value="Pharmacokinetics"_If_("_cgiargc2_" eq "Pharmacokinetics", selected)>Pharmacokinetics 129 <option value="Pharmacodynamics"_If_("_cgiargc2_" eq "Pharmacodynamics", selected)>Pharmacodynamics 130 <option value="Safety/Side Effects/Toxicity"_If_("_cgiargc2_" eq "Safety/Side Effects/Toxicity", selected)>Safety/Side Effects/Toxicity 131 <option value="Other"_If_("_cgiargc2_" eq "Other", selected)>Other 132 <option value="Efficacy"_If_("_cgiargc2_" eq "Efficacy", selected)>Efficacy 133 <option value="Contraindications"_If_("_cgiargc2_" eq "Contraindications", selected)>Contraindications 134 <option value="Precautions"_If_("_cgiargc2_" eq "Precautions", selected)>Precautions 139 135 </select> 140 136 </td> … … 153 149 154 150 <tr valign="top"><td colspan="5"> 151 <b>AND</b><br> 155 152 <nobr> 156 153 <input type="text" name="q" value="_cgiargq_" size="40"> … … 162 159 </form> 163 160 } 161 162 # we want to put the links to previous/next pages of results 163 # in the footer 164 _pagefooterextra_ { 165 <center> 166 <table cellspacing=0 cellpadding=0 width=_pagewidth_> 167 <tr> 168 <td align=left>_If_(_prevfirst_,<a href="_httpquery_&r=_prevfirst_">_iconprev__textmatches__prevfirst_ - _prevlast_</a>)</td> 169 <td align=right>_If_(_nextfirst_,<a href="_httpquery_&r=_nextfirst_">_textmatches__nextfirst_ - _nextlast__iconnext_</a>)</td> 170 </tr></table> 171 </center> 172 }
Note:
See TracChangeset
for help on using the changeset viewer.