smarty 多维数组 section 循环的用法
2013-12-04 17:18
381 查看
<{section name=sec1 loop=$detaillist}>
<tr>
<td><{$detaillist[sec1].ad_id}></td>
<td><{$detaillist[sec1].adname}></td>
<td><{$detaillist[sec1].date}></td>
<td><{$detaillist[sec1].water}></td>
<td width="70%">
<table width="100%">
<{section name=sec2 loop=$detaillist[sec1].financein}>
<tr width="100%">
<td width="15%"><{$detaillist[sec1].financein[sec2].ADFactRewards}></td>
<td width="20%"><font color="red"><{$detaillist[sec1].financein[sec2].PSTDay}>~<{$detaillist[sec1].financein[sec2].PEDDay}></font></td>
<td width="15%"><{$detaillist[sec1].financein[sec2].RewardsDate}></td>
<td width="25%"><{$detaillist[sec1].financein[sec2].sideaccount}></td>
<td width="25%"><{$detaillist[sec1].financein[sec2].BankAccount}></td>
</tr>
<{/section}>
</table>
</td>
</tr>
<{/section}>
<tr>
<td><{$detaillist[sec1].ad_id}></td>
<td><{$detaillist[sec1].adname}></td>
<td><{$detaillist[sec1].date}></td>
<td><{$detaillist[sec1].water}></td>
<td width="70%">
<table width="100%">
<{section name=sec2 loop=$detaillist[sec1].financein}>
<tr width="100%">
<td width="15%"><{$detaillist[sec1].financein[sec2].ADFactRewards}></td>
<td width="20%"><font color="red"><{$detaillist[sec1].financein[sec2].PSTDay}>~<{$detaillist[sec1].financein[sec2].PEDDay}></font></td>
<td width="15%"><{$detaillist[sec1].financein[sec2].RewardsDate}></td>
<td width="25%"><{$detaillist[sec1].financein[sec2].sideaccount}></td>
<td width="25%"><{$detaillist[sec1].financein[sec2].BankAccount}></td>
</tr>
<{/section}>
</table>
</td>
</tr>
<{/section}>
相关文章推荐
- smarty中foreach,section循环注意点及include,insert,literal等用法
- Smarty使用section语句循环输出数组
- smarty的section嵌套循环用法示例
- smarty的section嵌套循环用法示例
- smarty中section 循环数组
- smarty中foreach,section循环注意点及include,insert,literal等用法
- smarty中foreach,section循环注意点及include,insert,literal等用法
- smarty中foreach,section循环注意点及include,insert,literal等用法
- smarty section foreach遍历多维数组
- 深入解析PHP中foreach语句控制数组循环的用法
- swift基本用法-for循环遍历,遍历字典,循环生成数组
- smarty之section用法 隔行换色,鼠标over高亮
- Smarty foreach 循环多维数组示例
- smarty模板section循环输出序号
- 2012.12.7 smarty中section和foreach循环区别
- python中numpy的矩阵、多维数组的用法
- python 基本操作 多维数组 循环
- smarty section用法
- smarty section 循环,打印出键值
- Java为其for循环实现了针对数组和集合类的新用法