<!--#include file="conn.asp"-->
<!--#include file="model_login.asp"-->
<%set rsst = server.CreateObject("adodb.recordset")%>
<!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><%=webname%></title>
<link href="css/comm.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/comm.js"></script>
<script type="text/javascript" src="js/city.js"></script>
<script language="javascript">
var img1 = new Image();
img1.src = "images/xinwenhuod2.gif";	//黑的最新活动
var img2 = new Image();
img2.src = "images/xinredian2.gif";		//红的热点新闻

/*最新动态鼠标上移事件*/
function zuixinover()
{
	showOb("zuixin");
	hiddenOb("redian");
	zuixindt.src = "images/xinwenhuod.gif";		//红的最新活动
	xinwenrd.src = "images/xinredian.gif";		//黑的热点新闻
}

/*热点新闻鼠标上移事件*/
function redianover()
{
	showOb("redian");
	hiddenOb("zuixin");
	zuixindt.src = img1.src;					//黑的最新活动
	xinwenrd.src = img2.src;					//红的热点新闻
}
</script>
<style type="text/css">
.jieduan{ overflow:hidden; text-overflow:ellipsis; width:70px; white-space:nowrap;}
</style>
</head>

<body>
<div class="bodyDiv">
	<!--#include file="model_top.asp"-->
	<!--#include file="model_daohang.asp"-->
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="267" valign="top" style="background-image:url(images/leftbg.gif);">
		<%if session("userId23") = "" then call loginCon() else call logined()%>
		<!--#include file="model_search.asp"-->
		<!--#include file="model_pingpai.asp"-->
		<!--#include file="model_pinggu.asp"-->
		<!--#include file="model_fenxlx.asp"-->
		<!--#include file="model_wenti.asp"-->
		</td>
        <td valign="top" width="22">&nbsp;</td>
        <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="37%" align="center">
			<div style="margin-top:5px; margin-left:auto;margin-right:auto;">
			<iframe name="imgFrame" id="imgFrame" src="defaultImgNews/index.asp" width="216" height="161" marginheight="0" marginwidth="0" frameborder="0"></iframe>
			</div>
			</td>
            <td width="63%" rowspan="2" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="19%"><img name="zuixindt" src="images/xinwenhuod.gif" width="75" height="34" onMouseOver="zuixinover()"  style="cursor:pointer;" /></td>
                <td width="19%"><img name="xinwenrd" src="images/xinredian.gif" width="75" height="34" onMouseOver="redianover()"  style="cursor:pointer;" /></td>
                <td width="62%" align="right" valign="bottom" background="images/xinwenbg.gif" class="moren"><a href="newsList.asp?smallClass=&bigClass=12">更多信息&gt;&gt;</a></td>
              </tr>
            </table>
            <div id="zuixin">
              <table width="100%" border="0" cellspacing="0" cellpadding="5" class="tabledot">
              <%
			  rs.open "select top 6 * from article where Nclassid = 14 order by articleid desc",conn,1,1
			  do while not rs.eof
			  %>
                <tr>
                  <td width="4%" style="padding:0"><img src="images/xinwenjt.gif" width="15" height="11" /></td>
                  <td width="69%" style="padding-left:0;" class="moren"><div style="width:264px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;"><%="<a href='viewNews.asp?id="& rs("articleid") &"' target='_blank'>"& rs("title")&"</a>"%></div></td>
                  <td width="27%"><%=rs("dateandtime")%></td>
                </tr>
                <%
				rs.movenext
				loop
				rs.close
				%>
              </table>
             </div>
              <div id="redian" style="display:none;">
              <table width="100%" border="0" cellspacing="0" cellpadding="5" class="tabledot">
            <%
			  rs.open "select top 6 * from article where Nclassid = 15 order by articleid desc",conn,1,1
			  do while not rs.eof
			  %>
                <tr>
                  <td width="4%" style="padding:0"><img src="images/xinwenjt.gif" width="15" height="11" /></td>
                  <td width="69%" style="padding-left:0;" class="moren"><div style="width:264px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;"><%="<a href='viewNews.asp?id="& rs("articleid") &"' target='_blank'>"&rs("title")&"</a>"%></div></td>
                  <td width="27%"><%=rs("dateandtime")%></td>
                </tr>
                <%
				rs.movenext
				loop
				rs.close
				%>
              </table>
             </div>
            </td>
          </tr>
          <tr>
            <td height="51" align="center"><a href="user_main.asp" onFocus="this.blur()"><img src="img/maichemai.jpg" width="102" height="31" border="0" /></a>&nbsp;<a href="user_main.asp" onFocus="this.blur()"><img src="img/maiche.jpg" width="102" height="31" border="0" /></a></td>
          </tr>
        </table>
          <table width="605" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="27" style="color:#FFFFFF; font-size:14px; font-weight:bold;"><img src="images/default_tj.jpg" width="606" height="42" border="0" usemap="#Map4" /></td>
            </tr>
            <tr>
              <td background="images/default_tj_bg.jpg"><br />
                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td>
                  <%
				  rs.open "select top 8 productSort,id,caryear,provice_shi,smallimg,memberprice from product where fabu=1 and recommend = 1 and fa_chuqiu='出售' order by id desc",conn,1,1
				  ij = 1
				  do while not rs.eof
				  %>
                  <div style="width:137px; margin-left:7px; float:left; margin-bottom:10px;">
                    <div style="width:135px; height:99px; border:solid 1px #333333;">
                    <%
					if rs("smallimg") = "nothing" then
						response.write "<a href='view2car.asp?id="& rs("id") &"' target='_blank'><img src='images/noImg.gif' alt='暂无图片' border=0 width=135 height=99 /></a>"
					else
						response.write "<a href='view2car.asp?id="& rs("id") &"' target='_blank'><img src='"& rs("smallimg") &"' alt='' border=0 width=135 height=99 /></a>"
					end if
					%></div>
                    <div title="<%=exportpinp(rs("productSort"),"pinpaiandxinghao")%>" style="line-height:15px; margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; width:inherit; width:134px;">车型：<%=exportpinp(rs("productSort"),"pinpaiandxinghao")%></div>
                    <div style="line-height:15px;">年份：<%=rs("caryear")%></div>
                    <div style="line-height:15px;">价格：<%=rs("memberprice")&"元"%></div>
                    <div style="line-height:15px;">地点：<%=rs("provice_shi")%></div>
                  </div>
                  <%
				  if ij mod 4 = 0 then response.write "<div style='clear:both;'></div>" 
				  ij = ij + 1
				  rs.movenext
				  loop
				  rs.close
				  %> 
				  </td>
                  </tr>
              </table></td>
            </tr>
            <tr>
              <td><img src="images/default_tj_bott.jpg" width="606" height="7" /></td>
            </tr>
          </table>
        <br />
		<table width="603" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="27"><img src="images/Snap19.jpg" width="603" height="27" border="0" usemap="#Map3" /></td>
            </tr>
            <tr>
              <td background="images/Snap20.jpg" style="background-repeat:repeat-y;"><br />
			  <!----------最新出售二手车----------->
                <table width="91%" border="0" align="center" cellpadding="5" cellspacing="0" class="tabledot">
                  <tr style="font-weight:bold;">
                    <td width="16%"><div style="width:90px;">品牌</div></td>
                    <td width="14%">型号</td>
                    <td width="11%"><div style="width:60px;">价格</div></td>
                    <td width="17%"><div style="width:60px;"></div></td>
                    <td width="13%"><div style="width:90px;">品牌</div></td>
                    <td width="14%">型号</td>
                    <td width="15%"><div style="width:60px;">价格</div></td>
                  </tr>
                  <%
				  set rs_zuixin = server.CreateObject("adodb.recordset")
				  rs_zuixin.open "select top 30 * from product where fabu=1 and fa_chuqiu='出售' order by id desc",conn,1,1
				  do while not rs_zuixin.eof
				  %>
                  <tr>
                    <td class="moren"><%="<a href='view2Car.asp?id="& rs_zuixin("id") &"' target='_blank'>"& exportpinp(rs_zuixin("productSort"),"pinpai") &"</a>"%></td>
                    <td><div align="left" class="jieduan"><%=exportpinp(rs_zuixin("productSort"),"xinghao")%></div></td>
                    <td><%if rs_zuixin("memberprice")=0 then response.write "<a>价格面议</a>" else response.write rs_zuixin("memberPrice")%></td>
					<td>&nbsp;</td>
					<%
					rs_zuixin.movenext
					if rs_zuixin.eof then
						exit do
					else
					%>
                    <td class="moren"><%="<a href='view2Car.asp?id="& rs_zuixin("id") &"' target='_blank'>"&exportpinp(rs_zuixin("productSort"),"pinpai")&"</a>"%></td>
                    <td><div align="left" class="jieduan"><%=exportpinp(rs_zuixin("productSort"),"xinghao")%></div></td>
                    <td><%if rs_zuixin("memberprice")=0 then response.write "<a>价格面议</a>" else response.write rs_zuixin("memberPrice")%></td>
					<%end if%>
                  </tr>
                  <%
				  rs_zuixin.movenext
				  loop
				  rs_zuixin.close
				  set rs_zuixin = nothing
				  %>
                </table></td>
            </tr>
            <tr>
              <td><img src="images/Snap21.jpg" width="603" height="12" /></td>
            </tr>
          </table>
		  <br />
		  <table width="603" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="26"><img src="images/Snap26.jpg" width="603" height="26" border="0" usemap="#Map15" /></td>
            </tr>
            <tr>
              <td align="center" valign="middle" background="images/Snap20.jpg" style="background-repeat:repeat-y;"><iframe src="cargirls/cargirls.asp" frameborder="0" scrolling="no" width="590" height="170"></iframe>
              <br />              </td></tr>
            <tr>
              <td><img src="images/Snap27.gif" width="603" height="9" /></td>
            </tr>
          </table>
		</td>
      </tr>
  </table>
<!--#include file="model_bottom.asp"-->
</div>


<map name="Map" id="Map"><area shape="rect" coords="176,6,227,22" href="viewMoreCar.asp?action=chushou" />
</map>
<map name="Map2" id="Map2"><area shape="rect" coords="508,1,601,24" href="cargirls.asp" target="_blank" />
</map>
<map name="Map3" id="Map3"><area shape="rect" coords="176,5,227,22" href="viewMoreCar.asp" target="_blank" />
</map>
<map name="Map4" id="Map4"><area shape="rect" coords="532,11,586,27" href="viewMoreCar.asp?action=tuijian" target="_blank" />
</map>
<map name="Map15" id="Map15"><area shape="rect" coords="502,4,556,24" href="cargirls.asp" target="_blank" />
</map></body>
</html>