source: trunk/gsdl/macros/dateqry.dm@ 11142

Last change on this file since 11142 was 11098, checked in by jrm21, 18 years ago

reflect tags moved into _optnavigationbar_ macro

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 3.8 KB
Line 
1# this file must be UTF-8 encoded
2
3package query
4
5
6#######################################################################
7# Macros whose values are set from within the server at runtime. These
8# are here only for reference and to set default values if required.
9#######################################################################
10
11_quotedquery_ {}
12_freqmsg_ {}
13_resultline_ {}
14_thisfirst_ {}
15_thislast_ {}
16_nextfirst_ {}
17_nextlast_ {}
18_prevfirst_ {}
19_prevlast_ {}
20_searchhistorylist_ {}
21
22#######################################################################
23# icons
24#######################################################################
25
26_iconthispage_ {<img src="_httpiconhsearch_" alt="_texticonthispage_" title="_texticonthispage_" width="_widthhsearch_" height="_heighthsearch_">}
27_iconthispage_ [v=1] {<h2>_texticonthispage_</h2>}
28
29_queryresultsbar_ {
30<div class="divbar">
31<p class="navbar">_texthresults_</p>
32</div>
33}
34
35# _iconnext_ and _iconprev_ are overridden in this package as we
36# don't want alt text here
37_iconnext_{<img src="_httpiconmore_" width=_widthmore_ height=_heightmore_ border=0 align=top>}
38_iconnext_ [v=1] {}
39_iconprev_{<img src="_httpiconless_" width=_widthless_ height=_heightless_ border=0 align=top>}
40_iconprev_ [v=1] {}
41
42#######################################################################
43# images
44#######################################################################
45
46_imagethispage_ {_iconthispage_}
47
48
49#######################################################################
50# page content
51#######################################################################
52
53_pagetitle_ {_If_(_cgiargq_,_textquerytitle_,_textnoquerytitle_)}
54
55_content_ {
56_optnavigationbar_
57
58_queryform_
59_If_(_searchhistorylist_,<center>
60_searchhistorylist_
61</center>)
62_If_(_cgiargq_,_queryresultsbar_
63<small>
64_freqmsg_
65_textpostprocess_</small><br>
66,<center><div class="divbar">&nbsp;</div></center>)<br>
67_resultline_<p>
68}
69
70_queryform_ {
71<!-- query form -->
72<form name=QueryForm method=get action="_gwcgi_">
73
74<input type=hidden name="a" value="q">
75<input type=hidden name="e" value="_decodedcompressedoptions_">
76<input type=hidden name="r" value="1">
77<input type=hidden name="hs" value="1">
78<input type=hidden name="g" value="Document"
79<center>
80<table><tr><td>
81<nobr>
82 _textselect_<br>
83<nobr>
84</tr></td>
85<tr><td>
86<nobr>
87 <center>
88 <input type="text" name="q" value="_cgiargq_" size="50">
89 <input type="submit" value="_textbeginsearch_">
90 </center>
91</nobr>
92</tr></td>
93<tr><td>
94 _textdatesearch_<br>
95</tr></td>
96<tr><td>
97 <center>
98_textstartdate_
99<input type="text" name="ds" value = "_cgiargds_"size="4" maxlength="4">
100<select name="dsbc" value="_cgiargdsbc_" size="1">
101 <option value = "0"_If_(_cgiargdsbc_,, selected)>_textad_
102 <option value = "1"_If_(_cgiargdsbc_, selected)>_textbc_
103</select>
104_textenddate_
105<input type="text" name="de" value = "_cgiargde_" size="4" maxlength="4">
106<select name="debc" size="1">
107 <option value = "0" _If_(_cgiargdebc_,, selected)>_textad_
108 <option value = "1" _If_(_cgiargdebc_, selected)>_textbc_
109</select>
110</center>
111</tr></td>
112<tr><td>
113_textexplaineras_
114</tr></td>
115</table>
116</center>
117</form>
118<!-- end of query form -->
119}
120
121_textselect_ {_If_(_cgiargb_,_textadvancedsearch_,_textsimplesearch_)}
122
123# we want to put the links to previous/next pages of results
124# in the footer
125_pagefooterextra_ {
126<center>
127<table cellspacing=0 cellpadding=0 width=_pagewidth_>
128<tr>
129<td align=left>_If_(_prevfirst_,<a href="_httpquery_&r=_prevfirst_">_iconprev__textmatches__prevfirst_ - _prevlast_</a>)</td>
130<td align=right>_If_(_nextfirst_,<a href="_httpquery_&r=_nextfirst_">_textmatches__nextfirst_ - _nextlast__iconnext_</a>)</td>
131</tr></table>
132</center>
133}
134
135_querytypeselection_ {
136<select name="t">
137<option value="1"_If_(_cgiargt_, selected)>_textsome_
138<option value="0"_If_(_cgiargt_,, selected)>_textall_
139</select>
140}
141
142
143
144
145
146
147
148
149
150
Note: See TracBrowser for help on using the repository browser.