source: trunk/gsdl/macros/pref.dm@ 180

Last change on this file since 180 was 180, checked in by sjboddie, 25 years ago

Fixed a few errors. Started using new _If_ functionality

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 3.4 KB
Line 
1package preferences
2
3
4#######################################################################
5# page content
6#######################################################################
7
8_pagetitle_ {_collectionname_: _textpreferences_}
9_imagethispage_ {_iconthispage_}
10
11_caseoption_ {
12<input type=radio name=k value=1
13 _If_(_cgiargk_, checked)>_textignorecase_<br>
14<input type=radio name=k value=0
15 _If_(_cgiargk_,, checked)>_textmatchcase_
16}
17
18_stemoption_ {
19<input type=radio name=s value=1
20 _If_(_cgiargs_, checked)>_textstem_<br>
21<input type=radio name=s value=0
22 _If_(_cgiargs_,, checked)>_textnostem_
23}
24
25_maxdocoption_ {
26<select name="m">
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
31</select>
32}
33
34_hitsperpageoption_ {
35<select name="o">
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
41</select>
42}
43
44_content_ {
45<blockquote>
46
47<form name=PrefForm method=get action="_gwcgi_">
48<_font_>
49
50<input type="hidden" name="e" value="_compressedoptions_">
51<input type="hidden" name="q" value="_querystring_">
52<input type="hidden" name="a" value="q">
53<input type="hidden" name="r" value="1">
54
55<p>_caseoption_
56
57<p>_stemoption_
58
59<p>
60_textprefop_
61
62<table width="100%">
63<tr><td>
64<input type="submit" value="_textsetprefs_">
65</td></tr></table>
66</blockquote>
67</font>
68</form>
69}
70
71
72#######################################################################
73# https
74#######################################################################
75
76_httpiconhpref_ {_httpimg_/h\_pref.gif}
77_httpiconhpref_ [language=mi] {_httpimg_/mh\_pref.gif}
78_widthhpref_ {200}
79_widthhpref_ [language=mi] {220}
80_heighthpref_ {57}
81
82
83#######################################################################
84# icons
85#######################################################################
86
87_iconthispage_ {<img src="_httpiconhpref_" alt="_textpreferences_" width="_widthhpref_" height="_heighthpref_">}
88_iconthispage_ [language=mi] {<img src="_httpimg_/mh\_pref.gif" alt="" width="220" height="57">}
89
90
91#######################################################################
92# english macros
93#######################################################################
94
95_textpreferences_ {Preferences}
96_textignorecase_ { ignore case differences}
97_textmatchcase_ { upper/lower case must match}
98_textstem_ { ignore word endings}
99_textnostem_ { whole word must match}
100_textprefop_ {Return up to _maxdocoption_ hits with _hitsperpageoption_ hits per page.}
101_textsetprefs_ {Set these preferences}
102
103#######################################################################
104# maori macros
105#######################################################################
106
107_textpreferences_ [language=mi] {Whiriwhiringa}
108_textignorecase_ [language=mi] { hei aha te p&uuml; matua me te p&uuml; iti}
109_textmatchcase_ [language=mi] { me tika te p&uuml; matua me te p&uuml; iti}
110_textstem_ [language=mi] { hei aha te k&uuml;muri}
111_textnostem_ [language=mi] { me tika te k&uuml;muri}
112_textprefop_ [language=mi] {Whakahokia mai te _maxdocoption_ kupu, &auml;, kia _hitsperpageoption_ kupu ki ia wh&auml;rangi.}
113_textsetprefs_ [language=mi] {Whakamaua}
114
115
116
117
118
Note: See TracBrowser for help on using the repository browser.