📄 personselectbytype.jsp
字号:
<%@ page language="java" import="java.util.*,com.jxc.vo.*" pageEncoding="UTF-8"%>
<head>
<style type="text/css">
<!--
.style3 {
font-size: 12px;
font-weight: bold;
}
.style4 {font-size: 12px}
.style6 {font-size: 12px; color: #FF00FF; }
.style7 {color: #000000}
.style8 {color: #FF00FF}
.style9 {color: #9999FF}
-->
</style>
<script language="javascript" src="../JS/pagelist.js"></script> </head>
<body bgcolor="#F1F4F8">
<%
if (session.getAttribute("yid")==null) {
%>
<script language=javascript>
alert("对不起,您没有登录,请先登录!");
window.location.href="../erro.jsp";
</script>
<%} %>
<table width="660" height="480">
<tr>
<td bgcolor="#FFCCFF" width="660" height="30">
<jsp:include flush="true" page="person_top.jsp"/>
</td>
</tr>
<tr>
<td width="660" height="25"><strong><span class="style3"><font color="#CC33CC">---->员工信息查询<----</font></span></strong> <center class="style3">
<strong><font color="#CC33CC">
</font></strong>
</center></td>
</tr>
<tr>
<td width="660" height="25" valign="baseline"><form action="PersonSelectByType" method="post" name="listpage" class="style4">
<div align="center">请选择职位的种类:
<select name="job">
<option value="销售员"
<%if(("销售员").equals((String)session.getAttribute("job"))){
out.print( "selected");}
else{out.print( ""); }%>>--销售员--</option>
<option value="库存员"<%if(("库存员").equals((String)session.getAttribute("job"))){
out.print( "selected");}
else{out.print( ""); }%>>--库存员--</option>
<option value="进货员"<%if(("进货员").equals((String)session.getAttribute("job"))){
out.print( "selected");}
else{out.print( ""); }%>>--进货员--</option>
<option value="经理"<%if(("经理").equals((String)session.getAttribute("job"))){
out.print( "selected");}
else{out.print( ""); }%>>--经理--</option>
</select>
<input type="submit" name="Submit" value="提交检索">
</div>
</form></td>
</tr>
<tr>
<td width="660" height="340" valign="baseline"> <div align="center"><span class="style6">
<%
List list=(List)session.getAttribute("list");
%>
<%if(session.getAttribute("erro")=="succ"){
%>
删除信息成功!</span> <span class="style6">
<%
session.removeAttribute("erro");
}else if(session.getAttribute("erro")=="false"){
%>
删除信息失败!</span> <span class="style6">
<%
session.removeAttribute("erro"); }
%>
</span> <%if(session.getAttribute("list")!=null){ %>
<table width="640" border="0" align="center" bgcolor="#cccccc">
<tr>
<td bgcolor="#eeeeee" width="73"><div align="center" class="style6 style4 style7">员工ID</div></td>
<td bgcolor="#eeeeee" width="86"><div align="center" class="style6 style4 style7">姓名</div></td>
<td bgcolor="#eeeeee" width="82"><div align="center" class="style6 style4 style7">性别</div></td>
<td bgcolor="#eeeeee" width="89"><div align="center" class="style6 style4 style7">年龄</div></td>
<td bgcolor="#eeeeee" width="89"><div align="center" class="style6 style4 style7">职位</div></td>
<td bgcolor="#eeeeee" width="92"><div align="center" class="style6 style4 style7">联系电话</div></td>
<td bgcolor="#eeeeee" width="82"><div align="center" class="style6 style4 style7">家庭住址</div></td>
<td bgcolor="#eeeeee" width="42"><div align="center" class="style6 style4 style7">修改</div></td>
<td bgcolor="#eeeeee" width="41"><div align="center" class="style6 style4 style7">删除</div></td>
</tr>
<%if(list.size()==0){
%>
<tr><td bgcolor="#F1F4F8" colspan="9"> <div align="center" class="style6 style4 style8">没有该职位员工信息!!</div></td>
</tr>
<%
}else{
for(int i=0;i<list.size();i++){
Person person=(Person)list.get(i);
%>
<tr>
<td bgcolor="#F1F4F8" width="73"><div align="center" class="style6 style4 style7"><%=person.getYid() %></div></td>
<td bgcolor="#F1F4F8" width="86"><div align="center" class="style6 style4 style7"><%=person.getYname() %></div></td>
<td bgcolor="#F1F4F8" width="82"><div align="center" class="style6 style4 style7"><%=person.getYsex() %></div></td>
<td bgcolor="#F1F4F8" width="89"><div align="center" class="style6 style4 style7"><a href=""><%=person.getYage() %></a></div></td>
<td bgcolor="#F1F4F8" width="92"><div align="center" class="style6 style4 style7"><%=person.getYjob() %></div></td>
<td bgcolor="#F1F4F8" width="82"><div align="center" class="style6 style4 style7"><%=person.getYpho() %></div> </td>
<td bgcolor="#F1F4F8" width="82"><div align="center" class="style6 style4 style7"><%=person.getYaddr() %></div> </td>
<td bgcolor="#F1F4F8" width="42"><div align="center" class="style6 style4 style9"><a href="PersonSelectById?id=<%=person.getYid() %>&method=update">修改</a></div></td>
<td bgcolor="#F1F4F8" width="41"><div align="center" class="style6 style4 style9"><a href="PersonDelectByIdSS?id=<%=person.getYid() %>&method=selectbytype">删除</a></div></td>
</tr>
<%
}
}
%>
</table>
<%} %>
</div></td>
</tr>
<%
if (session.getAttribute("list") != null) {
%>
<tr>
<td width="660" height="40">
<jsp:include page="../fenye.jsp"></jsp:include>
</td>
</tr>
<%
}
session.removeAttribute("list");
session.removeAttribute("job");
session.removeAttribute("lastpagenumber");
session.removeAttribute("pagenumber");
%>
</table>
</body>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -