| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 |
- <%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="UTF-8"%>
- <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
- <%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html;charset=GBK">
- <script type="text/javascript">
- var pictype = "0";
- </script>
- <title></title>
- <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
- <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
- <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
- <script src="/shares/js/yw/sales/ligerui.all.js" type="text/javascript"></script>
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <script type="text/javascript" src="/shares/js/yw/sales/typeTree.js"></script>
- <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
- <style type="text/css">
- body,html{height:100%;}
- body{ padding:0px; margin:0; overflow:hidden;}
- .l-link{ display:block; height:26px; line-height:26px; padding-left:10px; text-decoration:underline; color:#333;}
- .l-link2{text-decoration:underline; color:white;}
- .l-layout-top{background:#102A49; color:White;}
- .l-layout-bottom{ background:#E5EDEF; text-align:center;}
- #pageloading{position:absolute; left:0px; top:0px; background:white url('loading.gif') no-repeat center; width:100%; height:100%;z-index:99999;}
- .l-link{ display:block; line-height:22px; height:22px; padding-left:20px;border:1px solid white; margin:4px;}
- .l-link-over{ background:#FFEEAC; border:1px solid #DB9F00;}
- .l-winbar{ background:#2B5A76; height:30px; position:absolute; left:0px; bottom:0px; width:100%; z-index:99999;}
- </style>
- <script type="text/javascript">
- var grid = null;
- function initGrid() {
- var checkbox = true;
- var params = {'select_type_id': $("#select_type_id").val()};
- grid = $("#maingrid4").ligerGrid(
- {
- columns : [
- {display : '编号', name : 'id', width : 200 },
- {display : '菜单名称', name : 'text', width : 160 },
- {display : '菜单排序', name : 'access_order', width : 160 }
- <c:if test="${menuaccess.columnedit == 1}">
- , {display : '操作', width : 120, isAllowHide : false,
- render : function(row) {
- var html = '<a href=\"#\" onclick=\"phonecreateoredit(\''+ row.id + '\',\''+ row.pid + '\',\'${menu_code}\',\'edit\')\">修改</a> ';
- return html;
- }
- }
- </c:if>
- ],
- url : "BasicInformationAction.do?task=toList&menu_code=${menu_code}&time=" + new Date().getTime(),
- pageParmName : 'p', //页索引参数名,(提交给服务器)
- pagesizeParmName : 'pSize', //页记录数参数名,(提交给服务器)
- width : '99.9%',
- checkbox:checkbox,
- usePager :false,
- parms: params,
- deleteRow: true,
- height : '99%',
- single :true,
- allowHideColumn: false, rownumbers: true, colDraggable: true, rowDraggable: true,
- onCheckRow: function(checked, rowdata, rowindex) {
- <%-- 里面的代码为单选 or (var rowid in this.records){ this.unselect(rowid); } if(checked){ this.select(rowindex); }else{ this.unselect(rowindex); } --%>
- }
- });
- $("#pageloading").hide();
- }
- // 获取选中的值
- function selectCheckd(){
- var checked = grid.getCheckedRows();
- var values = "";
- for(var i=0;i<checked.length;i++){
- values = values + checked[i].id + ",";
- }
- return values;
- }
- $(function () {
- $("#layout1").ligerLayout({ leftWidth: 250, height: '99%'});
- var height = $(".l-layout-center").height();
- $("#accordion1").ligerAccordion({ height: height - 28, speed: null });
- loadTree('&menu_code=${menu_code}'); // 树形结构加载
- initGrid(); // 列表页面加载
- });
- $.ajax({
- url: "${pageContext.request.contextPath }/BasicInformationAction.do?task=getresultmapvalue&menu_code=${menu_code}",
- type: "post",
- dataType: "json",
- data: "",
- success: function (result) {
- if(result != null && "null" != result && "" != result){
- $("#select_type_id").attr("value",result);
- }
- }
- });
- </script>
- </head>
- <body style="padding:0px;">
- <input type="hidden" name="select_type_id" id="select_type_id" value=""/><%-- 被选中的节点id --%>
- <input type="hidden" name="level" id="level" value=""/><%-- 被选中的是第几及 --%>
- <div id="layout1">
- <div position="left" title="树" id="accordion1">
- <div title="手机端菜单" class="l-scroll">
- <ul id="typeTree" class="tree" style="margin-top: 3px;margin-left: -10px;"></ul>
- </div>
- </div>
- <div position="center" id="assetList" title="列表页面">
- <c:if test="${menuaccess.columnadd == 1 || menuaccess.columndel == 1}">
- <div id="deptBtn" style="text-align:left;">
- <c:if test="${menuaccess.columnadd == 1}">
- <input id="addBut" type="button" value="新增" class="l-button" onclick="phonecreateoredit('','','${menu_code}','create')" style="width:90px;margin-left:10px;"/>
- </c:if>
- <c:if test="${menuaccess.columndel == 1}">
- <input id="delBut" type="button" value="删除" class="l-button" onclick="del('${menu_code}')" style="width:90px;margin-left:10px;"/>
- </c:if>
- </div>
- </c:if>
- <div style="overflow: hidden; clear: both;">
- <div id="maingrid4" style="margin: 0; padding: 0"></div>
- </div>
- </div>
- </div>
- <%@ include file="/include/message.jsp"%>
- </body>
- </html>
|