<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../conn/conn.asp"-->
<!--#include file="../inc/Commoncode.asp"-->
<!--#include file="../inc/CommonFunction.asp"-->
<%link="person_resume.asp"%>
<!--#include file="checkpmember.asp" -->
<!--#include file="flagandexpend.asp" -->
<%if request("rid")<>"" then
rid=clng(trim(request("rid")))
end if
Action=trim(Request("Action"))
Select Case Action
	Case "Activate"
		Call Activate()
	Case "Refresh"
		Call Refresh()
	Case "Del"
		Call Del()
End Select
Sub Activate()
conn.execute("update job_p_resume set resume_cnstatus=0 where resume_pmember='"&pmember_login&"'")
conn.execute("update job_p_resume set resume_cnstatus=1 where resume_id="&rid&" and resume_pmember='"&pmember_login&"'")
End Sub
Sub Refresh()
conn.execute("update job_p_resume set resume_announcedate="&FR_HR_Now&" where resume_id="&rid&" and resume_pmember='"&pmember_login&"'")
End Sub
Sub Del()
conn.execute("delete from job_p_education where education_resumeid="&rid&" and education_pmember='"&pmember_login&"'")
conn.execute("delete from job_p_training where train_resumeid="&rid&" and train_pmember='"&pmember_login&"'")
conn.execute("delete from job_p_lang where lang_resumeid="&rid&" and lang_pmember='"&pmember_login&"'")
conn.execute("delete from job_p_work where work_resumeid="&rid&" and work_pmember='"&pmember_login&"'")
conn.execute("delete from job_p_resume where resume_id="&rid&" and resume_pmember='"&pmember_login&"'")
End Sub
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>简历列表--<%=SiteTitle%></title>
<link href="../member/css.css" rel="stylesheet" type="text/css" />
</head>
<script language="javascript">
function show(ids)
{
if(document.getElementById(ids).style.display=='none')
{
	document.getElementById(ids).style.display='block';	
}
else
{
	document.getElementById(ids).style.display='none';	
}
}
function shows(ids)
{
	document.getElementById(ids).style.display='none';	
}
</script>
<body>
<div class="memmenul">
<div class="leftmenutit"><span>简历列表</span></div>
<table width="98%" border="0" cellspacing="0" cellpadding="0" class="mtable" align="center">
  <tr>
    <td class="tdcolor">专家提醒：简历更要保“鲜”！点击列表中的<img height="17" hspace="6" src="../images/sign_06.gif" width="15" align="absmiddle" />图标刷新你的简历，会让企业更优先找到你！</td>
  </tr>
<%
set rs=server.createobject("ADODB.Recordset")
sql="select * from job_p_resume where resume_pmember='"&pmember_login&"' order by resume_announcedate desc"
rs.open sql,conn,1,1
if not rs.eof then
%>
  <tr>
    <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="mtable" style="border:1px #ABCEE2 solid;">
    <tr>
      <td width="186" align="center" valign="middle"><b>简历名称</b></td>
      <td width="90" align="center" valign="middle"><b>简历状态</b></td>
      <td width="97" align="center" valign="middle"><b>浏览次数</b></td>
      <td width="86" align="center" valign="middle"><strong>浏览记录</strong></td>
      <td width="262" align="center" valign="middle"><b>简历</b></td>
      <td width="54" align="center" valign="middle"><b>激活</b></td>
      <td width="49" align="center" valign="middle"><b>预览</b></td>
      <td width="46" align="center" valign="middle"><b>修改</b></td>
      <td width="42" align="center" valign="middle"><b>刷新</b></td>
      <td width="41" align="center" valign="middle"><b>删除</b></td>
    </tr>
<%do while not rs.eof%>
    <tr>
      <td align="left" valign="middle">&nbsp; <%=rs("resume_title")%></td>
      <td align="center" valign="middle"><%if rs("resume_chinese")=1 then%><%if rs("resume_cnstatus")=1 then response.write "<IMG height=20 alt='简历已激活' src='../images/sign_01.gif' width=19 border=0><font class=tit>已激活</font>" else response.write "<IMG height=20 alt='简历未激活' src='../images/sign_03.gif' width=19 border=0><font color='#ff0000'><b>未激活</b></font>" end if%><%else%><%if rs("resume_enstatus")=1 then response.write "<IMG height=20 alt='简历已激活' src='../images/sign_01.gif' width=19 border=0><font class=tit>已激活</font>" else response.write "<IMG height=20 alt='简历未激活' src='../images/sign_03.gif' width=19 border=0><font color='#ff0000'><b>未激活</b></font>" end if%><%end if%></td>
      <td align="center" valign="middle">
	  <%
	   	sqlmm="select count(resume_id) from JOB_P_resumehistory where resume_id="&rs("resume_id")&""
	  	set rsmm=Server.CreateObject("ADODB.RecordSet")
		rsmm.open sqlmm,conn,1,1
		if rsmm.eof then
			countnum=0
		else
			countnum=rsmm(0)
		end if
	  %>
	  <%=countnum%>
	  次</td>
      
      <td align="center" valign="middle"><a href="person_rbrower.asp?pid=<%=rs("resume_id")%>" title="查看浏览详细记录">查看</a></td>
      <td align="center" valign="middle"><%if rs("resume_chinese")=1 then%>中文<%else%>英文<%end if%><%if rs("resume_personinfo")<>1 or rs("resume_education")<>1 or rs("resume_train")<>1 or rs("resume_lang")<>1 or rs("resume_work")<>1 or rs("resume_careerwill")<>1 then%>&nbsp;-&nbsp;<strong><font color="#FF0000">不完整 </font></STRONG>
      <input type="button" class="inputs" style="cursor:hand" onClick="javascript:window.location='person_addresume.asp?rid=<%=rs("resume_id")%>'" value="完善此简历">
            <%end if%></td>
      <td align="center" valign="middle"><a href="person_resume.asp?Action=Activate&rid=<%=rs("resume_id")%>"><img height=17 alt=激活简历 src="../images/sign_05.gif" width=16 border=0 /></a></td>
      <td align="center" valign="middle"><a href="cnpreview.asp?rid=<%=rs("resume_id")%>" target=_blank><img height=17 alt=预览/打印简历 src="../images/sign_04.gif" width=18 border=0 /></a></td>
      <td align="center" valign="middle"><%if rs("resume_chinese")=1 then%><a href="person_addresume.asp?rid=<%=rs("resume_id")%>"><%else%><a href="person_addenresume.asp?rid=<%=rs("resume_id")%>"><%end if%><img height=17 alt=修改简历 src="../images/sign_05.gif" width=16 border=0 /></a></td>
      <td align="center" valign="middle"><input name="image" type=image onclick=" window.location='person_resume.asp?Action=Refresh&rid=<%=rs("resume_id")%>'" src="../images/sign_06.gif" alt=刷新简历 width="15" height="17" border=0 /></td>
      <td align="center" valign="middle"><INPUT name="image2" type=image onClick="if (confirm('确定要删除吗？')) window.location='person_resume.asp?Action=Del&rid=<%=rs("resume_id")%>'" src="../images/sign_07.gif" alt=删除简历 width="14" height="17" border=0></td>
    </tr>
<%
rs.movenext
loop
else
Response.Write("尚未创建简历！")
end if
rs.close
set rs=nothing
%>
</table></td>
  </tr>
  <tr>
    <td class="tdcolor">注：您可以创建 <strong><%=Group_Plimits(6)%></strong> 份简历，用于申请不同的职位。只有处于“<strong>激活</strong>”状态的简历才可以被招聘单位查询。</td>
  </tr>
  <tr>
    <td><input name="babb" type="button" id="babb" class="inputs" onClick="javascript:window.location='person_addresume.asp?action=Addnew'" value="创建一份中文简历" /></td>
  </tr>
</table>
</div>
<%conn.close:set conn=nothing%>