<% Call SiteInfo %> 招聘信息
<%=WebContent()%>
<% Function WebMenu() response.Write "
  • 招聘信息
  • " response.Write "
  • 我的应聘
  • " End Function Function WebLocation() WebLocation = "招聘信息"&vbCrLf End Function Function WebContent() Dim rs, sql Dim idCount Dim pages pages = JobInfo Dim pagec Dim page page = CLng(request("Page")) Dim pagenc pagenc = 5 Dim pagenmax Dim pagenmin Dim pageprevious Dim pagenext Dim datafrom datafrom = "Qianbo_Jobs" Dim datawhere datawhere = "where ViewFlag " Dim sqlid Dim Myself, PATH_INFO, QUERY_STRING PATH_INFO = request.servervariables("PATH_INFO") QUERY_STRING = request.ServerVariables("QUERY_STRING")' If QUERY_STRING = "" Then Myself = PATH_INFO & "?" ElseIf InStr(PATH_INFO & "?" & QUERY_STRING, "Page=") = 0 Then Myself = PATH_INFO & "?" & QUERY_STRING & "&" Else Myself = Left(PATH_INFO & "?" & QUERY_STRING, InStr(PATH_INFO & "?" & QUERY_STRING, "Page=") -1) End If Dim taxis taxis = "order by id desc " Dim i sql = "select count(ID) as idCount from ["& datafrom &"]" & datawhere Set rs = server.CreateObject("adodb.recordset") rs.Open sql, conn, 0, 1 idCount = rs("idCount") If(idcount>0) Then If(idcount Mod pages = 0)Then pagec = Int(idcount / pages) Else pagec = Int(idcount / pages) + 1 End If sql = "select id from ["& datafrom &"] " & datawhere & taxis Set rs = server.CreateObject("adodb.recordset") rs.Open sql, conn, 1, 1 rs.pagesize = pages If page < 1 Then page = 1 If page > pagec Then page = pagec If pagec > 0 Then rs.absolutepage = page For i = 1 To rs.pagesize If rs.EOF Then Exit For If(i = 1)Then sqlid = rs("id") Else sqlid = sqlid &","&rs("id") End If rs.movenext Next End If If(idcount>0 And sqlid<>"") Then sql = "select * from ["& datafrom &"] where id in("& sqlid &") "&taxis Set rs = server.CreateObject("adodb.recordset") rs.Open sql, conn, 0, 1 txid=0 Response.Write "
    "&vbCrLf Response.Write " "&vbCrLf Response.Write " "&vbCrLf Response.Write " "&vbCrLf Response.Write " "&vbCrLf Response.Write " "&vbCrLf Response.Write " "&vbCrLf Response.Write " "&vbCrLf Response.Write "
    "&vbCrLf Response.Write " 职位名称"&vbCrLf Response.Write " "&vbCrLf Response.Write " 发布时间"&vbCrLf Response.Write " "&vbCrLf Response.Write " 截止时间"&vbCrLf Response.Write " "&vbCrLf Response.Write " 招聘部门"&vbCrLf Response.Write "
    "&vbCrLf Response.Write "
    "&vbCrLf While Not rs.EOF AutoLink = "JobsView.Asp?ID="&rs("ID")&"" txid=txid+1 if txid mod 2 = 0 then Response.Write "
    "&vbCrLf Response.Write " "&vbCrLf Response.Write " "&vbCrLf Response.Write " "&vbCrLf Response.Write " "&vbCrLf Response.Write " "&vbCrLf Response.Write " "&vbCrLf Response.Write " "&vbCrLf Response.Write "
    "&rs("JobName")&""&year(rs("StartDate"))&"-"&month(rs("StartDate"))&"-"&day(rs("StartDate"))&""&year(rs("EndDate"))&"-"&month(rs("EndDate"))&"-"&day(rs("EndDate"))&""&rs("eEmployer")&"
    "&vbCrLf Response.Write "
    "&vbCrLf else Response.Write "
    "&vbCrLf Response.Write " "&vbCrLf Response.Write " "&vbCrLf Response.Write " "&vbCrLf Response.Write " "&vbCrLf Response.Write " "&vbCrLf Response.Write " "&vbCrLf Response.Write " "&vbCrLf Response.Write "
    "&rs("JobName")&""&year(rs("StartDate"))&"-"&month(rs("StartDate"))&"-"&day(rs("StartDate"))&""&year(rs("EndDate"))&"-"&month(rs("EndDate"))&"-"&day(rs("EndDate"))&""&rs("eEmployer")&"
    "&vbCrLf Response.Write "
    "&vbCrLf end if rs.movenext Wend Response.Write ""&vbCrLf Else response.Write "
    暂无相关信息
    " Exit Function End If Response.Write ""&vbCrLf Response.Write " "&vbCrLf Response.Write " "&vbCrLf Response.Write " "&vbCrLf Response.Write "
    "&vbCrLf Response.Write "共"&idcount&"条记录 页次:"&page&"/"&pagec&" 每页:"&pages&"条记录" & vbCrLf pagenmin = page - pagenc pagenmax = page+pagenc If(pagenmin<1) Then pagenmin = 1 If(page>1) Then response.Write ("9 ") If page - (pagenc * 2 + 1)<= 0 Then pageprevious = 1 Else pageprevious = page - (pagenc * 2 + 1) End If If(pagenmin>1) Then response.Write ("3 ") If(pagenmax>pagec) Then pagenmax = pagec For i = pagenmin To pagenmax If(i = page) Then response.Write (" "& i &" ") Else response.Write ("["& i &"]") End If Next If page+(pagenc * 2 + 1)>= pagec Then pagenext = pagec Else pagenext = page+(pagenc * 2 + 1) End If If(pagenmax: ") If(page:") Response.Write "
    "&vbCrLf rs.Close Set rs = Nothing End Function %>