|
@@ -0,0 +1,193 @@
|
|
|
+<%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
|
|
|
+<!DOCTYPE html>
|
|
|
+<html>
|
|
|
+<head>
|
|
|
+<title>菜单管理</title>
|
|
|
+
|
|
|
+<%@ include file="../layouts/header.jsp"%>
|
|
|
+<link type="text/css" rel="stylesheet" href="<%=request.getContextPath()%>/static/js/common/zTree_v3/css/zTreeStyle/zTreeStyle.css" />
|
|
|
+<script type="text/javascript" src="<%=request.getContextPath()%>/static/js/common/zTree_v3/js/jquery.ztree.all-3.5.min.js"></script>
|
|
|
+<script src="<%=base%>/static/js/menu/menu.js"></script>
|
|
|
+</head>
|
|
|
+<body class="p_body">
|
|
|
+<div class="easyui-layout" data-options="fit:true">
|
|
|
+<!-- 头部 -->
|
|
|
+<div id="regionNorth" data-options="region:'north'" class="regionNorthStyle">
|
|
|
+ <%@ include file="../layouts/navbar.jsp"%>
|
|
|
+</div>
|
|
|
+<!-- 左边部分 -->
|
|
|
+<div id="regionWest" data-options="region:'west'" class="regionWestStyle">
|
|
|
+ <%@ include file="../layouts/sidebar.jsp"%>
|
|
|
+</div>
|
|
|
+<!-- 底部 -->
|
|
|
+<div id="regionFooter" data-options="region:'south'" class="regionFooterStyle">
|
|
|
+ <%@ include file="../layouts/footer.jsp"%>
|
|
|
+</div>
|
|
|
+<!-- 内容部分 -->
|
|
|
+<div id="regionCenter" data-options="region:'center'" class="regionCenterStyle">
|
|
|
+ <div class="p_all">
|
|
|
+ <div class="p_block">
|
|
|
+ <div class="p_headdiv">
|
|
|
+ <div class="p_headblock">
|
|
|
+ <div class="p_headleft">菜单管理</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="p_buttondiv">
|
|
|
+ <div class="p_buttonbg">
|
|
|
+ <img class="p_buttonimg" src="<%=base%>/static/images/list/add.png"
|
|
|
+ onclick="addInfo()" title="新增"/>
|
|
|
+ </div>
|
|
|
+ <div class="p_buttonbg">
|
|
|
+ <img class="p_buttonimg" src="<%=base%>/static/images/list/delete.png"
|
|
|
+ onclick="delInfo()" title="删除"/>
|
|
|
+ </div>
|
|
|
+ <div class="p_buttonbg">
|
|
|
+ <img class="p_buttonimg" src="<%=base%>/static/images/list/edit.png"
|
|
|
+ onclick="editInfo()" title="修改"/>
|
|
|
+ </div>
|
|
|
+ <div class="p_buttonbg">
|
|
|
+ <img class="p_buttonimg" src="<%=base%>/static/images/list/reload.png"
|
|
|
+ onclick="refresh()" title="刷新"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="page-content" style="margin-left: 20px; height : 400px; width: 92%; overflow-x: auto; overflow-y: scroll;">
|
|
|
+ <!--菜单树-->
|
|
|
+ <div id="menuTree" class="ztree"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="modal fade" id="editWin" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
|
|
+ <div class="modal-dialog">
|
|
|
+ <div class="modal-content">
|
|
|
+ <div class="modal-header">
|
|
|
+ <button type="button" class="close" data-dismiss="modal">
|
|
|
+ <span aria-hidden="true">×</span><span class="sr-only">Close</span>
|
|
|
+ </button>
|
|
|
+ <h6 class="modal-title" id="myModalLabel"></h6>
|
|
|
+ </div>
|
|
|
+ <!-- form 表单信息 -->
|
|
|
+ <div class="modal-body">
|
|
|
+ <form class="form-horizontal" id="editForm" method="post" onsubmit="return false;">
|
|
|
+ <input type="hidden" id="id" name="id">
|
|
|
+ <input type="hidden" id="pid" name="pid">
|
|
|
+ <div class="form-group">
|
|
|
+ <label class="col-sm-2 control-label" for="pname">上级名称</label>
|
|
|
+ <div class="col-sm-9">
|
|
|
+ <input class="form-control" id="pname" name="pname" type="text" readonly="readonly" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label class="col-sm-2 control-label" for="pcode">上级编码</label>
|
|
|
+ <div class="col-sm-9">
|
|
|
+ <input class="form-control" id="pcode" name="pcode" type="text" readonly="readonly" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label class="col-sm-2 control-label" for="name">名称</label>
|
|
|
+ <div class="col-sm-9">
|
|
|
+ <input class="form-control" id="name" name="name" type="text" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label class="col-sm-2 control-label" for="code">编码</label>
|
|
|
+ <div class="col-sm-9">
|
|
|
+ <input class="form-control" id="code" name="code" type="text" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label class="col-sm-2 control-label" for="leaf">类型</label>
|
|
|
+ <div class="col-sm-9">
|
|
|
+ <select class="form-control" id="leaf" name="leaf">
|
|
|
+ <option value="N">目录</option>
|
|
|
+ <option value="Y">页面</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label class="col-sm-2 control-label" for="url">路径</label>
|
|
|
+ <div class="col-sm-9">
|
|
|
+ <input class="form-control" id="url" name="url" type="text" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label class="col-sm-2 control-label" for="sortno">序号</label>
|
|
|
+ <div class="col-sm-9">
|
|
|
+ <input class="form-control" id="sortno" name="sortno" type="text" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="row">
|
|
|
+ <div class="center-block" style="width:160px;">
|
|
|
+ <button id="btnSave" class="btn btn-success btn-round btn-sm" onclick="save()">
|
|
|
+ <i class="glyphicon glyphicon-ok"></i> 保存
|
|
|
+ </button>
|
|
|
+ <button type="button" class="btn btn-grey btn-round btn-sm" onclick="closeWin()">
|
|
|
+ <i class="glyphicon glyphicon-remove"></i> 关闭
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ <!-- form 表单信息 -->
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="modal fade" id="editBtnWin" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
|
|
+ <div class="modal-dialog">
|
|
|
+ <div class="modal-content">
|
|
|
+ <div class="modal-header">
|
|
|
+ <button type="button" class="close" data-dismiss="modal">
|
|
|
+ <span aria-hidden="true">×</span><span class="sr-only">Close</span>
|
|
|
+ </button>
|
|
|
+ <h6 class="modal-title" id="myModalLabel"></h6>
|
|
|
+ </div>
|
|
|
+ <!-- form 表单信息 -->
|
|
|
+ <div class="modal-body">
|
|
|
+ <form class="form-horizontal" id="editBtnForm" method="post" onsubmit="return false;">
|
|
|
+ <input type="hidden" id="btnId" name="btnId">
|
|
|
+ <input type="hidden" id="menuId" name="menuId">
|
|
|
+ <div class="form-group">
|
|
|
+ <label class="col-sm-2 control-label" for="menuName">菜单名称</label>
|
|
|
+ <div class="col-sm-9">
|
|
|
+ <input class="form-control" id="menuName" name="menuName" type="text" readonly="readonly" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label class="col-sm-2 control-label" for="btnName">名称</label>
|
|
|
+ <div class="col-sm-9">
|
|
|
+ <input class="form-control" id="btnName" name="btnName" type="text" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label class="col-sm-2 control-label" for="btnCode">编码</label>
|
|
|
+ <div class="col-sm-9">
|
|
|
+ <input class="form-control" id="btnCode" name="btnCode" type="text" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label class="col-sm-2 control-label" for="btnSortno">序号</label>
|
|
|
+ <div class="col-sm-9">
|
|
|
+ <input class="form-control" id="btnSortno" name="btnSortno" type="text" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="row">
|
|
|
+ <div class="center-block" style="width:160px;">
|
|
|
+ <button id="btnSave" class="btn btn-success btn-round btn-sm" onclick="btnSave()">
|
|
|
+ <i class="glyphicon glyphicon-ok"></i> 保存
|
|
|
+ </button>
|
|
|
+ <button type="button" class="btn btn-grey btn-round btn-sm" onclick="closeBtnWin()">
|
|
|
+ <i class="glyphicon glyphicon-remove"></i> 关闭
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ <!-- form 表单信息 -->
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+</div>
|
|
|
+</body>
|
|
|
+</html>
|