X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;f=www%2Ftargets.egw;h=6ed311d59680538406e6a87acc34410886fbcabe;hb=733e43ac3eed3b6c0c52a14dcb6f20c3fd2bc3ae;hp=55d8189d7892da8e5d3150674947df1aabd7118d;hpb=3bbb844581f17ede97f6eb7ea8022b69a0859420;p=egate.git diff --git a/www/targets.egw b/www/targets.egw index 55d8189..6ed311d 100644 --- a/www/targets.egw +++ b/www/targets.egw @@ -1,12 +1,7 @@ { -# $Id: targets.egw,v 1.19 1996/01/26 17:41:26 adam Exp $ +# $Id: targets.egw,v 1.27 1996/08/28 09:36:02 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,9 +9,14 @@ set debug 0 } } + if {[info commands saveState] == ""} { + source z39util.tcl + } set html3 [lindex $sessionParms 0] - if {$html3 == ""} { - if {[string first Mozilla $env(HTTP_USER_AGENT)] == 0} { + if {[string length $html3] == 0} { + if {![info exists env(HTTP_USER_AGENT)]} { + set html3 1 + } elseif {[string first Mozilla $env(HTTP_USER_AGENT)] == 0} { set html3 1 egw_log debug "New user using Netscape" } else { @@ -30,39 +30,49 @@ { + set scriptQuery query.egw + set scriptTarget targets.egw + set useIcons 1 - button-europagate + button-main + button-feedback 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" - proc targetsCmp {l r} { - global targets - return [string compare [string tolower [lindex $targets($l) 0]] \ - [string tolower [lindex $targets($r) 0]]] + proc headlineC {h} { + html {

} $h \n {

} } - set tt [array names targets] - set tn [lsort -command targetsCmp $tt] - foreach t $tn { - if {[string index $t 0] == "."} continue - html {
} [lindex $targets($t) 0] " \n" + proc targetC {t} { + global targets + global env + global sessionId + + html {
} [lindex $targets($t) 0] + html {} + + html {
} set desc [lindex $targets($t) 4] - if {$desc != ""} { - html "
$desc\n" + if {[string length $desc] > 0} { + html "$desc
\n" } + html "
\n" } + serverList headlineC targetC + html "

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