From 705b88300e427db47dd933f2ee615e73bf3c3754 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 10 Nov 1995 10:20:23 +0000 Subject: [PATCH] Bug fix: the search.egw didn't always obtain the right host. --- www/mtargets.egw | 7 +++---- www/search.egw | 21 +++++++++------------ www/showfull.egw | 16 ++++++++-------- 3 files changed, 20 insertions(+), 24 deletions(-) diff --git a/www/mtargets.egw b/www/mtargets.egw index 3f846da..033028d 100644 --- a/www/mtargets.egw +++ b/www/mtargets.egw @@ -1,6 +1,6 @@ { -# $Id: mtargets.egw,v 1.4 1995/11/08 18:07:23 adam Exp $ +# $Id: mtargets.egw,v 1.5 1995/11/10 10:20:23 adam Exp $ set setNo 1 source /usr/local/etc/httpd/conf/ztargets.conf if {[info commands saveState] == ""} { @@ -25,9 +25,8 @@ html {
} set databases [lindex $targets($t) 1] foreach d $databases { - html {} " $d " - html "
\n" + html { } $d "
\n" } html "\n" } diff --git a/www/search.egw b/www/search.egw index 6687d24..3091a5a 100644 --- a/www/search.egw +++ b/www/search.egw @@ -1,6 +1,6 @@ { -# $Id: search.egw,v 1.12 1995/11/09 15:24:36 adam Exp $ +# $Id: search.egw,v 1.13 1995/11/10 10:20:24 adam Exp $ proc buttons {setNo setMax startPos} { global sessionId @@ -12,7 +12,7 @@ proc buttons {setNo setMax startPos} { html { Next records } "| \n" + html {">Next records} " | \n" } if {$startPos != "" && $startPos != "1"} { html { Previous records } "| \n" + html {">Previous records} " | \n" } html { New target } " | \n" + html / $sessionId {/targets.egw">New target} " | \n" html { New query } "

\n" + html {">New query} "\n

\n" } if {[info commands saveState] == ""} { @@ -38,13 +38,10 @@ 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) " { -# $Id: showfull.egw,v 1.7 1995/11/09 15:24:37 adam Exp $ +# $Id: showfull.egw,v 1.8 1995/11/10 10:20:25 adam Exp $ proc buttons {setNo no format} { global sessionId @@ -11,32 +11,32 @@ proc buttons {setNo no format} { if {$no < [z39.$setNo resultCount]} { html { Next record } "| \n" + html {">Next record} " | \n" } if {$no > 1} { html { Previous record } "| \n" + html {">Previous record} " | \n" } html {Raw format} "| \n" + html raw {">Raw format} " | \n" } else { - html full {">Full format} "| \n" + html full {">Full format} " | \n" } html { Result } "| \n" + html {">Result} " | \n" html { New target } " | \n" + html / $sessionId {/targets.egw">New target} " | \n" html { New query } "

\n" + html {">New query} "

\n" } -- 1.7.10.4