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

数据库编程

开发平台:

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. <%
  8. 'Copyright (c) 2006 Foosun Inc. Code by awen
  9. Dim Ap_Rs,Ap_Sql
  10. if not Session("FS_UserNumber")<>"" then response.Redirect("../lib/error.asp?ErrCodes=<li>你尚未登陆,或过期.</li>&ErrorUrl=../login.asp") : response.End()
  11. %>
  12. <html xmlns="http://www.w3.org/1999/xhtml">
  13. <title>已发布的招聘---网站内容管理系统</title>
  14. <meta name="keywords" content="风讯cms,cms,FoosunCMS,FoosunOA,FoosunVif,vif,风讯网站内容管理系统">
  15. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  16. <meta content="MSHTML 6.00.3790.2491" name="GENERATOR" />
  17. <meta name="Keywords" content="Foosun,FoosunCMS,Foosun Inc.,风讯,风讯网站内容管理系统,风讯系统,风讯新闻系统,风讯商城,风讯b2c,新闻系统,CMS,域名空间,asp,jsp,asp.net,SQL,SQL SERVER" />
  18. <link href="../images/skin/Css_<%=Request.Cookies("FoosunUserCookies")("UserLogin_Style_Num")%>/<%=Request.Cookies("FoosunUserCookies")("UserLogin_Style_Num")%>.css" rel="stylesheet" type="text/css">
  19. <script language="JavaScript" src="../../FS_Inc/CheckJs.js"></script>
  20. <script language="JavaScript" src="../../FS_Inc/coolWindowsCalendar.js"></script>
  21. <%if request.QueryString("Act")<>"Search" then%>
  22. <script language="JavaScript">
  23. <!--
  24. function chkinput()
  25. {
  26. example:Do.these('JobName',function(){return CheckContentLen('JobName','JobName_Alt','2-30')}) ;
  27. example:Do.these('JobDescription',function(){return CheckContentLen('JobDescription','JobDescription_Alt','2-65500')})  ;
  28. example:Do.these('WorkCity',function(){return CheckContentLen('WorkCity','WorkCity_Alt','2-20')})  ;
  29. example:Do.these('PublicDate',function(){return isEmpty('PublicDate','PublicDate_Alt') && valiateDate('PublicDate','PublicDate_Alt')})  ;
  30.   example:Do.these('EndDate',function(){return isEmpty('EndDate','EndDate_Alt') && valiateDate('EndDate','EndDate_Alt')})  ;
  31. example:Do.these('NeedNum',function(){return isEmpty('NeedNum','NeedNum_Alt') && isNumber('NeedNum','NeedNum_Alt','请使用整数',true)})  ;
  32. }
  33. -->
  34. </script>
  35. <%end if%>
  36. <head>
  37. <body>
  38. <table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" class="table">
  39.   <tr>
  40.     <td>
  41.       <!--#include file="../top.asp" -->
  42.     </td>
  43.   </tr>
  44. </table>
  45. <table width="98%" height="135" border="0" align="center" cellpadding="1" cellspacing="1" class="table">
  46.   
  47.     <tr class="back"> 
  48.       <td   colspan="2" class="xingmu" height="26"> <!--#include file="../Top_navi.asp" --> </td>
  49.     </tr>
  50.     <tr class="back"> 
  51.       <td width="18%" valign="top" class="hback"> <div align="left"> 
  52.           <!--#include file="../menu.asp" -->
  53.         </div></td>
  54.       <td width="82%" valign="top" class="hback"><table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" class="table">
  55.           <tr class="hback"> 
  56.             
  57.           <td class="hback"><strong>位置:</strong><a href="../../">网站首页</a> &gt;&gt; 
  58.             <a href="../main.asp">会员首页</a> &gt;&gt; <a href="job_applications.asp">招聘首页</a>-已发布的招聘</td>
  59.           </tr>
  60.         </table>
  61. <%
  62. '******************************************************************
  63. select case request.QueryString("Act")
  64. case "Add","Edit","Search"
  65. Add_Edit_Search
  66. case else
  67. response.Redirect("job_applications.asp")
  68. end select
  69. '******************************************************************
  70. Sub Add_Edit_Search()
  71. Dim PID,Bol_IsEdit,ResumeLang
  72. Bol_IsEdit = false
  73. if request.QueryString("Act")="Edit" then 
  74. PID = request.QueryString("PID")
  75. if PID="" then response.Redirect("../lib/error.asp?ErrorUrl=&ErrCodes=<li>必要的ID没有提供</li>") : response.End()
  76. Ap_Sql = "select PID,JobName,JobDescription,ResumeLang,WorkCity,PublicDate,EndDate,NeedNum from FS_AP_Job_Public where UserNumber = '"&Session("FS_UserNumber")&"' and PID="&PID
  77. Set Ap_Rs = CreateObject(G_FS_RS)
  78. Ap_Rs.Open Ap_Sql,Conn,1,1
  79. if Ap_Rs.eof then response.Redirect("../lib/error.asp?ErrorUrl=&ErrCodes=<li>没有相关的内容,或该内容已不存在.</li>") : response.End()
  80. Bol_IsEdit = True
  81. ResumeLang = Ap_Rs("ResumeLang")
  82. end if
  83. %>
  84. <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
  85.   <form name="form1" id="form1" onsubmit="return chkinput();" <%if request.QueryString("Act")<>"Search" then response.Write(" method=""post"" action=""AP_Job_Public_Action.asp?Act=Save""") else response.Write(" method=""get"" action=""AP_Job_Public_List.asp""") end if%>>
  86.     <tr  class="hback"> 
  87.       <td colspan="3" align="left" class="xingmu" ><%if Bol_IsEdit then
  88.   response.Write("修改招聘信息<input type=""hidden"" name=""PID"" ID=""PID"" value="""&Ap_Rs("PID")&""">")
  89.   elseif request.QueryString("Act")="Search" then
  90.   response.Write("查询已发布的招聘信息") 
  91.   else
  92.   response.Write("发布招聘信息")
  93.   end if%></td>
  94. </tr>
  95.   <tr  class="hback"> 
  96.     <td colspan="3" height="25">
  97.  <a href="AP_Job_Public_List.asp">已发布的信息</a> | <a href="AP_Job_Public_AddUpdate.asp?Act=Add">添加招聘信息</a> | <a href="AP_Job_Public_AddUpdate.asp?Act=Search">查询招聘信息</a>
  98. </td>
  99.   </tr>
  100. <%if request.QueryString("Act")="Search" then%>  
  101.     <tr  class="hback"> 
  102.       <td align="right">ID序号</td>
  103.       <td>
  104.   <input type="text" name="PID" id="PID" size="10" maxlength="10" value="">
  105.       </td>
  106.     </tr>  
  107. <%end if%>  
  108.     <tr  class="hback"> 
  109.       <td align="right">职位名称</td>
  110.       <td>
  111.   <input type="text" name="JobName" id="JobName" size="60" maxlength="30" value="<%if Bol_IsEdit then response.Write(Ap_Rs("JobName")) end if%>"><span id="JobName_Alt"></span>
  112.       </td>
  113.     </tr>
  114.     <tr  class="hback"> 
  115.       <td align="right">职位描述</td>
  116.       <td>
  117.   <textarea name="JobDescription" id="JobDescription" rows="20" cols="60"><%if Bol_IsEdit then response.Write(Ap_Rs("JobDescription")) end if%></textarea><span id="JobDescription_Alt"></span>
  118.       </td>
  119.     </tr>
  120.     <tr  class="hback"> 
  121.       <td align="right">接受简历语言</td>
  122.       <td>
  123. <select name="ResumeLang" id="ResumeLang">
  124. <%=PrintOption(ResumeLang,"无:无,英语:英语,粤语:粤语,日语:日语,法语:法语,德语:德语,俄语:俄语,韩语:韩语,西班牙语:西班牙语,葡萄牙语:葡萄牙语")%>
  125. </select><span id="ResumeLang_Alt"></span>
  126.       </td>
  127.     </tr>
  128.     <tr  class="hback"> 
  129.       <td align="right">工作地点</td>
  130.       <td>
  131.   <input type="text" name="WorkCity" id="WorkCity" size="60" maxlength="30" value="<%if Bol_IsEdit then response.Write(Ap_Rs("WorkCity")) end if%>"><span id="WorkCity_Alt"></span>
  132.       </td>
  133.     </tr>
  134.     <tr  class="hback"> 
  135.       <td align="right">发布日期</td>
  136.       <td>
  137.   <input type="text" name="PublicDate" id="PublicDate" onfocus="setday(this)" style="WIDTH: 100px; HEIGHT: 22px" maskType="shortDate" value="<%if Bol_IsEdit then response.Write(Ap_Rs("PublicDate")) else if request.QueryString("Act")<>"Search" then  response.Write(date()) end if end if%>">
  138.   <IMG id="img3" onclick="PublicDate.focus()" src="../../FS_Inc/calendar.bmp" align="absBottom"><span id="PublicDate_Alt"></span>
  139.       </td>
  140.     </tr>
  141.     <tr  class="hback"> 
  142.       <td align="right">有效日期</td>
  143.       <td>
  144.   <input type="text" name="EndDate" id="EndDate"  onfocus="setday(this)" style="WIDTH: 100px; HEIGHT: 22px" maskType="shortDate" value="<%if Bol_IsEdit then response.Write(Ap_Rs("EndDate")) end if%>">
  145.   <IMG id="img4" onclick="EndDate.focus()" src="../../FS_Inc/calendar.bmp" align="absBottom"><span id="EndDate_Alt"></span>
  146.       </td>
  147.     </tr>
  148.     <tr  class="hback"> 
  149.       <td align="right">招聘人数</td>
  150.       <td>
  151.   <input type="text" name="NeedNum" id="NeedNum" size="60" maxlength="30" value="<%if Bol_IsEdit then response.Write(Ap_Rs("NeedNum")) end if%>"><span id="NeedNum_Alt"></span>
  152.       </td>
  153.     </tr>
  154.     <tr  class="hback"> 
  155.       <td colspan="4">
  156.   <table border="0" width="100%" cellpadding="0" cellspacing="0">
  157.           <tr> 
  158.             <td align="center"> <input type="submit"value=" 确定发布 " /> 
  159.               &nbsp; <input type="reset" value=" 重置 " />
  160.      &nbsp; <input type="button" name="btn_todel" value=" 删除 " onClick="if(confirm('确定删除该项目吗?')) location='<%=server.URLEncode("AP_Job_Public_AddUpdate.asp?Act=Del&PID="&PID)%>'">
  161.             </td>
  162.           </tr>
  163.         </table>
  164.       </td>
  165.     </tr>
  166.   </form>
  167. </table>
  168. <%
  169. End Sub
  170. %>
  171.        </td>
  172.     </tr>
  173.     <tr class="back"> 
  174.       <td height="20" colspan="2" class="xingmu"> <div align="left"> 
  175.           <!--#include file="../Copyright.asp" -->
  176.         </div></td>
  177.     </tr>
  178.  
  179. </table>
  180. <%
  181. Set Fs_User = Nothing
  182. %>
  183. <!-- Powered by: FoosunCMS4.0系列,Company:Foosun Inc. -->