Job_Add.asp
Upload User: ahxunteng
Upload Date: 2022-05-16
Package Size: 1606k
Code Size: 4k
Development Platform:

VBScript

  1. <!--#include file="bsconfig.asp"-->
  2. <%if Request.QueryString("no")="eshop" then%>
  3. <%
  4. Duix=server.htmlencode(Trim(Request("Duix")))
  5. Rens=server.htmlencode(Trim(Request("Rens")))
  6. Did=server.htmlencode(Trim(Request("Did")))
  7. Daiy=server.htmlencode(Trim(Request("Daiy")))
  8. Yaoq=server.htmlencode(Trim(Request("Yaoq")))
  9. Qix=server.htmlencode(Trim(Request("Qix")))
  10. %>
  11. <%
  12. If Duix="" Then
  13. response.write "SORRY <br>"
  14. response.write "内容不能为空!!<a href=""javascript:history.go(-1)"">返回重输</a>"
  15. response.end
  16. end if
  17. If Rens="" Then
  18. response.write "SORRY <br>"
  19. response.write "内容不能为空!!<a href=""javascript:history.go(-1)"">返回重输</a>"
  20. response.end
  21. end if
  22. If Did="" Then
  23. response.write "SORRY <br>"
  24. response.write "内容不能为空!!<a href=""javascript:history.go(-1)"">返回重输</a>"
  25. response.end
  26. end if
  27. If Daiy="" Then
  28. response.write "SORRY <br>"
  29. response.write "内容不能为空!!<a href=""javascript:history.go(-1)"">返回重输</a>"
  30. response.end
  31. end if
  32. If Yaoq="" Then
  33. response.write "SORRY <br>"
  34. response.write "内容不能为空!!<a href=""javascript:history.go(-1)"">返回重输</a>"
  35. response.end
  36. end if
  37. If Qix="" Then
  38. response.write "SORRY <br>"
  39. response.write "内容不能为空!!<a href=""javascript:history.go(-1)"">返回重输</a>"
  40. response.end
  41. end if
  42. Set rs = Server.CreateObject("ADODB.Recordset")
  43. sql="select * from Job "
  44. rs.open sql,conn,1,3
  45. rs.addnew
  46. rs("Duix")=Duix
  47. rs("Rens")=Rens
  48. rs("Did")=Did
  49. rs("Daiy")=Daiy
  50. rs("Yaoq")=Yaoq
  51. rs("Qix")=Qix
  52. rs.update
  53. rs.close
  54. response.redirect "Job.asp"
  55. end if
  56. %>
  57. <!-- #include file="Inc/Head.asp" -->
  58. <BR>
  59. <table cellpadding="2" cellspacing="1" border="0" width="560" align="center" class="a2">
  60. <tr>
  61. <td class="a1" height="25" align="center"><strong>发布招聘信息</strong></td>
  62. </tr>
  63. <tr class="a4">
  64. <td align="center">
  65.       <br>
  66.       <table width="550" border="0" cellspacing="0" cellpadding="0">
  67.         <tr> 
  68. <form method="post" action="Job_Add.asp?no=eshop"><td><div align="center"> 
  69. <table width="100%" border="0" cellspacing="2" cellpadding="3">
  70. <tr> 
  71. <td width="19%" height="25" bgcolor="#C0C0C0"> <div align="center">招聘对象</div></td>
  72. <td width="81%" bgcolor="#E3E3E3">
  73. <input name="Duix" type="text" class="inputtext" id="Duix" size="25" maxlength="30"></td>
  74. </tr>
  75. <tr> 
  76. <td height="22" bgcolor="#C0C0C0"> 
  77. <div align="center">招聘人数</div></td>
  78. <td bgcolor="#E3E3E3"><input name="Rens" type="text" class="inputtext" id="Rens" size="5" maxlength="30">
  79. 人</td>
  80. </tr>
  81. <tr> 
  82. <td height="22" bgcolor="#C0C0C0"> <div align="center">工作地点</div></td>
  83. <td height="-4" bgcolor="#E3E3E3">
  84. <input name="Did" type="text" class="inputtext" id="Did" size="30" maxlength="50"> 
  85. </td>
  86. </tr>
  87. <tr> 
  88. <td height="22" bgcolor="#C0C0C0"><div align="center">工资待遇</div></td>
  89. <td height="-1" bgcolor="#E3E3E3">
  90. <input name="Daiy" type="text" class="inputtext" id="Daiy" size="20" maxlength="50"></td>
  91. </tr>
  92. <tr> 
  93. <td height="22" bgcolor="#C0C0C0">
  94. <div align="center">发布日期</div></td>
  95. <td height="-3" bgcolor="#E3E3E3"> <%=Date()%></td>
  96. </tr>
  97. <tr> 
  98. <td height="22" bgcolor="#C0C0C0"><div align="center">有效期限</div></td>
  99. <td height="0" bgcolor="#E3E3E3"><input name="Qix" type="text" class="inputtext" id="Qix" size="5" maxlength="30">
  100. 天</td>
  101. </tr>
  102. <tr> 
  103. <td height="22" bgcolor="#C0C0C0"><div align="center">招聘要求</div></td>
  104. <td height="10" bgcolor="#E3E3E3">
  105. <textarea name="Yaoq" cols="40" rows="5" class="inputtext" id="Yaoq"></textarea></td>
  106. </tr>
  107. <tr> 
  108. <td height="25" colspan="2" bgcolor="#E3E3E3"> <div align="center"> 
  109. <input type="submit" value="确定">
  110. &nbsp; 
  111. <input type="reset" value="取消">
  112. </div></td>
  113. </tr>
  114. </table>
  115. </div></td></form>
  116.         </tr>
  117.       </table>
  118.       <br>
  119. </td>
  120. </tr>
  121. </table>
  122. <BR>
  123. <%htmlend%>