job_search_result.asp
上传用户:jisenq
上传日期:2014-06-29
资源大小:7216k
文件大小:5k
源码类别:

数据库编程

开发平台:

ASP/ASPX

  1. <% Option Explicit %>
  2. <!--#include file="../../FS_Inc/Const.asp" -->
  3. <!--#include file="../../FS_InterFace/MF_Function.asp" -->
  4. <!--#include file="../../FS_Inc/Function.asp" -->
  5. <!--#include file="../../FS_Inc/Func_page.asp" -->
  6. <!--#include file="../lib/strlib.asp" -->
  7. <!--#include file="../lib/UserCheck.asp" -->
  8. <!--Copyright (c) 2006 Foosun Inc. Code by Einstein.liu-->
  9. <html xmlns="http://www.w3.org/1999/xhtml">
  10. <title>User Manage Center-网站内容管理系统</title>
  11. <meta name="keywords" content="风讯cms,cms,FoosunCMS,FoosunOA,FoosunVif,vif,风讯网站内容管理系统">
  12. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  13. <meta content="MSHTML 6.00.3790.2491" name="GENERATOR" />
  14. <link href="../images/skin/Css_<%=Request.Cookies("FoosunUserCookies")("UserLogin_Style_Num")%>/<%=Request.Cookies("FoosunUserCookies")("UserLogin_Style_Num")%>.css" rel="stylesheet" type="text/css">
  15. <head>
  16. <script language="javascript" src="../../FS_Inc/CheckJs.js"></script>
  17. <script language="javascript" src="../../FS_Inc/prototype.js"></script>
  18. <script language="javascript" src="../../FS_Inc/PublicJS.js"></script>
  19. </head>
  20. <body>
  21. <table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" class="table">
  22.   <tr>
  23.     <td><!--#include file="../top.asp" -->
  24.     </td>
  25.   </tr>
  26. </table>
  27. <table width="98%" height="135" border="0" align="center" cellpadding="1" cellspacing="1" class="table">
  28.   <tr class="back">
  29.     <td   colspan="2" class="xingmu" height="26"><!--#include file="../Top_navi.asp" -->
  30.     </td>
  31.   </tr>
  32.   <tr class="back">
  33.     <td width="18%" valign="top" class="hback"><div align="left">
  34.         <!--#include file="../menu.asp" -->
  35.       </div></td>
  36.     <td width="82%" valign="top" class="hback">
  37. <table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" class="table">
  38. <tr class="xingmu">
  39. <td colspan="7">职位搜索结果</td>
  40. </tr>
  41. <tr class="xingmu">
  42. <td>职位名称</td>
  43. <td align="center">公司名称</td>
  44. <td align="center">简历语言</td>
  45. <td align="center">工作地点</td>
  46. <td align="center">招聘人数</td>
  47. <td align="center">发布日期</td>
  48. <td align="center">结束日期</td>
  49. </tr>
  50. <%
  51. Dim Rs,job,workcity,publicdate,condition
  52. job=trim(request.Form("JobName"))
  53. workcity=trim(request.Form("workcity"))
  54. publicdate=trim(request.Form("hd_publicdate"))
  55. if job<>"" then
  56. condition=" And JobName like '"&job&"'"
  57. End if
  58. if workcity<>"" then
  59. condition=condition&" And workcity ='"&workcity&"'"
  60. End if
  61. if publicdate<>"" then
  62. Dim dateCondition
  63. dateCondition=DateValue(Now())-Cint(publicdate)
  64. if G_IS_SQL_DB=0 then
  65. condition=condition&" And publicdate>#"&dateCondition&"#"
  66. Else
  67. condition=condition&" And publicdate>'"&dateCondition&"'"
  68. End if
  69. End if
  70. if G_IS_SQL_DB=0 then
  71. Set Rs=Conn.execute("Select PID,UserNumber,JobName,JobDescription,ResumeLang,WorkCity,PublicDate,EndDate,NeedNum from FS_AP_Job_Public where 1=1 "&condition&" And (EndDate>#"&DateValue(Now())&"# or EndDate=#"&DateValue(Now())&"#)")
  72. else
  73. Set Rs=Conn.execute("Select PID,UserNumber,JobName,JobDescription,ResumeLang,WorkCity,PublicDate,EndDate,NeedNum from FS_AP_Job_Public where 1=1 "&condition&" And (EndDate>'"&DateValue(Now())&"' or EndDate='"&DateValue(Now())&"')")
  74. End if
  75. Dim meRs,corpName
  76. while not Rs.eof
  77. Response.Write("<tr height='25' onMouseOver=overColor(this) onMouseOut=outColor(this) onClick=""javascript:Element.toggle('descripe_"&Rs("PID")&"')"">"&vbcrlf)
  78. Response.Write("<td class='hback'>"&Rs("JobName")&"</td>"&vbcrlf)
  79. Set meRs=User_Conn.execute("Select C_Name,C_WebSite from FS_ME_CorpUser where UserNumber='"&Rs("UserNumber")&"'")
  80. if not meRs.eof then
  81. if MeRs("C_WebSite")<>"" then
  82. corpName="<a href="""&MeRs("C_WebSite")&""" target=""_blank"">"&meRs("C_Name")&"</a>"
  83. Else
  84. corpName=meRs("C_Name")
  85. End if
  86. Else
  87. corpName="无"
  88. End if
  89. Response.Write("<td class='hback' align='center'>"&corpName&"</td>"&vbcrlf)
  90. Response.Write("<td class='hback' align='center'>"&Rs("WorkCity")&"</td>"&vbcrlf)
  91. Response.Write("<td class='hback' align='center'>"&Rs("ResumeLang")&"</td>"&vbcrlf)
  92. Response.Write("<td class='hback' align='center'>"&Rs("NeedNum")&"</td>")
  93. Response.Write("<td class='hback' align='center'>"&Rs("PublicDate")&"</td>")
  94. Response.Write("<td class='hback' align='center'>"&Rs("EndDate")&"</td>")
  95. Response.Write("<tr id='descripe_"&Rs("PID")&"' style=""display:'none'"">"&vbcrlf)
  96. Response.Write("<td colspan='7' class='hback' >职位说明:"&Rs("JobDescription")&"</td>"&vbcrlf)
  97. Response.Write("</tr>"&vbcrlf)
  98. Rs.movenext
  99. Wend
  100. %>
  101. </table>
  102. </td>
  103.   </tr>
  104.   <tr class="back">
  105.     <td height="20"  colspan="2" class="xingmu"><div align="left">
  106.         <!--#include file="../Copyright.asp" -->
  107.       </div></td>
  108.   </tr>
  109. </table>
  110. </body>
  111. </html>
  112. <%
  113. 'if not isnull(Conn) then Conn.close
  114. 'if not isnull(User_Conn) then User_Conn.close
  115. Set User_Conn=nothing
  116. Set Conn=nothing
  117. %>
  118. <script language="javascript">
  119. <!--
  120. -->
  121. </script>
  122. <!-- Powered by: FoosunCMS4.0系列,Company:Foosun Inc. -->