2bbf69f820
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@876 2a923420-c742-0410-a762-8d5b09965624
18 lines
276 B
Plaintext
18 lines
276 B
Plaintext
|
|
if {![exists -proc altrow]} {
|
|
proc altrow {{attrs ""}} {{i 0}} {
|
|
puts -nonewline "<tr class="
|
|
if { $i == 0 } {
|
|
puts -nonewline "odd"
|
|
} else {
|
|
puts -nonewline "even"
|
|
}
|
|
if {$attrs ne ""} {
|
|
puts -nonewline " $attrs"
|
|
}
|
|
puts ">";
|
|
set i [expr ! $i]
|
|
}
|
|
}
|
|
|