thinkphp中模板volist三层循环
<volist name="sanjifenlei" id="row1">
<li class=a1 style="height:12px;">
<div class=tx><a href="{:U('Shangcheng/totalgoods?GoodsSort='.$row1['GoodsSortName'])}"><i> </i>{$row1['GoodsSortName']}<!--<font color="#F5F5F5" style="float:right;margin-right:40px;">></font>--></a> </div>
<div class=pop>
<h3><a href="#"> </a></h3>
<dl>
<volist name="row1['element']" id="row2">
<dl>
<dt><a href="{:U('Shangcheng/totalgoods?GoodsSort='.$row2['GoodsSortName'])}">{$row2['GoodsSortName']}</a></dt>
<dd>
<volist name="row2['element']" id="row3">
<a class="ui-link" href="{:U('Shangcheng/totalgoods?GoodsSort='.$row3['GoodsSortName'])}">{$row3['GoodsSortName']}</a>
</volist>
</dd>
</dl>
</volist>
</dl>
</div>
</li>
</volist>
版权声明:若无特殊注明,本文皆为《菜鸟站长》原创,转载请保留文章出处。
本文链接:thinkphp中模板volist三层循环 - https://wziyi.com.cn/?post=35