3 # $Id: targets.egw,v 1.14 1996/01/09 16:16:49 adam Exp $
5 if {[info commands saveState] == ""} {
10 <title> Europagate, WWW/Z39.50 Gateway </title>
13 <h2>Choose Z39.50 target</h2><br>
16 if {![info exists debug]} {
17 if {[lindex $sessionParms 0] == "1"} {
24 if {![info exists useIcons]} {
25 if {[lindex $sessionParms 1] == "1"} {
31 proc targetsCmp {l r} {
33 return [string compare [string tolower [lindex $targets($l) 0]] \
34 [string tolower [lindex $targets($r) 0]]]
36 set tt [array names targets]
37 set tn [lsort -command targetsCmp $tt]
39 if {[string index $t 0] == "."} continue
40 html {<dt><a href="http:} $env(SCRIPT_NAME) /
41 html "$sessionId/query.egw/$t" {"> } [lindex $targets($t) 0] " </a>\n"
42 set desc [lindex $targets($t) 4]
44 html "<dd><em>$desc</em>\n"
60 html "<h3>Debug information</h3>\n"
61 html "sessionId: $sessionId <br>\n"
62 html "sessionParms: $sessionParms <br>\n"
63 foreach n [array names env] {
64 html "env($n) = " $env($n) " <br>\n"