In images Alt=... are defined.
[egate.git] / www / targets.egw
index 9726f97..f954c23 100644 (file)
@@ -1,6 +1,6 @@
 <html>
 {
-# $Id: targets.egw,v 1.9 1995/12/21 15:49:53 adam Exp $
+# $Id: targets.egw,v 1.10 1996/01/02 10:52:30 adam Exp $
     source /usr/local/etc/httpd/conf/ztargets.conf
     if {[info commands saveState] == ""} {
         source z39util.tcl
 <img src="/gif/button-egw.gif" Alt="EUROPAGATE">
 </center>
 
-<h2>Choose Z39.50 target</h2>
+<h2>Choose Z39.50 target</h2><br>
 <dl>
 {
-    foreach t [array names targets] {
+    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 {<dt><a href="http:} $env(SCRIPT_NAME) /
         html "$sessionId/query.egw/$t" {"> } [lindex $targets($t) 0] " </a>\n"
         set desc [lindex $targets($t) 4]