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

数据库编程

开发平台:

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="../lib/strlib.asp" -->
  6. <!--#include file="../lib/UserCheck.asp" -->
  7. <!--#include file="../../FS_Inc/Func_Page.asp" -->
  8. <%'Copyright (c) 2006 Foosun Inc. Code by awen
  9. if not Session("FS_UserNumber")<>"" then response.Redirect("../lib/error.asp?ErrCodes=<li>你尚未登陆,或过期.</li>&ErrorUrl=../login.asp") : response.End()
  10. Function Get_FildValue_List(This_Fun_Sql,EquValue,Get_Type)
  11. '''This_Fun_Sql 传入sql语句,EquValue与数据库相同的值如果是<option>则加上selected,Get_Type=1为<option>
  12. Dim Get_Html,This_Fun_Rs,Text
  13. On Error Resume Next
  14. if instr(This_Fun_Sql,"FS_ME_")>0 then 
  15. set This_Fun_Rs = User_Conn.execute(This_Fun_Sql)
  16. else
  17. set This_Fun_Rs = Conn.execute(This_Fun_Sql)
  18. end if
  19. If Err.Number <> 0 then Err.clear : response.Redirect("../error.asp?ErrCodes=<li>抱歉,传入的Sql语句有问题.或表和字段不存在.</li>")
  20. do while not This_Fun_Rs.eof 
  21. select case Get_Type
  22.   case 1
  23. ''<option>
  24. if instr(This_Fun_Sql,",") >0 then 
  25. Text = This_Fun_Rs(1)
  26. else
  27. Text = This_Fun_Rs(0)
  28. end if
  29. if EquValue = This_Fun_Rs(0) then 
  30. Get_Html = Get_Html & "<option value="""&This_Fun_Rs(0)&"""  style=""color:#0000FF"" selected>"&Text&"</option>"&vbNewLine
  31. else
  32. Get_Html = Get_Html & "<option value="""&This_Fun_Rs(0)&""">"&Text&"</option>"&vbNewLine
  33. end if
  34.   case else
  35. exit do : Get_FildValue_List = "Get_Type值传入错误" : exit Function
  36. end select
  37. This_Fun_Rs.movenext
  38. loop
  39. This_Fun_Rs.close
  40. Get_FildValue_List = Get_Html
  41. End Function
  42. %>
  43. <html xmlns="http://www.w3.org/1999/xhtml">
  44. <title>已发布的招聘---网站内容管理系统</title>
  45. <meta name="keywords" content="风讯cms,cms,FoosunCMS,FoosunOA,FoosunVif,vif,风讯网站内容管理系统">
  46. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  47. <meta content="MSHTML 6.00.3790.2491" name="GENERATOR" />
  48. <meta name="Keywords" content="Foosun,FoosunCMS,Foosun Inc.,风讯,风讯网站内容管理系统,风讯系统,风讯新闻系统,风讯商城,风讯b2c,新闻系统,CMS,域名空间,asp,jsp,asp.net,SQL,SQL SERVER" />
  49. <link href="../images/skin/Css_<%=Request.Cookies("FoosunUserCookies")("UserLogin_Style_Num")%>/<%=Request.Cookies("FoosunUserCookies")("UserLogin_Style_Num")%>.css" rel="stylesheet" type="text/css">
  50. <script language="JavaScript" src="../../FS_Inc/Prototype.js"></script>
  51. <script language="JavaScript" src="../../FS_Inc/coolWindowsCalendar.js"></script>
  52. <head>
  53. <body>
  54. <table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" class="table">
  55.   <tr>
  56.     <td>
  57.       <!--#include file="../top.asp" -->
  58.     </td>
  59.   </tr>
  60. </table>
  61. <table width="98%" height="135" border="0" align="center" cellpadding="1" cellspacing="1" class="table">
  62.   
  63.     <tr class="back"> 
  64.       <td   colspan="2" class="xingmu" height="26"> <!--#include file="../Top_navi.asp" --> </td>
  65.     </tr>
  66.     <tr class="back"> 
  67.       <td width="18%" valign="top" class="hback"> <div align="left"> 
  68.           <!--#include file="../menu.asp" -->
  69.         </div></td>
  70.       <td width="82%" valign="top" class="hback"><table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" class="table">
  71.           <tr class="hback"> 
  72.             
  73.           <td class="hback"><strong>位置:</strong><a href="../../">网站首页</a> &gt;&gt; 
  74.             <a href="../main.asp">会员首页</a> &gt;&gt; <a href="job_applications.asp">招聘首页</a>-人才查询</td>
  75.           </tr>
  76.         </table>
  77. <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
  78.   <tr  class="hback"> 
  79. <td colspan="10" height="25">
  80.  <a href="AP_Person_Search.asp">首页</a>
  81. </td>
  82.   </tr>
  83. </table>
  84. <%
  85. '******************************************************************
  86. Call Search
  87. '******************************************************************
  88. Sub Search()%>
  89. <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
  90.   <form name="form1" method="get" action="AP_Person_Search_Result.asp" onSubmit="return chkinput();">
  91.     <tr  class="hback" id="TradeTR"> 
  92.       <td align="right">行业</td>
  93.       <td>
  94.   <select name="Trade" id="Trade" onChange="GetJobOptions(this.options[this.selectedIndex].value)">
  95.    <option value="">所有</option>
  96.    <%=Get_FildValue_List("select TID,Trade from FS_AP_Trade","",1)%>
  97.   </select>
  98.        职位 <span id="JobSelect">请选择</span>
  99.    </td>
  100.     </tr>
  101.     <tr  class="hback" id="ProvinceTR"> 
  102.       <td align="right">工作地点</td>
  103.       <td>
  104.   省<select name="Province" id="Province" onChange="GetCityOptions(this.options[this.selectedIndex].value)">
  105.    <option value="">所有</option>
  106.    <%=Get_FildValue_List("select PID,Province from FS_AP_Province","",1)%>
  107.   </select>
  108.   城市 <span id="CitySelect">请选择</span>
  109.       </td>
  110.     </tr>
  111. <tr  class="hback"> 
  112.       <td width="200" align="right">发布简历的起始日期</td>
  113.       <td>
  114.   <input type="text" name="PublicDate" id="PublicDate" readonly="" onfocus="setday(this)" style="WIDTH: 100px; HEIGHT: 22px" maskType="shortDate">
  115.   <IMG id="img3" onclick="PublicDate.focus()" src="../../FS_Inc/calendar.bmp" align="absBottom"><span id="PublicDate_Alt"></span>
  116.       </td>
  117.     </tr>
  118.     <tr  class="hback"> 
  119.       <td align="right">发布简历的截止日期</td>
  120.       <td>
  121.   <input type="text" name="EndDate" id="EndDate" readonly=""  onfocus="setday(this)" style="WIDTH: 100px; HEIGHT: 22px" maskType="shortDate" value="<%=date%>">
  122.   <IMG id="img4" onclick="EndDate.focus()" src="../../FS_Inc/calendar.bmp" align="absBottom"><span id="EndDate_Alt"></span>
  123.       </td>
  124.     </tr>
  125.     <tr  class="hback"> 
  126.       <td colspan="4"> <input type="submit" value=" 查·询 " /> 
  127.               &nbsp; <input type="reset" value=" 重置 " />
  128.       </td>
  129.     </tr>
  130. </form>
  131. </table>
  132. <%End Sub%>
  133.        </td>
  134.     </tr>
  135.     <tr class="back"> 
  136.       <td height="20" colspan="2" class="xingmu"> <div align="left"> 
  137.           <!--#include file="../Copyright.asp" -->
  138.         </div></td>
  139.     </tr>
  140.  
  141. </table>
  142. <%
  143. Set Fs_User = Nothing
  144. %>
  145. <script language="JavaScript">
  146. <!--
  147. function chkinput()
  148. {
  149. if(document.all.PublicDate.value) if (document.all.PublicDate.value.indexOf('>=')<0) {document.all.PublicDate.value='>=#'+document.all.PublicDate.value+'#'};
  150. if(document.all.EndDate.value) if (document.all.EndDate.value.indexOf('<=')<0) {document.all.EndDate.value='<=#'+document.all.EndDate.value+'#'};
  151. }
  152. //得到二级菜单数据
  153. function GetJobOptions(Parentvalue)
  154. {
  155. if (Parentvalue=='')
  156. $('JobSelect').innerHTML='请选择';
  157. else
  158. new Ajax.Updater('JobSelect', '../SetNextOptions.asp?SelectName=Job&EquValue=&sType=1&no-cache='+Math.random() , {method: 'post', onLoading:function(request) {$('Trade').disabled=true;$('TradeTR').style.cursor='wait'; $('JobSelect').innerHTML='<b>正在读取数据,请等待...</b>' },onComplete:function(request) {$('Trade').disabled=false; $('TradeTR').style.cursor='auto';  }, parameters:'ReqSql=<%=server.URLEncode("select Job from FS_AP_Job where TID=")%>'+Parentvalue});
  159. }
  160. //得到二级菜单数据
  161. function GetCityOptions(Parentvalue)
  162. {
  163. if (Parentvalue=='')
  164. $('CitySelect').innerHTML='请选择';
  165. else
  166. new Ajax.Updater('CitySelect', '../SetNextOptions.asp?SelectName=City&EquValue=&sType=1&no-cache='+Math.random() , {method: 'post', onLoading:function(request) {$('Province').disabled=true;$('ProvinceTR').style.cursor='wait'; $('CitySelect').innerHTML='<b>正在读取数据,请等待...</b>' },onComplete:function(request) {$('Province').disabled=false; $('ProvinceTR').style.cursor='auto';  }, parameters: 'ReqSql=<%=server.URLEncode("select City from FS_AP_City where PID=")%>'+Parentvalue}); 
  167. }
  168. -->
  169. </script>
  170. <!-- Powered by: FoosunCMS4.0系列,Company:Foosun Inc. -->