3 <title> WWW/Z39.50 Gateway Query Form</title>
7 # $Id: mquery.egw,v 1.9 1996/01/09 16:16:47 adam Exp $
9 if {[info commands saveState] == ""} {
18 if {[catch {set setNo $nextSetNo}]} {
23 html {<form action="http:} $env(SCRIPT_NAME)
24 html / $sessionId {/msearch.egw/} $setNo {" method=get>} \n
28 foreach t [lsort [wform target]] {
29 set host [lindex $t 0]
30 set base [lindex $t 1]
31 if {$host != $phost} {
34 set hist($setNo,$i,host) $host
35 set hist($setNo,$i,idAuthentication) [lindex $targets($host) 3]
37 lappend hist($setNo,$i,database) $base
40 html "<h2>No targets specified</h2></body></html>"
43 set hist($setNo,0,host) $i
45 <h2>Input your search criteria: </h2><br>
47 set fields [lindex $targets($host) 2]
48 for {set no 1} {$no < 4} {incr no} {
49 html {<select name="menu} $no {">} \n
51 html {<option> } [lindex $f 0] \n
54 html {<input type="text" name="entry} $no {" size=35>} \n
56 html {<select name="logic} $no {">} \n
59 html "<option> And not\n"
65 <input type=submit value="Search"><input type=reset value="Reset">
68 html {Number of records to display in the result set list: }
69 html {<input type="text" name="hits" value="}
77 html {<img src="/egwgif/button-egw.gif">}
79 html {<a href="http:} $env(SCRIPT_NAME)
80 html / $sessionId {/mtargets.egw}
82 html {"><img src="/egwgif/button-new-target.gif" border=0></a>}
84 html {"> New target </a>}
91 html "<h3>Debug information</h3>\n"
92 html "sessionId: $sessionId <br>\n"
93 html "sessionParms: $sessionParms <br>\n"
94 foreach e {SERVER_NAME PATH_INFO SCRIPT_NAME} {
95 html $e {: } $env($e) {<br>} \n
97 set j $hist($setNo,0,host)
98 for {set i 1} {$i <= $j} {incr i} {
99 html "host=" $hist($setNo,$i,host) " " $hist($setNo,$i,database)
102 html "form: " [wform] " <br>\n"
103 html "target: " $host " <br>\n"
104 html "setNo: " $setNo " <br>\n"
105 html "nextSetNo: " $nextSetNo " <br>\n"