<html>
{
-# $Id: search.egw,v 1.6 1995/11/01 16:15:45 adam Exp $
+# $Id: search.egw,v 1.7 1995/11/02 16:35:36 adam Exp $
proc search-response {sno} {
global sessionWait
set oldHost $hist($setNo,host)
if {[wform menu1] == ""} {
+ html "state 1<br>\n"
set setNo [lindex $sessionParms 0]
} else {
+ html "state 2<br>\n"
if {![info exists hist($nextSetNo,host)]} {
set hist($nextSetNo,host) $oldHost
}
set setNo $nextSetNo
+ html "using host " $hist($setNo,host) " <br\n"
incr nextSetNo
set hist($setNo,query) [build-query]
html {<a href="http://} $env(SERVER_NAME) $env(SCRIPT_NAME)
html / $sessionId {/targets.egw"> New target </a>} " | \n"
html {<a href="http://} $env(SERVER_NAME) $env(SCRIPT_NAME)
- html / $sessionId {/query.egw/} $host {"> New query </a>}
+ html / $sessionId {/query.egw/} $host + $setNo {"> New query </a>}
}
</body>
</html>