first commit
This commit is contained in:
@@ -0,0 +1,78 @@
|
||||
${zhiqim_manager_content()}
|
||||
<#-- 显示子分类,并递归显示下级子分类 -->
|
||||
<#function showChildCategory(self, parent)>
|
||||
<tr class="z-h30" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
|
||||
<td><input name="categoryId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${self.self().getCategoryId()}"></td>
|
||||
<td>${self.self().getCategoryId()}</td>
|
||||
<td align="left" class="zi-pd-l6">
|
||||
<#var level = self.self().getCategoryLevel()/>
|
||||
<#if level == 0>
|
||||
<i class="z-ico z-tree z-30 z-normal z-root z-mg-r3"></i>
|
||||
<#else>
|
||||
<#for i : 1..(level-1)>
|
||||
<#if self.isLastNode(level-i)>
|
||||
<i class="z-ico z-tree z-30 z-normal z-blank"></i>
|
||||
<#else>
|
||||
<i class="z-ico z-tree z-30 z-normal z-vertline"></i>
|
||||
</#if>
|
||||
</#for>
|
||||
<#if self.isLastNode()>
|
||||
<i class="z-ico z-tree z-30 z-normal z-lastnode"></i>
|
||||
<#else>
|
||||
<i class="z-ico z-tree z-30 z-normal z-node"></i>
|
||||
</#if>
|
||||
<i class="z-ico z-tree z-item z-mg-r3"></i>
|
||||
</#if>
|
||||
#{self.self().getCategoryName()}
|
||||
</td>
|
||||
<td><#if self.self().getCategoryStatus() == 0>正常<#else><span class="z-color-red">停用</span></#if></td>
|
||||
<td>${self.self().getCategoryLevel()}</td>
|
||||
</tr>
|
||||
<#for child : self.children()>
|
||||
${showChildCategory(child, self)}
|
||||
</#for>
|
||||
</#function>
|
||||
|
||||
${zhiqim_manager_breadcrumb ("知识库分类")}
|
||||
|
||||
<#-- 导航 -->
|
||||
<div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
|
||||
<nav>
|
||||
<ul>
|
||||
<li class="z-active">知识库分类</li>
|
||||
<li onclick="Z.L.href('article.htm');">知识库内容</li>
|
||||
</ul>
|
||||
<div class="z-text-right z-mg-t10 z-mg-r5">
|
||||
<button class="z-button ${zmr_color_class}" onclick="Z.L.check('/categoryAdd.htm', 'categoryId');"><i class="z-font z-add"></i>增加下级分类</button>
|
||||
<button class="z-button ${zmr_color_class}" onclick="Z.L.check('/categoryModify.htm', 'categoryId');"><i class="z-font z-modify"></i>修改分类</button>
|
||||
<button class="z-button z-red" onclick="Z.L.confirm('/categoryDelete.htm', '确认要删除该分类及分类下文章?', 'categoryId', zCallFrame);"><i class="z-font z-delete"></i>删除分类</button>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<#-- 列表 -->
|
||||
<table class="z-table z-bordered z-h40-tr z-pd6 z-bg-white z-text-center" >
|
||||
<tr bgcolor="${zmr_thead_bgcolor}">
|
||||
<td width="50">选择</td>
|
||||
<td width="200">分类编号</td>
|
||||
<td width="*">分类名称</td>
|
||||
<td width="20%">分类状态</td>
|
||||
<td width="15%">分类级别</td>
|
||||
</tr>
|
||||
<#if size == 0>
|
||||
${zhiqim_manager_no_record(5, "暂时没有分类信息")}
|
||||
<#else>
|
||||
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
|
||||
<td><input name="categoryId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${tree.self().getCategoryId()}" ></td>
|
||||
<td>${tree.self().getCategoryId()}</td>
|
||||
<td align="left" class="zi-pd-l6"><i class="z-ico z-tree z-normal z-30 z-root z-mg-r3"></i>#{tree.self().getCategoryName()}</td>
|
||||
<td><#if tree.self().getCategoryStatus() == 0>正常<#else><span class="z-color-red">停用</span></#if></td>
|
||||
<td>${tree.self().getCategoryLevel()}</td>
|
||||
</tr>
|
||||
<#for child : tree.children()>
|
||||
${showChildCategory(child, tree)}
|
||||
</#for>
|
||||
</#if>
|
||||
</table>
|
||||
${zhiqim_manager_list(size)}
|
||||
${zhiqim_manager_content_end()}
|
||||
Reference in New Issue
Block a user