📄 d06.jsp
字号:
<%@ page language="java" contentType="text/html; charset=GBK" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>D04</title>
<link href="/css/base.css" rel="stylesheet" type="text/css">
<Script Language="JavaScript">
function setValue(obj) {
var oA = document.getElementById("tab1").getElementsByTagName("INPUT");
if (obj.checked==true){
for (var i = 0; i < oA.length; i++) {
if (oA[i].type = "checkBox") {
oA[i].checked = false;
}
}
obj.checked=true;
}
}
function doSubmit() {
document.U01CDutyForm.method.value = "update";
document.U01CDutyForm.checkValidatoe.value = "0";
document.U01CDutyForm.submit();
}
</Script>
</head>
<body>
<html:form action="/U01CDutyAction">
<html:hidden property="method" value="insert" />
<html:hidden property="checkValidatoe" value="1" />
<table width="80%" border="0" align="center" cellpadding="4" cellspacing="0" >
<tr>
<td><span class="font_title">考勤处理条件管理</span></td>
</tr>
</table>
<div align="center">
<table width="80%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#7AA1E6" id="tab1">
<tr align="center" bordercolor="1" bgcolor="#FFFFFF">
<td width="49%"><div align="center">考勤处理条件</div></td>
<td width="51%"><div align="center">修改</div></td>
</tr>
<logic:present name="cDutyList">
<logic:iterate id="cDuty" name="cDutyList">
<tr align="center" bordercolor="1" bgcolor="#FFFFFF">
<td><bean:write name="cDuty" property="cdName"/></td>
<td>
<html:multibox property="cDutycon.cdId" onclick="setValue(this)">
<bean:write name="cDuty" property="cdId"/>
</html:multibox>
</td>
</tr>
</logic:iterate>
</logic:present>
</table>
<div align="center">
<html:errors property="cDutycon.cdId" />
<br/>
<br/>
考勤处理条件:
<html:text property="cDutycon.cdName" styleClass="input-text" />
<html:errors property="cDutycon.cdName" />
<html:errors property="error" />
<html:submit styleClass="inputstyle2">
添加
</html:submit>
<html:submit styleClass="inputstyle2" onclick="doSubmit();">
修改
</html:submit>
</div>
</div>
</html:form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -