<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--#include file="../prohead.asp"-->
<!--#include file="../checkrole.asp"-->
<%
call checkuser("zp")
if issession=0 then
gsid=Replace_Text(request.Cookies("Yxmemberid"))
else
gsid=session("id")
end if
%>
<script language="javascript">
function show_sader(mylink)
{
window.open(mylink,'','top=50,left=120,width=457,height=450,scrollbars=yes')
}
</script>
<body>
<%
const MaxPerPage=15
dim totalPut 
dim CurrentPage
dim TotalPages
dim i
if Chkrequest(request("page")) then
currentPage=request("page")
else
currentPage=1
end if
dim sql
dim rs
dim gsid,qymc
sql="select Yixiang_joblist.*,Yixiang_work.showname,Yixiang_work.info_id from Yixiang_joblist,Yixiang_work where Yixiang_joblist.isdel=0 and Yixiang_work.gsid="&gsid&" and Yixiang_joblist.jobid=Yixiang_work.Info_ID"
if jobid<>"" then sql=sql&" and Yixiang_joblist.jobid="&jobid
sql=sql&" order by Yixiang_joblist.id desc"
set rs= Server.CreateObject("ADODB.Recordset") 
rs.open sql,conn,1,1 
%>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="25" class="L" style="color: #FF0000">我收到的应聘简历</td>
  </tr>
  <tr>
    <td height="25">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-top:2px solid #CCCCCC; border-bottom:1px solid #CCCCCC; border-left:1px solid #CCCCCC; border-right:1px solid #CCCCCC; margin-top:5px;">
      <tr>
        <td width="6%" height="25" align="right" bgcolor="#F1F1F1"><img src="../../image/ico0105_03.gif"></td>
        <td width="87%" bgcolor="#F1F1F1">&nbsp;提示</td>
        <td width="7%" bgcolor="#F1F1F1">&nbsp;</td>
      </tr>
      <tr>
        <td height="30" colspan="3" bgcolor="#FFFFF0"><div style="margin-left:35px;line-height:1.9;">·操作提示：您可以收藏你中意思的人才！</div> </td>
        </tr>
    </table></td>
  </tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:10px;">
  <tr>
    <td width="2%"><img src="../../image/001_r2_c2.gif"></td>
    <td width="98%" height="20">您最多可收藏 <span style="color: #FF0000">200</span> 个人才。已收藏 <span style="color: #FF0000"><%=rs.recordcount%></span> 个人才；</td>
  </tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:10px;">
  <tr>
    <td height="25">
	<div  class="ptag">
	     <table border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="100" class="now">人才管理(<%=rs.recordcount%>)</td>
			<td>&nbsp;</td>
		   </tr>
        </table>
     </div>
	</td>
  </tr>
</table>
<%
if rs.eof and rs.bof then 
	showmsg("您还没有收藏人才！")
else 
totalPut=rs.recordcount 
if currentpage<1 then 
currentpage=1 
end if 
if (currentpage-1)*MaxPerPage>totalput then 
if (totalPut mod MaxPerPage)=0 then 
currentpage= totalPut \ MaxPerPage 
else 
currentpage= totalPut \ MaxPerPage + 1 
end if 
end if 
if currentPage=1 then 
showContent 
showpage totalput,MaxPerPage,"showjobuser.asp"
content 
else 
if (currentPage-1)*MaxPerPage<totalPut then 
rs.move (currentPage-1)*MaxPerPage 
dim bookmark 
bookmark=rs.bookmark 
showContent 
showpage totalput,MaxPerPage,"showjobuser.asp"
content 
else 
currentPage=1
showContent
showpage totalput,MaxPerPage,"showjobuser.asp"
content 
end if 
end if 
end if 
sub showContent 
%>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>
	<table border="0" cellpadding="0" cellspacing="0"  class="tabls" id="tabls">
        <tr class="tabls_head">
                    <td width="51">选项</td>
                    <td width="84" >姓名</td>
                    <td width="193" >应聘职位</td>
                              <td width="150" >姓别</td>
                    
         
                              <td width="141" align="center">学历</td>
          <td width="141" align="center">投递时间</td>
          <td width="214" align="center">操作</td>
        </tr>
<%do while not rs.eof%>
      	        <tr class="tabls_tr_2">
                    <td align="center"><input type="checkbox" name="jobid" value="<%=rs("id")%>" /></td>
                    <td><a style="text-decoration: none" href="../../job/PersonResumeDemo.asp?track=<%=rs("jobuserid")%>" target="_blank">
					<%
				  xueli=""
				  sex=""
				  set rsq=server.CreateObject("adodb.recordset")
				  sqlq="select * from yixiang_jobuser where id="&rs("jobuserid")
				  rsq.open sqlq,conn,1,1
				  if not rsq.eof then
				  if rsq("sex")&"OK"="OK" then
				  sex="不详"
				  else
				  sex=rsq("sex")
				  end if
				  
				  xueli=rsq("xueli")
				  if rsq("truename")="" then 
				  yingpin="无"
				  else
				  yingpin=rsq("truename")
				  end if
				  response.Write(yingpin)
				  rsq.close
				  end if
				  %>
				  </a></td>
          <td align="center"><a href="../../job/work_info.asp?info_id=<%=rs("info_id")%>" target="_blank" title="点击预览"><%=rs("showname")%></a>&nbsp;</td>
                    <td align="center"><%=sex%></td>
                    <td align="center"   >
					<%
					if IsNumeric(xueli) then
					select case xueli
						case 0 : response.Write("无")
						case 1 : response.Write("初中")
						case 2 : response.Write("中专")
						case 3 : response.Write("中技")
						case 4 : response.Write("高中")
						case 5 : response.Write("高职")
						case 6 : response.Write("专科")
						case 7 : response.Write("本科预科")
						case 8 : response.Write("本科")
						case 9 : response.Write("硕士")
						case 10 : response.Write("MBA")
						case 11 : response.Write("博士")
					end select
					end if
					%>
					</td>
                    <td align="center"   ><%=rs("addtime")%>&nbsp;</td>
                    <td align="center"   ><input type="button" name="edit" value="回复" class="i_button" onclick="window.location='jobback.asp?id=<%=rs("id")%>&userid=<%=yingpin%>'"/>
                  <input type="button" name="del" value="删除" class="i_button"  onclick="window.location='deljob.asp?delID=<%=rs("id")%>&jobid=<%=jobid%>&action=del'"/></td>
        </tr>
<% 
i=i+1
if i>=MaxPerPage then exit do 
rs.movenext 
loop 
rs.close 
set rs=nothing 
%>
      </table>
<%
end sub 
function showpage(totalnumber,maxperpage,filename) 
dim n 
if totalnumber mod maxperpage=0 then 
n= totalnumber \ maxperpage 
else 
n= totalnumber \ maxperpage+1 
end if 
response.write "<form method=Post action="&filename&">" 
if CurrentPage<2 then 
response.write "<table border=0 width=98% cellspacing=0 cellpadding=0>"
response.write "<tr height=0><td colspan=2></td></tr>"
response.write "<tr height=0>"
response.write "<td align=left valign=top>"
response.write "<font color=red><b>共"&n&"页&nbsp;第"&CurrentPage&"页 " 
response.write "共发布"&totalnumber&"&nbsp;条信息</b></font>" 
response.write "</td>"
response.write "<td VALIGN=middle align=right >"
response.write "【最前页】【上一页】" 
else 
response.write "<table border=0 width=98% cellspacing=0 cellpadding=0>"
response.write "<tr height=0><td colspan=2></td></tr>"
response.write "<tr height=0>"
response.write "<td align=left valign=top>"
response.write "<font color=red><b>共"&n&"页&nbsp;第"&CurrentPage&"页 " 
response.write "共发布"&totalnumber&"&nbsp条信息</b></font>" 
response.write "</td>"
response.write "<td VALIGN=center align=right >"
response.write "【<a href="&filename&"?page=1&id="&gsid&">最前页</a>】" 
response.write "【<a href="&filename&"?page="&CurrentPage-1&"&id="&gsid&">上一页</a>】" 
end if 
if n-currentpage<1 then 
response.write "【下一页】【最后页】" 
else 
response.write "【<a href="&filename&"?page="&(CurrentPage+1)&"&id="&gsid&">" 
response.write "下一页</a>】【 <a href="&filename&"?page="&n&"&id="&gsid&">最后页</a>】" 
end if 
response.write "</form>" 
response.write "</td>"
response.write "</tr>"
response.write "</table>"
end function
%>
	</td>
  </tr>
<%sub content%> 
</tr> 
</table> 
<%end sub%>
</table>
<%
sub showmsg(msgtitle)
response.write "<table width=""98%"" border=""0"" align=""center"" cellpadding=""0"" cellspacing=""0"" style=""border:1px solid #DDDDDD;"">"
response.write "  <tr>"
response.write "    <td height=""77"" align=""center""><font style=""color:#FF6F02;font-size:15px;font-weight:bold;"">"&msgtitle&"</font></td>"
response.write "  </tr>"
response.write "</table>"
end sub
%>
</body>
</html>