Changeset 180 for trunk


Ignore:
Timestamp:
1999-03-02T09:39:18+13:00 (25 years ago)
Author:
sjboddie
Message:

Fixed a few errors. Started using new _If_ functionality

Location:
trunk/gsdl/macros
Files:
3 edited

Legend:

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

    r172 r180  
    437437_httpicontsergr_ {_httpimg_/tsergr.gif}
    438438_httpicontsergr_ [language=mi] {_httpimg_/mtsergr.gif}
    439 _httpicontsergr_ [language=mi] {_httpimg_/mtsergr.gif}
    440439_httpicontserof_ {_httpimg_/tserof.gif}
    441440_httpicontserof_ [language=mi] {_httpimg_/mtserof.gif}
     
    734733onMouseout = "img\_off('detach')">_icondetach_</a>}
    735734_imagedetach_[version=text] {><_font_>_texticondetach_</font></a><br>}
    736 
    737 _imagecontracttoc_ {" onMouseover = "img\_on('concon')"
    738 onMouseout = "img\_off('concon')">_iconcontracttoc_</a>}
    739 _imagecontracttoc_[version=text] {"><_font_>_texticoncontracttoc_</font></a><br>}
    740 _imagecontracttoc_[style=htmlonly] {}
    741 
    742 _imageexpandtoc_ {" onMouseover = "img\_on('expcon')"
    743 onMouseout = "img\_off('expcon')">_iconexpandtoc_</a>}
    744 _imageexpandtoc_ [version=text] {"><_font_>_texticonexpandtoc_</font></a><br>}
    745 _imageexpandtoc_ [style=htmlonly] {}
    746 
    747 _imagecontracttext_ {0" onMouseover = "img\_on('thissec')"
    748 onMouseout = "img\_off('thissec')">_iconcontracttext_</a>}
    749 _imagecontracttext_[version=text] {0"><_font_>display only current section</font></a><br>}
    750 _imagecontracttext_[style=htmlonly] {}
    751 
    752 _imageexpandtext_ {1" onMouseover = "img\_on('alltext')"
    753 onMouseout = "img\_off('alltext')">_iconexpandtext_</a>}
    754 _imageexpandtext_[version=text] {1"><_font_>display all text</font></a><br>}
    755 _imageexpandtext_[style=htmlonly] {}
    756735
    757736_imagecontracttoc_ {" onMouseover = "img\_on('concon')"
  • trunk/gsdl/macros/pref.dm

    r148 r180  
    99_imagethispage_ {_iconthispage_}
    1010
    11 
    12 # these macros will be overridden at runtime
    1311_caseoption_ {
    1412<input type=radio name=k value=1
    15         checked>_textignorecase_<br>
     13        _If_(_cgiargk_, checked)>_textignorecase_<br>
    1614<input type=radio name=k value=0
    17         >_textmatchcase_
     15        _If_(_cgiargk_,, checked)>_textmatchcase_
    1816}
    1917
    2018_stemoption_ {
    2119<input type=radio name=s value=1
    22         >_textstem_<br>
     20        _If_(_cgiargs_, checked)>_textstem_<br>
    2321<input type=radio name=s value=0
    24         checked>_textnostem_
     22        _If_(_cgiargs_,, checked)>_textnostem_
    2523}
    2624
    2725_maxdocoption_ {
    2826<select name="m">
    29   <option value="50" selected>50
    30   <option value="100" >100
    31   <option value="200" >200
    32   <option value="500" >500
     27  <option value="50"_If_("_cgiargm_" eq "50", selected)>50
     28  <option value="100"_If_("_cgiargm_" eq "100", selected)>100
     29  <option value="200"_If_("_cgiargm_" eq "200", selected)>200
     30  <option value="500"_If_("_cgiargm_" eq "500", selected)>500
    3331</select>
    3432}
     
    3634_hitsperpageoption_ {
    3735<select name="o">
    38   <option value="10" selected>10 
    39   <option value="20" >20
    40   <option value="50" >50
    41   <option value="100" >100
    42   <option value="500" >all
     36  <option value="10"_If_("_cgiargo_" eq "10", selected)>10 
     37  <option value="20"_If_("_cgiargo_" eq "20", selected)>20
     38  <option value="50"_If_("_cgiargo_" eq "50", selected)>50
     39  <option value="100")_If_("_cgiargo_" eq "100", selected)>100
     40  <option value="500"_If_("_cgiargo_" eq "500", selected)>all
    4341</select>
    4442}
  • trunk/gsdl/macros/query.dm

    r156 r180  
    131131_querytypeselection_ of the words}
    132132
     133_querytypeselection_ {
     134<select name="t">
     135<option value=1_If_(_cgiargt_, selected)>_textsome_
     136<option value=0_If_(_cgiargt_,, selected)>_textall_
     137</select>
     138}
     139
     140
    133141#######################################################################
    134142# Maori text       
Note: See TracChangeset for help on using the changeset viewer.