puts ""
puts "--ThisRandomString"
+
# The below "if catch" stuff, if uncommented, will trap any error, and
# mail the error messages to terry. What a hideous, horrible
# debugging hack.
foreach c $collist {
- append query ",
+ if {[info exists needquote($c)] } {
+ append query ",
\t$key($c)"
+ }
}
}
+
if {[info exists FORM(order)]} {
qadd "order by "
switch -glob $FORM(order) {
puts "<pre>$query</pre>"
}
flush stdout
-
SendSQL $query
set count 0
foreach c $collist {
- if {$needquote($c)} {
- append tablestart "<TH WIDTH=100% valigh=left>"
- } else {
- append tablestart "<TH valign=left>"
- }
- if {[info exists sortkey($c)]} {
- append tablestart "<A HREF=\"buglist.cgi?[set fields]&order=$sortkey($c)$oldorder\">$title($c)</A>"
- } else {
- append tablestart $title($c)
+ if { [info exists needquote($c)] } {
+ if {$needquote($c)} {
+ append tablestart "<TH WIDTH=100% valigh=left>"
+ } else {
+ append tablestart "<TH valign=left>"
+ }
+ if {[info exists sortkey($c)]} {
+ append tablestart "<A HREF=\"buglist.cgi?[set fields]&order=$sortkey($c)$oldorder\">$title($c)</A>"
+ } else {
+ append tablestart $title($c)
+ }
}
}
}
- if {$needquote($c)} {
+ if { [info exists needquote($c)] && $needquote($c)} {
set value [html_quote $value]
} else {
set value "<nobr>$value</nobr>"
}
}
}
-
puts ""
puts "--ThisRandomString"
}
}
puts ""
-
set env(TZ) PST8PDT
PutHeader "Bug List" "Bug List"