📄 del.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" errorPage="" %>
<%@ include file="../hear/hear.jsp"%>
<!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="../css/work.css" rel="stylesheet" type="text/css" />
<script src="../js/oa.js"></script>
<style type="text/css">
<!--
.style1 {
color: #000000;
font-family: "宋体";
font-weight: bold;
font-size: 16px;
}
.style2 {
color: #003366;
font-weight: bold;
}
.style4 {color: #0060BF}
.style5 {color: #FF0000}
-->
</style>
</head>
<body bgcolor="#ECF1FF">
<table width="49%" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<form name="form" id="form" method="post" action="del">
<tr >
<td height="24" background="../image/zs.gif" colspan="5" align="center" class="title style1">员工状态删除</td>
</tr>
<%
Collection coll=(Collection)session.getAttribute("msg");
if(coll==null){
%>
<tr>
<td height="35" colspan="4" align="center" class="advise" ><span class="style2">没有员工状态信息</span></td>
</tr>
<tr align="right" bgcolor="#ECF1FF">
<td height="21" colspan="5"><span class="return" onclick="javascript:history.go(-1);">返回</span> </td>
</tr>
<%
}else{
%>
<tr>
<td height="28" colspan="2"><div align="center"><span class="advise style5"><strong>注意:请首先删除属于此员工状态的所有员工信息</strong></span>
</div>
<tr>
<td width="240" height="28" align="center"><span class="style4">请选择要删除的员工状态名称:</span></td>
<td width="189" align="center"><select name="id" >
<%
Iterator it=coll.iterator();
while(it.hasNext()){
Department dep=(Department)it.next();
%>
<option value="<%= dep.getId() %>"><%= dep.getName() %></option>
<%
}
%>
</select></td>
<tr>
<td height="50" colspan="4" align="center" class="advise"><input type="submit" name="Submit" value="删除" />
<input type="button" name="Submit2" value="返回" onclick="javascript:history.back(-1);"/></td>
</tr>
<tr>
<%
String delmsg=(String)request.getAttribute("delmsg");
if(delmsg!=null){
%>
<td colspan="4" align="center" class="advise"> <%= delmsg %></td>
<%
session.removeAttribute("msg");
}
}
%>
</tr>
</form>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -