📄 resume_poll.jsp
字号:
<jsp:include page="../user/checklogin.jsp" flush="true"/>
<jsp:include page="../header/header.jsp" flush="true"/>
<%@ page contentType="text/html;charset=gb2312" %>
<SCRIPT language=javascript>
var isSure=false;
function OpenWin(theURL,winName,features)
{
window.open(theURL,winName,features);
}
function toOpen(str)
{
if(str!='')
{
OpenWin('resume_select.jsp?jobName='+str,'newWin','scrollbars=yes,width=818,height=300');
}
else
{
alert("不能得到职位name!");
return false;
}
}
</SCRIPT>
<jsp:include page="../header/header_bg2.jsp" flush="true"/>
<jsp:include page="../header/menu_manager.jsp" flush="true"/>
</TD>
<TD width=672>
<TABLE height=1 cellSpacing=0 cellPadding=0 width=538 border=0>
<TBODY>
<TR>
<TD vAlign=bottom colSpan=2 height=43></TD></TR>
<TR>
<TD width=40 height=45 rowSpan=2><IMG height=43
src="../../images/qy_1_0.gif" width=40></TD>
<TD vAlign=top width=498 height=15><IMG height=1
src="../../images/qy_1.gif" width=498></TD></TR>
<TR>
<TD vAlign=top width=498 height="30"></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=672 border=0>
<TBODY>
<TR>
<TD height=23>
<%@ page import="foton.util.*" %>
<%@ page import="foton.job.*" %>
<%@ page import="java.util.*" %>
<% Condition condition = new Condition();
int pageNum = 20;
int currPage;
String url = "resume_poll.jsp";
if (request.getParameter("pages")==null) {
currPage =0;
}
else {
currPage = new Integer(request.getParameter("pages")).intValue();
}
condition.setPageNum(pageNum);
condition.setCurrPage(currPage);
// ArrayList list = (ArrayList)session.getAttribute("result");
jobDAO dao = new jobDAO();
%>
<h1 align="center">简历统计 </h1>
<p> </p>
<p> 正在招聘的职位 <font color=blue><%=condition.getRecordNum() %></font> 个</p>
<table width=100% border=0 cellpadding="3" cellspacing="1" bgcolor=#0000ff>
<tr bgcolor=#8899cc>
<td> 职位名称 </td>
<td> 更新时间</td>
<td> 截止时间</td>
<td> 招聘人数</td>
<td> 目前收到的有效简历数</td>
<td> 累计收到的简历数</td>
</tr>
<%
ArrayList list = dao.getJobResume(condition);
Iterator it = list.iterator();
int n=0;
while (it!=null && it.hasNext()) {
jobInfo info = (jobInfo)it.next();
%>
<tr bgcolor=#ffffff>
<td >
<% String jobName = info.getJobName();
//if(jobName==null | jobName.equals(" ")) jobName="";
%>
<a href ="javascript:toOpen('<%=jobName%>');"> <%=jobName%></a>
</td>
<td > <%=info.getJobIssueDate()%></td>
<td > <%=info.getJobValidDay()%> </td>
<td align=center> <%=info.getJobNumber()%> </td>
<td align=center> <%=info.getJobRecordNum()%> </td>
<%
int total=0;
int temp=0;
int pastValue=0;
System.out.println("total begin!!");
String resumeTotal=info.getResumeTotal();
System.out.println("total="+resumeTotal);
temp=new Integer(info.getJobRecordNum()).intValue();
System.out.println("temp="+temp);
//if(session.getAttribute("total")!=null)
// total=((Integer)session.getAttribute("total")).intValue();
// if(session.getAttribute("temp")!=null)
if(info.getResumeTotal().equals("")||info.getResumeTotal().equals(" ")) {
pastValue=temp;
System.out.println("pastValue=0!!");
}
else pastValue=new Integer(info.getPastValue()).intValue();
System.out.println("Here pastValue. pastValue="+pastValue);
if(info.getResumeTotal().equals("")||info.getResumeTotal().equals(" ")) {
total=0;
System.out.println("total2!!");
}
else total=new Integer(info.getResumeTotal()).intValue();
System.out.println("total="+total);
if(total!=0) {
if(pastValue<temp) {
total = total + (temp-pastValue);
//pastValue = temp;
}
else total = total;
}
else total=temp;
//session.setAttribute("total",new Integer(total));
// session.setAttribute("temp",new Integer(pastValue));
jobInfo info1 =new jobInfo();
info1.setResumeTotal(String.valueOf(total));
info1.setPastValue(String.valueOf(temp));
info1.setJobID(info.getJobID());
System.out.println("jobID="+info.getJobID());
dao.updateResumeTotal(info1);
%>
<td align=center> <%=total%> </td>
</tr>
<%
n++; } %>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
<!--<%=Pagination.getPaginationScript(condition.getCurrPage(),condition.getPageNum(),condition.getRecordNum(),url)%>-->
<%=Pagination.getPaginationScript(condition.getCurrPage(),condition.getPageNum(),n,url)%>
<div> </div>
</TD></TR></TABLE></TBODY></TABLE><!-- #BeginLibraryItem "/Library/zhu_copyright.lbi" -->
<TABLE cellSpacing=0 cellPadding=0 width=767 background=foton.files/d_1_bj.gif
border=0>
<TBODY>
<TR>
<TD width=124><IMG height=19 src="../../images/d_1.gif" width=124></TD>
<TD width=643><FONT color=#cccccc>北汽福田汽车股份有限公司 版权所有 ©
2004</FONT></TD></TR></TBODY></TABLE><!-- #EndLibraryItem -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -