Eine Tabelle dynamisch erzeugt: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
<+
set listone { 1 2 3 4 5 6 7 8 }
set listtwo { 1 2 3 4 5 6 7 8 }
hputs "<table>\n"
foreach { a } $listone {
hputs "<tr>\n"
foreach { b } $listtwo {
set num [ expr $a * $b * 4 - 1 ]
hputs [ format "<td bgcolor=%2x%2x%2x > $num $num $num </td>\n" $num $num $num ]
}
hputs "</tr>\n"
}
hputs "</table>\n"
+>
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|