X-Git-Url: http://git.indexdata.com/?p=egate.git;a=blobdiff_plain;f=www%2Fmquery.egw;h=364a8cdcd1451ec6db4018c534ce70a0cd94d94a;hp=fa2c809de6a96de42de8f7ecef117023b49d17c0;hb=a61ad0378b93e99e362a1d92c33d701dbf103eba;hpb=a4571caef991e968e3c20b515490b7923306a1cf diff --git a/www/mquery.egw b/www/mquery.egw index fa2c809..364a8cd 100644 --- a/www/mquery.egw +++ b/www/mquery.egw @@ -4,7 +4,7 @@ { -# $Id: mquery.egw,v 1.14 1996/03/12 16:30:26 adam Exp $ +# $Id: mquery.egw,v 1.15 1996/03/13 14:07:29 adam Exp $ if {[info commands saveState] == ""} { source z39util.tcl @@ -22,7 +22,7 @@ set useIcons 1 button-main - button-new-target 0 + button-new-target html {
} \n @@ -41,7 +41,10 @@ lappend hist($setNo,$i,database) $base } set oSetNo [lindex $sessionParms 0] - if {$i == 0 && [info exists hist($oSetNo,0,host)]} { + if {$oSetNo < 0} { + set oSetNo 0 + } + if {$i == 0 && $oSetNo && [info exists hist($oSetNo,0,host)]} { for {set i 1} {$i <= $hist($oSetNo,0,host)} {incr i} { set hist($setNo,$i,host) $hist($oSetNo,$i,host) set hist($setNo,$i,idAuthentication) \ @@ -54,40 +57,86 @@ html "

No targets specified

" egw_abort 1 } + + set curSort server + set curFormat brief + if {$oSetNo} { + set curSort $hist($oSetNo,sort) + set curFormat $hist($oSetNo,format) + } + set hist($setNo,0,host) $i - html "Input your search criteria:
\n" + html "Fill-in this search form:
\n" set fields [lindex $targets($host) 2] for {set no 1} {$no < 4} {incr no} { + html {\n" - html {} \n + + html {} \n if {$no < 3} { html {\n" } html "
\n" } + html {} html "
\n" - html {Display each record in } + if {![string compare $curFormat brief]} { + html "