X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=www%2Ftargets.egw;h=4f1ccb3c9e2787034eee27dd49589eaf4ceaf36a;hb=373495ef158d123d95ab44465d4249e65847492b;hp=bd4838b854687f5bf9e474081f786826b72b6584;hpb=8bafbc608e1ffba9ee87f4856e586dffa57901b8;p=egate.git
diff --git a/www/targets.egw b/www/targets.egw
index bd4838b..4f1ccb3 100644
--- a/www/targets.egw
+++ b/www/targets.egw
@@ -1,6 +1,6 @@
{
-# $Id: targets.egw,v 1.24 1996/03/14 11:50:49 adam Exp $
+# $Id: targets.egw,v 1.26 1996/05/24 11:16:02 adam Exp $
source ztargets.conf
if {![info exists debug]} {
if {[lindex $sessionParms 1] == "1"} {
@@ -36,6 +36,7 @@
set useIcons 1
button-main
+ button-feedback
if {[info exists nextSetNo]} {
button-view-history
}
@@ -43,7 +44,6 @@
html "
Select a target
\n"
html "\n"
- if {1} {
proc headlineC {h} {
html {} $h \n {
}
}
@@ -51,7 +51,11 @@
global targets
global env
global sessionId
+ global waisFlag
+ if {!$waisFlag && ![string compare [lindex $targets($t) 1] WAIS]} {
+ return
+ }
html {- } [lindex $targets($t) 0]
html {}
@@ -63,29 +67,20 @@
}
html "
\n"
}
- serverList headlineC targetC
-
- } else {
- proc targetsCmp {l r} {
- global targets
- return [string compare [string tolower [lindex $targets($l) 0]] \
- [string tolower [lindex $targets($r) 0]]]
- }
- set tt [array names targets]
- set tn [lsort -command targetsCmp $tt]
- foreach t $tn {
- html {- } [lindex $targets($t) 0]
- html " \n"
- set desc [lindex $targets($t) 4]
- if {$desc != ""} {
- html "
- $desc\n"
+ if {![info exists waisFlag]} {
+ set waisFlag 1
+ if {[catch {wais waisdummy}]} {
+ set waisFlag 0
+ } else {
+ rename waisdummy {}
}
}
- }
+ serverList headlineC targetC
+
html "
\n"
set useIcons 0
button-main
+ button-feedback
if {[info exists nextSetNo]} {
button-view-history
}