- source /usr/local/etc/httpd/conf/ztargets.conf
- foreach t [array names targets] {
- htmlr "<dt> <a href=\"http://localhost/cgi-bin/egwcgi/egwtcl/query.egw/$t\"> $t </a>"
- htmlr "<dd> " [lindex $targets($t) 0]
+ if {![info exists debug]} {
+ if {[lindex $sessionParms 0] == "1"} {
+ set debug 1
+ } else {
+ set debug 0
+ }
+ }
+
+ if {![info exists useIcons]} {
+ if {[lindex $sessionParms 1] == "1"} {
+ set useIcons 0
+ } else {
+ set useIcons 1
+ }
+ }
+ 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 {
+ if {[string index $t 0] == "."} continue
+ 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]
+ if {$desc != ""} {
+ html "<dd><em>$desc</em>\n"
+ }