|
|
|
<%@page import="com.zky.para.Para"%>
|
|
|
|
<%@include file="/auth.jsp"%>
|
|
|
|
<%@page language="java" contentType="text/html;charset=utf-8"%>
|
|
|
|
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
|
|
|
|
<%
|
|
|
|
|
|
|
|
String operate = (String)request.getParameter("operate");
|
|
|
|
String menuitem = Common.convertNull(request.getParameter("menuitemQ"));
|
|
|
|
String menuitemname = Common.convertNull(request.getParameter("menuitemnameQ"));
|
|
|
|
String companyid = Common.convertNull(request.getParameter("companyidQ"));
|
|
|
|
String areaid=Common.convertNull(request.getParameter("areaidQ"));
|
|
|
|
%>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>菜单管理</title>
|
|
|
|
<link rel="stylesheet" type="text/css" href="../css/font.css">
|
|
|
|
<script src="../js/check.js"></script>
|
|
|
|
<script src="../js/date.js"></script>
|
|
|
|
<link rel="stylesheet" type="text/css" href="../js/2k3Grid.css">
|
|
|
|
<link rel="stylesheet" type="text/css" href="../js/2k3Menu.css">
|
|
|
|
<link rel="stylesheet" type="text/css" href="../js/2k3Dialog.css">
|
|
|
|
<script>
|
|
|
|
function check(operate,companyid,menuitem) {
|
|
|
|
form1.operate.value=operate;
|
|
|
|
if (operate == "add") {
|
|
|
|
form1.action = "/manage/MenuEdit.jsp?clearsession=1";
|
|
|
|
}
|
|
|
|
if (operate == "modify") {
|
|
|
|
form1.action = "/servlet/MenuManage?operate=getMenuTree&menuitem="+menuitem+"&companyid="+companyid;
|
|
|
|
}
|
|
|
|
if (operate == "delete") {
|
|
|
|
if (!confirm("确定要删除该菜单吗?")) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
form1.action = "/servlet/MenuManage?operate=menuList&menuitem="+menuitem+"&companyid="+companyid;
|
|
|
|
}
|
|
|
|
if (operate == "queryMenu"){
|
|
|
|
if (form1.companyidQ.value=='') {
|
|
|
|
alert("请选择归属市保密局!");
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
form1.button1.disabled=true;
|
|
|
|
form1.button2.disabled=true;
|
|
|
|
form1.submit();
|
|
|
|
}
|
|
|
|
function selectChange(i){
|
|
|
|
if(i==1){
|
|
|
|
form1.areaidQ.value="";
|
|
|
|
}
|
|
|
|
if(i==2){
|
|
|
|
form1.deptid.value="";
|
|
|
|
}
|
|
|
|
form1.action = "/manage/MenuManage.jsp";
|
|
|
|
form1.submit();
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<script src="../js/setSelectValue.js"></script>
|
|
|
|
<style type="text/css">
|
|
|
|
select
|
|
|
|
{
|
|
|
|
width:155px;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body scroll="no" onload="setValue();">
|
|
|
|
<form name="form1" method="post" action="/servlet/MenuManage">
|
|
|
|
<input type="hidden" name="operate" value=""/>
|
|
|
|
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" class="box">
|
|
|
|
<tr>
|
|
|
|
<td valign="top"><table width="100%" height="23" border="0" cellpadding="0" cellspacing="0">
|
|
|
|
<tr>
|
|
|
|
<td width="25%" background="/images/tab_search_01.jpg"><table width="100%" height="23" border="0" align="center" cellpadding="0" cellspacing="0">
|
|
|
|
<tr>
|
|
|
|
<td width="6%" align="right"><img src="/images/little_red.jpg" width="12" height="12"></td>
|
|
|
|
<td width="94%" class="font12b"> <b>菜单管理</b></td>
|
|
|
|
</tr>
|
|
|
|
</table></td>
|
|
|
|
<td width="82%" background="/images/tab_search_03.jpg"><img src="/images/tab_search_02.jpg" width="12" height="23"></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" class="table02">
|
|
|
|
<tr bgcolor="#FFFFFF">
|
|
|
|
<td class="cell1">所属市州</td>
|
|
|
|
<td class="cell2">
|
|
|
|
<select class='aselect' name="companyidQ" setValue="<%=companyid%>" onChange="selectChange(1);">
|
|
|
|
<%=Para.getSj(getPara)%>
|
|
|
|
</select>
|
|
|
|
</td>
|
|
|
|
<td class="cell1">菜单编码</td>
|
|
|
|
<td class="cell2" width="10">
|
|
|
|
<input type="text" name="menuitemQ" value="<%=menuitem%>">
|
|
|
|
</td>
|
|
|
|
<td class="cell1">菜单名称</td>
|
|
|
|
<td class="cell2">
|
|
|
|
<input type="text" name="menuitemnameQ" value="<%=menuitemname%>">
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<input border="0" type="image" src="../../../images1/cx.png" name="button1" class="box_button" onclick="check('queryMenu');"/>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<table width="99%" align="center">
|
|
|
|
<tr align="left">
|
|
|
|
<td>
|
|
|
|
<input border="0" type="image" src="../../../images1/tj.png" name="button2" alt="添加" onclick="check('add');"/>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<%
|
|
|
|
HashFmlBuf buf = (HashFmlBuf) request.getAttribute("menu_buf");
|
|
|
|
if (buf != null) {
|
|
|
|
int rowcount = buf.getRowCount();
|
|
|
|
%>
|
|
|
|
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" class="box">
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<div style="width:100%; height:385px;overflow: auto;">
|
|
|
|
<div id="myGrid" class="2k3Grid" borderWidth="0" contextMenu="mnuGridContextMenu" altRowColor="oldLace">
|
|
|
|
<div class="gridHead">
|
|
|
|
<!--div align="left"><span width="5%">共检索到<%=rowcount%>条记录</span></div-->
|
|
|
|
<div class="gridRow">
|
|
|
|
<span width="5px" style="text-align: center;">序号</span>
|
|
|
|
<span>菜单编码</span>
|
|
|
|
<span>菜单名称</span>
|
|
|
|
<span>操作</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="gridBody">
|
|
|
|
<%
|
|
|
|
for (int i=0; i<rowcount; i++) {
|
|
|
|
String tempMenuitem = buf.fget("menuitem",i);
|
|
|
|
String tempCompanyid = buf.fget("frameworkid",i) ;
|
|
|
|
%>
|
|
|
|
<div class="gridRow">
|
|
|
|
<span width="5px" style="text-align: center;"><%=i+1%></span>
|
|
|
|
<span><%=tempMenuitem%></span>
|
|
|
|
<span><%=buf.fget("menuitemname",i)%></span>
|
|
|
|
<span>
|
|
|
|
<a href="/servlet/MenuManage?operate=deleteMenu&menuitem=<%=buf.fget("menuitem",i) %>&companyid=<%=buf.fget("frameworkid",i)%>" onclick="return confirm('确定要删除此信息吗?')"><IMG border="0" src="../../../images1/delete.gif" ALT="删除" style="cursor: pointer;" ></a></span>
|
|
|
|
</div>
|
|
|
|
<%
|
|
|
|
}
|
|
|
|
%>
|
|
|
|
</div>
|
|
|
|
<!-- gridBody end -->
|
|
|
|
</div>
|
|
|
|
<!-- myGrid end -->
|
|
|
|
</div>
|
|
|
|
<tag:PageLinkTag operate="queryMenu" scope="request" width="99%" align="center"/>
|
|
|
|
|
|
|
|
<%
|
|
|
|
}
|
|
|
|
%>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
<tr>
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
<%@include file="/foot.jsp"%>
|
|
|
|
</body>
|
|
|
|
</html>
|