<!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">
<!--#include file="Inc/SysProduct.asp" -->


<script language="JavaScript"> 
<!-- 
var flag=false; 
function DrawImage(ImgD){ 
 var image=new Image(); 
 image.src=ImgD.src; 
 if(image.width>0 && image.height>0){ 
  flag=true; 
  if(image.width/image.height>= 140/80){ 
   if(image.width>140){
    ImgD.width=140; 
    ImgD.height=(image.height*140)/image.width; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
   ImgD.alt="点击查看详细信息..."; 
  } 
  else{ 
   if(image.height>80){
    ImgD.height=80; 
    ImgD.width=(image.width*80)/image.height; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
   ImgD.alt="点击查看详细信息..."; 
  } 
 }
}

function CheckAll(form)
  {
  for (var i=0;i<form.elements.length;i++)
    {
    var e = form.elements[i];
    if (e.Name != "chkAll")
       e.checked = form.chkAll.checked;
    }
  }
//--> 
</script> 
<%
MaxPerPage=MaxPerPage_Default
strFileName="Product.asp?BigClassName=" & BigClassName & "&SmallClassName=" & SmallClassName 
%>
	<%
	BigClassName=request("BigClassName")



%>


<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><%=SiteTitle%></title>
<link href="css/css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="container">
  <!-- #include file="top.asp" -->
  <div class="content">
  <table border="0" cellpadding="0" cellspacing="0" width="920" style=" margin-left:6px;">
    <!-- fwtable fwsrc="未命名" fwbase="content.jpg" fwstyle="Dreamweaver" fwdocid = "2089954175" fwnested="0" -->
    <tr>
      <td><img src="images/spacer.gif" width="6" height="1" border="0" alt="" /></td>
      <td><img src="images/spacer.gif" width="908" height="1" border="0" alt="" /></td>
      <td><img src="images/spacer.gif" width="6" height="1" border="0" alt="" /></td>
      <td><img src="images/spacer.gif" width="1" height="1" border="0" alt="" /></td>
    </tr>
    <tr>
      <td colspan="3"><img name="content_r1_c1" src="images/content_r1_c1.jpg" width="920" height="6" border="0" id="content_r1_c1" alt="" /></td>
      <td><img src="images/spacer.gif" width="1" height="6" border="0" alt="" /></td>
    </tr>
    <tr>
      <td rowspan="5" background="images/content_r3_c1.jpg">&nbsp;</td>
      <td rowspan="5" bgcolor="fcfaf7" >
	  
	  <div class="mleft1">
	   <div class="slogin"><!-- #include file="login.asp" --></div>
	   <div class="comclass"><div class="leftbar">
  <div class="left_title2">
    <div class="title_top">名爵车系</div>
    <div class="title_middle">

    
      <ul>
	  	<%
set rsbig = server.CreateObject ("adodb.recordset")
		sql="select * from BigClass"
		rsbig.open sql,conn,1,1
do while not rsbig.eof
%>
        <li><a href="Product.asp?BigClassName=<%=rsbig("BigClassName")%>"><%=rsbig("BigClassName")%></a></li>
      <%
	  rsbig.movenext 
loop%>
      </ul>
    </div>
  </div>
	   </div>
	   </div>
	   <table width="100" border="0" cellspacing="0" cellpadding="0" style="margin-top:20px; line-height:100px; margin-left:auto; margin-right:auto ">
         <tr>
           <td height="70"><a href="caryy.asp" target="_blank"><img src="Images/zxdg.jpg" alt="订购预约" width="262" height="57" border="0" /></a></td>
         </tr>
         <tr>
           <td  height="70"><a href="carsj.asp" target="_blank"><img src="Images/zxsj.jpg" alt="试驾预约" width="262" height="57" border="0" /></a></td>
         </tr>
         <tr>
           <td  height="70"><img src="Images/yydh.jpg" alt="联系方式" width="262" height="57" /></td>
         </tr>
       </table>
	  </div>
	  <div class="mright1">
	  <div class="rtitle">
	      <%if BigClassName = "" then response.write "全部车系" else response.write BigClassName&"系列产品"%>
	  </span></div>
	  <div class="rcontent">
	    <div class="pp_list">
          <ul>
            <%
			
	pageno = request("pageno") 
	if BigClassName <> "" then
		Sql="select * from Product where BigClassName='"&BigClassName&"' order by UpdateTime desc "
	else
	    Sql="select * from Product  order by UpdateTime desc "
	end if
	Set rs=server.CreateObject("adodb.recordset")
	
	rs.open sql,conn,1,1
		if not rs.eof then                                                                         
			  rs.pageSize = 12                                                                                                      
			  if pageno = "" then                                                                                    
			  pageno = 1                                                                                                          
			  else                                                                                                          
			  pageno = pageno                                                                           
			  end if                                                                                                           
			  rs.absolutepage = pageno   
		 end if
for i=1 to rs.pageSize
if rs.eof then exit for
			%>
            <li><a href="ProductShow.asp?ID=<%=rs("ID")%>"><img src="<%=rs("DefaultPicUrl")%>" border="0"  width="220" height="130" onload="javascript:DrawImage(this);"/></a>
                <div><a href="ProductShow.asp?ID=<%=rs("ID")%>"><%=rs("Title")%></a></div>
            </li>
            <%
	rs.movenext
	Next
%>
          </ul>
	      <div class="clear"></div>
	      </div>
	    <div class="product_page">
          <div class="page">
            <%
if BigClassName <> "" then
ptemp="&BigClassName="&BigClassName
end if
		if pageNo > 1 then
		response.write "<a href=""product.asp?pageNo="&pageNO-1&ptemp&""">"
		else
		response.write "<span class=""disabled"">"
		end if
		response.write "&lt;&nbsp;前一页</a></span>"
		if trim(pageno) < trim(rs.pageCount) then
		response.write "<a href=""product.asp?pageNo="&pageNO+1&ptemp&""">"
		else
		response.write "<span class=""disabled"">"
		end if
		response.write "下一页&nbsp;&gt;</a></span>"
	%>
            &nbsp;共<%=rs.pageCount%>页,现在是第<%=pageNo%>页，跳转到&nbsp;
            <select name="pageNO" size="1" onchange="window.location='product.asp?PageNO='+this.value+'<%=ptemp%>';">
              <%
				for i=1 to rs.pageCount
				response.write "<option value="""&i&""""
			if pageNo=trim(i) then response.write " selected "
				response.write ">第"&i&"页</option>"
			Next
		%>
            </select>
          </div>
	      </div>
	  </div>
	  </div>	  </td>
      <td rowspan="5" background="images/content_r5_c3.jpg">&nbsp;</td>
      <td><img src="images/spacer.gif" width="1" height="" border="0" alt="" /></td>
    </tr>
    <tr>
      <td><img src="images/spacer.gif" width="1" height="10" border="0" alt="" /></td>
    </tr>
    <tr>
      <td><img src="images/spacer.gif" width="1" height="9" border="0" alt="" /></td>
    </tr>
    <tr>
      <td><img src="images/spacer.gif" width="1" height="11" border="0" alt="" /></td>
    </tr>
    <tr>
      <td><img src="images/spacer.gif" width="1" height="197" border="0" alt="" /></td>
    </tr>
    <tr>
      <td colspan="3"><img name="content_r7_c1" src="images/content_r7_c1.jpg" width="920" height="10" border="0" id="content_r7_c1" alt="" /></td>
      <td><img src="images/spacer.gif" width="1" height="10" border="0" alt="" /></td>
    </tr>
  </table>
</div>

<div id="footer"><!-- #include file="foot.asp" --></div>
</div>
</body>
</html>
