<{area inject=".mainHead"}>

## <{t}>商品分类<{/t}>

<{assign var=addcat value=$___b2c="添加分类"|t:'b2c'}> <{assign var=editsort value=$___b2c="编辑排序"|t:'b2c'}> <{assign var=savesort value=$___b2c="保存排序"|t:'b2c'}> <{button app="desktop" label=$addcat icon="btn_add.gif" onclick="new Dialog('index.php?app=b2c&ctl=admin_goods_cat&act=addnew',{title:'{$addcat}',width:550,height:300})" }> <{button app="desktop" tmplabel=$savesort label=$editsort id="edit-catsort"}> <{if $tree_number<=1000}> <{button app="desktop" label=$___b2c="展开分类"|t:'b2c' id="showCat-handle"}> <{button app="desktop" label=$___b2c="收起分类"|t:'b2c' id="hideCat-handle" }><{/if}>

<{t}>分类名称<{/t}> | <{t}>类型<{/t}> | <{t}>排序<{/t}> | <{t}>操作<{/t}>

<{/area}>
<{foreach from=$tree item=item name="item"}>

<{if $tree_number<=1000}> <{if $item.cls=='true'}> <{img src="bundle/handle-hide.gif" alt=$___b2c="收起子分类"|t:'b2c' title=$___b2c="收起子分类"|t:'b2c' class="handle-hide" app='desktop'}> <{img src="bundle/handle-show.gif" alt=$___b2c="收起子分类"|t:'b2c' title=$___b2c="展开子分类"|t:'b2c' class="handle-show" app='desktop'}> <{/if}> <{/if}> <{$item.cat_name}> | <{if $item.type_name}>[<{$item.type_name}>]<{/if}> | <{$item.p_order|default:0}> | <{assign var="cat_id" value=$item.cat_id}> <{img src="bundle/addcate.gif" border="0" alt=$___b2c="添加子分类"|t:'b2c' app='desktop'}> <{t}>增加子类<{/t}> <{img src="bundle/editcate.gif" border="0" alt=$___b2c="编辑"|t:'b2c' app='desktop'}><{t}>编辑<{/t}> <{img src="bundle/delecate.gif" border="0" alt=$___b2c="删除"|t:'b2c' app='desktop'}><{t}>删除<{/t}> <{img src="bundle/showcate.gif" border="0" alt=$___b2c="查看此分类下商品"|t:'b2c' app='desktop'}><{t}>查看商品<{/t}> <{img src="bundle/zoom_btn.gif" border="0" alt=$___b2c="跳转前台查看该"|t:'b2c' app='desktop'}><{t}>预览<{/t}>

<{/foreach}>