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

📄 company_recycle.asp

📁 嘉缘人才6.0精简 ,很好用的人才系统
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../conn/conn.asp"-->
<!--#include file="../inc/Commoncode.asp"-->
<!--#include file="../inc/CommonFunction.asp"-->
<%link="company_recycle.asp"%>
<!--#include file="checkcmember.asp" -->
<!--#include file="flagandexpend.asp"-->
<%
 hireid=trim(request("hireid"))
Dim page,i
Dim totalPut
const MaxPerpage=10
Const strFileName="company_recycle.asp"
page=Trim(Request("page"))
If page<>"" And IsNumeric(page) Then
	If page<1 Or Len(page)>10 Then
		page=1
	Else
    	page=CLng(page)
	End If
Else
	page=1
End If
 if trim(request("action"))<>"" then
  action=trim(request("action"))
  checks=trim(request("checks"))
  set rs=Server.CreateObject("Adodb.Recordset")
  comrecycle=split(checks,",")
  select case action
   case "renew"  '简历恢复
    for i=0 to ubound(comrecycle)
     id=trim(comrecycle(i))
	 sql="select * from job_c_recycle where comrecycle_id="&id&"" '取出基本信息
     rs.open sql,conn,1,1
     resumeid=rs("comrecycle_resumeid")
     name=rs("comrecycle_name")
     sex=rs("comrecycle_sex") 
     birth=rs("comrecycle_birth")
     edu=rs("comrecycle_edu")
	 hireid=rs("comrecycle_hireid")
	 place=rs("comrecycle_place")
	 pmember=rs("comrecycle_pmember")
	 myreceive_date=rs("comrecycle_date")
	 comrecycle_content=rs("comrecycle_content")
     rs.close
	 sql="select * from job_c_myreceive " '存入收到的应聘简历
     rs.open sql,conn,3,3
	 rs.addnew
	  rs("myreceive_resumeid")=resumeid
	  rs("myreceive_name")=name
	  rs("myreceive_sex")=sex
	  rs("myreceive_birth")=birth
	  rs("myreceive_edu")=edu
	  rs("myreceive_hireid")=hireid
	  rs("myreceive_place")=place
	  rs("myreceive_cmember")=cmember_login
	  rs("myreceive_pmember")=pmember
	  rs("myreceive_date")=myreceive_date
	  rs("myreceive_content")=comrecycle_content
	 rs.update
	 rs.close
	 '删除简历
	 conn.execute("delete from job_c_recycle where comrecycle_id="&id)
	next
   case "myexpert"
	If CheckCFlag("Climits",2)=False Then
		alert "您无权使用人才库!",1 
	else
		if CheckCFlag("Climits",3)=False Then
		alert "您的人才库已满,请先删除无效人才信息!",1 
		end if
	End If
    for i=0 to ubound(comrecycle)
     id=trim(comrecycle(i))
     sql="select * from job_c_recycle where comrecycle_id="&id '取出基本信息
     rs.open sql,conn,1,1
	 hireid=rs("comrecycle_hireid")
     resumeid=rs("comrecycle_resumeid")
     name=rs("comrecycle_name")
     sex=rs("comrecycle_sex")
     birth=rs("comrecycle_birth")
     edu=rs("comrecycle_edu")
	 pmember=rs("comrecycle_pmember")
     rs.close
	 sql="select * from job_c_myexpert where myexpert_pmember='"&pmember&"'" '存入人才库
     rs.open sql,conn,1,3
	 if rs.eof then
		 rs.addnew
		  rs("myexpert_resumeid")=resumeid
		  rs("myexpert_name")=name
		  rs("myexpert_sex")=sex
		  rs("myexpert_birth")=birth
		  rs("myexpert_edu")=edu
		  rs("myexpert_cmember")=cmember_login
		  rs("myexpert_pmember")=pmember
		  rs.update
	 else
	      response.write"<script>alert(""该人才已经存在,请不要重复添加!"");history.back();</script>"
		  response.end
	 end if
	 rs.close
	 '把工作申请记录中相应信息的收藏标志置1
	 conn.execute("update job_p_mysend set mysend_favorite=1 where mysend_hireid="&hireid&" and mysend_pmember='"&pmember&"'")
	 '删除简历
	 conn.execute("delete from job_c_recycle where comrecycle_id="&id)
	next
   case "delete"
    for i=0 to ubound(comrecycle)
     id=trim(comrecycle(i))
	 conn.execute("delete from job_c_recycle where comrecycle_id="&id)
	next
   case "clean"
	 conn.execute("delete from job_c_recycle where comrecycle_cmember='"&cmember_login&"'")
  end select
  response.redirect "company_recycle.asp?page="&page&""
  response.end
 end if%>
<!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="../css/<%=MainWebCss%>.css" rel="stylesheet" type="text/css" />
<script language="JavaScript">
<!--
  function CheckAll(form)
  {
  for (var i=0;i<form.elements.length;i++)
    {
    var e = form.elements[i];
    if (e.name != 'chkall')
       e.checked = form.chkall.checked;
    }
  }
  function showconfirm(id,page)
{
	var flag=false; //是否有选择职位信息
	var k=0;
	var refid;
	for(i=0;i<document.thisForm.elements.length;i++) 
	{
		if (document.thisForm.elements[i].name=="checks")
		{		
			if (document.thisForm.elements[i].checked==true) 
			{
				flag=true;
				break;
			}
		}
	}
	if (flag==false)
	{
		alert("请先选择一个职位!");
		return false;
	}
	//简历恢复
	if (id==1)
	{
		if(confirm("您确定要恢复简历吗?")==true)
		{
			document.thisForm.action="company_recycle.asp?action=renew&page="+page+"";
			thisForm.submit();
		}
	}
	//发送面试邀请
	if (id==2)
	{
	   if(confirm("您确定要发送面试邀请吗?")==true)
		{
			document.thisForm.action="company_interviewsend.asp?action=comrecycle";
			document.thisForm.target="_blank";
			thisForm.submit();
		}
	}
	//放入人才库
	if (id==3)
	{
		if(confirm("您确定要放入人才库吗?")==true)
		{
			document.thisForm.action="company_recycle.asp?action=myexpert&page="+page+"";
			thisForm.submit();
		}
	}
	//删除
	if (id==4)
	{
		if(confirm("您确定要彻底删除简历吗?")==true)
		{
			document.thisForm.action="company_recycle.asp?action=delete&page="+page+"";
			thisForm.submit();
		}
	}		
}
  //-->
</script></head>
<body>
<center>
<div id="head">
<div id="logo"><img src="<%=SiteUrl&InstallDir&LogoUrl%>" alt="欢迎访问<%=SiteName%>" /></div>
<div id="banner"><%Call Loginshow()%></div>
<ul><%Call Membernav(2)%></ul>
</div>
<%Call Cmembermenu(3)%>
<div class="maintaba">
<span class="maintit">简历回收站</span>
<%
Set rsw= Server.CreateObject(FR_HR_RS)
'If CheckInfo(5)=False Then
'sqlOther=" top "&OutInfo("JOB_C_cmembertype","type_id","meetnums",session("user_type"))
'End If
'sql="select "& sqlOther &" * from job_c_recycle where comrecycle_cmember='"&cmember_login&"'"
sql="select * from job_c_recycle where comrecycle_cmember='"&cmember_login&"'"
if hireid<>"" then
hireid=clng(hireid)
sql=sql&" and comrecycle_hireid="&hireid&""
end if
sql=sql&" order by comrecycle_date desc"
	rsw.open sql,conn,1,1
	if rsw.eof and rsw.bof then
		FoundErr=True
		ErrMsg=ErrMsg & "<br><li>暂无删除的简历!</li>"
	else
		totalPut=rsw.recordcount
		if (page-1)*MaxPerpage>totalput then
			if (totalPut mod MaxPerpage)=0 then
				page= totalPut \ MaxPerpage
			else
				page= totalPut \ MaxPerpage + 1
			end if
		end if
		if page=1 then
			Call MainInfo()
		else
			if (page-1)*MaxPerpage<totalPut then
				rsw.move  (page-1)*MaxPerpage
				dim bookmark
				bookmark=rsw.bookmark
				Call MainInfo()
			else
				page=1
				Call MainInfo()
			end if
		end if
	end if
	rsw.close
	set rsw=nothing
if FoundErr=True then
	call Show_Err()
end if
%>
<%Sub MainInfo()%>
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#99CCFF" class="tabb">
          <tbody>
            <tr bgcolor="#f9f9f9">
              <td height="35" colspan="9" align="left">查看应聘
                <select onchange="javascript:window.location.href=this.value" name="select">
                    <option value="comrecycle.asp">(全 部)</option>
                    <%
					      hireid=trim(request("hireid"))
						  set rst=server.createobject("ADODB.Recordset")
						  sql1="select hire_id,hire_place from job_c_hire where hire_cmember='"&cmember_login&"' order by hire_announcedate desc"
						  rst.open sql1,conn,1,1
						  for i=1 to rst.recordcount
						  if hireid=rst("hire_id") then
						   response.write "<OPTION value='company_recycle.asp?hireid="&rst("hire_id")&"' selected>"&rst("hire_place")&"</OPTION>"
						  else
						   response.write "<OPTION value='company_recycle.asp?hireid="&rst("hire_id")&"'>"&rst("hire_place")&"</OPTION>"
						  end if
						   rst.movenext
						  next
						  rst.close
						  %>
                  </select>
                职位的求职人员信息</td>
            </tr>
            <tr bgcolor="#0099CC">
              <td width="13%" height="29" align="middle" bgcolor="#E7E7E7"><b>姓名</b></td>
              <td width="8%" align="middle" bgcolor="#E7E7E7"><b>性别</b></td>
              <td width="7%" align="middle" bgcolor="#E7E7E7"><b>年龄</b></td>
              <td width="14%" align="middle" bgcolor="#E7E7E7"><b>学历</b></td>
              <td width="35%" align="middle" bgcolor="#E7E7E7"><b>应聘职位</b></td>
              <td width="17%" align="middle" bgcolor="#E7E7E7"><b>发送时间</b></td>
              <td width="6%" align="middle" bgcolor="#E7E7E7"><img height="12" src="../images/sel_ico.gif" width="13" /> </td>
            </tr>
          </tbody>
          <form action="" method="post" name="thisForm" id="thisForm">
		  <%do while not rsw.eof%>
			<TR align=middle>
				<TD height=30><a href="../person/cnresume_view.asp?rid=<%=rsw("comrecycle_resumeid")%>" target="_blank"><%=rsw("comrecycle_name")%></a></TD>
				<TD><%=Hiresex(rsw("comrecycle_sex"))%></TD>
				<TD><%=year(date())-year(rsw("comrecycle_birth"))%></TD>
				<TD><%=Hireedu(rsw("comrecycle_edu"))%></TD>
				<TD><%=rsw("comrecycle_place")%></TD>
				<TD><%=rsw("comrecycle_date")%></TD>
				<TD><input type="checkbox" name="checks" value="<%=rsw("comrecycle_id")%>"></TD>
			</TR>
<%
		i=i+1
		if i>=MaxPerPage then exit do
		rsw.movenext
		loop
	%>
            <tr bgcolor="#efefef">
              <td height="24" colspan="9" align="right"><input name="chkall" onclick="CheckAll(this.form)" type="checkbox" value="on" />
                选中所有简历</td>
            </tr>
            <tr bgcolor="#f9f9f9">
              <td colspan="11" align="right"><!--简历恢复-->
                  <input name="Submit2" type="button" class="inputa2" value="简历恢复" onclick="javascript:showconfirm(1,<%=page%>)" />
                  <!--面试邀请-->
                  <input name="Submit2" type="button" class="inputa2" value="发送面试邀请" onclick="javascrpt:showconfirm(2,<%=page%>)" />
                  <!--放入人才库-->
                  <input name="Submit3" type="button" class="inputa2" value="放入人才库" onclick="javascript:showconfirm(3,<%=page%>)" />
                  <!--删除简历-->
                  <input name="Submit42" type="button" class="inputa3" value="删 除" onclick="javascript:showconfirm(4,<%=page%>)" />
                  <!--清空回收站-->
                  <input name="Submit52" type="button" class="inputa2" value="清空回收站" onclick="if (confirm('确定要清空回收站吗?')) window.location='company_recycle.asp?action=clean&amp;currentpage=<%=page%>'" />
              </td>
            </tr>
          <tr>
            <td colspan="11" align="right" bgcolor="#f9f9f9"><%If totalput>0 Then
	Call Showpage(strFileName,totalput,MaxPerPage,false,true,"份简历")
End If%></td> 
          </tr></form>
    </table>
        <br class="br">
		<TABLE width="98%" height=20 border=0 align="center" cellPadding=6 cellSpacing=0 borderColor=#111111 style="BORDER-COLLAPSE: collapse">
          <TR>
            <TD class=font-title>说&nbsp;明:</TD>
          </TR>
    </TABLE>
        <table cellspacing="0" cellpadding="6" width="98%" align="center" 
                  border="0">
          <tbody>
            <tr>
              <td height="18"><font 
                        color="#000000">“<strong>简历恢复</strong>”</font><font 
                        color="#333333">即将回收站中选中的简历恢复至收到应聘简历表中。</font> </td>
            </tr>
            <tr>
              <td height="18"><font 
                        color="#000000">“<strong>发送面试邀请</strong>”</font><font 
                        color="#333333">即邀请一个或多个满意的求职者面试。</font> </td>
            </tr>
            <tr>
              <td height="18"><font 
                        color="#000000">“<strong>放入人才库</strong>”</font>即整理收集有价值的求职者,以备日后使用。</td>
            </tr>
            <tr>
              <td height="18"><font 
                        color="#000000">“<strong>删除</strong>”</font><font 
                        color="#333333">即彻底删除选中的简历。</font></td>
            </tr>
            <tr>
              <td height="18"><font 
                        color="#000000">“<strong>清空回收站</strong>”</font>即删除回收站中的所有简历。</td>
            </tr>
          </tbody>
        </table>
        <%End Sub%>
</div>
<%call bottom()
conn.close:set conn=nothing%>

⌨️ 快捷键说明

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