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

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

* empty log message *

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