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

📄 per_outbox.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,Jobid,AddDate,Title From [pH_Person_OutBox] Where Perid='"&Perid&"' Order By Ncid Desc"
Rs.open SQL,Conn,1,1
Rs.Pagesize = 10
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=="deloutbox")
		{
		  if(confirm('确认彻底删除选定的信件'))
		  {
		    form.target='rslt';
			form.action="Per_Option.asp?param=deloutbox";
			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_OutBox.asp",PageNo,PCount,RCount) %></td>
                                        </tr>
                                      </table>
                                      <table width="99%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="dddddd">
                                        <tr align="center"> 
                                          <td height="25" bgcolor="f5f5f5">选择</td>
                                          <td height="25" bgcolor="f5f5f5">标 题</td>
                                          <td width="18%" height="25" bgcolor="f5f5f5">申请日期</td>
                                          <td width="16%" height="25" bgcolor="f5f5f5">已申请人数</td>
                                        </tr>
                                        <tr align="center" bgcolor="#FFFFFF"> 
                                          <td width="8%" height="25">&nbsp;</td>
                                          <td width="58%" height="25">企业名称</td>
                                          <td height="25" colspan="2">应聘职位</td>
                                        </tr>
                                        <% 
For i = 1 to Psize
 If Rs.Eof Then Exit For
 Ncid        = Rs("Ncid")
 Comid       = Rs("Comid")
 Jobid       = Rs("Jobid")
 AddDate     = FormatDateTime(Rs("AddDate"),2)
 Title       = Rs("Title")

 '获取企业名称
 Set Re = Conn.Execute("Select CompanyName From [pH_Company_Base] Where Comid='"&Comid&"'")
 If Not Re.Eof Then CompanyName = Re(0)
 Re.Close
 '获取职位名称和被申请次数
 Set Re = Conn.Execute("Select JobName,SendClicks From [pH_Job_Base] Where Jobid="&Cstr(Jobid))
 If Not Re.Eof Then 
  JobName     = Re(0)
  SendClicks  = Re(1)
 End if
 Re.Close 			  
%>
                                        <tr align="center" bgcolor="f9f9f9"> 
                                          <td height="25"> 
                                            <INPUT type=checkbox value=<%= Ncid %> name=ncid></td>
                                          <td height="25" align="left"><b>标题</b>:<a href="Javascript:" onClick="Javascript:window.open('Per_ReadOutBox.asp?param=<%= Ncid %>','rslt','width=540,height=350,resizable=yes,scrollbars=yes');"><b><%= Title %></b></a></td>
                                          <td height="25" align="center"><%= AddDate %></td>
                                          <td height="25" align="center"><font color="#990000"><%= SendClicks %></font></td>
                                        </tr>
                                        <tr align="center"> 
                                          <td height="25" bgcolor="#FFFFFF">&nbsp;</td>
                                          <td height="25" align="left" bgcolor="#FFFFFF">
										  <a href="../Company/Info/Com_View.asp?Param-<%= Comid %>.html" target="_blank"><u><%= CompanyName %></u></a></td>
                                          <td height="25" colspan="2" align="left" bgcolor="#FFFFFF">
										  <a href="../Company/Info/Com_Job.asp?Comid-<%= Comid %>-Param-<%= Jobid %>.html" target="_blank"><font color="#000099"><u><%= JobName %></u></font></a>
                                          </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('deloutbox')">
                              </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> <font color="#666666">发件夹放置个人发送的求职申请信件,并可以查看已求职职位的基本情况 ; 
                  </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 + -