📄 com_previewjob.asp
字号:
<!--#include file="../../Include/Class_Conn.asp" -->
<!--#include file="../../Include/Class_Main.asp" -->
<%
Dim Comid,Username,Cmd,Rs,SQL,i
Dim CompanyName,DeptName,Deal,Numbers,BeginDate,EndDate,Edus,Flag,Works,Min_Age,Max_Age,Age_Str,Sex,Locus
If Not IsArray(Session("Company")) Then
Response.write "<script>alert('-登录后才能进行该操作!-');location.href='../../Public/MemberLogin.asp';</script>"
Response.End()
End if
'//获取会员登陆的标记
Username = Session("Company")(0)
Comid = Session("Company")(2)
'//查找企业信息
SQL = "Select CompanyName From [pH_Company_Base] Where Comid='"&Comid&"' And Username='"&Username&"'"
Set Rs = Conn.Execute(SQL)
If Rs.Eof Then
CloseRs
CloseDB
Response.write "没有找到会员资料!"
Response.End()
End if
CompanyName = Rs(0)
Rs.Close
'//调用存储过程
Set Cmd = Server.Createobject("ADODB.Command")
Cmd.ActiveConnection = Conn
Cmd.CommandText = "Com_PreviewJob"
Cmd.CommandType = 4
Cmd.Parameters.Append Cmd.CreateParameter("@Comid",200,1,30)
Cmd.Parameters("@Comid") = Comid
Set Rs = Cmd.Execute
If Not Rs.Eof Then
Flag = 1
Tmp = Rs.GetRows() '//将数据填充到数组
End if
'0职位ID,1职位类型,2职位类别,3名称,4待遇,5人数,6工作省,7市,8具体要求,9面试地址,10学历,11性别,12工作年限,13更新时间,14显示次数,15应聘次数,16状态,17要求省,18市,19最小年龄,20最大年龄,21部门ID,22截止日期,23联系人,24电话,25传真,26电话屏蔽,27邮件,28邮件屏蔽,29地址,30邮政编码
Set Cmd = Nothing
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../../Css/Style.css" type=text/css rel=stylesheet>
<title><%= CompanyName %>-企业信息-<%= 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>
</table>
<table width="956" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="164" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="../../Images/Company/toplogo.gif" width="164" height="34"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<%
SQL = "Select Top 10 * From [pH_Web_Ad] Where WebName=10 And ad_Width=148 And ad_Height=60 And DateDiff(d,BeginDate,GetDate())>=0 And DateDiff(d,EndDate,GetDate())<=0 And Websub='"&Cls_Websub&"' Order By ad_Sort Asc"
Set Rs_s = Conn.Execute(SQL)
While Not Rs_s.Eof
If Rs_s("AdClass") = 1 Then
%>
<tr>
<td height="68" align="center"> <a href="<%= "http://"&Rs_s("AdUrl") %>" target="_blank"><img src="../../Uploadfiles/AdFile/<%= Rs_s("AdFile") %>" width="<%= Rs_s("ad_Width") %>" height="<%= Rs_s("ad_Height") %>" border="0"></a>
</td>
</tr>
<% Else %>
<tr>
<td height="68" align="center"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="<%= Rs_s("ad_Width") %>" height="<%= Rs_s("ad_Height") %>">
<param name="movie" value="../../Uploadfiles/AdFile/<%= Rs_s("AdFile") %>">
<param name=quality value=high>
<embed src="../../Uploadfiles/AdFile/<%= Rs_s("AdFile") %>" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="435" height="75"></embed>
</object> </td>
</tr>
<%
End if
Rs_s.Movenext
Wend
Rs_s.Close
%>
</table></td>
<td width="1" bgcolor="#eeeeee"></td>
<td width="3"></td>
<td valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="28%" align="left"><img src="../../Images/Company/welcome.gif" width="149" height="43"></td>
<td style="font-size:15px;color:#3333CC;font-weight:bold"><%= CompanyName %></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="189" height="21"> </td>
<td width="21" rowspan="2"><img src="../../Images/Company/yleft.gif" width="21" height="22"></td>
<td width="110" rowspan="2" align="center" valign="bottom" background="../../Images/Company/company_ybg.gif"><a href="Com_Preview.asp">企业简介</a></td>
<td width="28" rowspan="2"><img src="../../Images/Company/middle.gif" width="28" height="22"></td>
<td width="122" rowspan="2" align="center" valign="bottom" background="../../Images/Company/company_wbg.gif"><strong>职位</strong></td>
<td width="10" rowspan="2"><img src="../../Images/Company/person_wright.gif" width="24" height="22"></td>
<td width="308"> </td>
</tr>
<tr>
<td height=1 bgcolor=#ddddda width="189"></td>
<td height=1 bgcolor=#ddddda width="308"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="1" bgcolor="#ddddda"></td>
<td width="145" align="center" valign="top" bgcolor="#FBFBFB">
<table width="90%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="10"></td>
</tr>
<tr>
<td>正在...</td>
</tr>
<%
SQL = "Select Jobid,JobName From [pH_Job_Base] Where Comid='"&Comid&"' And JobFlag = 1 And End_Date>=getdate() Order By LastUpdate_Time Desc,JobId Desc"
Set Rs = Conn.Execute(SQL)
If Not Rs.Eof Then
While Not Rs.Eof
Jobid = Rs(0)
JobName = Rs(1)
Response.write "<tr><td height=25><li><a href=""Com_JobView.asp?Param="&Jobid&""">"&JobName&"</a></td></tr>"
Rs.Movenext
Wend
End if
Rs.Close
%>
<tr>
<td height="10"></td>
</tr>
</table></td>
<td align="center" valign="top"> <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="5"></td>
</tr>
</table>
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<%
If Flag = 1 Then
For i = 0 To UBound(Tmp,2)
Set Re = Conn.Execute("Select DeptName From [pH_Company_Dept] Where Ncid="&Cstr(Tmp(21,i))) '//查找部门表
If Not Re.eof Then DeptName = Re(0)
Re.Close
Deal = Tmp(4,i) '待遇
Numbers = Tmp(5,i) '人数
BeginDate = FormatDateTime(Tmp(13,i),2)
EndDate = Tmp(22,i)
Edus = Tmp(10,i)
Works = Tmp(12,i) '//工作年限
Min_Age = Tmp(19,i) '//最小年龄
Max_Age = Tmp(20,i) '//最大年龄
Sex = Tmp(11,i) '//性别
'//人数判定
If Numbers = 0 Then
Numbers = "人数不限"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -