{foreach $lists as $v}

{$v['id']} {if(checkAction('Classtype/editClassOrders'))} {else} {$v['orders']} {/if} {fun str_repeat(' ',$v['level'])} {if($classtypedata[$v['id']]['haschild'])}  {else} {if($v['level'])}|——{/if} {/if} {$v['classname']} {$moldslist[$v['molds']]['name']} {if($admin['classcontrol']==0 ||$admin['isadmin'] || strpos($tids,','.$v['id'].',')!==false)} {if($v['isclose']==0)} {if(checkAction('Classtype/change_status'))} {else} {if($v['isshow']==1)} {fun JZLANG('显示')} {else} {fun JZLANG('隐藏')} {/if} {/if} {else} 已关闭 {/if} {if(checkAction('Classtype/addclass'))} {fun JZLANG('添加下级')} {/if} {if(checkAction('Fields/index'))} {fun JZLANG('字段管理')} {/if} {if($v['molds']=='article')} {if(checkAction('Article/addarticle'))} {fun JZLANG('新增文章')} {/if} {else if($v['molds']=='product')} {if(checkAction('Product/addproduct'))} {fun JZLANG('新增商品')} {/if} {else} {if($v['molds']!='message' && $v['molds']!='page')} {if(checkAction('Extmolds/addmolds/molds/'.$v['molds']))} {fun JZLANG('新增内容')} {/if} {/if} {/if} {if(checkAction('Classtype/editclass'))} {fun JZLANG('编辑')} {/if} {fun JZLANG('预览')} {if(checkAction('Classtype/deleteclass'))} {fun JZLANG('删除')} {/if} {else} {if($v['isshow']==1)} {fun JZLANG('显示')} {else} {fun JZLANG('隐藏')} {/if} - - {/if}
{/foreach}