X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;ds=inline;f=www%2Fsearch.egw;h=a249f6cdaeb40274b0c3cf81a554d5989f75db83;hb=a6e5ecf2a6d6dedf266c5f9d6bc2447a528b199e;hp=21af85462ff139c2f58af083befab5047fbccf64;hpb=b443634fbd412cea15ea527188c3e241bb1edf21;p=egate.git diff --git a/www/search.egw b/www/search.egw index 21af854..a249f6c 100644 --- a/www/search.egw +++ b/www/search.egw @@ -1,32 +1,53 @@ { -# $Id: search.egw,v 1.11 1995/11/08 16:14:33 adam Exp $ +# $Id: search.egw,v 1.17 1995/11/14 16:01:51 adam Exp $ -proc buttons {setNo setMax startPos} { +proc buttons {setNo setMax startPos after} { global sessionId global env global hist + if {$after && $setMax < [z39.$setNo resultCount]} { + html "
\n" + html "
\n" if {$setMax < [z39.$setNo resultCount]} { html { Next } "| \n" + html + [expr $setMax + $hist($setNo,maxPresent)] + html {">Next records} " | \n" } if {$startPos != "" && $startPos != "1"} { html { Prev } "| \n" + html + [expr $startPos - $hist($setNo,maxPresent)] + html + [expr $startPos - 1] + html {">Previous records} " | \n" } html { New target } " | \n" - html { New query } "
\n" + html {">New query} " | \n" + + html {New target} "
\n" + + if {!$after && $startPos != "" && $startPos != "1"} { + html "
\n"
+ }
+
}
if {[info commands saveState] == ""} {
@@ -37,20 +58,43 @@ proc buttons {setNo setMax startPos} {
global setNo
global hist
- if {[wform menu1] == ""} {
- set setNo [lindex $sessionParms 0]
- } else {
- if {![info exists hist($nextSetNo,host)]} {
- set hist($nextSetNo,idAuthentication) $hist($setNo,idAuthentication)
- set hist($nextSetNo,host) $hist($setNo,host)
- }
+ set setNo [lindex $sessionParms 0]
+ if {[wform menu1] != ""} {
+ set hist($nextSetNo,idAuthentication) $hist($setNo,idAuthentication)
+ set hist($nextSetNo,host) $hist($setNo,host)
set setNo $nextSetNo
html "using host " $hist($setNo,host) "