X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=www%2Fmquery.egw;h=c20551929268c1b7865f7fe8a0772d4b418553c8;hb=cc5af6a5323f9576c208519dbf4351b4f818e166;hp=27e6e32917005e27d7df2f569c77450863287cbe;hpb=6e37e8e91bf35cb14c930e8988085cf78f11029a;p=egate.git diff --git a/www/mquery.egw b/www/mquery.egw index 27e6e32..c205519 100644 --- a/www/mquery.egw +++ b/www/mquery.egw @@ -4,7 +4,7 @@ { -# $Id: mquery.egw,v 1.1 1995/11/07 14:56:58 adam Exp $ +# $Id: mquery.egw,v 1.9 1996/01/09 16:16:47 adam Exp $ if {[info commands saveState] == ""} { source z39util.tcl @@ -13,27 +13,36 @@ 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:


+

Input your search criteria:


{ set fields [lindex $targets($host) 2] for {set no 1} {$no < 4} {incr no} { @@ -42,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. -
- { - html { New target } + global useIcons + if {$useIcons} { + html {} + } + html {} + } else { + html {"> New target } + } } { + catch maintenance + if {!$debug} return html "
\n" html "

Debug information

\n" html "sessionId: $sessionId
\n" @@ -85,6 +94,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"