3 # $Id: targets.egw,v 1.21 1996/03/08 16:47:06 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 html {<dt><a href="http:} $env(SCRIPT_NAME) /
54 html "$sessionId/query.egw;/$t" {"> } [lindex $targets($t) 0] " </a>\n"
55 set desc [lindex $targets($t) 4]
63 if {[info exists nextSetNo]} {
66 button-define-target 0
73 html "<h3>Debug information</h3>\n"
74 html "sessionId: $sessionId <br>\n"
75 html "sessionParms: $sessionParms <br>\n"
76 foreach n [array names env] {
77 html "env($n) = " $env($n) " <br>\n"