<include  file='public:header'/>

<div class="mainBt">
    <ul>
        <li class="li1">系统</li>
        <li class="li2">后台菜单设置</li>
        <li class="li2 li3">菜单列表</li>
    </ul>
</div>
<div class="main-cate">
    <p class="attention"><span>注意：</span>这里主要管理后台的菜单，通常后台的基本权限是和这类菜单关联的！</p>
    <div class="jsglNr">
        <form id="cate_action" action="<{:U('menu/update')}>" target="baocms_frm" method="post">
            <div class="selectNr" style="border-top: 1px solid #e1e6eb;">
                <div class="left">
                    <{:BA('menu/create','','添加菜单','load','',600,280)}>
                </div>
                <div class="right">
                     <input type="submit" class="sBtn" value="更新"  />
                </div>
            </div>
            <div class="tableBox">
                <table bordercolor="#e1e6eb" cellspacing="0" width="100%" border="1px"  style=" border-collapse: collapse; margin:0px; vertical-align:middle; background-color:#FFF; text-align:center;">
                    <tr bgcolor="#F5F6FA" height="35px;" style="color:#333; font-size:16px; line-height:35px;">
                        <td>分类</td>
                        <td>排序</td>
                        <td>操作</td>
                    </tr>
                    <foreach name="datas" item="var">
                        <if condition="($var.parent_id eq 0)">  
                            <tr bgcolor="#f1f1f1" height="48px" style="font-size:14px; color:#545454; text-align:left; line-height:48px;">
                                <td style="padding-left:20px;"><{$var.menu_name}></td>
                                <td style="padding-left:70px;"><input name="orderby[<{$var.menu_id}>]" value="<{$var.orderby}>" type="text" class="remberinput w80" /></td>
                                <td style="text-align:center;">
                                    <{:BA('menu/create',array("parent_id"=>$var['menu_id']),'添加','load','remberBtn',600,280)}>
                                    <{:BA('menu/edit',array("menu_id"=>$var['menu_id']),'编辑','load','remberBtn',600,280)}>
                                    <{:BA('menu/delete',array("menu_id"=>$var['menu_id']),'删除','act','remberBtn')}>
                                </td>
                            </tr>
                            <foreach name="datas" item="var2">
                                <eq name="var2.parent_id" value="$var.menu_id">
                                <tr height="48px" style="font-size:14px; color:#545454; text-align:center; line-height:48px;">
                                    <td><{$var2.menu_name}></td>
                                    <td><input name="orderby[<{$var2.menu_id}>]" value="<{$var2.orderby}>" type="text" class="remberinput w80" /></td>
                                    <td>
                                        <{:BA('menu/action',array("parent_id"=>$var2['menu_id']),'添加','load','remberBtn',800,500)}>
                                        <{:BA('menu/edit',array("menu_id"=>$var2['menu_id']),'编辑','load','remberBtn',600,280)}>
                                        <{:BA('menu/delete',array("menu_id"=>$var2['menu_id']),'删除','act','remberBtn')}>
                                    </td>
                                </tr>
                                </eq>
                            </foreach>
                        </if>
                    </foreach>     
                </table>
            </div>
        </form>
    </div>
</div>
<include  file='public:footer'/>







