📄 jspdeptadd.jsp
字号:
<%@ page language="java" import="java.util.*,java.sql.*,com.isoftstone.banktearm1.vo.UnitDepVo,javax.servlet.http.*" pageEncoding="gb2312"%>
<%@ page errorPage="SysErrorPage.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<!--
07作成部门及机构
-->
<head>
<base href="<%=basePath%>">
<title>My JSP 'JspDeptAdd.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<jsp:include flush="true" page="Top.jsp"></jsp:include>
<body>
<script language="JavaScript" >
function submit1()
{
document.myform1.code.value="2";
document.myform1.submit();
}
function creat()
{
document.myform1.code.value="3";
document.myform1.submit();
}
function modify(depid)
{
document.myform1.code.value="5";
document.myform1.depid.value=depid;
document.myform1.submit();
}
</script>
<BR>
<BR>
<CENTER><span class="FormTitle">人行长治中支 科技部部门设置 </span> <BR>
<FORM action="ToDeptAddCode" name="myform1" method="POST">
<input type="hidden" name="code">
<input type="hidden" name="depid">
<table align="center" width="80%" border="0" class="midTable1" cellpadding="3" cellspacing="0">
<tr>
<td class="midTable1td1" width="20px"> </td>
<td class="midTable1td1" width="100px">部门ID</td>
<td class="midTable1td1" width="100px">部门名称</td>
<td class="midTable1td1" align="center">所属机构</td>
<td class="midTable1td1" align="center">操作</td>
</tr>
<%
ArrayList list=(ArrayList)request.getAttribute("list");
int i=0;
if(list!=null){
Iterator it=list.iterator();
while(it.hasNext()){
UnitDepVo udvo=(UnitDepVo)it.next();
%>
<tr>
<td class="midTable1td2" width="20px">
<% if(udvo.getDepartmentId()!=10){
%>
<INPUT type="checkbox" name="delflag" value=<%=udvo.getDepartmentId()%>>
<% }else{ %>
<% } %>
</td>
<td class="midTable1td2" width="100px"><%=udvo.getDepartmentId()%></td>
<td class="midTable1td2" width="100px"><%=udvo.getDepartmentName()%></td>
<td class="midTable1td2" align="center"><%=udvo.getUnitName()%>
</td>
<td class="midTable1td2" align="center">
<INPUT class=button type="Button" value="编辑" onclick="modify(<%=udvo.getDepartmentId()%>)"/>
</td>
</tr>
<% } }%>
</table>
<table align="center" width="80%" border="0" class="midTable1" cellpadding="3" cellspacing="0">
<tr>
<td class="midTable1td1" align="center">
<INPUT class=button type="Button" value="删除部门" onclick="submit1()"/>
<INPUT class=button type="Button" value="创建部门" onclick="creat()"/>
</td>
</tr>
</table>
<br>
<table>
</table>
</FORM>
</body>
<jsp:include flush="true" page="Bottoml.html"></jsp:include>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -