📄 jspunitadd.jsp
字号:
<%@ page language="java" import="java.util.*,java.sql.*,com.isoftstone.banktearm1.vo.BankTeam1UnitVo,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 'JspUnitAdd.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()
{
if (confirm('确认要删除吗?')){
document.myform1.code.value="2";
document.myform1.submit();
}
}
function creat()
{
document.myform1.code.value="3";
document.myform1.submit();
}
function modify(unitid)
{
document.myform1.code.value="5";
document.myform1.unitid.value=unitid;
document.myform1.submit();
}
</script>
<BR>
<BR>
<CENTER><span class="FormTitle">人行长治中支 科技部机构设置 </span> <BR>
<FORM action="ToUnitAddCode" name="myform1" method="POST">
<input type="hidden" name="code">
<input type="hidden" name="unitid">
<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">机构编号</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()){
BankTeam1UnitVo btvo=(BankTeam1UnitVo)it.next();
%>
<tr>
<td class="midTable1td2" width="20px">
<% if(btvo.getUnitId()!=10){
%>
<INPUT type="checkbox" name="delflag" value=<%=btvo.getUnitId()%>>
<% }else{ %>
<% } %>
</td>
<td class="midTable1td2" width="100px"> <%=btvo.getUnitId()%></td>
<td class="midTable1td2" width="100px"> <%=btvo.getUnitName()%></td>
<td class="midTable1td2" align="center"> <%=btvo.getUnitmemo()%></td>
<td class="midTable1td2" align="center">
<INPUT class=button type="Button" value="编辑" onclick="modify(<%=btvo.getUnitId()%>)"/>
</td>
</tr>
<% } }%>
</table>
<table align="center" width="80%" border="0" class="midTable1" cellpadding="3" cellspacing="0">
<tr>
<td class="midTable1td1" align="center">
<INPUT type="Button" class=button value="删除机构" onclick="submit1()"/>
<INPUT type="Button" class=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 + -