<!--#include file="include/conn.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>e家茶业</title>
<link rel="stylesheet" type="text/css" href="images/style.css" />
<link rel="stylesheet" type="text/css" href="images/css1.css" />
<link rel="stylesheet" type="text/css" href="images/index2.css" />
<link rel="stylesheet" type="text/css" href="images/comm.css" />
<SCRIPT src="images/funcjs.js" type=text/javascript></SCRIPT>
<style type="text/css">
<!--
.STYLE5 {font-size: 16px; font-weight: bold; color: #000000; }
.STYLE6 {
	color: #9F0100;
	font-weight: bold;
}
.STYLE7 {
	font-size: 16px;
	color: #000000;
	font-weight: bold;
}
.STYLE8 {
	font-size: 14px;
	font-weight: bold;
	color: #CCCCCC;
}
-->
</style>
</head>

<body>
<%
set rs=server.CreateObject("adodb.recordset")
%>
<!--#include file="top.asp"-->
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
  
  <tr>
    <td width="190" height="538" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="27%"><table width="190" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td><img src="images/fenlei.jpg" width="190" height="41" /></td>
            </tr>
          </table>
            <table width="190" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td height="151" background="images/fenlei1.jpg"><table width="152" border="0" align="center" cellpadding="0" cellspacing="0">
                    <%
					rs.open"select * from p_class",conn,1,1
					do while not rs.eof
					%>
                    <tr>
                      <td width="25"><img src="images/par.gif" width="10" height="8" /></td>
                      <td width="127"><strong><a href="product.asp?id=<%=rs("id")%>"><%=rs("n_type")%></a></strong></td>
                    </tr>
                    <tr>
                      <td colspan="2"><img src="images/line.jpg" width="152" height="3" /></td>
                    </tr>
                    <%
					rs.movenext
					loop
					rs.close
					%>
                </table></td>
              </tr>
            </table>
          <table width="190" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><img src="images/fenlei2.jpg" width="190" height="7" /></td>
              </tr>
          </table></td>
      </tr>
    </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="5"></td>
        </tr>
      </table>
      <script type="text/javascript">

$(document).ready(function(){

    if(1203+""!=""){
        $(".floors a").removeClass("selected");
        $("#link_1203").addClass("selected");
    }
    if($("#hot_1203").html()!=null){
        $(".hotCategory").hide(),$("#hot_1203").show();
    }
})
</script>
      <table width="100%" height="156" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
        <tr>
          <td height="93" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="1" cellpadding="0">
            <tr>
              <td height="25" background="images/pcate.jpg" bgcolor="#666666"><span class="STYLE8">&nbsp;&nbsp;&nbsp;&nbsp;价格区间</span></td>
            </tr>
          </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="5"></td>
              </tr>
            </table>
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="5%">&nbsp;</td>
                  <td width="95%"><a href="list.asp">全部商品</a></td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td><a href="list1.asp">0元-100元</a></td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td><a href="list2.asp">101元-300元</a></td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td><a href="list3.asp">301元-600元</a></td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td><a href="list4.asp">601元-1000元</a></td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td><a href="list5.asp">1000元以上</a></td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td>请输入查询价格区间:</td>
                </tr>
                <tr>
                <form id="form1" name="form1" method="post" action="list.asp">
                  <td>&nbsp;</td>
                  <td><input name="stprice" type='text'  id='minprice' style="width:50px;height:15px;" onBlur="javascript:ValidatePrice(this);"onkeypress="javascript:ValidatePrice(this);" onKeyUp="javascript:ValidatePrice(this);" maxlength='4' />
                    -　
                    <input name="endprice" type='text' style="width:50px;height:15px;" maxlength='4'  id='maxprice' onkeyup="javascript:ValidatePrice(this);"onblur="javascript:ValidatePrice(this);"onkeypress="javascript:ValidatePrice(this);" />
                    </td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td><input type="image" name="search" border="0" src="images/search.jpg" width="53" height="20" /></td>
                  </form>
                </tr>
              </table>
            </td>
        </tr>
      </table></td>
    <td width="20"></td>
    <td width="790" valign="top">
    <%
	n_type=request("n_type")
	%>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><span class="STYLE5">当前位置:</span> <a href="index.asp">首页</a> &gt;&gt; <%if n_type=1 then%>最新动态<%end if%><%if n_type=2 then%>发货通知<%end if%><%if n_type=3 then%>铁观音常识<%end if%><%if n_type="" then%>全部资讯<%end if%></td>
      </tr>
    </table><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><hr size="1" color="#dddddd" /></td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="5"></td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td width="8">&nbsp;</td>
                          <td valign="top"><%
	if n_type="" then
		sql="select * from newsinfo  order by id desc"
	end if
	if n_type<>"" then
	    sql="select * from newsinfo where n_type = '" &n_type & "' order by id desc"
	end if
	rs.open sql,conn,1,1
	
	if rs.bof and rs.eof then
		response.write "暂无新闻"
	else

	dim curpage,j             
	if request("page")="" then             
		curpage = 1             
	else             
		curpage = cint(request("page"))             
	end if  
	rs.pagesize = 20
	rs.absolutepage = curpage  

	for j = 1 to rs.pagesize
%>
                              <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                                <tr>
                                  <td height="25">· <a href="read.asp?id=<%=rs("id")%>" target="_blank"><%=rs("title")%></a></td>
                                  <td width="9%"><span class="smalltext"><%=rs("adddate")%></span></td>
                                  <td width="9%"></td>
                                </tr>
                              </table>
                            <%

rs.movenext         
	if rs.eof then             
		j = j + 1             
		exit for 
		end if         
next
%>
                              <div align="left"  class="12font">
                               
                                  <%
response.write "<center>"             
response.write "第<font color=red>" + cstr(curpage) + "</font>页/总" + cstr(rs.pagecount) + "页 "             
response.write "每页显示"&rs.pagesize&"个，总共有" + cstr(rs.recordcount) + "条信息&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"             
if curpage = 1 then              
	response.write "首页 前页 "             
else             
	response.write "<a href='" & request.ServerVariables("script_name") & "?n_type=" & request("n_type") & "&page=1'>首页</a> <a href='" & request.ServerVariables("script_name") & "?n_type=" & request("n_type") & "&page=" + cstr(curpage-1) + "'>前页</a> "             
end if 
		
if  curpage = rs.pagecount then             
	response.write "后页 末页"             
else             
	response.write "<a href='" & request.ServerVariables("script_name") & "?n_type=" & request("n_type") & "&page=" + cstr(curpage+1) + "'>后页</a> <a href='" & request.ServerVariables("script_name") & "?n_type=" & request("n_type") & "&page=" + cstr(rs.pagecount) + "'>末页</a>"             

end if        
end if 
response.write " 转到第"
response.write"<select name='sel_page' onChange='javascript:location=this.options[this.selectedIndex].value;'>"
    for i = 1 to Rs.PageCount
       if i = currentpage then 
          response.write"<option value='news.asp?n_type=" & n_type & "&page="&i&"' selected>"&i&"</option>"
       else
          response.write"<option value='news.asp?n_type=" & n_type & "&page="&i&"'>"&i&"</option>"
       end if
    next
response.write"</select>页"
%>
                              </div>
                            <%rs.close 
				  %>
                              </div>
                              </div></td>
                        </tr>
                      </table>
      </td>
  </tr>
</table>
<%
set rs=nothing
%>
<!--#include file="bottom.asp"-->
</body>
</html>
