Re: Is there an elegant way to do changing row-colors in Smarty-templates?
| From: | Jan Skopek | Date: | Sat, 04 Oct 2003 14:49:24 +0000 |
| Subject: | Re: Is there an elegant way to do changing row-colors in Smarty-templates? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-10296@lists.php.net to get a copy of this message | ||
Thanks a lot, Eduardo!
That works...
"Jan Skopek" <skopek@gmx.de> schrieb im Newsbeitrag
news:20031004125052.35947.qmail@pb1.pair.com...
> Does anybody know an elegant way to change the bg-color of an tablerow
> within in an foreach-loop?
> Imagine this:
>
> <table>
> {foreach from=$foo item=bar}
> <tr bgcolor="{$color...?}">
> <td>{$bar}</td>
> </tr>
> {/foreach}
> </table>
>
> Thank a lot for anwers!
>
> Greets
> Jan