3 # $Id: mtargets.egw,v 1.15 1996/02/19 15:44:59 adam Exp $
6 if {[info commands saveState] == ""} {
11 if {![info exists debug]} {
12 if {[lindex $sessionParms 1] == "1"} {
18 set html3 [lindex $sessionParms 0]
20 if {[string first Mozilla $env(HTTP_USER_AGENT)] == 0} {
22 egw_log debug "New user using Netscape"
25 egw_log debug "New user Not using Netscape"
30 <title>Europagate, WWW/Z39.50 Gateway</title>
36 button-define-target 0
38 html "<h2>Choose one or more targets</h2>\n"
39 html {<form action="http:} $env(SCRIPT_NAME)
40 html / $sessionId {/mquery.egw/} $setNo {" method=get><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>} [ lindex $targets($t) 0]
55 set databases [lindex $targets($t) 1]
57 set desc [lindex $targets($t) 4]
61 foreach d $databases {
62 html {<input type="checkbox" name="target"}
63 html { value="} $t + $d {"> } $d
68 html {<input type="submit" value="Select"></form>} \n
73 button-define-target 0
80 html "<h3>Debug information</h3>\n"
81 html "sessionId: $sessionId <br>\n"
82 html "sessionParms: $sessionParms <br>\n"
83 foreach e {SERVER_NAME PATH_INFO SCRIPT_NAME} {
84 html $e {: } $env($e) {<br>} \n