{extend name="base" /}
{block name="css"}
<link rel="stylesheet" type="text/css" href="__ADMIN__/js/mmgrid/mmGrid.css?v={$v}" />
{/block}
{block name="js"}
<script src="__ADMIN__/js/wstgridtree.js?v={$v}" type="text/javascript"></script>
<script src="__ADMIN__/articlecats/articlecats.js?v={$v}" type="text/javascript"></script>
<script>
$(function(){initGrid();})
</script>
{/block}
{block name="main"}
<div id='alertTips' class='alert alert-success alert-tips fade in'>
  <div id='headTip' class='head'><i class='fa fa-lightbulb-o'></i>操作说明</div>
  <ul class='body'>
      <li>本功能主要用于文章分类的管理。分类可分为“普通菜单”和“系统系统”。</li>
      <li>“系统菜单”一般在商城前台有进行调用,非开发者请勿直接删除“系统菜单”,以免造成数据丢失。</li>
  </ul>
</div>
<style>.mmGrid{border-bottom:0px;}</style>
{if WSTGrant('WZFL_01')}
<div class="wst-toolbar">
  <button class="btn btn-success f-right" onclick='javascript:toEdit(0)'><i class='fa fa-plus'></i>新增</button>
  <div style='clear:both'></div>
</div>
{/if}
<div class='wst-grid'>
<div class='mmGrid layui-form' id="maingrid"></div>
</div>
<div id='articlecatBox' style='display:none' class="layui-form">
  <form id='articlecatForm' autocomplete="off">
  <input type='hidden' id='parentId' name="parentId" class='ipt' />
  <table class='wst-form wst-box-top'>
     <tr>
        <th width='100'>分类名称<font color='red'>*</font>:</th>
        <td><input type='text' id='catName' name="catName" class='ipt' maxLength='20' style='width:200px;'/></td>
     </tr>
     <tr>
        <th width='100'>是否显示<font color='red'>*</font>:</th>
        <td height='24'>
           <input type="checkbox" id="isShow" name="isShow" value="1" class="ipt" lay-skin="switch" lay-filter="isShow1" lay-text="显示|隐藏">
        </td>
     </tr>
     <tr>
        <th width='100'>排序号<font color='red'>*</font>:</th>
        <td><input type='text' id='catSort' name='catSort' class='ipt' style='width:60px;' onkeypress='return WST.isNumberKey(event);' onkeyup="javascript:WST.isChinese(this,1)" maxLength='10' value='0'/></td>
     </tr>
  </table>
  </form>
</div>
{/block}