3 # $Id: mtargets.egw,v 1.14 1996/01/29 17:31:47 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
42 foreach t [array names targets] {
43 html {<dt>} [ lindex $targets($t) 0]
45 set databases [lindex $targets($t) 1]
47 set desc [lindex $targets($t) 4]
51 foreach d $databases {
52 html {<input type="checkbox" name="target"}
53 html { value="} $t + $d {"> } $d
58 html {<input type="submit" value="Select"></form>} \n
63 button-define-target 0
70 html "<h3>Debug information</h3>\n"
71 html "sessionId: $sessionId <br>\n"
72 html "sessionParms: $sessionParms <br>\n"
73 foreach e {SERVER_NAME PATH_INFO SCRIPT_NAME} {
74 html $e {: } $env($e) {<br>} \n