<!--#include file="conn.asp" -->
<%
strCurrMenu="⑨menuid⑨"
ThisPage=request.ServerVariables("URL")
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>⑨title⑨</title>
<link href="common/style.css" rel="stylesheet">
</head>

<body  bgcolor="#CCCCCC" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" BodyBegin>
<!--#include file="top.asp"-->

<table width="778" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td height="54" background="images/about.gif"> 
      <table width="100%" cellspacing="0" cellpadding="0">
        <tr> 
          <td width="18%" rowspan="2"><div align="center"><font face="Verdana, Arial, Helvetica, sans-serif"><b><font color="#333333"><b><strong>最新招聘</strong></b></font></b></font></div></td>
          <td width="8%" rowspan="2">&nbsp;</td>
          <td width="74%" class="p1"><strong>⑨thispage⑨</strong></td>
        </tr>
        <tr>
          <td><a href="."><font color="CD4402">首页</font></a> <font color="CD4402">- 
            <font color="CD4402">⑨thispage⑨</font></font></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td height="327" valign="top" background="images/bgA.gif">
<table width="100%" cellspacing="0" cellpadding="0">
        <tr> 
          <td width="21%" valign="top"><table width="100%" cellspacing="0" cellpadding="0">
              <tr> 
                <td height="115" valign="top"> <table width="100%" height="36" border="0" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td height="10" colspan="2"></td>
                    </tr>
                    <%
								  '开始输出分类
								  strSQL="Select top 8 id,j_title From web_job Where mn_id=" & strCurrMenu & " " & strQuery & " Order by j_create Desc"
								  Set rsClass=Server.CreateObject("ADODB.RecordSet")
								  rsClass.open strSQL,conn,1,1
								  ClassCount=rsClass.recordcount
								  if ClassCount<=0 then response.Write("暂时没有内容！")
								  for i=1 to ClassCount
								  %>
                    <tr> 
                      <td width="27" height="26" align="right" > <li></td>
                      <td width="133" ><a href="jobshow.asp?mnid=<%=strCurrMenu%>&id=<%=rsClass("id")%>&classname=⑨thispage⑨"><%=trim(rsClass("j_title"))%></a></td>
                    </tr>
                    <%
									rsClass.movenext
								next
								%>
                  </table></td>
              </tr>
              <tr>
                <td valign="top"> 
                  <!--Vote Begin-->
                  <%
							isVote=GetKey("Enable",WebUserID,"vote")
							if isVote="Yes" then
							%>
                  <table width="100%" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td height="34" background="images/abouta.gif"><div align="center">=== 
                          网上调查 ===</div></td>
                    </tr>
                    <tr> 
                      <td>
<script language="JavaScript" src="admin/vote/viewvote.asp"></script>
                      </td>
                    </tr>
                  </table>
                  <%
							  end if
							  %>
                  <!--Vote End-->
                </td>
              </tr>
              <tr>
                <td valign="top"> 
                  <!--Link Begin-->
                  <%
							isLink=GetKey("Enable",WebUserID,"link")
							if isLink="Yes" then
							%>
                  <table width="100%" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td height="34" background="images/abouta.gif"><div align="center">=== 
                          友情链接 ===</div></td>
                    </tr>
                    <tr> 
                      <td valign="middle"> <div align="center">
                          <script language="JavaScript" src="admin/link/link.asp"></script>
                        </div>
                        </td>
                    </tr>
                  </table>
                  <%
							  end if
							  %>
                  <!--Link End-->
                </td>
              </tr>
            </table> </td>
          <td width="79%" valign="top"><table width="96%" border="0" cellspacing="0" cellpadding="0" align="center">
              <tr> 
                <td><table width="85%" border="0" align="center"  cellspacing="0" cellpadding="0">
                    <%
										'读取招聘的属性，以确定显示那个字段
										showAddress=GetKey("Address",WebUserID,"job_" & strCurrMenu )
										showCount=GetKey("Count",WebUserID,"job_" & strCurrMenu )
										showExpires=GetKey("Expires",WebUserID,"job_" & strCurrMenu )
										showPay=GetKey("Pay",WebUserID,"job_" & strCurrMenu )
										showDetail=GetKey("Detail",WebUserID,"job_" & strCurrMenu )
										%>
                    <%
										'从这开始读数据
										strSQL="Select * From web_job Where mn_id=" & strCurrMenu & " " & strQuery & " Order by j_create Desc"
										rs.open strSQL,conn,1,1
										'分页显示初始化
										page=GetVariable("page")
										if page="" then
											page=1
										else
											page=Cint(page)
										end if
										
										Section=GetVariable("section")
										if Section="" then
											Section=1
										else
											Section=Cint(Section)
										end if
										'变量赋值
										intPageSize=6		'每页显示记录数
										intSectionSize=5		'多少页为一段，像GOOGLE一样
										PrevSectionText="<FONT face=webdings>7</FONT>"		'上一段的链接文字
										NextSectionText="<FONT face=webdings>8</FONT>"		'下一段的链接文字
										PrevPageText="<FONT face=webdings>3</FONT>"			'上页的链接文字	
										NextPageText="<FONT face=webdings>4</FONT>"			'下页的链接文字
										
										strPageUrl="?t="
										
										rs.pagesize=intPageSize
										intCount=rs.RecordCount 
										intPageCount=rs.pagecount
										intSectionCount=(intPageCount - 1) \ intSectionSize + 1
										if intCount>0 then
											rs.AbsolutePage=page 
										else 
											response.Write("暂时没有内容！")
										end if 
										%>
                    <%
										  '开始输出最新新闻
										   for i=1 to intPageSize
												if rs.eof then exit For
												JobID=rs("id")
												if i mod 2=0 then
													strColor="#ACCDFF"
												else
													strColor="#FF9900"
												end if
										  %>
                    <tr> 
                      <td valign="top" height="2">&nbsp;</td>
                    </tr>
                    <tr> 
                      <td height="2"> <table width="100%" border="0"  cellspacing="0" cellpadding="0">
                          <tr> 
                            <td height="24"><strong><font color="#006699"><%=i%>.<%=trim(rs("j_title"))%> 
                              </font> </strong></td>
                          </tr>
                          <tr> 
                            <td height="10" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#990000">
                                <tr> 
                                  <td height="1" bgcolor="#666666"></td>
                                </tr>
                              </table></td>
                          </tr>
                          <tr> 
                            <td> 
                              <% if showExpires<>"none" then%>
                              <strong> 招聘期限: </strong><%=trim(rs("j_expires"))%><br> 
                              <%end if%>
                              <% if showAddress<>"none" then%>
                              <strong>工作地点: </strong><%=trim(rs("j_addr"))%><br> 
                              <%end if%>
                              <% if showCount<>"none" then%>
                              <strong>招聘人数:</strong> <%=trim(rs("j_count"))%><br> 
                              <%end if%>
                              <% if showPay<>"none" then%>
                              <strong>职位工资: </strong><%=trim(rs("j_pay"))%> 
                              <%end if%>
                            </td>
                          </tr>
                          <tr> 
                            <td height="18"> <div align="right"><b> 
                                <% if showDetail<>"none" then%>
                                <a href="jobshow.asp?mnid=<%=strCurrMenu%>&id=<%=JobID%>&classname=⑨thispage⑨"><font color="#006699">详细内容.. 
                                </font></a> 
                                <%end if%>
                                </b></div></td>
                          </tr>
                        </table></td>
                    </tr>
                    <%
								rs.movenext
							next
							%>
                    <tr> 
                      <td valign="top">&nbsp;</td>
                    </tr>
                  </table>
                  <br> <table width="92%" border="0" align="center">
                    <tr> 
                      <td></td>
                    </tr>
                    <tr> 
                      <td height="28" align="right" ><table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr> 
                            <td align="right"> 共有<%=intCount%>记录，分<%=intPageCount%>页，当前页<%=Page%>，每页显示<%=intPageSize%>条记录 
                              <%
			'计算每一段的开始页
			intStarPage=(Section-2) * intSectionSize + 1
			'前一段
			if Section<=1 then
				response.Write(PrevSectionText & " ")
			else
				response.Write("<a href='" & strPageUrl & "&page=" & intStarPage & "&section=" & Section-1 & "'>" & PrevSectionText & "</a> ")
			end if 
			
			'显示页码列表
			response.Write("第")
			intStarPage=(Section-1) * intSectionSize + 1
		    for p=intStarPage to intStarPage + intSectionSize - 1
				if p > intPageCount then exit for
				if p=page then
		    		response.Write("<strong>[" & p & "]</strong> ")
				else
		    		response.Write("<a href='" & strPageUrl & "&page=" & p & "&section=" & Section & "'>[" & p & "]</a> ")
				end if	
		    next
			response.Write("页")
			'后一段
			intStarPage=(Section) * intSectionSize + 1
			if Section>=intSectionCount then
				response.Write(" " & NextSectionText)
			else
				response.Write(" <a href='" & strPageUrl & "&page=" & intStarPage & "&section=" & Section+1 & "'>" & NextSectionText & "</a> ")
			end if 
		  %>
                              　 </td>
                          </tr>
                        </table></td>
                    </tr>
                    <tr> 
                      <td height="23" align="right" >&nbsp;</td>
                    </tr>
                  </table></td>
              </tr>
              <tr> 
                <td>&nbsp;</td>
              </tr>
            </table></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table width="778"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td height="54" background="images/home_copy.gif"><table width="99%" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td height="44" bgcolor="f5f5f5"> 
            <div align="center">⑨footnote⑨<br>⑨ICP⑨</div></td>
        </tr>
      </table></td>
  </tr>
</table>
<script language="JavaScript" src="common/init.js"></script><br><script language=Javascript src="common/tranbig5.Js"></script>
</body>
</html>
