Changeset 3168 for trunk/protemix/macros


Ignore:
Timestamp:
2002-06-23T22:58:30+12:00 (20 years ago)
Author:
sjboddie
Message:

* empty log message *

Location:
trunk/protemix/macros
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/protemix/macros/base.dm

    r3162 r3168  
    3232_collectionname_ {}
    3333
    34 _imagecollection_ {_If_("_iconcollection_" ne "",
    35 <a href="_httppageabout_"><img src="_iconcollection_" border=0></a>,
    36 _imagecollectionv_}
    37 _imagecollectionv_ {_If_(_collectionname_,<br><br><h2><a href="_httppageabout_">_collectionname_</a></h2>)}
     34_imagecollection_ {<img src="_httpcollection_/images/protemixlogo.gif">}
    3835
    3936#######################################################################
     
    140137# the page.
    141138
    142 _javalinks_ {_imagehome_}
     139_javalinks_ {}
    143140
    144141
  • trunk/protemix/macros/english.dm

    r3162 r3168  
    131131_texticonexpandtext_ {Display all text}
    132132_texticoncontracttext_ {Display text only for currently selected section}
     133_texticonpagepdf_ {Display PDF file of this page}
     134_texticonartpdf_ {Display PDF file of entire article}
     135
    133136
    134137_textgoto_ {go to page}
     
    170173_httpiconenhlof_ {_httpimg_/enhlof.gif}
    171174_httpiconenhlon_ {_httpimg_/enhlon.gif}
     175
     176## "SINGLE PAGE PDF" ## document_button ## sppdf ##
     177_httpiconsppdfof_ {_httpcollection_/images/sppdfof.gif}
     178_httpiconsppdfon_ {_httpcollection_/images/sppdfon.gif}
     179
     180## "ARTICLE PDF" ## document_button ## apdf ##
     181_httpiconapdfof_ {_httpcollection_/images/apdfof.gif}
     182_httpiconapdfon_ {_httpcollection_/images/apdfon.gif}
    172183
    173184######################################################################
  • trunk/protemix/macros/query.dm

    r3162 r3168  
    2828
    2929_iconthispage_ {<img src="_httpiconhsearch_" alt="_texticonthispage_" width="_widthhsearch_" height="_heighthsearch_">}
    30 _iconthispage_ [v=1] {<h2>_texticonthispage_</h2>}
    3130
    3231_iconqueryresultsbar_ {<img src="_httpiconqryresb_" width="_widthqryresb_" height="_heightqryresb_" alt="_texticonqueryresultsbar_">}
    33 _iconqueryresultsbar_[v=1] {_texticonqueryresultsbar_}
    3432
    3533# _iconnext_ and _iconprev_ are overridden in this package as we
    3634# don't want alt text here
    3735_iconnext_{<img src="_httpiconmore_" width=_widthmore_ height=_heightmore_ border=0 align=top>}
    38 _iconnext_ [v=1] {}
    3936_iconprev_{<img src="_httpiconless_" width=_widthless_ height=_heightless_ border=0 align=top>}
    40 _iconprev_ [v=1] {}
    4137
    4238#######################################################################
     
    7571  form.c3.options.length = 0;
    7672
     73  var isselected = 0;
    7774  for (i = 0; i < options[c2].length; i++) \{
    7875    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    \}
    7980  \}
    80 
    81   form.c3.selectedIndex = 0;
    82 
     81  if (!isselected) form.c3.selectedIndex = 0;
    8382\}
    8483}
     
    8887}
    8988
    90 _pagetitle_ {_If_(_cgiargq_,_textquerytitle_,_textnoquerytitle_)}
     89_pagetitle_ {}
    9190
    9291_content_ {
     
    9796_queryform_
    9897</center>
    99 _If_(_cgiargq_,<center>_iconqueryresultsbar_</center><br>
    100 <small>
    101 _freqmsg_
    102 _textpostprocess_</small><br>
     98<center>_iconblankbar_</center><br>
    10399_resultline_
    104 ,<center>_iconblankbar_</center>)<br>
    105100}
    106101
     
    109104<input type=hidden name="a" value="q">
    110105<input type=hidden name="r" value="1">
     106<input type=hidden name="g" value="Section">
    111107<input type=hidden name="e" value="_decodedcompressedoptions_">
    112108<p>
     
    116112<td align="center">
    117113<select name="c1">
    118 <option value="">Any
    119 <option value="Animal">Animal
    120 <option value="Human">Human
    121 <option value="Other">Other
     114<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
    122118</select>
    123119</td>
     
    129125<td align="center">
    130126<select name="c2" onChange='initialize()'>
    131 <option value="">Any
    132 <option value="Pharmacokinetics">Pharmacokinetics
    133 <option value="Pharmacodynamics">Pharmacodynamics
    134 <option value="Safety/Side Effects/Toxicity">Safety/Side Effects/Toxicity
    135 <option value="Other">Other
    136 <option value="Efficacy">Efficacy
    137 <option value="Contraindications">Contraindications
    138 <option value="Precautions">Precautions
     127<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
    139135</select>
    140136</td>
     
    153149
    154150<tr valign="top"><td colspan="5">
     151<b>AND</b><br>
    155152<nobr>
    156153<input type="text" name="q" value="_cgiargq_" size="40">
     
    162159</form>
    163160}
     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.