📄 persondel.jsp
字号:
<%@ page language="java" import="java.sql.*" contentType="text/html;charset=gb2312"%>
<jsp:useBean id="db" scope="page" class="opendb.opendb"/>
<%
String getpersonID = new String(request.getParameter("del").getBytes("ISO8859_1"));
String sql1="delete from wglPERSON where EMP_CODE='"+getpersonID+"'";
ResultSet rs1=db.executeQuery(sql1);
String sql2="select * from wglPERSON";
ResultSet rs2=db.executeQuery(sql2);
%>
<SCRIPT LANGUAGE="JavaScript">
function link(vid){
document.S_form.udp.value =vid;
document.S_form.action="personUpdI.jsp";
document.S_form.submit();
}
function del(vid){
if (confirm("Are you sure to delete?"))
{
document.S_form.del.value =vid;
document.S_form.action="personDel.jsp";
document.S_form.submit();
}
}
</script>
<html>
<head>
<title>部门信息纵览</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<body>
<form id="S_form" name="S_form" method="post" action="../yu/departUpdII.jsp" >
<table border=1 bordercolor="#008000">
<tr bgcolor="#00CCFF">
<td width="10%" height="16" >
<p align="center">人员ID</p></td>
<td width="10%" height="16">
<p align="center">人员姓名</p></td>
<td width="10%" height="16">
<p align="center">部门号</p></td>
<td width="10%" height="16">
<p align="center">性别</p></td>
<td width="5%" height="16">
<p align="center">权限</p></td>
<td width="10%" height="16">
<p align="center">婚姻状况</p></td>
<td width="10%" height="16">
<p align="center">毕业学校</p></td>
<td width="10%" height="16">
<p align="center">学历</p></td>
<td width="10%" height="16">
<p align="center">电话</p></td>
<td width="10%" height="16">
<p align="center">手机</p></td>
<td width="10%" height="16">
<p align="center">用户名</p></td>
<td width="10%" height="16">
<p align="center">密码</p></td>
<td width="10%" height="16">
<p align="center">修改</p></td>
<td width="10%" height="16">
<p align="center">删除</p></td>
</tr>
<% while(rs2.next())
{
String personID=rs2.getString("EMP_CODE");
String personname=rs2.getString("EMP_NAME");
String ID=rs2.getString("EMP_DEPT");
int sex=rs2.getInt("EMP_SEX");
int web=rs2.getInt("EMP_WEB");
int marry=rs2.getInt("EMP_MARRY");
String school=rs2.getString("EMP_SCHOOL");
String level=rs2.getString("EMP_EDUATION");
String telephone=rs2.getString("EMP_TEL");
String mtel=rs2.getString("EMP_HANDTEL");
String username=rs2.getString("EMP_USERNAME");
String password=rs2.getString("EMP_PASSWORD");
%>
<tr><td width="10%" height="16" ><p align="center"><%=personID%></p></td>
<td width="10%" height="16" ><p align="center"><%=personname%></p></td>
<td width="10%" height="16" ><p align="center"><%=ID%></p></td>
<td width="10%" height="16" ><p align="center"><%if(sex==0)
{out.print("男");}
else
{out.print("女");}%></p></td>
<td width="5%" height="16" ><p align="center"><%=web%></p></td>
<td width="10%" height="16" ><p align="center"><%if(marry==0)
{out.print("是");}
else
{out.print("否");}%></p></td>
<td width="10%" height="16" ><p align="center"><%=school%></p></td>
<td width="10%" height="16" ><p align="center"><%=level%></p></td>
<td width="10%" height="16" ><p align="center"><%=telephone%></p></td>
<td width="10%" height="16" ><p align="center"><%=mtel%></p></td>
<td width="10%" height="16" ><p align="center"><%=username%></p></td>
<td width="10%" height="16" ><p align="center"><%=password%></p></td>
<td align="center" width="10%"><font size="2" color="000000"><a HREF="javascript:link('<%=((String)(personID)).trim()%>')">Y</a></font></td>
<td width="9%" align="center"><font size="2" color="000000"><a HREF="javascript:del('<%=((String)(personID)).trim()%>')">Y</a></font></td>
</tr>
<%
}
%>
</table>
<p align="right"> </p>
<div align="right"><a href="adminBack.jsp">返回</a> </div>
<p align="right"> </p>
<input type="hidden" id="udp" name="udp">
<input type="hidden" id="del" name="del">
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -