<!--#include file="Inc/Index_Icn.asp"-->
<%
dim strFileName
const MaxPerPage=20
dim totalPut,CurrentPage,TotalPages
dim re,sql,BigClassName
strFileName="news.asp"

if request("page")<>"" then
    currentPage=cint(request("page"))
else
	currentPage=1
end if

set re=server.CreateObject("adodb.recordset")
sql="select * from news where bigclassname<>'精品兰苑' and bigclassname<>'兰家风采' order by id desc"
re.open sql,conn,1,1
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="keywords" content="<%=gjzc%>">
<meta name="description" content="<%=ms%>">
<meta name="author" content="zjf_082970@163.com,QQ:231072054" />
<title><%=title%></title>
<link href="css/index.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body,td,th {
	font-family: 宋体;
	font-size: 12px;
}
-->
</style>
</head>
<body>
<!--#Include File="top.asp"-->
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td height="4"></td>
  </tr>
</table>
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="top" bgcolor="#FFFFFF"><table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="250" height="273" align="center" valign="top"><table width="99%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="27" background="img/title_1_2.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="11" align="left"><img src="img/title_1_1.gif" width="11" height="27"></td>
                  <td width="100" align="center" background="img/title_1_4.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td height="6"></td>
                    </tr>
                    <tr>
                      <td align="center" class="14-ls">最新动态</td>
                    </tr>
                  </table></td>
                  <td width="118">&nbsp;</td>
                  <td width="19" align="right"><img src="img/title_1_3.gif" width="19" height="27"></td>
                </tr>
              </table></td>
            </tr>
            <tr>
              <td height="247" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="bk_2">
                <tr>
                  <td height="397" align="center" valign="top" background="img/left_bj.gif">
<table width="98%" border="0" cellspacing="0" cellpadding="0">
 <%		
set rr=server.createobject("adodb.recordset")
sql = "select * from BigClass_New where bigclassname<>'精品兰苑' and bigclassname<>'兰家风采' order by BigClassid desc"
rr.open sql,conn,1,1

do while not rr.eof
%>
          <tr>
            <td align="center"><table width="180" height="26" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td height="4"></td>
          </tr>
				<tr>
                  <td height="27" align="center" background="img/title_3.gif" class="12-ls"><a href="info.asp?BigClassid=<%=rr("BigClassid")%>"><%=rr("BigClassName")%></a>&nbsp;</td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td height="4"></td>
          </tr>
<%
rr.movenext
loop
rr.close
%></table>

				  </td>
                </tr>
              </table></td>
            </tr>
        </table></td>
        <td width="4"></td>
        <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="27" background="img/title_1_2.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="11" align="left"><img src="img/title_1_1.gif" width="11" height="27"></td>
                  <td width="100" align="center" background="img/title_1_4.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td height="6"></td>
                      </tr>
                      <tr>
                        <td align="center" class="14-ls">最新动态</td>
                      </tr>
                  </table></td>
                  <td width="556">&nbsp;</td>
                  <td width="20" align="right"><img src="img/title_1_3.gif" width="19" height="27"></td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td height="247" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="bk_2">
                <tr>
                  <td height="500" align="left" valign="top" background="img/nr_bj.gif"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td height="8"></td>
                    </tr>
                    <tr>
                      <td class="12-hs"><%
  	if re.eof and re.bof then
		response.write "<div class='12-hs'>目前共有 0 条信息</div>"
	else
    	totalPut=re.recordcount
		if currentpage<1 then
       		currentpage=1
    	end if
    	if (currentpage-1)*MaxPerPage>totalput then
	   		if (totalPut mod MaxPerPage)=0 then
	     		currentpage= totalPut \ MaxPerPage
		  	else
		      	currentpage= totalPut \ MaxPerPage + 1
	   		end if

    	end if
	    if currentPage=1 then        
        	showContent
        	showpage strFileName,totalput,MaxPerPage,true,true,"条信息"
   	 	else
   	     	if (currentPage-1)*MaxPerPage<totalPut then
         	   	re.move  (currentPage-1)*MaxPerPage
         		dim bookmark
           		bookmark=re.bookmark        		
            	showContent
            	showpage strFileName,totalput,MaxPerPage,true,true,"条信息"
        	else
	        	currentPage=1        
           		showContent
           		showpage strFileName,totalput,MaxPerPage,true,true,"条信息"
	    	end if
		end if
	end if

sub showContent
   	dim i
    i=0
%>
                          <table width="96%" border="0" cellpadding="0" cellspacing="0">
                            <%do while not re.EOF %>
                            <tr>
                              <td width="17%" height="24" align="center">【<%=re("BigClassName")%>】</td>
                              <td width="83%" style="line-height:150%"><a href="s_n.asp?bigclassid=<%=re("bigclassid")%>&id=<%=re("id")%>" target="_blank"><%=re("Title")%></a> &nbsp;&nbsp;<font color="#999999">浏览次数：<%=re("hits")%> 次 &nbsp;&nbsp;<%=re("uptime")%></font></td>
							  
                      <tr>
                        <td colspan="2" height="1" background="img/d_xian_2.gif"></td>
                      </tr>  
                              <%
	i=i+1
	if i>=MaxPerPage then exit do
	re.movenext
loop
%>
                            <tr>
                              <td height="30" colspan="2" align="center" class="12-hs"><% end sub %></td>
                            </tr>
                        </table></td>
                    </tr>
                    <tr>
                      <td height="8"></td>
                    </tr>
                  </table></td>
                </tr>
            </table></td>
          </tr>
        </table></td>
        </tr>
    </table></td>
  </tr>
</table>
<!--#Include File="down2.asp"-->
</body>
</html>
<%re.close%>