📄 menujc02.jsp
字号:
<%@page contentType="text/html; charset=GB2312"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
<link href="${pageContext.request.contextPath}/css/main.css"
rel="stylesheet" type="text/css" />
<script type="text/javascript">
function formadd(){
PrlinfoForm.action="${pageContext.request.contextPath}/prlEdit.do?method=showPrlDept";
PrlinfoForm.submit();
}
function formupdate(){
var g=0;
var length=PrlinfoForm.uuid.length
if(length){
for(var i=0;i<length;i++){
if(PrlinfoForm.uuid[i].checked){
g++;
}
if(g>1){
alert("不能选择多条要修改的记录!");
return false;
}
}
if(g<1){
alert("请选择要修改的记录!");
return false;
}
}else{
if(!PrlinfoForm.uuid.checked){
alert("请选择要修改的记录!");
return false;
}
}
PrlinfoForm.action="${pageContext.request.contextPath}/prlEdit.do?method=showUpdatePrl";
PrlinfoForm.submit();
return true;
}
function formdelete(){
var errflag=false;
for(i=0;i<PrlinfoForm.uuid.length;i++) {
if(PrlinfoForm.uuid[i].checked==true) {
errflag=true; }
}
if(errflag==false) {
alert("请选择你要删除的记录"); }
else {
PrlinfoForm.action="${pageContext.request.contextPath}/prlEdit.do?method=deletePrl";
PrlinfoForm.submit();
}
}
function formquerry(){
if(document.PrlinfoForm.dutyname.value==""){
window.alert("请选择你要查询的职务");
return false;
}
PrlinfoForm.action="${pageContext.request.contextPath}/prlEdit.do?method=querryPrl";
PrlinfoForm.submit();
return true;
}
function chooseAll(){
for(var i=0;i<document.PrlinfoForm.length;i++){
if (document.PrlinfoForm.elements[i].name=="uuid"&&document.PrlinfoForm.elements[i].disabled==false){
document.PrlinfoForm.elements[i].checked=true;
}
}
}
function unchooseAll(){
for(var i=0;i<document.PrlinfoForm.length;i++){
if (document.PrlinfoForm.elements[i].name=="uuid"&&document.PrlinfoForm.elements[i].disabled==false){
document.PrlinfoForm.elements[i].checked=false;
}
}
}
</script>
</head>
<body><br />
<html:form action="/prlEdit" method="post">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="95%" border="0" align="center" cellpadding="0"
cellspacing="0">
<tr>
<td width="6%" height="38">
<div align="center">
<img src="${pageContext.request.contextPath}/images/rule0.gif"
width="20" height="20" />
</div>
<br /></td>
<td width="94%">
<span class="sys_list_y">职务信息管理</span>
<br /></td>
</tr>
<tr>
<td height="35" colspan="2">
<div align="right">
<span class="sys_font_12b">查询条件:</span>
<html:select property="dutyname">
<html:option value="">
--请选择--
</html:option>
<c:forEach items="${detynamelist}" var="detylist">
<html:option value="${detylist.dutyname}">
${detylist.dutyname}
</html:option>
</c:forEach>
</html:select>
<input name="submit0" type="button" class="input_button9"
value="查询" onclick="formquerry();" />
<input name="submit1" type="button" class="input_button9"
value="新增" onclick="formadd();" />
<input name="submit2" type="button" class="input_button9"
value="修改" onclick="formupdate()" />
<input name="submit3" type="button" class="input_button9"
value="删除" onclick="formdelete();" />
</div>
<br /></td>
</tr>
</table>
<table width="95%" border="0" align="center" cellpadding="2"
cellspacing="1" bgcolor="#E4E4E4">
<tr>
<th width="4%" height="24" bgcolor="#F2F2F2">
<input type="checkbox" name="uuid" value=""
onclick="chooseAll();" ondblclick="unchooseAll();" />
<br /></th>
<th width="8%" height="24" bgcolor="#F2F2F2">
职务编号
<br /></th>
<th width="18%" height="24" bgcolor="#F2F2F2">
职务名称
<br /></th>
<th bgcolor="#F2F2F2" width="18%">
职务备注
<br /></th>
</tr>
<logic:present name="querryBynameList">
<logic:iterate id="querryByname" name="querryBynameList">
<tr>
<td height="24" align="center" bgcolor="#FFFFFF">
<input type="checkbox" name="uuid"
value="<bean:write name="querryByname" property="uuid"/>" />
<br /></td>
<td height="24" align="center" bgcolor="#FFFFFF">
<bean:write name="querryByname" property="dutynum" />
<br /></td>
<td height="24" align="center" bgcolor="#FFFFFF">
<bean:write name="querryByname" property="dutyname" />
<br /></td>
<td height="24" align="center" bgcolor="#FFFFFF">
<bean:write name="querryByname" property="dutyremark" />
<br /></td>
</tr>
</logic:iterate>
</logic:present>
<logic:present name="prlinfolist">
<logic:iterate id="prlinfo" name="prlinfolist">
<tr>
<td height="24" align="center" bgcolor="#FFFFFF">
<input type="checkbox" name="uuid"
value="<bean:write name="prlinfo" property="uuid"/>" />
<br /></td>
<td height="24" align="center" bgcolor="#FFFFFF">
<bean:write name="prlinfo" property="dutynum" />
<br /></td>
<td height="24" align="center" bgcolor="#FFFFFF">
<bean:write name="prlinfo" property="dutyname" />
<br /></td>
<td height="24" align="center" bgcolor="#FFFFFF">
<bean:write name="prlinfo" property="dutyremark" />
</td>
</tr>
</logic:iterate>
</logic:present>
</table>
<table width="95%" border="0" align="center" cellpadding="0"
cellspacing="0">
<jsp:include page="/common/page.jsp"></jsp:include>
</table>
</td>
</tr>
</table>
</html:form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -