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

📄 myfavorite.asp

📁 嘉缘人才6.0精简 ,很好用的人才系统
💻 ASP
字号:
<!--#include file="../conn/conn.asp" -->
<!--#include file="../inc/sub.asp"-->
<%
link="myfavorite.asp"
%>
<!--#include file="checkpmember.asp" -->
<%
 if trim(request("action"))<>"" then
  action=trim(request("action"))
  currentpage=trim(request("currentpage"))
  checks=trim(request("checks"))
  set rs=Server.CreateObject("Adodb.Recordset")
  myfavorite=split(checks,",")
  select case action
   case "delete"  '删除选中的应聘简历
    for i=0 to ubound(myfavorite)
	 id=trim(myfavorite(i))
	 conn.execute("delete from job_p_myfavorite where myfavorite_id="&id&"")
	next
  end select
  response.redirect "myfavorite.asp?currentpage="&currentpage&""
  response.end
 end if
%>
<!--#include file="../inc/memberpagelist.asp" -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>职位收藏夹-个人求职管理中心</title>
<LINK href="../css/css.css" rel=stylesheet>
<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,currentpage)
{
	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="resume_send.asp?action=myfavorite";
			document.thisForm.target="_blank";
			thisForm.submit();
		}
	}
	//删除
	if (id==2)
	{
		if(confirm("您确定要删除选中的职位吗?")==true)
		{
			document.thisForm.action="myfavorite.asp?action=delete&currentpage="+currentpage+"";
			thisForm.submit();
		}
	}					
}
  //-->
</script></head>
<body>
<!--#include file="../inc/head.asp"-->
<br class="br">
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0" class="table2">
  <tr>
    <td width="200" height="299" rowspan="4" valign="top"><!--#include file="menu.asp" --></td>
  </tr>
  <tr>
    <td width="639" height="35" background="../images/companyleftregbg.gif">&nbsp;<font class=font-14><b><img src="../images/arrow_01.gif" width="11" height="11" align="absmiddle"> </b></font><font class=font-14><b>姓名:</b></font><font 
            class=font-title color="#FF6600"><%=session("user_pname")%></FONT></td>
    <td width="122" background="../images/companyleftregbg.gif"><font 
            class=font-title color="#FF6600"><A 
            style="CURSOR: hand" 
            href="logout.asp"><IMG src="../images/exit.gif" width=79 
            height=19 border="0"></A></font></td>
  </tr>
  <tr>
    <td height="500" colspan="2" valign="top"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="orange-bar">
        <tr>
          <td width="2%" align="right">&nbsp;</td>
          <td width="97%" class="white14">  职位收藏夹</td>
          <td width="1%">&nbsp;</td>
        </tr>
      </table>
        <TABLE width="98%" border=0 align="center" cellPadding=6 cellSpacing=0>
          <TBODY>
            <TR bgcolor="#E7E7E7">
              <TD width="36%" height=29 align=middle><B>招聘职位</B></TD>
              <TD width="40%" align=middle><B>公司名称</B></TD>
              <TD width="17%" align=middle><B>收藏时间</B></TD>
              <TD width="7%" align=middle><IMG height=12 src="../images/sel_ico.gif" width=13> </TD>
            </TR>
          <FORM name="thisForm" action="" method="post">
            <%
					 pgsz=10
					 set rs=server.createobject("ADODB.Recordset")
					 sql="select * from job_p_myfavorite,job_c_hire where job_p_myfavorite.myfavorite_hireid = job_c_hire.hire_id and myfavorite_pmember='"&pmember_login&"' order by myfavorite_date desc"
					 rs.open sql,conn,1,1
					 If not rs.eof then
		              rs.pagesize=pgsz
                      if request("currentpage")="" then
                       ipage=1
                      else
                       if cint(request("currentpage"))>rs.pagecount then
                        ipage=rs.pagecount
                       else
                        ipage=cint(request("currentpage"))
                       end if
                      end if 
                      rs.absolutepage=ipage
					  for i=1 to rs.pagesize
					  response.write "<TR align=middle bgColor=#f7f7f7>"
					  response.write "<TD height=30>"
					  if rs("hire_id")="" or isnull(rs("hire_id")) then 
			           response.write rs("myfavorite_place")
				       response.write"(已删除)"
			          else
			           if (rs("hire_enddate")<date() or rs("hire_status")=0) then
				        response.write rs("myfavorite_place") 
				        response.write"(停止招聘)"
				       else
			            response.write"<a href='../company/hire_info.asp?id="&rs("hire_id")&"' target='_blank'>"&rs("myfavorite_place")&"</a>" 
				       end if
			          end if
					  response.write "</TD>"
					  response.write "<TD>"&rs("myfavorite_comname")&"</TD>"
					  response.write "<TD>"&year(rs("myfavorite_date"))&"-"&month(rs("myfavorite_date"))&"-"&day(rs("myfavorite_date"))&"</TD>"
					  response.write "<TD><input type='checkbox' name='checks' value='"&rs("myfavorite_id")&"'></TD>"
					  response.write "</TR>"
					rs.movenext
                    if rs.eof then 
                     exit for
                    end if  
                    next
					%>
            <TR bgcolor="#efefef">
              <TD height=24 colSpan=9 align=right>
                <INPUT name=chkall onClick="CheckAll(this.form)" type=checkbox value=on>
        选中所有职位&nbsp;&nbsp;
        <!--发送应聘意向-->        <input name="Submit" type="button" class="inputa2" value="发送应聘意向" onClick=javascript:showconfirm(1,<%=ipage%>)>        
        <!--删除职位-->        <input name="Submit2" type="button" class="inputa3" value="删 除" onClick=javascript:showconfirm(2,<%=ipage%>)>        </TD>
            </TR>
          </form>
          <TR>
            <TD colSpan=11 align=right bgcolor="#f9f9f9">
              <%call pagelist("myfavorite.asp","",rs.pagecount,ipage,rs.recordcount)%>
            </TD>
          </TR>
          <%
					end if
					rs.close
					set rs=nothing
					conn.close
					set conn=nothing
					%>
        </TABLE></td>
  </tr>
</table>
<!--#include file="../inc/bottom.asp"-->
</body>


⌨️ 快捷键说明

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