X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=www%2Ftargets.egw;h=bd4838b854687f5bf9e474081f786826b72b6584;hb=8bafbc608e1ffba9ee87f4856e586dffa57901b8;hp=b597347a9111c1d3da4755b19a6496e5204d75c4;hpb=a4571caef991e968e3c20b515490b7923306a1cf;p=egate.git diff --git a/www/targets.egw b/www/targets.egw index b597347..bd4838b 100644 --- a/www/targets.egw +++ b/www/targets.egw @@ -1,12 +1,7 @@ { -# $Id: targets.egw,v 1.22 1996/03/12 16:30:29 adam Exp $ +# $Id: targets.egw,v 1.24 1996/03/14 11:50:49 adam Exp $ source ztargets.conf - if {[info commands saveState] == ""} { - source z39util.tcl - } - set mMode 0 - if {![info exists debug]} { if {[lindex $sessionParms 1] == "1"} { set debug 1 @@ -14,6 +9,9 @@ set debug 0 } } + if {[info commands saveState] == ""} { + source z39util.tcl + } set html3 [lindex $sessionParms 0] if {[string length $html3] == 0} { if {![info exists env(HTTP_USER_AGENT)]} { @@ -39,12 +37,35 @@ button-main if {[info exists nextSetNo]} { - button-view-history 1 + button-view-history } - button-define-target 0 - html "

Choose a target


\n" + button-define-target + html "

Select a target


\n" html "
\n" + if {1} { + proc headlineC {h} { + html {

} $h \n {

} + } + proc targetC {t} { + global targets + global env + global sessionId + + html {
} [lindex $targets($t) 0] + html {} + + html {
} + set desc [lindex $targets($t) 4] + if {[string length $desc] > 0} { + html "$desc
\n" + } + html "
\n" + } + serverList headlineC targetC + + } else { proc targetsCmp {l r} { global targets return [string compare [string tolower [lindex $targets($l) 0]] \ @@ -61,13 +82,14 @@ html "
$desc\n" } } + } html "

\n" set useIcons 0 button-main if {[info exists nextSetNo]} { - button-view-history 1 + button-view-history } - button-define-target 0 + button-define-target } { catch maintenance