3 # $Id: targets.egw,v 1.25 1996/04/25 10:22:21 adam Exp $
5 if {![info exists debug]} {
6 if {[lindex $sessionParms 1] == "1"} {
12 if {[info commands saveState] == ""} {
15 set html3 [lindex $sessionParms 0]
16 if {[string length $html3] == 0} {
17 if {![info exists env(HTTP_USER_AGENT)]} {
19 } elseif {[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>
33 set scriptQuery query.egw
34 set scriptTarget targets.egw
39 if {[info exists nextSetNo]} {
43 html "<h2>Select a target</h2><br>\n"
47 html {<dt><h2>} $h \n {</h2>}
55 if {!$waisFlag && ![string compare [lindex $targets($t) 1] WAIS]} {
58 html {<dt><b><a href="http:} $env(SCRIPT_NAME) /
59 html "$sessionId/query.egw;/-1+$t" {"> } [lindex $targets($t) 0]
63 set desc [lindex $targets($t) 4]
64 if {[string length $desc] > 0} {
69 if {![info exists waisFlag]} {
71 if {[catch {wais waisdummy}]} {
77 serverList headlineC targetC
82 if {[info exists nextSetNo]} {
92 html "<h3>Debug information</h3>\n"
93 html "sessionId: $sessionId <br>\n"
94 html "sessionParms: $sessionParms <br>\n"
95 foreach n [array names env] {
96 html "env($n) = " $env($n) " <br>\n"