- set hist($setNo,0,host) [expr $i - 1]
- set host [lindex $hosts 0]
-}
-<hr>
-<h3>Input your search criteria: </h3> <br>
-{
+ set oSetNo [lindex $sessionParms 0]
+ if {$oSetNo < 0} {
+ set oSetNo 0
+ }
+ if {$i == 0 && $oSetNo && [info exists hist($oSetNo,0,host)]} {
+ for {set i 1} {$i <= $hist($oSetNo,0,host)} {incr i} {
+ set hist($setNo,$i,host) $hist($oSetNo,$i,host)
+ set hist($setNo,$i,idAuthentication) \
+ $hist($oSetNo,$i,idAuthentication)
+ set hist($setNo,$i,database) $hist($oSetNo,$i,database)
+ }
+ incr i -1
+ }
+ if {$i == 0} {
+ html "<h2>No targets specified</h2></body></html>"
+ egw_abort 1
+ }
+
+ set curSort server
+ set curFormat brief
+ if {$oSetNo} {
+ set curSort $hist($oSetNo,sort)
+ set curFormat $hist($oSetNo,format)
+ }
+
+ set hist($setNo,0,host) $i
+
+ html "<b>Fill-in this search form:</b><br>\n"