3 # $Id: targets.egw,v 1.19 1996/01/26 17:41:26 adam Exp $
5 if {[info commands saveState] == ""} {
10 if {![info exists debug]} {
11 if {[lindex $sessionParms 1] == "1"} {
17 set html3 [lindex $sessionParms 0]
19 if {[string first Mozilla $env(HTTP_USER_AGENT)] == 0} {
21 egw_log debug "New user using Netscape"
24 egw_log debug "New user Not using Netscape"
29 <title> Europagate, WWW/Z39.50 Gateway </title>
36 if {[info exists nextSetNo]} {
39 button-define-target 0
40 html "<h2>Choose a target</h2><br>\n"
43 proc targetsCmp {l r} {
45 return [string compare [string tolower [lindex $targets($l) 0]] \
46 [string tolower [lindex $targets($r) 0]]]
48 set tt [array names targets]
49 set tn [lsort -command targetsCmp $tt]
51 if {[string index $t 0] == "."} continue
52 html {<dt><a href="http:} $env(SCRIPT_NAME) /
53 html "$sessionId/query.egw;/$t" {"> } [lindex $targets($t) 0] " </a>\n"
54 set desc [lindex $targets($t) 4]
62 if {[info exists nextSetNo]} {
65 button-define-target 0
72 html "<h3>Debug information</h3>\n"
73 html "sessionId: $sessionId <br>\n"
74 html "sessionParms: $sessionParms <br>\n"
75 foreach n [array names env] {
76 html "env($n) = " $env($n) " <br>\n"