source: main/tags/2.51-jcdl/gsdl/macros/dateqry.dm@ 25200

Last change on this file since 25200 was 7503, checked in by davidb, 20 years ago

Modification made to navigation bar so its position in the default location
of the page is optional. Useful when you want to include the navigation
bar somewhere else. It's straightforward enough to add text that include
the navigation bar in the a new place, but without this modification there
is a lot of editing to do to supress it also appearing in its default position.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 3.9 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_iconqueryresultsbar_ {<img src="_httpiconqryresb_" width="_widthqryresb_" height="_heightqryresb_" alt="_texticonqueryresultsbar_" title="_texticonqueryresultsbar_">}
30_iconqueryresultsbar_[v=1] {_texticonqueryresultsbar_}
31
32# _iconnext_ and _iconprev_ are overridden in this package as we
33# don't want alt text here
34_iconnext_{<img src="_httpiconmore_" width=_widthmore_ height=_heightmore_ border=0 align=top>}
35_iconnext_ [v=1] {}
36_iconprev_{<img src="_httpiconless_" width=_widthless_ height=_heightless_ border=0 align=top>}
37_iconprev_ [v=1] {}
38
39#######################################################################
40# images
41#######################################################################
42
43_imagethispage_ {_iconthispage_}
44
45
46#######################################################################
47# page content
48#######################################################################
49
50_pagetitle_ {_If_(_cgiargq_,_textquerytitle_,_textnoquerytitle_)}
51
52_content_ {
53<center>
54_optnavigationbar_
55</center>
56_queryform_
57_If_(_searchhistorylist_,<center>
58_searchhistorylist_
59</center>)
60_If_(_cgiargq_,<center>_iconqueryresultsbar_</center><br>
61<small>
62_freqmsg_
63_textpostprocess_</small><br>
64,<center>_iconblankbar_</center>)<br>
65_resultline_<p>
66}
67
68_queryform_ {
69<!-- query form -->
70<form name=QueryForm method=get action="_gwcgi_">
71
72<input type=hidden name="a" value="q">
73<input type=hidden name="e" value="_decodedcompressedoptions_">
74<input type=hidden name="r" value="1">
75<input type=hidden name="hs" value="1">
76<input type=hidden name="g" value="Document"
77<center>
78<table><tr><td>
79<nobr>
80 _textselect_<br>
81<nobr>
82</tr></td>
83<tr><td>
84<nobr>
85 <center>
86 <input type="text" name="q" value="_cgiargq_" size="50">
87 <input type="submit" value="_textbeginsearch_">
88 </center>
89</nobr>
90</tr></td>
91<tr><td>
92 _textdatesearch_<br>
93</tr></td>
94<tr><td>
95 <center>
96_textstartdate_
97<input type="text" name="ds" value = "_cgiargds_"size="4" maxlength="4">
98<select name="dsbc" value="_cgiargdsbc_" size="1">
99 <option value = "0"_If_(_cgiargdsbc_,, selected)>_textad_
100 <option value = "1"_If_(_cgiargdsbc_, selected)>_textbc_
101</select>
102_textenddate_
103<input type="text" name="de" value = "_cgiargde_" size="4" maxlength="4">
104<select name="debc" size="1">
105 <option value = "0" _If_(_cgiargdebc_,, selected)>_textad_
106 <option value = "1" _If_(_cgiargdebc_, selected)>_textbc_
107</select>
108</center>
109</tr></td>
110<tr><td>
111_textexplaineras_
112</tr></td>
113</table>
114</center>
115</form>
116<!-- end of query form -->
117}
118
119_textselect_ {_If_(_cgiargb_,_textadvancedsearch_,_textsimplesearch_)}
120
121# we want to put the links to previous/next pages of results
122# in the footer
123_pagefooterextra_ {
124<center>
125<table cellspacing=0 cellpadding=0 width=_pagewidth_>
126<tr>
127<td align=left>_If_(_prevfirst_,<a href="_httpquery_&r=_prevfirst_">_iconprev__textmatches__prevfirst_ - _prevlast_</a>)</td>
128<td align=right>_If_(_nextfirst_,<a href="_httpquery_&r=_nextfirst_">_textmatches__nextfirst_ - _nextlast__iconnext_</a>)</td>
129</tr></table>
130</center>
131}
132
133_querytypeselection_ {
134<select name="t">
135<option value="1"_If_(_cgiargt_, selected)>_textsome_
136<option value="0"_If_(_cgiargt_,, selected)>_textall_
137</select>
138}
139
140
141
142
143
144
145
146
147
148
Note: See TracBrowser for help on using the repository browser.