X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=www%2Fmquery.egw;h=4fc8f45884d4633767abc0516f39a8f06fcc49e8;hb=d1fc0ff84894bba24f827a81597717e9f69b6c06;hp=755b77aac16fad68026b02ff3eb7b460ad0e1491;hpb=3d4b6045b8875099666b99edbf1457c91b5da928;p=egate.git diff --git a/www/mquery.egw b/www/mquery.egw index 755b77a..4fc8f45 100644 --- a/www/mquery.egw +++ b/www/mquery.egw @@ -4,7 +4,7 @@ { -# $Id: mquery.egw,v 1.3 1995/11/08 18:07:22 adam Exp $ +# $Id: mquery.egw,v 1.10 1996/01/24 08:27:25 adam Exp $ if {[info commands saveState] == ""} { source z39util.tcl @@ -13,39 +13,36 @@ global setNo global nextSetNo global hist - - html {
} \n + global targets if {[catch {set setNo $nextSetNo}]} { set nextSetNo 1 set setNo 1 } - if {1} { - set i 1 - foreach host [array names targets] { - set databases [wform target$host] - if {$databases == ""} continue - html "host=$host, $databases
\n" - set hist($setNo,$i,host) $host - set hist($setNo,$i,database) $databases - incr i - } - } else { - set hosts [wform target] - html "hosts=$hosts
\n" - set i 1 - foreach host $hosts { - set hist($setNo,$i,host) $host - set hist($setNo,$i,database) [lindex [lindex $targets($host) 1] 0] - incr i + + html {} \n + + set phost {} + set i 0 + foreach t [lsort [egw_form target]] { + set host [lindex $t 0] + set base [lindex $t 1] + if {$host != $phost} { + set phost $host + incr i + set hist($setNo,$i,host) $host + set hist($setNo,$i,idAuthentication) [lindex $targets($host) 3] + } + lappend hist($setNo,$i,database) $base } - set host [lindex $hosts 0] + if {$i == 0} { + html "

No targets specified

" + egw_abort 1 } - set hist($setNo,0,host) [expr $i - 1] + set hist($setNo,0,host) $i } -
-

Input your search criteria:


+

Input your search criteria:


{ set fields [lindex $targets($host) 2] for {set no 1} {$no < 4} {incr no} { @@ -54,7 +51,7 @@ html {
-
-This page is maintained by Peter Wad Hansen . -Last modified 29. september 1995.
- This and the following pages are under construction -and will continue to be so until the end of December 1995. -
- { + global useIcons + if {$useIcons} { + html {} + } html { New target } + html / $sessionId {/mtargets.egw} + if {$useIcons} { + html {">} + } else { + html {"> New target } + } } { + catch maintenance + if {!$debug} return html "
\n" html "

Debug information

\n" html "sessionId: $sessionId
\n" @@ -97,7 +94,12 @@ and will continue to be so until the end of December 1995. foreach e {SERVER_NAME PATH_INFO SCRIPT_NAME} { html $e {: } $env($e) {
} \n } - html "form: " [wform] "
\n" + set j $hist($setNo,0,host) + for {set i 1} {$i <= $j} {incr i} { + html "host=" $hist($setNo,$i,host) " " $hist($setNo,$i,database) + html "
\n" + } + html "form: " [egw_form] "
\n" html "target: " $host "
\n" html "setNo: " $setNo "
\n" html "nextSetNo: " $nextSetNo "
\n"