3 # $Id: mtargets.egw,v 1.21 1996/04/25 10:22:20 adam Exp $
6 if {![info exists debug]} {
7 if {[lindex $sessionParms 1] == "1"} {
13 if {[info commands saveState] == ""} {
16 set html3 [lindex $sessionParms 0]
17 if {[string length $html3] == 0} {
18 if {![info exists env(HTTP_USER_AGENT)]} {
20 } elseif {[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>
34 set scriptQuery mquery.egw
35 set scriptTarget mtargets.egw
41 html "<h2>Choose one or more targets</h2>\n"
42 html {<form action="http:} $env(SCRIPT_NAME)
43 html / $sessionId / $scriptQuery {;/} -1 {" method=get><br>} \n
47 html {<dt><h2>} $h \n {</h2>}
52 if {!$waisFlag && ![string compare [lindex $targets($t) 1] WAIS]} {
55 html {<dt><b>} [lindex $targets($t) 0]
57 set databases [splitDatabaseSpec $t]
59 set desc [lindex $targets($t) 4]
60 if {[string length $desc] > 0} {
64 foreach d $databases {
65 html {<input type="checkbox" name="target"}
66 html { value="} $t + $d {"> } $d
70 if {![info exists waisFlag]} {
72 if {[catch {wais waisdummy}]} {
78 serverList headlineC targetC
81 html {<input type="submit" value="Select"></form>} \n
93 html "<h3>Debug information</h3>\n"
94 html "sessionId: $sessionId <br>\n"
95 html "sessionParms: $sessionParms <br>\n"
96 foreach e {SERVER_NAME PATH_INFO SCRIPT_NAME} {
97 html $e {: } $env($e) {<br>} \n