Index: /trunk/gsdl/macros/dateqry.dm
===================================================================
--- /trunk/gsdl/macros/dateqry.dm	(revision 2045)
+++ /trunk/gsdl/macros/dateqry.dm	(revision 2045)
@@ -0,0 +1,146 @@
+package query
+
+
+#######################################################################
+# Macros whose values are set from within the server at runtime. These 
+# are here only for reference and to set default values if required.           
+#######################################################################
+
+_quotedquery_ {}
+_freqmsg_ {}
+_resultline_ {}
+_thisfirst_ {}
+_thislast_ {}
+_nextfirst_ {}
+_nextlast_ {}
+_prevfirst_ {}
+_prevlast_ {}
+_searchhistorylist_ {}
+
+#######################################################################
+# icons
+#######################################################################
+
+_iconthispage_ {<img src="_httpiconhsearch_" alt="_texticonthispage_" width="_widthhsearch_" height="_heighthsearch_">}
+_iconthispage_ [v=1] {<h2>_texticonthispage_</h2>}
+
+_iconqueryresultsbar_ {<img src="_httpiconqryresb_" width="_widthqryresb_" height="_heightqryresb_" alt="_texticonqueryresultsbar_">}
+_iconqueryresultsbar_[v=1] {_texticonqueryresultsbar_}
+
+# _iconnext_ and _iconprev_ are overridden in this package as we
+# don't want alt text here
+_iconnext_{<img src="_httpiconmore_" width=_widthmore_ height=_heightmore_ border=0 align=top>}
+_iconnext_ [v=1] {}
+_iconprev_{<img src="_httpiconless_" width=_widthless_ height=_heightless_ border=0 align=top>}
+_iconprev_ [v=1] {}
+
+#######################################################################
+# images
+#######################################################################
+
+_imagethispage_ {_iconthispage_}
+
+
+#######################################################################
+# page content
+#######################################################################
+
+_pagetitle_ {_If_(_cgiargq_,_textquerytitle_,_textnoquerytitle_)}
+
+_content_ {
+<center>
+_navigationbar_
+</center>
+_queryform_
+_If_(_searchhistorylist_,<center>
+_searchhistorylist_
+</center>)
+_If_(_cgiargq_,<center>_iconqueryresultsbar_</center><br>
+<small>
+_freqmsg_
+_textpostprocess_</small><br>
+,<center>_iconblankbar_</center>)<br>
+_resultline_<p>
+}
+
+_queryform_ {
+<!-- query form -->
+<form name=QueryForm method=get action="_gwcgi_">
+
+<input type=hidden name="a" value="q">
+<input type=hidden name="e" value="_decodedcompressedoptions_">
+<input type=hidden name="r" value="1">
+<input type=hidden name="hs" value="1">
+<input type=hidden name="g" value="Document" 
+<center>
+<table><tr><td>
+<nobr>
+	_textselect_<br>
+<nobr>	
+</tr></td>
+<tr><td>
+<nobr>
+	<center>
+	<input type="text" name="q" value="_cgiargq_" size="50">
+	<input type="submit" value="_textbeginsearch_">
+	</center>
+</nobr>
+</tr></td>
+<tr><td>
+	_textdatesearch_<br>
+</tr></td>
+<tr><td>
+	<center>
+_textstartdate_
+<input type="text" name="ds" value = "_cgiargds_"size="4" maxlength="4">
+<select name="dsbc" value="_cgiargdsbc_" size="1">
+	<option value = "0"_If_(_cgiargdsbc_,, selected)>_textad_
+	<option value = "1"_If_(_cgiargdsbc_, selected)>_textbc_
+</select> 
+_textenddate_
+<input type="text" name="de" value = "_cgiargde_" size="4" maxlength="4"> 
+<select name="debc" size="1">
+	<option value = "0" _If_(_cgiargdebc_,, selected)>_textad_
+	<option value = "1" _If_(_cgiargdebc_, selected)>_textbc_
+</select> 
+</center>	  
+</tr></td>
+<tr><td>
+_textexplaineras_
+</tr></td>
+</table>
+</center>
+</form>
+<!-- end of query form -->
+}
+
+_textselect_ {_If_(_cgiargb_,_textadvancedsearch_,_textsimplesearch_)}
+
+# we want to put the links to previous/next pages of results
+# in the footer
+_pagefooterextra_ {
+<center>
+<table cellspacing=0 cellpadding=0 width=_pagewidth_>
+<tr>
+<td align=left>_If_(_prevfirst_,<a href="_httpquery_&r=_prevfirst_">_iconprev__textmatches__prevfirst_ - _prevlast_</a>)</td>
+<td align=right>_If_(_nextfirst_,<a href="_httpquery_&r=_nextfirst_">_textmatches__nextfirst_ - _nextlast__iconnext_</a>)</td>
+</tr></table>
+</center>
+}
+
+_querytypeselection_ {
+<select name="t">
+<option value="1"_If_(_cgiargt_, selected)>_textsome_
+<option value="0"_If_(_cgiargt_,, selected)>_textall_
+</select>
+}
+
+
+
+
+
+
+
+
+
+
