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

数据库编程

开发平台:

ASP/ASPX

  1. <%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%> 
  2. <% Option Explicit %>
  3. <%Session.CodePage=936%> 
  4. <!--#include file="../../FS_Inc/Const.asp" -->
  5. <!--#include file="../../FS_Inc/Function.asp" -->
  6. <!--#include file="../../FS_InterFace/MF_Function.asp" -->
  7. <!--#include file="../lib/strlib.asp" -->
  8. <!--#include file="../lib/UserCheck.asp" -->
  9. <%
  10. Response.Charset="GB2312"
  11. Dim title,condition,rs,i,pid
  12. condition=request.QueryString("condition")
  13. pid=NoSqlHack(trim(request.QueryString("pid")))
  14. if condition= "jobname" then
  15. title="请选择你要搜索的职位"
  16. elseif condition= "workcity" then
  17. title="请选择你期望的工作地点"
  18. elseif condition= "workcity2" then
  19. title="请选择你期望的工作地点"
  20. else
  21. title="请选择要搜索的时间范围"
  22. end if
  23. %>
  24. <table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" class="table">
  25. <tr class="xingmu">
  26. <td align="center" colspan="9"><%=title%></td>
  27. <td width="10%"><a href="#" onclick="javascript:this.parentNode.parentNode.parentNode.parentNode.parentNode.style.display='none'" class="sd">[关闭]</a></td>
  28. </tr>
  29. <%
  30. i=0
  31. if condition="jobname" then
  32. Set Rs=conn.execute("select distinct jobname from FS_AP_Job_Public")
  33. while not rs.eof
  34. if i Mod 10=0 then Response.Write("<tr>"&vbcrlf)
  35. i=i+1
  36. Response.Write("<td height='25' class='hback' onMouseOver=""this.className='hback_1'"" onMouseOut=""this.className='hback'"">&nbsp;")
  37. Response.Write("<a href='#' onClick=""chooseIt('JobName','"&Rs("jobname")&"')"">"&Rs("jobname")&"</a>")
  38. Response.Write("&nbsp;</td>")
  39. if i Mod 10=0 then Response.Write("</tr>"&vbcrlf)
  40. rs.movenext
  41. wend
  42. if i Mod 10<>0 then
  43. while  i Mod 10<>0
  44. Response.Write("<td class='hback'>&nbsp;</td>")
  45. i=i+1
  46. Wend
  47. Response.Write("</tr>")
  48. End if
  49. Elseif condition="workcity" then
  50. set Rs=Conn.execute("select pid,Province from FS_AP_Province" )
  51. while not rs.eof
  52. if i Mod 10=0 then Response.Write("<tr>"&vbcrlf)
  53. i=i+1
  54. Response.Write("<td height='25' class='hback' onMouseOver=""this.className='hback_1'"" onMouseOut=""this.className='hback'"">&nbsp;")
  55. Response.Write("<a href='#' onClick=""chooseIt('WorkCity','"&Rs("Province")&"','"&Rs("pID")&"')"">"&Rs("Province")&"</a>")
  56. Response.Write("&nbsp;</td>")
  57. if i Mod 10=0 then Response.Write("</tr>"&vbcrlf)
  58. rs.movenext
  59. wend
  60. if i Mod 10<>0 then
  61. while  i Mod 10<>0
  62. Response.Write("<td class='hback'>&nbsp;</td>")
  63. i=i+1
  64. Wend
  65. Response.Write("</tr>")
  66. End if
  67. Elseif condition="workcity2" then
  68. if pid="" then pid=0
  69. set Rs=Conn.execute("select City from FS_AP_City where pid="&pid )
  70. while not rs.eof
  71. if i Mod 10=0 then Response.Write("<tr>"&vbcrlf)
  72. i=i+1
  73. Response.Write("<td width='10%' height='25' class='hback' onMouseOver=""this.className='hback_1'"" onMouseOut=""this.className='hback'"">&nbsp;")
  74. Response.Write("<a href='#' onClick=""chooseIt('WorkCity','"&Rs("City")&"')"">"&Rs("City")&"</a>")
  75. Response.Write("&nbsp;</td>")
  76. if i Mod 10=0 then Response.Write("</tr>"&vbcrlf)
  77. rs.movenext
  78. wend
  79. if i Mod 10<>0 then
  80. while  i Mod 10<>0
  81. Response.Write("<td class='hback'>&nbsp;</td>")
  82. i=i+1
  83. Wend
  84. Response.Write("</tr>")
  85. End if
  86. Elseif condition="publicdate" then
  87. Response.Write("<tr>"&vbcrlf)
  88. Response.Write("<td width='10%' height='25' class='hback' onMouseOver=""this.className='hback_1'"" onMouseOut=""this.className='hback'"">&nbsp;")
  89. Response.Write("<a href='#' onClick=""chooseIt('PublicDate','近一天','','1')"">近一天</a>")
  90. Response.Write("&nbsp;</td>")
  91. Response.Write("<td width='10%' height='25' class='hback' onMouseOver=""this.className='hback_1'"" onMouseOut=""this.className='hback'"">&nbsp;")
  92. Response.Write("<a href='#' onClick=""chooseIt('PublicDate','近两天','','2')"">近两天</a>")
  93. Response.Write("&nbsp;</td>")
  94. Response.Write("<td width='10%' height='25' class='hback' onMouseOver=""this.className='hback_1'"" onMouseOut=""this.className='hback'"">&nbsp;")
  95. Response.Write("<a href='#' onClick=""chooseIt('PublicDate','近三天','','3')"">近三天</a>")
  96. Response.Write("&nbsp;</td>")
  97. Response.Write("<td width='10%' height='25' class='hback' onMouseOver=""this.className='hback_1'"" onMouseOut=""this.className='hback'"">&nbsp;")
  98. Response.Write("<a href='#' onClick=""chooseIt('PublicDate','近一周','','7')"">近一周</a>")
  99. Response.Write("&nbsp;</td>")
  100. Response.Write("<td width='10%' height='25' class='hback' onMouseOver=""this.className='hback_1'"" onMouseOut=""this.className='hback'"">&nbsp;")
  101. Response.Write("<a href='#' onClick=""chooseIt('PublicDate','近两周','','14')"">近两周</a>")
  102. Response.Write("&nbsp;</td>")
  103. Response.Write("<td width='10%' height='25' class='hback' onMouseOver=""this.className='hback_1'"" onMouseOut=""this.className='hback'"">&nbsp;")
  104. Response.Write("<a href='#' onClick=""chooseIt('PublicDate','近一月','','30')"">近一月</a>")
  105. Response.Write("&nbsp;</td>")
  106. Response.Write("<td width='10%' height='25' class='hback' onMouseOver=""this.className='hback_1'"" onMouseOut=""this.className='hback'"">&nbsp;")
  107. Response.Write("<a href='#' onClick=""chooseIt('PublicDate','近六周','','42')"">近六周</a>")
  108. Response.Write("&nbsp;</td>")
  109. Response.Write("<td width='10%' height='25' class='hback' onMouseOver=""this.className='hback_1'"" onMouseOut=""this.className='hback'"">&nbsp;")
  110. Response.Write("<a href='#' onClick=""chooseIt('PublicDate','近两月','','60')"">近两月</a>")
  111. Response.Write("&nbsp;</td>")
  112. Response.Write("<td class='hback'>&nbsp;</td>")
  113. Response.Write("<td class='hback'>&nbsp;</td>")
  114. Response.Write("</tr>"&vbcrlf)
  115. End if
  116. %>
  117. </table>
  118. <%
  119. Conn.close
  120. User_Conn.close
  121. Set Conn=nothing
  122. Set User_Conn=nothing
  123. %>