3 # $Id: mtargets.egw,v 1.16 1996/03/05 18:50:25 adam Exp $
6 if {[info commands saveState] == ""} {
11 if {![info exists debug]} {
12 if {[lindex $sessionParms 1] == "1"} {
18 set html3 [lindex $sessionParms 0]
19 if {[string length $html3] == 0} {
20 if {![info exists env(HTTP_USER_AGENT)]} {
22 } elseif {[string first Mozilla $env(HTTP_USER_AGENT)] == 0} {
24 egw_log debug "New user using Netscape"
27 egw_log debug "New user Not using Netscape"
32 <title>Europagate, WWW/Z39.50 Gateway</title>
38 button-define-target 0
40 html "<h2>Choose one or more targets</h2>\n"
41 html {<form action="http:} $env(SCRIPT_NAME)
42 html / $sessionId {/mquery.egw/} $setNo {" method=get><br>} \n
47 proc targetsCmp {l r} {
49 return [string compare [string tolower [lindex $targets($l) 0]] \
50 [string tolower [lindex $targets($r) 0]]]
52 set tt [array names targets]
53 set tn [lsort -command targetsCmp $tt]
55 html {<dt>} [ lindex $targets($t) 0]
57 set databases [lindex $targets($t) 1]
59 set desc [lindex $targets($t) 4]
63 foreach d $databases {
64 html {<input type="checkbox" name="target"}
65 html { value="} $t + $d {"> } $d
70 html {<input type="submit" value="Select"></form>} \n
75 button-define-target 0
82 html "<h3>Debug information</h3>\n"
83 html "sessionId: $sessionId <br>\n"
84 html "sessionParms: $sessionParms <br>\n"
85 foreach e {SERVER_NAME PATH_INFO SCRIPT_NAME} {
86 html $e {: } $env($e) {<br>} \n