source: trunk/gsdl/macros/query.dm@ 931

Last change on this file since 931 was 931, checked in by sjboddie, 24 years ago

tidied up a bit - added icons to language files

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 3.1 KB
Line 
1package query
2
3
4#######################################################################
5# Macros whose values are set from within the server at runtime. These
6# are here only for reference and to set default values if required.
7#######################################################################
8
9_quotedquery_ {}
10_freqmsg_ {}
11_resultline_ {}
12_thisfirst_ {}
13_thislast_ {}
14_nextfirst_ {}
15_nextlast_ {}
16_prevfirst_ {}
17_prevlast_ {}
18
19#######################################################################
20# icons
21#######################################################################
22
23_iconthispage_ {<img src="_httpiconhsearch_" alt="_texticonthispage_" width="_widthhsearch_" height="_heighthsearch_">}
24_iconthispage_ [v=1] {<h2>_texticonthispage_</h2>}
25
26_iconqueryresultsbar_ {<img src="_httpiconqryresb_" width="_widthqryresb_" height="_heightqryresb_" alt="_texticonqueryresultsbar_">}
27_iconqueryresultsbar_[v=1] {_texticonqueryresultsbar_}
28
29# _iconnext_ and _iconprev_ are overridden in this package as we
30# don't want alt text here
31_iconnext_{<img src="_httpiconmore_" width=_widthmore_ height=_heightmore_ border=0 align=top>}
32_iconprev_{<img src="_httpiconless_" width=_widthless_ height=_heightless_ border=0 align=top>}
33
34#######################################################################
35# images
36#######################################################################
37
38_imagethispage_ {_iconthispage_}
39
40
41#######################################################################
42# page content
43#######################################################################
44
45_pagetitle_ {_If_(_cgiargq_,_textquerytitle_,_textnoquerytitle_)}
46
47_content_ {
48<center>
49_navigationbar_
50</center>
51_queryform_
52_If_(_cgiargq_,<center>_iconqueryresultsbar_</center><br>
53<small>
54_freqmsg_
55_textpostprocess_</small><br>
56_resultline_
57,<center>_iconblankbar_</center>)<br>
58}
59
60_queryform_ {
61<!-- query form -->
62<form name=QueryForm method=get action="_gwcgi_">
63
64<input type=hidden name="a" value="q">
65<input type=hidden name="e" value="_decodedcompressedoptions_">
66<input type=hidden name="r" value="1">
67
68<center>
69<table><tr><td>
70<nobr>
71_textselect_<br>
72</nobr>
73</td></tr><tr><td>
74<nobr>
75<input type="text" name="q" value="_cgiargq_" size="50">
76<input type="submit" value="_textbeginsearch_">
77</nobr>
78</td></tr></table>
79</center>
80</form>
81<!-- end of query form -->
82}
83
84# we want to put the links to previous/next pages of results
85# in the footer
86_pagefooterextra_ {
87<center>
88<table cellspacing=0 cellpadding=0 width=_pagewidth_>
89<tr>
90<td align=left>_If_(_prevfirst_,<a href="_httpquery_&r=_prevfirst_">_iconprev__textmatches__prevfirst_ - _prevlast_</a>)</td>
91<td align=right>_If_(_nextfirst_,<a href="_httpquery_&r=_nextfirst_">_textmatches__nextfirst_ - _nextlast__iconnext_</a>)</td>
92</tr></table>
93</center>
94}
95
96#######################################################################
97# English text
98#######################################################################
99
100# moved to english.dm
101
102
103
104#######################################################################
105# Maori text
106#######################################################################
107
108#moved to maori.dm
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
Note: See TracBrowser for help on using the repository browser.