RE: [SMARTY] Is there an elegant way to do changing row-colors in Smarty-templates?
| From: | Eduardo | Date: | Sat, 04 Oct 2003 15:32:29 +0000 |
| Subject: | RE: [SMARTY] 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-10294@lists.php.net to get a copy of this message | ||
See this: http://smarty.php.net/manual/en/language.function.cycle.php
-----Original Message-----
From: Jan Skopek [mailto:skopek@gmx.de]
Sent: Saturday, October 04, 2003 6:51 AM
To: smarty-general@lists.php.net
Subject: [SMARTY] Is there an elegant way to do changing row-colors in
Smarty-templates?
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
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php