X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=www%2Fmquery.egw;h=eaae83ef6fd0e6a1c9339a67311459d17697ed52;hb=6c6f3deb01675917b3c73cca50dd20d738593a47;hp=051dc918a43380e6dcfc2902ce5eae9e364ff724;hpb=b443634fbd412cea15ea527188c3e241bb1edf21;p=egate.git diff --git a/www/mquery.egw b/www/mquery.egw index 051dc91..eaae83e 100644 --- a/www/mquery.egw +++ b/www/mquery.egw @@ -4,7 +4,7 @@ { -# $Id: mquery.egw,v 1.2 1995/11/08 16:14:32 adam Exp $ +# $Id: mquery.egw,v 1.5 1995/11/13 15:41:41 adam Exp $ if {[info commands saveState] == ""} { source z39util.tcl @@ -13,24 +13,34 @@ global setNo global nextSetNo global hist - - html {
} \n + global targets if {[catch {set setNo $nextSetNo}]} { set nextSetNo 1 set setNo 1 } - 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 [wform 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 + } + if {$i == 0} { + html "

No targets specified

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

Input your search criteria:


@@ -64,7 +74,7 @@ Records are shown in:

- +


This page is maintained by Peter Wad Hansen . @@ -85,6 +95,11 @@ 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 } + 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: " [wform] "
\n" html "target: " $host "
\n" html "setNo: " $setNo "
\n"