12345678910111213141516171819202122232425 |
- {volist name="data" id="v"}
- <tr>
- <td style="text-indent:{$depth * 2}em;>
- {if condition="isset($v['children']) && !empty($v['children'])"}
- <i class="glyphicon glyphicon-folder-open"></i>
- {else /}
- <i class="glyphicon glyphicon-list-alt"></i>
- {/if}
- {$v.title}
- </td>
- <td style="width: 300px;">
- <a url="{:url('edit',['id'=>$v['id']])}" href="javascript:;" data-title="编辑" onclick="layer_open(this,2)" data-width="400px" data-height="300px"><span class="label label-primary" title="编辑" >编辑</span></a>
- <a url="{:url('add',['pid'=>$v['id']])}" href="javascript:;" data-title="添加子分类" onclick="layer_open(this,2)" data-width="400px" data-height="300px"><span class="label label-primary" title="添加子分类">添加子分类</span></a>
- <a href="{:url('del',['id'=>$v['id']])}" data-confirm="确定要删除该记录吗?" class="ajax-get confirm data-reload"><span class="label label-danger" title="删除">删除</span></a>
- </td>
- </tr>
- {if condition="isset($v['children']) && !empty($v['children'])"}
- {:widget_view('asset_cate/tree',['data'=>$v['children'],'depth'=>$depth + 1])}
- {/if}
- {/volist}
|