3 <title> WWW/Z39.50 Gateway Query Form</title>
7 # $Id: mquery.egw,v 1.12 1996/01/29 17:31:45 adam Exp $
9 if {[info commands saveState] == ""} {
18 if {[catch {set setNo $nextSetNo}]} {
27 html {<form action="http:} $env(SCRIPT_NAME)
28 html / $sessionId {/msearch.egw/} $setNo {" method=get>} \n
32 foreach t [lsort [egw_form target]] {
33 set host [lindex $t 0]
34 set base [lindex $t 1]
35 if {$host != $phost} {
38 set hist($setNo,$i,host) $host
39 set hist($setNo,$i,idAuthentication) [lindex $targets($host) 3]
41 lappend hist($setNo,$i,database) $base
43 set oSetNo [lindex $sessionParms 0]
44 if {$i == 0 && [info exists hist($oSetNo,0,host)]} {
45 for {set i 1} {$i <= $hist($oSetNo,0,host)} {incr i} {
46 set hist($setNo,$i,host) $hist($oSetNo,$i,host)
47 set hist($setNo,$i,idAuthentication) \
48 $hist($oSetNo,$i,idAuthentication)
49 set hist($setNo,$i,database) $hist($oSetNo,$i,database)
54 html "<h2>No targets specified</h2></body></html>"
57 set hist($setNo,0,host) $i
59 html "Input your search criteria:<br>\n"
60 set fields [lindex $targets($host) 2]
61 for {set no 1} {$no < 4} {incr no} {
62 html {<select name="menu} $no {">} \n
64 html {<option> } [lindex $f 0] \n
67 html {<input type="text" name="entry} $no {" size=35>} \n
69 html {<select name="logic} $no {">} \n
72 html "<option> And not\n"
77 html {<input type=submit value="Search"><input type=reset value="Reset">}
79 html {Number of records to display in the result set list: }
80 html {<input type="text" name="hits" value="}
82 html {" size=3></form>}
92 html "<h3>Debug information</h3>\n"
93 html "sessionId: $sessionId <br>\n"
94 html "sessionParms: $sessionParms <br>\n"
95 foreach e {SERVER_NAME PATH_INFO SCRIPT_NAME} {
96 html $e {: } $env($e) {<br>} \n
98 set j $hist($setNo,0,host)
99 for {set i 1} {$i <= $j} {incr i} {
100 html "host=" $hist($setNo,$i,host) " " $hist($setNo,$i,database)
103 html "form: " [egw_form] " <br>\n"
104 html "target: " $host " <br>\n"
105 html "setNo: " $setNo " <br>\n"
106 html "nextSetNo: " $nextSetNo " <br>\n"