Bug fix: the search.egw didn't always obtain the right host.
[egate.git] / www / mtargets.egw
1 <html>
2 {
3 # $Id: mtargets.egw,v 1.5 1995/11/10 10:20:23 adam Exp $
4     set setNo 1
5     source /usr/local/etc/httpd/conf/ztargets.conf
6     if {[info commands saveState] == ""} {
7         source z39util.tcl
8     }
9 }
10 <head>
11 <title>Europagate, WWW/Z39.50 Gateway</title>
12 </head>
13 <body>
14 <h1>Search in multiple targets</h1>
15 <hr>
16 <h3>Choose one or more Z39.50 targets:</h3>
17 {
18     html {<form action="http:} $env(SCRIPT_NAME)
19     html / $sessionId {/mquery.egw/} $setNo {" method=post><br>} \n
20     html "<dl>\n"
21     foreach t [array names targets] {
22         html {<dt>} [ lindex $targets($t) 0]
23 #        html {<input type="checkbox" name="target" value="} $t
24 #        html {"> }
25         html {<dd>}
26         set databases [lindex $targets($t) 1]
27         foreach d $databases {
28             html {<input type="checkbox" name="target} {" } 
29             html { value="} $d {"> } $d " <br>\n"
30         }
31         html "\n"
32     }
33     html "</dl>\n"
34 }
35 <input type="submit" value="Select">
36 </form>
37 <hr>
38 This page is maintained by <a href="mailto:pwh@dtv.dk"> Peter Wad Hansen </a>.
39 Last modified 25. september 1995. <br>
40 <em> This and the following pages are under construction and will continue 
41 to be so until the end of December 1995.</em>
42 {
43     html "<hr>\n"
44     html "<h3>Debug information</h3>\n"
45     html "sessionId: $sessionId <br>\n"
46     html "sessionParms: $sessionParms <br>\n"
47     foreach e {SERVER_NAME PATH_INFO SCRIPT_NAME} {
48         html $e {: } $env($e) {<br>} \n
49     }
50 }
51 </body>
52 </html>