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
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_ {}
[128]18
[148]19#######################################################################
20# icons
21#######################################################################
[128]22
[931]23_iconthispage_ {<img src="_httpiconhsearch_" alt="_texticonthispage_" width="_widthhsearch_" height="_heighthsearch_">}
[548]24_iconthispage_ [v=1] {<h2>_texticonthispage_</h2>}
[128]25
[148]26_iconqueryresultsbar_ {<img src="_httpiconqryresb_" width="_widthqryresb_" height="_heightqryresb_" alt="_texticonqueryresultsbar_">}
[548]27_iconqueryresultsbar_[v=1] {_texticonqueryresultsbar_}
[128]28
[276]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>}
[148]33
34#######################################################################
35# images
36#######################################################################
37
38_imagethispage_ {_iconthispage_}
39
40
41#######################################################################
42# page content
43#######################################################################
44
[276]45_pagetitle_ {_If_(_cgiargq_,_textquerytitle_,_textnoquerytitle_)}
[148]46
[276]47_content_ {
48<center>
49_navigationbar_
50</center>
[128]51_queryform_
[276]52_If_(_cgiargq_,<center>_iconqueryresultsbar_</center><br>
53<small>
54_freqmsg_
55_textpostprocess_</small><br>
[128]56_resultline_
[276]57,<center>_iconblankbar_</center>)<br>
[128]58}
59
60_queryform_ {
[276]61<!-- query form -->
[128]62<form name=QueryForm method=get action="_gwcgi_">
63
64<input type=hidden name="a" value="q">
[876]65<input type=hidden name="e" value="_decodedcompressedoptions_">
[128]66<input type=hidden name="r" value="1">
67
68<center>
69<table><tr><td>
70<nobr>
[148]71_textselect_<br>
[128]72</nobr>
73</td></tr><tr><td>
74<nobr>
[276]75<input type="text" name="q" value="_cgiargq_" size="50">
76<input type="submit" value="_textbeginsearch_">
[128]77</nobr>
78</td></tr></table>
79</center>
80</form>
[276]81<!-- end of query form -->
[128]82}
[148]83
[276]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
[148]96#######################################################################
97# English text
98#######################################################################
99
[876]100# moved to english.dm
[276]101
102
[148]103
[876]104#######################################################################
105# Maori text
106#######################################################################
[548]107
[876]108#moved to maori.dm
[548]109
110
[148]111
[180]112
113
[454]114
[148]115
116
[644]117
[876]118
119
120
121
122
123
Note: See TracBrowser for help on using the repository browser.