3 # $Id: targets.egw,v 1.20 1996/03/05 18:50:25 adam Exp $
5 if {[info commands saveState] == ""} {
10 if {![info exists debug]} {
11 if {[lindex $sessionParms 1] == "1"} {
17 set html3 [lindex $sessionParms 0]
18 if {[string length $html3] == 0} {
19 if {![info exists env(HTTP_USER_AGENT)]} {
21 } elseif {[string first Mozilla $env(HTTP_USER_AGENT)] == 0} {
23 egw_log debug "New user using Netscape"
26 egw_log debug "New user Not using Netscape"
31 <title> Europagate, WWW/Z39.50 Gateway </title>
38 if {[info exists nextSetNo]} {
41 button-define-target 0
42 html "<h2>Choose a target</h2><br>\n"
45 proc targetsCmp {l r} {
47 return [string compare [string tolower [lindex $targets($l) 0]] \
48 [string tolower [lindex $targets($r) 0]]]
50 set tt [array names targets]
51 set tn [lsort -command targetsCmp $tt]
53 if {[string index $t 0] == "."} continue
54 html {<dt><a href="http:} $env(SCRIPT_NAME) /
55 html "$sessionId/query.egw;/$t" {"> } [lindex $targets($t) 0] " </a>\n"
56 set desc [lindex $targets($t) 4]
64 if {[info exists nextSetNo]} {
67 button-define-target 0
74 html "<h3>Debug information</h3>\n"
75 html "sessionId: $sessionId <br>\n"
76 html "sessionParms: $sessionParms <br>\n"
77 foreach n [array names env] {
78 html "env($n) = " $env($n) " <br>\n"