X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=www%2Fsearch.egw;h=a249f6cdaeb40274b0c3cf81a554d5989f75db83;hb=a6e5ecf2a6d6dedf266c5f9d6bc2447a528b199e;hp=6687d2411525d3e3c835e4c748a5162b4e05263d;hpb=852b4caac48a2542af95c577dab306db1bda56f1;p=egate.git diff --git a/www/search.egw b/www/search.egw index 6687d24..a249f6c 100644 --- a/www/search.egw +++ b/www/search.egw @@ -1,33 +1,53 @@ { -# $Id: search.egw,v 1.12 1995/11/09 15:24:36 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 records } "| \n" + html {">Next records} " | \n" } if {$startPos != "" && $startPos != "1"} { html { Previous records } "| \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] == ""} {
@@ -38,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) "