smarty模版页面递归调用
{function printtype level=0}
{foreach $data as $v}
{if $pid eq $v.type_pid}
{call printtype data=$data pid=$v.type_id level=$level+1}
{else}
{continue}
{/if}
{/foreach}
{/function}
{call printtype data=$types pid=0 level=0}
本文为胖虎原创文章,转载无需和我联系,但请注明来自胖虎博客panghucat.cn