{echo:JS::import('dialog?skin=brief');}
{echo:JS::import('dialogtools');}
{echo:JS::import('validator');}
<div class="tools_bar clearfix">
    <a href='{url:/content/help_category_edit}' class="icon-plus" > 添加</a>
</div>
<table class="default">
    <tr>
        <th style="width:30px">选择</th>
        <th style="width:70px">操作</th>
        <th>分类名称</th>
        <th>上级分类</th>
        <th style="width:100px">别名</th>
        <th style="width:70px">排序</th>
    </tr>
    {query:name=help_category  order=path,sort desc/}
    {set:$help_category_name=array();}
    {list:}
        {set:$help_category_name[$item['id']]=$item['name']}
    {/list}
    {set:$help_category_name[0]='无'}
    {list:items=$help_category}
        <tr>
        <td style="width:30px"><input type="checkbox" name="id[]" value="{$item['id']}"></td>
        <td style="width:70px" class="btn_min"><div class="operat hidden"><a  class="icon-cog action" href="javascript:;"> 处理</a><div class="menu_select"><ul>
                    <li><a class="icon-pencil" href="{url:/content/help_category_edit/id/$item[id]}"> 编辑</a></li>
                    <li><a class="icon-remove-2" href="javascript:confirm_action('{url:/content/help_category_del/id/$item[id]}');"> 删除</a></li>
                </ul></div></div> </td>
        <td>{echo:str_repeat('— ',count(explode(',',$item['path']))-3)}{$item['name']}</td><td>{$help_category_name[$item['parent_id']]}</td><td style="width:100px">{$item['alias']}</td><td style="width:70px">{$item['sort']}</td></tr>
    {/list}
</table>