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