[128] | 1 | package 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>}
|
---|
[1263] | 33 | _iconnext_ [v=1] {}
|
---|
[276] | 34 | _iconprev_{<img src="_httpiconless_" width=_widthless_ height=_heightless_ border=0 align=top>}
|
---|
[1263] | 35 | _iconprev_ [v=1] {}
|
---|
[148] | 36 |
|
---|
| 37 | #######################################################################
|
---|
| 38 | # images
|
---|
| 39 | #######################################################################
|
---|
| 40 |
|
---|
| 41 | _imagethispage_ {_iconthispage_}
|
---|
| 42 |
|
---|
| 43 |
|
---|
| 44 | #######################################################################
|
---|
| 45 | # page content
|
---|
| 46 | #######################################################################
|
---|
| 47 |
|
---|
[276] | 48 | _pagetitle_ {_If_(_cgiargq_,_textquerytitle_,_textnoquerytitle_)}
|
---|
[148] | 49 |
|
---|
[276] | 50 | _content_ {
|
---|
| 51 | <center>
|
---|
| 52 | _navigationbar_
|
---|
| 53 | </center>
|
---|
[128] | 54 | _queryform_
|
---|
[942] | 55 | _If_(_searchhistorylist_,<center>
|
---|
| 56 | _searchhistorylist_
|
---|
| 57 | </center>)
|
---|
[276] | 58 | _If_(_cgiargq_,<center>_iconqueryresultsbar_</center><br>
|
---|
| 59 | <small>
|
---|
| 60 | _freqmsg_
|
---|
| 61 | _textpostprocess_</small><br>
|
---|
[128] | 62 | _resultline_
|
---|
[276] | 63 | ,<center>_iconblankbar_</center>)<br>
|
---|
[128] | 64 | }
|
---|
| 65 |
|
---|
| 66 | _queryform_ {
|
---|
[276] | 67 | <!-- query form -->
|
---|
[128] | 68 | <form name=QueryForm method=get action="_gwcgi_">
|
---|
| 69 |
|
---|
| 70 | <input type=hidden name="a" value="q">
|
---|
[876] | 71 | <input type=hidden name="e" value="_decodedcompressedoptions_">
|
---|
[128] | 72 | <input type=hidden name="r" value="1">
|
---|
[942] | 73 | <input type=hidden name="hs" value="1">
|
---|
[128] | 74 |
|
---|
| 75 | <center>
|
---|
| 76 | <table><tr><td>
|
---|
| 77 | <nobr>
|
---|
[148] | 78 | _textselect_<br>
|
---|
[128] | 79 | </nobr>
|
---|
| 80 | </td></tr><tr><td>
|
---|
| 81 | <nobr>
|
---|
[276] | 82 | <input type="text" name="q" value="_cgiargq_" size="50">
|
---|
| 83 | <input type="submit" value="_textbeginsearch_">
|
---|
[128] | 84 | </nobr>
|
---|
| 85 | </td></tr></table>
|
---|
| 86 | </center>
|
---|
| 87 | </form>
|
---|
[276] | 88 | <!-- end of query form -->
|
---|
[128] | 89 | }
|
---|
[148] | 90 |
|
---|
[1289] | 91 | _textselect_ {_If_(_cgiargb_,_textadvancedsearch_,_textsimplesearch_)}
|
---|
| 92 |
|
---|
[276] | 93 | # we want to put the links to previous/next pages of results
|
---|
| 94 | # in the footer
|
---|
| 95 | _pagefooterextra_ {
|
---|
| 96 | <center>
|
---|
| 97 | <table cellspacing=0 cellpadding=0 width=_pagewidth_>
|
---|
| 98 | <tr>
|
---|
| 99 | <td align=left>_If_(_prevfirst_,<a href="_httpquery_&r=_prevfirst_">_iconprev__textmatches__prevfirst_ - _prevlast_</a>)</td>
|
---|
| 100 | <td align=right>_If_(_nextfirst_,<a href="_httpquery_&r=_nextfirst_">_textmatches__nextfirst_ - _nextlast__iconnext_</a>)</td>
|
---|
| 101 | </tr></table>
|
---|
| 102 | </center>
|
---|
| 103 | }
|
---|
| 104 |
|
---|
[1289] | 105 | _querytypeselection_ {
|
---|
| 106 | <select name="t">
|
---|
| 107 | <option value="1"_If_(_cgiargt_, selected)>_textsome_
|
---|
| 108 | <option value="0"_If_(_cgiargt_,, selected)>_textall_
|
---|
| 109 | </select>
|
---|
| 110 | }
|
---|