⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 scanpersonability.jsp

📁 07年做得人力资源管理系统
💻 JSP
字号:
<%@ page language="java" import="com.buat.hr.users.User,java.util.*,com.buat.hr.interviewer.*" pageEncoding="GB18030"%>
<%@page import="com.buat.hr.share.Pagination"%>
<%
		InterviewerDAO dao=new InterviewerDAO();

						int perCount=8;
						if(request.getParameter("inputPagePer")!=null)
						{
							String temp=request.getParameter("inputPagePer");
							try{
								perCount=Integer.parseInt(temp);
								if(perCount<=0){
									perCount=1;
								}
								session.setAttribute("percount",temp);
							}catch(Exception e){perCount=8;}
						}
						if(session.getAttribute("percount")!=null){
							perCount=(Integer.parseInt(String.valueOf(session.getAttribute("percount"))));
							if(perCount<=0){
									perCount=1;
							}
						}	
		
						String pageNo=request.getParameter("pageNo");
				
						int dataCount=dao.getCount("select count(*) as count from Interviewer where selection=1");
				
						Pagination pagination=new Pagination(dataCount,perCount);
				
						pagination.setPageNo(pageNo);		
				
						ArrayList interviewerArra=dao.quaryIsPersonAbility(pagination.getStartNo(),pagination.getPerCount());//得到存储了selection=1(也就是人才库的人)ArrayList
						
						session.setAttribute("connectPage","ScanPersonAbility.jsp");
						
						pagination.setTurn("ScanPersonAbility.jsp");
						User user=null;                                 //权限判断
					    user=(User)session.getAttribute("userGrade");
%>
<html>
  <head>
  </head>
  <script language="javascript">
  		function opinion(Id)
		{
			var interviewerId=Id;
			if(window.confirm("你确定要删除吗?")==true)
			{
				document.location.href="ProcessDelete.jsp?interviewerId="+interviewerId+"&connectPage=ScanPersonAbility.jsp";
			}
		}
  </script>
  
  <body background="../bg.jpg">
     <form action="ConditionResultShow.jsp" method=get >
		 <table width="50%"  border="1">
  			    <tr>
   					<td colspan="3"><font color="red">浏览人才库</font></td>
   				</tr>
  				<tr>
				  		<td>请输入应聘人的姓名:</td>
				  		<td><input type=text name=conditionName></td>
				  		<td><input type=submit value=确定></td>
				</tr>
	      </table>			
    </form>
          <table width="100%"  border="1" align="center">
	  			<tr>
	  				<th>应聘编号</th>
	  				<th>姓 名</th>
	  				<th>性 别</th>
	  				<th>年 龄</th>
	  				<th>电 话</th>
	  				<th>出生日期</th>
	  				<th>应聘职位</th>
	  				<th>执行操作</th>
	  			</tr>
			    <%for(int i=0;i<interviewerArra.size();i++){
			    	Interviewer inter=(Interviewer)interviewerArra.get(i);
			    %>
			    <tr>
			    	<td><%= inter.getInterviewerId()%></td>
			    	<td><%= inter.getName()%></td>
	  				<td><%= inter.getGender() %></td>
	  				<td><%= inter.getAge() %></td>
	  				<td><%= inter.getTelephone() %></td>
	  				<td><%= inter.getBirthday() %></td>
	  				<td><%= inter.getJob() %></td>
	  				<td>
	  				<a href=Particular.jsp?interviewerId=<%=inter.getInterviewerId() %>&name=<%=inter.getName() %>&gender=<%=inter.getGender() %>&age=<%=inter.getAge()%>&birthday=<%=inter.getBirthday() %>&job=<%=inter.getJob() %>&major=<%=inter.getMajor() %>&experience=<%=inter.getExperience() %>&university=<%=inter.getUniversity() %>&telephone=<%=inter.getTelephone() %>&email=<%=inter.getEmail() %>&content=<%=inter.getContent()%>&&connectFlag=ScanPersonAbility.jsp>详细</a>
			        <%
		     	    if(user.getIsadmin().equals("interviewerAdmin") || user.getIsadmin().equals("superAdmin")){
		             %> 
                         <a href="AddEmployee.jsp?interviewerId=<%= inter.getInterviewerId() %>&name=<%= inter.getName() %>&major=<%= inter.getMajor() %>&gender=<%= inter.getGender() %>&birthday=<%= inter.getBirthday() %>">分配部门</a>
	  				     <a onClick="opinion(<%=inter.getInterviewerId() %>)" style="cursor:hand">删除</a>
					<%
					 }
					%> 
					</td>
			    </tr>
			    <%} %>
	    	</table>

               <br>
			       <center>
			   			<font color="red">总共<%= pagination.getPageCount() %>页&nbsp;&nbsp;&nbsp;
			   					&nbsp;&nbsp;&nbsp;当前是第<%= pagination.getPageNo() %>页
			   		    </font>
			   	   </center>
			   	<br>
			   	<form action=<%= pagination.getTurn() %>>
			   	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;请输入您要查看本页的前几条记录:<input type="text" name="inputPagePer"> &nbsp;&nbsp; <input type="submit" name="submit" value="提交" onclick="isNumber()">
				   	<table width="90%"  border="0" align="center">
				   		<tr>
				   			<td align="right"><font color="red"><a href=<%= pagination.getTurn()%>?pageNo=0>第一页</a></font></td>
				   			<td align="right"><font color="red"><a href=<%= pagination.getTurn()%>?pageNo=<%= pagination.getPageNo()-1 %>>上一页</a></font></td>
				   			<td align="right"><font color="red"><a href=<%= pagination.getTurn()%>?pageNo=<%= pagination.getPageNo()+1 %>>下一页</a></font></td>
				   			<td align="right"><font color="red"><a href=<%= pagination.getTurn()%>?pageNo=<%= pagination.getPageCount()%>>最后一页</a></font></td>
				   			<td align="center">跳到第<input type="text" name="pageNo" size="3">页&nbsp;&nbsp;<input type="submit" value="跳转"></td>
				   		</tr>
				   	</table>
			   </form>

  </body>
  <script language="javaScript">
	    	function isNumber()
	  		{
	  		   perCount=window.document.all.inputPagePer.value;
	  			if(isNaN(perCount)==true || perCount<=0)
	  			{
	  				alert("输入只能为数字且最小值为一!!!");
	  				window.document.forms[0].action="Scan.jsp";
	  				window.document.forms[0].submit();
	  			}
	  		}
  	</script>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -