<!--//#include file="top.inc" -->
<%
	dim rs,sql, rs1
	dim classid
	dim classname
   	if request.querystring("classid")<>"" then
		classid=int(request.querystring("classid"))
   	else
		classid=0
   	end if
  	set rs = server.createobject("adodb.recordset")
 	set rs1=server.createobject("adodb.recordset")
  	sql="select * from Aclass where classID="&cstr(classid)
 	rs.open sql,conn,1,1
 	if not rs.eof then
		classname=rs("class")
 	end if
	rs.close
%>
<html>
<head>
<meta NAME="GENERATOR" Content="Microsoft FrontPage 6.0">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<div align="center">
	<table cellSpacing="0" cellPadding="0" width="760" align="center" bgColor="#ffffff" border="0" id="table1">
		<tr>
			<td vAlign="top" align="right" width="8" rowSpan="4">
			<img height="8" src="images/blank.gif" width="8"></td>
			<td vAlign="top" align="left" width="744" colSpan="2" height="4"></td>
			<td vAlign="top" align="middle" width="8" rowSpan="4">
			<img height="8" src="images/blank.gif" width="8"></td>
		</tr>
		<tr>
			<td style="background: url('images/top3_4.gif') repeat-y right top" colSpan="2">
			<table cellSpacing="0" cellPadding="0" width="100%" border="0" id="table2">
				<tr>
					<td width="355">
					<img height="26" src="images/esc.gif" width="319"></td>
					<td vAlign="bottom" align="right"><font color="#FFFFFF"><%
sql="select * from productSort where fatherID=0"
set fatherRs=conn.execute (sql)
do while not fatherRs.eof
%></font><a href=product.asp?productSort=<%=fatherRs("id")%>><b><font color="#FFFFFF"><%=fatherRs("name")%></font></b></a><font color="#FFFFFF"> 
                          <%
	fatherRs.moveNext
loop
%>&nbsp;</font></td>
				</tr>
			</table>
			</td>
		</tr>
		<tr>
			<td vAlign="top" align="middle" colSpan="2">
			<table cellSpacing="0" cellPadding="0" width="100%" background="images/top3_7.gif" border="0" id="table4">
				<tr>
					<td width="1%">
					<img height="26" src="images/top3_6.gif" width="5"></td>
					<td align="middle" width="98%">
					<%
	sql="select class,classid from Aclass"
	rs.open sql,conn,1,1
	if rs.eof and rs.bof then
		response.write "还没有任何栏目"
	else
	do while not rs.eof
%>
              <%if cint(rs("classid"))=cint(classid) then%>
              <a href="news_index.asp?classid=<%=rs("classid")%>"><%=rs("class")%></a> 
              <%else%>
              <a href="news_index.asp?classid=<%=rs("classid")%>"><%=rs("class")%></a> 
              <%end if%>
              &nbsp;&nbsp;&nbsp; 
              <%  
	rs.movenext  
	loop  
	end if  
	rs.close  
%>
</td>
					<td align="right" width="1%">
					<img height="26" src="images/top3_9.gif" width="8"></td>
				</tr>
			</table>
			</td>
		</tr>
		<tr>
			<td vAlign="top" align="middle" colSpan="2" height="1"></td>
		</tr>
	</table>
</div>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <TD height="3"></TD>
  </tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td height="28"> <div align="center"><a href="<%=gg8url%>"><img src="<%=gg8%>" width="760" height="80" border="0"></a></div></td>
  </tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <TD height="3"></TD>
  </tr>
</table>
<div align="center">
  <table width=760 border="0" align=center cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" >
    <tr> 
      <td width="25%" height="285" valign="top" bgcolor=#F8F8F8><table width="185" border="0" cellpadding="0" cellspacing="0">
                                                  <tr> 
                                                    <td height="28"><div align="center">
														<img border="0" src="images/tjc.jpg" width="180" height="45"></div></td>
                                                  </tr>
                                                  <tr> 
                                                    <td height="155" valign="top"> 
                                                      <div align="center">
                                                      <table width="99%" border="0" cellpadding="0">
                                                        <%
sql="select top 6 id,carcolor,smallimg,memberprice,carclass from product where fabu=1 order by id desc"	
set rszr=conn.execute (sql)
i=0
do while not (rszr.eof or err)
i=i+1
%>
                                                        <tr> 
                                                          <td width="51%">·<a href="Sell_list.asp?id=<%=rszr("id")%>" target="_blank" title="点击查看具体信息"><%=left(rszr("carclass"),5)%></a> 
                                                              <%if rszr("smallImg")="nothing" then
response.write ""
else
response.write "<font color='#FF0000'>(图)</font>"
end if%></td>
                                                          <td width="30%"> <div align="center">
                                                              ￥<% if rszr("memberprice")="0" then
													                                          response.write "面议"
																							  else %>
                                                              <%=rszr("memberPrice")%> 
                                                              <%end if%>
                                                              </div></td>
                                                        </tr>
                                                        <tr> 
                                                          <TD background="img/DIAN.gif" height="3" colspan="2"></TD>
                                                        </tr>
                                                        <%
		rszr.moveNext
loop
%>
                                                      </table></div>
													</td>
                                                  </tr>
                                                </table>
                                     </td>
      <TD width="1" valign="top"></TD>
      <td width="566" valign="top"> 
        <TABLE cellSpacing=0 cellPadding=0 width="99%" border=0 align=center>
          <TBODY>
            <TR> 
              <TD width="584" height="225" valign="top" > 
                <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0 bordercolor="#000000" style="border-collapse: collapse">
                  <TBODY>
                    <TR> 
                      <TD colSpan=3> <TABLE class="border" cellSpacing=0 cellPadding=0 width="100%" border=0>
                          <TR> 
                            <TD height="25" class="title"><%=classname%><font color="#ff6600"> 
                              最近更新</font> </TD>
                          </TR>
                          <TR>
                            <TD height="1" background="../img/dot_02.gif"></TD>
                          </TR>
                          <TR> 
                            <TD background="pic/bgg.gif" class="tdbg"> <font style=line-height:150%> 
                              <% 
	sql="select top 10 " 
	sql=sql&"article.nkey,article.articleid,article.title,article.dateandtime,article.hits,article.classid,article.Nclassid,ANclass.Nclass " 
	sql=sql&" from article,ANclass where article.Nclassid=ANclass.Nclassid"
	if classid>0 then sql=sql&" and article.classid="&classid
	sql=sql&" order by article.articleid desc" 
	rs.open sql,conn,1,1 
	if rs.eof and rs.bof then 
%>
                              没有更新任何文章 
                              <%else%>
                              <%do while not rs.eof%>
                              [<font color="#0099ff"><a href='news_index.asp?classid=<%=rs("classid")%>&Nclassid=<%=rs("Nclassid")%>'><%=rs("Nclass")%></a></font>] 
                              <a href="news_list.asp?id=<%=rs("articleid")%>" title=<%=left(rs("Nkey"),140)%> target="_blank"><%=rs("title")%></a> 
                              ( 
                              <%if rs("dateandtime")=date() then%>
                              <font color=red><%=month(rs("dateandtime"))%>月<%=day(rs("dateandtime"))%>日</font> 
                              <%else%>
                              <font color='#999999'><%=month(rs("dateandtime"))%>月<%=day(rs("dateandtime"))%>日</font> 
                              <%end if%>
                              ,<font color=green><%=rs("hits")%></font>) <br>
                              <% 
	rs.movenext 
	loop 
	end if 
	rs.close 
%>
                              </font> </TD>
                          </TR>
                        </table></TD>
                    </TR>
                    <TR> 
                      <TD bgColor=#efefef width="309" background="pic/bg-1.gif" height="20"> 
                        　保养与维护 </TD>
                      <TD width="307" height="20" colspan="2" background="pic/bg-1.gif" bgColor=#efefef> 
                        <p align="right">&nbsp; </TD>
                    </TR>
                    <TR> 
                      <TD colSpan=3> <TABLE width="100%" height="134" border=0 cellPadding=0 cellSpacing=0>
                          <TBODY>
                            <TR> 
                              <TD height="43" background="pic/bgg.gif" colspan="3"> 
                                <script src="js.asp?classid=2"></script>
                              </TD>
                            </TR>
                            <TR> 
                              <TD bgColor=#efefef background="pic/bg-1.gif" height="20" width="541"> 
                                　业内动态 </TD>
                              <TD bgColor=#efefef background="pic/bg-1.gif" height="20"> 
                                <p align="right">&nbsp; </TD>
                            </TR>
                            <TR> 
                              <TD colSpan=3 height=5 width="541"></TD>
                            </TR>
                            <TR> 
                              <TD height="44" background="pic/bgg.gif" colspan="3"> 
                                <script src="js.asp?classid=3"></script>
                              </TD>
                            </TR>
                            <TR> 
                              <TD colSpan=3 height=6 width="541"></TD>
                            </TR>
                          </TBODY>
                        </TABLE></TD>
                    </TR>
                    <TR> 
                      <TD colSpan=3></TD>
                    </TR>
                  </TBODY>
                </TABLE>
              </td>
            </tr>
          </tbody>
        </table>
        
      </td>
    </tr>
  </table>                            
</div>
<!--#include file="foot.inc" -->
</body>                              
</html>                              