smarty {cycle}, and three values
how use {cycl开发者_Python百科e} with three values? Whats wrong with this code:
<table>
<tr bgcolor="{cycle values='#aaaaaa,#bbbbbb'}">
<td bgcolor="{cycle values='#1112233,#334455'}">value</td>
<td bgcolor="{cycle values='#998811,#334466'}">value1</td>
</tr>
</table>
I think you need to give them unique names:
{cycle name='color1' values='#aaaaaa,#bbbbbb'}
{cycle name='color2' values='#1112233,#334455'}
{cycle name='color3' values='#998811,#334466'}
精彩评论