Plus (+) characters automatically converted to space in forms.
[egate.git] / www / mtargets.egw
1 <html>
2 {
3 # $Id: mtargets.egw,v 1.6 1995/11/10 14:47:31 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 {<dd>}
24         set databases [lindex $targets($t) 1]
25
26         set desc [lindex $targets($t) 4]
27         if {$desc != ""} {
28             html "<em>$desc</em><br>\n"
29         }
30         foreach d $databases {
31             html {<input type="checkbox" name="target"}
32             html { value="} $t + $d {"> } $d 
33         }
34         html "<br>\n"
35     }
36     html "</dl>\n"
37 }
38 <input type="submit" value="Select">
39 </form>
40 <hr>
41 This page is maintained by <a href="mailto:pwh@dtv.dk"> Peter Wad Hansen </a>.
42 Last modified 25. september 1995. <br>
43 <em> This and the following pages are under construction and will continue 
44 to be so until the end of December 1995.</em>
45 {
46     html "<hr>\n"
47     html "<h3>Debug information</h3>\n"
48     html "sessionId: $sessionId <br>\n"
49     html "sessionParms: $sessionParms <br>\n"
50     foreach e {SERVER_NAME PATH_INFO SCRIPT_NAME} {
51         html $e {: } $env($e) {<br>} \n
52     }
53 }
54 </body>
55 </html>