📄 updatedepartment.jsp
字号:
<%@ page language="java" pageEncoding="GBK"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<jsp:include page="/Main/Main.jsp" />
<script language="JavaScript" >
function update()
{
document.forms[0].code.value="6";
document.forms[0].submit();
}
function returnlist()
{
document.forms[0].code.value="5";
document.forms[0].submit();
}
</script>
<BR><BR>
<CENTER><span class="FormTitle"> 部门设置 </span> <BR>
<html:form action="/department.do" method="post">
<html:hidden property="code"/>
<html:hidden property="depId" value="${department.depId}"/>
<table align="center" width="70%" border="0" class="midTable1" cellpadding="3" cellspacing="0">
<tr>
<td class="midTable1td1">部门名称</td>
<td class="midTable1td2">
<html:text property="depName" value="${department.depName}"></html:text>
<html:checkbox property="depType" value="${department.depType}"></html:checkbox>科技科
</td>
</tr>
<tr>
<td class="midTable1td1" valign="top">所属机构</td>
<td class="midTable1td2">
<html:select property="depUnit">
<logic:present name="list">
<html:option value="${department.depId}"><%--<bean:write name="depName" property="${department.depName}"/>--%></html:option>
<logic:iterate id="unit" name="list">
<html:option value="${unit.unitId}"><bean:write name="unit" property="unitName"></bean:write></html:option>
</logic:iterate>
</logic:present>
</html:select>
</td>
</tr>
<tr>
<td class="midTable1td1" align="center" colspan="2">
<html:button property="button" value="修改" onclick="update()"></html:button>
<html:button property="button" value="关闭" onclick="returnlist()"></html:button>
</td>
</tr>
</table>
<BR>
<table>
</table>
</html:form>
</CENTER>
<jsp:include page="/Main/Footer.html" />
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -