<!--#include file="conn.asp" -->
<%
strCurrMenu="⑨menuid⑨"
ThisPage=request.ServerVariables("URL")
strQuery=""
strTitle="最新发布"
if GetVariable("class")<>"" then
	SourCode=conn.execute("Select c_code From web_news_class Where mn_id=" & strCurrMenu & " and id="&GetVariable("class"))(0)
	strQuery=strQuery & " And c_code Like '" & SourCode &"%'"
	strTitle=GetVariable("classname")
end if

if GetVariable("key")<>"" then
	strQuery=strQuery & " And (nTitle Like '%" & GetVariable("key") & "%' or nHtmlText like '%" & GetVariable("key") & "%' or nKey like '%" & GetVariable("key") & "%') "
	strTitle="搜索：" & GetVariable("key")
end if

'从这开始读数据
strSQL="Select * From v_web_news Where nAudit<>0 " & strQuery & " And mn_id=" & strCurrMenu & " Order by ID 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=15		'每页显示记录数
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="?class=" & GetVariable("class") & "&classname=" & GetVariable("classname") & "&key=" & GetVariable("key") & "&mnid=" & strCurrMenu

rs.pagesize=intPageSize
intCount=rs.RecordCount 
intPageCount=rs.pagecount
intSectionCount=(intPageCount - 1) \ intSectionSize + 1
if intCount>0 then
	rs.AbsolutePage=page 
end if 
%>

<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="common/style.css" type="text/css">
<TITLE>⑨title⑨</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
</HEAD>
<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 BodyBegin>
<div align="center">
  <center>
  <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse; border-right-width:0; border-top-width:0" bordercolor="#808080" id="AutoNumber1" bgcolor="#808080">
    <tr>
      <td width="100%" style="border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium">
          <TABLE WIDTH=760 BORDER=0 CELLPADDING=0 CELLSPACING=0 style="border-collapse: collapse" bordercolor="#111111" align="center">
            <TR> 
              <TD background="images/layout_01.jpg" ROWSPAN=3 width="254"> 
                <table width="100%" border="0">
                  <tr> 
                    <td height="52"> 
                      <div align="center">⑨logo⑨</div>
                    </td>
                  </tr>
                  <tr> 
                    <td height="47"> 
                      <div align="center"><strong><font style="font-size:25px">⑨company⑨</font></strong></div>
                    </td>
                  </tr>
                </table>
              </TD>
              <TD> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="506" height="115">
                  <param name="movie" value="layout.swf">
                  <param name="quality" value="high">
                  <embed src="layout.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="506" height="115">
                  </embed> 
                </object> </TD>
              <TD width="1"> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=115 ALT=""></TD>
            </TR>
            <TR> 
              <TD background="images/layout_03.jpg" height="34"> 
                <table width="96%" border="0" align="center" cellspacing="0" cellpadding="0">
                  <tr>
                    <td>
					<img src="images/d.gif" width="8" height="7" hspace="4">新闻分类：
								              <%
									'开始输出分类
									strcode=" c_code like '"&SourCode&"____'"
									strSQL="Select * From web_news_class Where mn_id=" & strCurrMenu&" and " & strcode & "  Order by c_code"
									'response.Write(strsql)
									Set rsClass=Server.CreateObject("ADODB.RecordSet")
									rsClass.open strSQL,conn,1,1
									for i=1 to rsClass.recordcount
									%>
									<a href="?class=<%=rsClass("id")%>&classname=<%=trim(rsClass("c_name"))%>&mnid=<%=strCurrMenu%>"><%=trim(rsClass("c_name"))%></a> | 				  
								<%
									rsClass.movenext
								next
								%>
					</td>
                  </tr>
                </table>
              </TD>
              <TD width="1"></TD>
            </TR>
            <TR> 
              <TD> <IMG SRC="images/layout_04.jpg" WIDTH=506 HEIGHT=23 ALT=""></TD>
              <TD width="1"> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=23 ALT=""></TD>
            </TR>
            <TR> 
              <TD width="254" rowspan="10" valign="top" background="images/layout_18.jpg"> 
                <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" id="AutoNumber3">
                  <tr> 
                    <td> <IMG SRC="images/layout_05.jpg" WIDTH=254 HEIGHT=20 ALT=""></td>
                  </tr>
                </table>
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr> 
                    <td width="230" height="280" valign="top"> 
                      <table width="95%" border="0" cellspacing="0" cellpadding="0">                        <tr id="Item" style="display:none"> 
                          <td width="100%" height="35"><table width="241" height="35" border="0" cellpadding="0" cellspacing="0" background="images/layout_07.jpg">
                              <tr> 
                                <td width="89" height="35">&nbsp;</td>
                                <td width="152" class="fs-14px"><font color="#750000"><a href="javascript:;" id="Menu">一级栏目</a></td>
                              </tr>
                            </table></td>
                        </tr>
<tr id="Item" style="display:none"> 
                          <td width="100%" height="35"><table width="241" height="35" border="0" cellpadding="0" cellspacing="0" background="images/layout_07.jpg">
                              <tr> 
                                <td width="89" height="35">&nbsp;</td>
                                <td width="152" class="fs-14px"><font color="#750000"><a href="javascript:;" id="Menu">一级栏目</a></td>
                              </tr>
                            </table></td>
                        </tr>                        <tr id="Item" style="display:none"> 
                          <td width="100%" height="35"><table width="241" height="35" border="0" cellpadding="0" cellspacing="0" background="images/layout_07.jpg">
                              <tr> 
                                <td width="89" height="35">&nbsp;</td>
                                <td width="152" class="fs-14px"><font color="#750000"><a href="javascript:;" id="Menu">一级栏目</a></td>
                              </tr>
                            </table></td>
                        </tr>
<tr id="Item" style="display:none"> 
                          <td width="100%" height="35"><table width="241" height="35" border="0" cellpadding="0" cellspacing="0" background="images/layout_07.jpg">
                              <tr> 
                                <td width="89" height="35">&nbsp;</td>
                                <td width="152" class="fs-14px"><font color="#750000"><a href="javascript:;" id="Menu">一级栏目</a></td>
                              </tr>
                            </table></td>
                        </tr>                        <tr id="Item" style="display:none"> 
                          <td width="100%" height="35"><table width="241" height="35" border="0" cellpadding="0" cellspacing="0" background="images/layout_07.jpg">
                              <tr> 
                                <td width="89" height="35">&nbsp;</td>
                                <td width="152" class="fs-14px"><font color="#750000"><a href="javascript:;" id="Menu">一级栏目</a></td>
                              </tr>
                            </table></td>
                        </tr>
<tr id="Item" style="display:none"> 
                          <td width="100%" height="35"><table width="241" height="35" border="0" cellpadding="0" cellspacing="0" background="images/layout_07.jpg">
                              <tr> 
                                <td width="89" height="35">&nbsp;</td>
                                <td width="152" class="fs-14px"><font color="#750000"><a href="javascript:;" id="Menu">一级栏目</a></td>
                              </tr>
                            </table></td>
                        </tr>                        <tr id="Item" style="display:none"> 
                          <td width="100%" height="35"><table width="241" height="35" border="0" cellpadding="0" cellspacing="0" background="images/layout_07.jpg">
                              <tr> 
                                <td width="89" height="35">&nbsp;</td>
                                <td width="152" class="fs-14px"><font color="#750000"><a href="javascript:;" id="Menu">一级栏目</a></td>
                              </tr>
                            </table></td>
                        </tr>
<tr id="Item" style="display:none"> 
                          <td width="100%" height="35"><table width="241" height="35" border="0" cellpadding="0" cellspacing="0" background="images/layout_07.jpg">
                              <tr> 
                                <td width="89" height="35">&nbsp;</td>
                                <td width="152" class="fs-14px"><font color="#750000"><a href="javascript:;" id="Menu">一级栏目</a></td>
                              </tr>
                            </table></td>
                        </tr>                        <tr id="Item" style="display:none"> 
                          <td width="100%" height="35"><table width="241" height="35" border="0" cellpadding="0" cellspacing="0" background="images/layout_07.jpg">
                              <tr> 
                                <td width="89" height="35">&nbsp;</td>
                                <td width="152" class="fs-14px"><font color="#750000"><a href="javascript:;" id="Menu">一级栏目</a></td>
                              </tr>
                            </table></td>
                        </tr>
<tr id="Item" style="display:none"> 
                          <td width="100%" height="35"><table width="241" height="35" border="0" cellpadding="0" cellspacing="0" background="images/layout_07.jpg">
                              <tr> 
                                <td width="89" height="35">&nbsp;</td>
                                <td width="152" class="fs-14px"><font color="#750000"><a href="javascript:;" id="Menu">一级栏目</a></td>
                              </tr>
                            </table></td>
                        </tr>                        <tr id="Item" style="display:none"> 
                          <td width="100%" height="35"><table width="241" height="35" border="0" cellpadding="0" cellspacing="0" background="images/layout_07.jpg">
                              <tr> 
                                <td width="89" height="35">&nbsp;</td>
                                <td width="152" class="fs-14px"><font color="#750000"><a href="javascript:;" id="Menu">一级栏目</a></td>
                              </tr>
                            </table></td>
                        </tr>
<tr id="Item" style="display:none"> 
                          <td width="100%" height="35"><table width="241" height="35" border="0" cellpadding="0" cellspacing="0" background="images/layout_07.jpg">
                              <tr> 
                                <td width="89" height="35">&nbsp;</td>
                                <td width="152" class="fs-14px"><font color="#750000"><a href="javascript:;" id="Menu">一级栏目</a></td>
                              </tr>
                            </table></td>
                        </tr>                        <tr id="Item" style="display:none"> 
                          <td width="100%" height="35"><table width="241" height="35" border="0" cellpadding="0" cellspacing="0" background="images/layout_07.jpg">
                              <tr> 
                                <td width="89" height="35">&nbsp;</td>
                                <td width="152" class="fs-14px"><font color="#750000"><a href="javascript:;" id="Menu">一级栏目</a></td>
                              </tr>
                            </table></td>
                        </tr>
<tr id="Item" style="display:none"> 
                          <td width="100%" height="35"><table width="241" height="35" border="0" cellpadding="0" cellspacing="0" background="images/layout_07.jpg">
                              <tr> 
                                <td width="89" height="35">&nbsp;</td>
                                <td width="152" class="fs-14px"><font color="#750000"><a href="javascript:;" id="Menu">一级栏目</a></td>
                              </tr>
                            </table></td>
                        </tr>                        <tr id="Item" style="display:none"> 
                          <td width="100%" height="35"><table width="241" height="35" border="0" cellpadding="0" cellspacing="0" background="images/layout_07.jpg">
                              <tr> 
                                <td width="89" height="35">&nbsp;</td>
                                <td width="152" class="fs-14px"><font color="#750000"><a href="javascript:;" id="Menu">一级栏目</a></td>
                              </tr>
                            </table></td>
                        </tr>
<tr id="Item" style="display:none"> 
                          <td width="100%" height="35"><table width="241" height="35" border="0" cellpadding="0" cellspacing="0" background="images/layout_07.jpg">
                              <tr> 
                                <td width="89" height="35">&nbsp;</td>
                                <td width="152" class="fs-14px"><font color="#750000"><a href="javascript:;" id="Menu">一级栏目</a></td>
                              </tr>
                            </table></td>
                        </tr>
						
						
                      </table>
                    </td>
                  </tr>
                </table>
                <table width="100%" border="0" cellspacing="0" cellpadding="3">
                  <tr> 
                    <td height="3">&nbsp;</td>
                  </tr>
                  <tr>
                    <td height="31">
                      <table width="97%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td background="images/layout_031.jpg" height="32">　<img src="images/d1.gif" width="16" height="16">　<span class="fs-14px">新闻搜索</span></td>
                        </tr>
                      </table>
                    </td>
                  </tr>
                  <tr> 
                    <td height="57" align="center"><form name="form1" method="post" action="?mnid=<%=strCurrMenu%>">
                        <table width="100%" border="0" cellpadding="7" cellspacing="0">
                          <tr> 
                            <td height="53" colspan="2"> 关键字: 
                              <input name="key" type="text" id="key">
                            </td>
                          </tr>
                          <tr> 
                            <td height="3" valign="top" width="56%"> <div align="center"> 
                                <input name="imageField2" type="image" src="images/search.gif" width="53" height="19" border="0">
                              </div></td>
                            <td height="3" valign="top" width="44%">搜索帮助</td>
                          </tr>
                        </table>
                      </form> </td>
                  </tr>
                </table>  
                <!--Link Begin-->
                <%
							isLink=GetKey("Enable",WebUserID,"link")
							if isLink="Yes" then
							%>
                <table width="100%" border="0" cellpadding="3" cellspacing="0">
                  <tr> 
                    <td height="2"  valign="top">
                      <table width="97%" border="0" cellspacing="0" cellpadding="0">
                        <tr> 
                          <td background="images/layout_031.jpg" height="32">　<img src="images/d1.gif" width="16" height="16">　<span class="fs-14px">友情链接</span></td>
                        </tr>
                      </table>
                    </td>
                  </tr>
                  <tr>
                    <td height="54"  valign="top">
                      <div align="center"><br>
                        <script language="JavaScript" src="admin/link/link.asp"></script>
                      </div>
                    </td>
                  </tr>
                </table>
                <%
							  end if
							  %>
                <!--Link End-->
              </TD>
              <TD bgcolor="#FFFFFF" height="2" valign="top"><img src="images/layout_06.jpg" width="506" height="10"></TD>
              <TD width="1" height="2"></TD>
            </TR>
            <TR> 
              <TD bgcolor="#FFFFFF" rowspan="9" valign="top"> 
                <table width="470" border="0" bordercolor="#CCCCCC" cellspacing="1" cellpadding="0" align="center" bgcolor="#000000" height="80">
                  <tr> 
                    <td height="60" bgcolor="#FFFFFF"><img src="images/new.jpg" width="470" height="80"></td>
                  </tr>
                </table>
                <table border="0" cellpadding="7" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2">
                  <tr> 
                    <td width="1%">&nbsp;</td>
                    <td height="63" valign="top"> <table width="100%" border="0" align="center" cellspacing="0" cellpadding="0 ">
                        <tr> 
                          <td  height="30">您的位置 : <a class=title01 
            href=".">首页</a> <img src="images/image_24.gif" width="8" height="5"> 
                            <a class=title01 
            href="?">⑨thispage⑨</a>
<%
									strcode=""
									for i=1 to Len(SourCode) \ 4-1
									strcode=strcode&" or c_code ='"&left(SourCode,i*4)&"'"
									next
									strcode="(1<>1"&strcode&")"
									strSQL="Select * From web_news_class Where mn_id=" & strCurrMenu&" and " & strcode & "  Order by c_code"
									'response.Write(strsql)
									Set rsclass=Server.CreateObject("ADODB.RecordSet")
									rsclass.open strSQL,conn,1,1
									for i=1 to rsclass.recordcount
									response.Write(" <img src=""images/image_24.gif"" width=""8"" height=""5""> "&"<a href=""?class="&rsclass("id")&"&classname="&trim(rsclass("c_name"))&""" class=aBlack>"&rsclass("c_name")&"</a>")
									rsclass.movenext
									next
									rsclass.close
									%> <img src="images/image_24.gif" width="8" height="5">	<%=strTitle%>						</td>
                        </tr>
                        <tr> 
                          <td height="1" background="images/image_11.gif"></td>
                        </tr>
                      </table>
                      <table width="100%" border="0">
                                    <%
										  '开始输出最新新闻
										   for i=1 to intPageSize
												if rs.eof then exit For
												if i mod 2 =0 then
													strColor="#FFFFFF"
												else
													strColor="#F9F9F9"
												end if
										  %>
                        <tr> 
                          <td width="10%" height="26">
						  <img src="images/image_25.gif" width="6" height="6">
						  </td>
                          <td width="90%" height="26"> <a href="newshow.asp?id=<%=trim(rs("ID"))%>&mnid=<%=strCurrMenu%>&classname=⑨thispage⑨&uppage=<%=ThisPage%>" target="_blank"><%=trim(rs("nTitle"))%></a> 
                            (<%=Year(rs("nTime")) & "-" & Month(rs("nTime")) & "-" & Day(rs("nTime"))%>) </td>
                        </tr>
                                    <%
											rs.movenext
										next
										%>
                      </table>
                      <br>
                      <table width="100%" border="0" align="center" cellspacing="0" cellpadding="0 ">
                        <tr> 
                          <td height="1" background="images/image_11.gif"></td>
                        </tr>
                        <tr> 
                          <td  height="30"><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>
                      </table>
                      <p><br>
                      </p>
                      </td>
                    <td width="2%">&nbsp;</td>
                  </tr>
                </table>
              </TD>
              <TD width="1"> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=22 ALT=""></TD>
            </TR>
            <TR> 
              <TD width="1"> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=13 ALT=""></TD>
            </TR>
            <TR> 
              <TD width="1"> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=34 ALT=""></TD>
            </TR>
            <TR> 
              <TD width="1"> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=34 ALT=""></TD>
            </TR>
            <TR> 
              <TD width="1"> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=37 ALT=""></TD>
            </TR>
            <TR> 
              <TD width="1"> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=35 ALT=""></TD>
            </TR>
            <TR> 
              <TD width="1"> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=23 ALT=""></TD>
            </TR>
            <TR> 
              <TD width="1"> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=15 ALT=""></TD>
            </TR>
            <TR> 
              <TD width="1"> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=39 ALT=""></TD>
            </TR>
            <TR> 
              <TD COLSPAN=2 height="14"><img src="images/layout_20.jpg" width=760 height=15 alt=""></TD>
              <TD width="1" height="14"> </TD>
            </TR>
            <TR> 
              <TD colspan="2" bgcolor="#FFFFFF" height="86"> <p align="center">⑨footnote⑨<br>⑨ICP⑨<br>
                  您是本站第<script language="JavaScript" src="admin/count/counter.asp"></script>位访问者</TD>
              <TD width="1" height="86"> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=32 ALT=""></TD>
            </TR>
            <TR> 
              <TD COLSPAN=2> <IMG SRC="images/layout_28.jpg" WIDTH=760 HEIGHT=17 ALT=""></TD>
              <TD width="1"> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=17 ALT=""></TD>
            </TR>
          </TABLE>

      </td>
    </tr>
  </table>
  </center>
</div>
<script language="JavaScript" src="common/init.js"></script><br><script language=Javascript src="common/tranbig5.Js"></script>
</BODY>
</HTML>