Smartyで行単位に色を変更して表示する方法。
下記。
cycleを使います。
{cycle values="#333300,#cccc00"}
valuesの値(カンマ区切り)を交互(順に)出力されるものです。
<table>
####smartyのループ処理開始
<tr bgcolor="{cycle values="#333300,#cccc00"}">
http://www.phppro.jp/phpmanual/smarty/language.function.cycle.html

コメントする