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

📄 per_favouriate.asp

📁 直接附加数据库! 修改 Include/ Class_Main.asp 为自己信息 后台admin admin 绍兴人才网程序
💻 ASP
字号:
<!--#include file="../Include/Class_Conn.asp" -->
<!--#include file="../Public/Person_Cookies.asp" -->
<!--#include file="../Include/Class_Main.asp" -->
<% 
Dim Rs,Cmd,Tmp,Action
Dim Perid,UserName,UserType,RealName


'//获取个人用户的登陆标记
If IsArray(Session("Person")) Then
 Perid = Session("Person")(2)
 UserName = Session("Person")(0)
Else
 Session.Abandon() 
 Response.write "<script>alert('-登录后才能进行该操作!-');location.href='../Public/MemberLogin.asp';</script>"
End if

'//调用存储过程
Set Cmd = Server.CreateObject("ADODB.Command")
Cmd.ActiveConnection = Conn
Cmd.CommandText = "Per_Account"
Cmd.CommandType = 4
Cmd.Parameters.Append Cmd.CreateParameter("@Perid",200,1,30)
Cmd.Parameters("@Perid") = Perid
Set Rs = Cmd.Execute

If Rs.Eof Then
 CloseRs
 Set Cmd = Nothing
 CloseDB
 Response.write "没有找到会员资料!"
 Response.End()
End if
Tmp = Rs.GetRows() '//将数据填充到数组
'//0姓名,1会员类型
'//如:Tmp(0,0)表示 用户的姓名
Rs.Close
Set Cmd = Nothing
'//功能代码
UserType = Cls_Usertype(Tmp(1,0))
RealName = Tmp(0,0)

'//查找个人收藏夹表
SQL = "Select Ncid,Comid,AddDate,Jobid From [pH_Person_Favouriate] Where Perid='"&Perid&"' Order By Ncid Desc"
Rs.open SQL,Conn,1,1
Rs.Pagesize = 15
Psize       = Rs.PageSize
PCount      = Rs.PageCount
RCount      = Rs.RecordCount

PageNo = Cint(Request.QueryString("PageNo"))
If PageNo < 1 Then
 PageNo = 1
Elseif PageNo > PCount Then
 PageNo = PCount
End if
TheRecord = (PageNo-1)*Psize '//计算记录编号的基数
If Not Rs.Eof Then Rs.AbsolutePage = PageNo

 %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<script language="JavaScript">
function SelectAllItem(item)
{
    if( typeof(item.length) == "undefined" )
    {
        item.checked = !item.checked
    }
    else
    {
        for(i=0;i<item.length;i++)
        {
            item[i].checked=!item[i].checked
        }
    }
}

function theForm_Submit(id)
{
		
		if (id=="delfav")
		{
		  if(confirm('确认彻底删除选定的记录'))
		  {
		    form.target='rslt';
			form.action="Per_Option.asp?param=delfav";
			openwin();
			form.submit();	   
		   }

		}
		
		if (id=="delfavrecycle")
		{
		    form.target='rslt';
			form.action="Per_Option.asp?param=delfavrecycle";
			openwin();
			form.submit();	   
		}
		
		if (id=="send")
		{
		    form.target='rslt';
			form.action="Per_SendApp.asp?param=fav";
			openwin();
			form.submit();	   
		}		
		
}
function openwin()
  {
    disp=window.open("","rslt","width=500,height=320,resizable=yes");
	disp.focus();
  }
</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../Css/Style.css" type=text/css rel=stylesheet>
<title><%= Cls_WebName %> -- 个人会员管理中心 -- 收藏夹</title>
</head>

<body>
<table width="768" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td>
      <!--#include file="../Include/Header.asp" -->
    </td>
  </tr>
</table>
<table width="956" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr> 
    <td><table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td height="4"></td>
        </tr>
        <tr> 
          <td height="1" bgcolor="#eeeeee"></td>
        </tr>
      </table>
      <table width="956" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td width="175">
            <!--#include file="../Public/Person_Left.asp" -->
          </td>
          <td width="5">&nbsp;</td>
          <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td height="25"><img src="../Images/icon.gif" width="11" height="11" align="absmiddle"> 
                  <%= RealName %>[<%= UserType %>] </td>
              </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <Form action="" method="post" name="form">
                <tr> 
                  <td><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="eeeeee">
                      <tr> 
                        <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr> 
                              <td><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="eeeeee">
                                  <tr> 
                                    <td bgcolor="#FFFFFF"><table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
                                        <tr> 
                                          <td height="2"></td>
                                        </tr>
                                      </table>
                                      <table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="eeeeee">
                                        <tr> 
                                          <td height="25" bgcolor="f5f5f5"><b><font color="#000000">&nbsp;收藏夹</font></b></td>
                                        </tr>
                                      </table>
                                      <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
                                        <tr> 
                                          <td><%= Cls_Page("Per_Favouriate.asp",PageNo,PCount,RCount) %></td>
                                        </tr>
                                      </table>
                                      <table width="99%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="eeeeee">
                                        <tr align="center" bgcolor="f5f5f5"> 
                                          <td width="7%" height="25">选择</td>
                                          <td width="36%" height="25" bgcolor="f5f5f5">企业名称</td>
                                          <td width="29%" height="25" bgcolor="f5f5f5">职位名称</td>
                                          <td width="16%" height="25">收藏时间</td>
                                          <td width="12%" height="25">状态</td>
                                        </tr>
                                        <% 
For i = 1 to Psize
 If Rs.Eof Then Exit For
 Ncid        = Rs("Ncid")
 Comid       = Rs("Comid")
 AddDate     = FormatDateTime(Rs("AddDate"),2)
 Jobid       = Rs("Jobid")
 CompanyName = ""
 JobName     = ""
 End_Date    = ""
 Color_Str   = "#333333"
 '获取企业名称和职位信息
 SQL = "Select C.CompanyName,J.JobName,J.End_Date From pH_Company_Base As C,pH_Job_Base As J Where C.Comid=J.Comid And J.Jobid="&Cstr(Jobid)
 Set Re = Conn.Execute(SQL)
 If Re.Eof Then
  End_Date    = ""
  Color_Str   = "#993300"
  CompanyName = "<font color="&Color_Str&">企业不存在</font>"
  JobName     = "<font color="&Color_Str&">职位不存在</font>"
 Else
  End_Date    = Re("End_Date")
  '判断职位是否过期,来决定记录显示的颜色
  If DateDiff("d",Date(),End_Date) < 0 Then
   Color_Str = "#CC9900"  '职位已经过期
  Else
   Color_Str = "#333333"  '职位正常
  End if
  CompanyName = "<a href=""../Company/Info/Com_View.asp?Param="&Comid&""" target=""_blank""><u><font color="&Color_Str&">"&Re("CompanyName")&"</font></u></a>"
  JobName     = "<a href=""../Company/Info/Com_Job.asp?Comid="&Comid&"&Param="&Jobid&""" target=""_blank""><u><font color="&Color_Str&">"&Re("JobName")&"</font></u></a>"
  End_Date    = Re("End_Date")
 End if
 Re.Close
 '//判断有否发送过求职意向
 SQL = "Select Ncid From [pH_Person_OutBox] Where Perid='"&Perid&"' And Jobid="&Cstr(Jobid)		  
 Set Re = Conn.Execute(SQL)
 If Not Re.Eof Then
  Out_Flag = "已求职"
 Else
  Out_Flag = "未求职"
 End if
 Re.Close
%>
                                        <tr align="center"> 
                                          <td height="25" bgcolor="#FFFFFF"><INPUT type=checkbox value=<%= Ncid %> name=ncid></td>
                                          <td height="25" align="left" bgcolor="#FFFFFF"><%= CompanyName %></td>
                                          <td height="25" align="left" bgcolor="#FFFFFF"><%= JobName %></td>
                                          <td height="25" bgcolor="#FFFFFF"><font color="<%= Color_Str %>"><%= AddDate %></font></td>
                                          <td height="25" bgcolor="#FFFFFF"><font color="<%= Color_Str %>"><%= Out_Flag %></font></td>
                                        </tr>
                                        <% 
 Rs.Movenext
Next
Rs.Close
 %>
                                      </table>
                                      <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
                                        <tr> 
                                          <td align="right"> <INPUT onclick=SelectAllItem(this.form.ncid) type=checkbox value=all name=chk_all>
                                            选中所有信件 </td>
                                        </tr>
                                      </table>
                                      <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
                                        <tr> 
                                          <td height="2"></td>
                                        </tr>
                                      </table></td>
                                  </tr>
                                </table></td>
                            </tr>
                            <tr> 
                              <td height="30" align="right"> 
                                <input type="button" name="delete" value="永久删除" onClick="javascript:theForm_Submit('delfav')">
								<input type="button" name="delete2" value="删除到回收站" onClick="javascript:theForm_Submit('delfavrecycle')">
								<input type="button" name="send" value="发送求职意向" onClick="javascript:theForm_Submit('send')">
                              </td>
                            </tr>
                          </table></td>
                      </tr>
                    </table></td>
                </tr>
              </Form>
            </table>
            <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr> 
                <td><hr size="1" color="#CCCCCC"></td>
              </tr>
              <tr> 
                <td><font color="#666666">操作说明: </font></td>
              </tr>
              <tr> 
                <td height="76"> <font color="#666666">收藏夹放置您认为合适而选定的信息 ;<br>
                  您可通过点击 进行选择发出求职意向或删除该条收藏信息 ;<br>
                  有效职位的颜色为黑色,职位过期后显示为<font color="cc9900">黄色</font>,被单位删除的职位将自动从收藏列表中删除 
                  ;<br>
                  已发送求职申请的职位状态为已求职;未发送求职申请的职位状态为未求职 ;</font></td>
              </tr>
            </table> </td>
        </tr>
      </table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td height="1" bgcolor="#eeeeee"></td>
  </tr>
</table>
<!--#include file="../Include/Footer.asp" -->
	  </td>
  </tr>
</table>

</body>
</html>
<% 


'//关闭数据库连接
CloseDB
 %>

⌨️ 快捷键说明

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