?? employeeinfolist.jsp
字號:
<%@ page language="java" contentType="text/html; charset=gb2312" pageEncoding="GB2312"%>
<%@ taglib uri="/WEB-INF/employee-tag.tld" prefix="employee"%>
<%@ page import="com.logistic.business.EmployeeManager" %>
<%@ page import="com.logistic.data.DataConnect"%>
<%request.setCharacterEncoding("gb2312");%>
<%
DataConnect dc=new DataConnect();
String strsql="select * from employeeinfotable";
int count=0;
count=dc.selectdata(strsql);
if(count<=0){
session.setAttribute("errors","職員數據信息為空!");
response.sendRedirect("../../errors/errorpage.jsp");
}
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv='Expires' content='-10'>
<meta http-equiv='Pragma' content='No-cache'>
<meta http-equiv='Cache-Control', 'private'>
<title>職員信息管理窗口</title>
<link href="<%=request.getContextPath()%>/cssjs/comcss.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
background-color: #168AC2;
}
-->
</style>
<style type="text/css">
<!--
a:link {
color: #990000;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #990000;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
-->
</style></head>
<body>
<%
String employeeid=(String)request.getParameter("employeeid");
int flag=0;
if(employeeid!=null){
EmployeeManager em=new EmployeeManager();
flag=em.DelEmployee(employeeid);
if(flag>0){
%>
<script language="javascript">
alert("該職員信息刪除成功!");
location.href="<%=request.getContextPath()%>/viewpage/showpage/employeeinfolist.jsp";
</script>
<%
}
}
%>
<employee:employeeinfotag/>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -