<!--#include file="conn.asp"-->
<%
'此页面为快速搜索页面
'点击查看新闻页面右边的快速搜索时使用


dim id
id = request.QueryString("id")
if isnumeric(id) = false or id = "" then id = 0
rs.open "select * from article where articleid = "& id &"",conn,1,3

if rs.eof then call wrong("未找到任何信息！")

dim info(9)
info(0) = rs("content")
info(1) = rs("title")
info(2) = rs("Nclassid")
info(3) = rs("classid")
info(4) = rs("Nkey")
info(5) = rs("hits")
info(6) = rs("dateandtime")
info(7) = rs("writer")
info(8) = rs("writefrom")
info(9) = rs("imgname")			'图片路径
rs("hits") = rs("hits") + 1
rs.update
rs.close
%>
<!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><%=info(1)%></title>
<link href="css/comm.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/comm.js"></script>
</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 valign="top">
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td valign="top">
			  <div style="height:20px"></div>
			  <div style="font-size:14px; text-align:center; color:#000000;"><strong><%=info(1)%></strong></div> 
			  <div><hr style="height:2px" width="590" />       </div>
		<div style="text-align:center; line-height:20px; background-color:#F2F2F2; width:95%; margin:0 auto;">发布时间：<%=info(6)%>&nbsp;&nbsp;点击率：<%=info(5)%>&nbsp;&nbsp;作者：<%=info(7)%></div>
        <div style="line-height:180%; padding:20px; width:95%;">
			<div align="center"><%if info(9) <> "" then response.write "<img src='"& info(9) &"' />" %></div>
		<%=info(0)%></div>
		
		<table width="95%" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td><!--------上一篇下一片-------->
        <div class="moren" style="margin-top:10px; padding:10px; margin-left:20px; background-color:#EEEEEE;">
        上一篇：
		<%
		set rssx = server.CreateObject("adodb.recordset")
		rssx.open "select top 1 title,articleid from article where articleid < "& id &" order by articleid desc",conn,1,1
		if not rssx.eof then
			response.write "<a href='viewNews.asp?id="& rssx("articleid") &"'>"& rssx("title") &"</a>"
		else
			response.write "没有上一篇了"
		end if
		rssx.close
		%>
		<br />
        下一篇：
		<%
		rssx.open "select top 1 title,articleid from article where articleid > "& id &" order by articleid asc",conn,1,1
		if not rssx.eof then
			response.write "<a href='viewNews.asp?id="& rssx("articleid") &"'>"& rssx("title") &"</a>"
		else
			response.write "没有下一篇了"
		end if
		rssx.close
		set rssx =nothing
		%>
        </div>  </td>
          </tr>
        </table>		</td>
              <td width="295" height="24" valign="top"><img src="images/mo_1.jpg" width="294" height="24" /><div><table width="294" border="0" cellpadding="0" cellspacing="1" bgcolor="#DCDCDC">
                  <tr>
                    <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="1" cellpadding="2" class="moren">
                      <tr>
                        <td colspan="4">按年份：<a href="viewSearch_fast.asp?type1=nianfen&zhi=1" target="_blank">1年以内</a>｜<a href="viewSearch_fast.asp?type1=nianfen&zhi=2" target="_blank">2年以内</a>|<a href="viewSearch_fast.asp?type1=nianfen&zhi=3" target="_blank">3年以内</a>|<a href="viewSearch_fast.asp?type1=nianfen&zhi=5" target="_blank">5年以内</a></td>
                      </tr>
                      <tr>
                        <td colspan="4" bgcolor="FFF9E9">按价格：<a href="viewSearch_fast.asp?type1=jiage&zhi1=0&zhi2=30000" target="_blank">&lt;3万</a>|<a href="viewSearch_fast.asp?type1=jiage&zhi=30000&zhi2=50000" target="_blank">3-5</a>|<a href="viewSearch_fast.asp?type1=jiage&zhi1=50000&zhi2=80000" target="_blank">5-8</a>|<a href="viewSearch_fast.asp?type1=jiage&zhi1=80000&zhi2=130000" target="_blank">8-13</a>|<a href="viewSearch_fast.asp?type1=jiage&zhi1=130000&zhi2=200000" target="_blank">13-20</a>|<a href="viewSearch_fast.asp?type1=jiage&zhi1=200000&zhi2=1000000" target="_blank">&gt;20</a></td>
                      </tr>
                      <tr>
                        <td colspan="4">按类型：<a href="viewSearch_fast.asp?type1=chexing&zhi=轿车" target="_blank">轿车</a> <a href="viewSearch_fast.asp?type1=chexing&zhi=跑车" target="_blank">跑车</a> <a href="viewSearch_fast.asp?type1=chexing&zhi=suv" target="_blank">SUV</a> <a href="viewSearch_fast.asp?type1=chexing&zhi=面包车" target="_blank">面包车</a> <a href="viewSearch_fast.asp?type1=chexing&zhi=客车" target="_blank">客车</a> <a href="viewSearch_fast.asp?type1=chexing&zhi=货车" target="_blank">货车</a> <a href="viewSearch_fast.asp?type1=chexing&zhi=摩托" target="_blank">摩托</a></td>
                      </tr>
                      <tr>
                        <td colspan="4" align="left" bgcolor="FFF9E9"><img src="images/mo_8.jpg" width="103" height="18" /></td>
                      </tr>
                      <tr>
                        <td width="25%" align="center" valign="middle"><a href="viewSearch_fast.asp?type1=pinpai&zhi=捷达" target="_blank">捷达</a> </td>
                        <td width="25%" align="center" valign="middle"><a href="viewSearch_fast.asp?type1=pinpai&zhi=桑塔纳" target="_blank">桑塔纳</a></td>
                        <td width="25%" align="center" valign="middle"><a href="viewSearch_fast.asp?type1=pinpai&zhi=帕萨特" target="_blank">帕萨特</a></td>
                        <td align="center" valign="middle"><a href="viewSearch_fast.asp?type1=pinpai&zhi=马自达" target="_blank">马自达</a></td>
                      </tr>
                      <tr>
                        <td align="center" valign="middle"><a href="viewSearch_fast.asp?type1=pinpai&zhi=夏利" target="_blank">夏利</a></td>
                        <td align="center" valign="middle"><a href="viewSearch_fast.asp?type1=pinpai&zhi=奥迪" target="_blank">奥迪</a></td>
                        <td align="center" valign="middle"><a href="viewSearch_fast.asp?type1=pinpai&zhi=富康" target="_blank">富康</a></td>
                        <td align="center" valign="middle"><a href="viewSearch_fast.asp?type1=pinpai&zhi=雅阁" target="_blank">雅阁</a></td>
                      </tr>
                      <tr>
                        <td align="center" valign="middle"><a href="viewSearch_fast.asp?type1=pinpai&zhi=赛欧" target="_blank">赛欧</a></td>
                        <td align="center" valign="middle"><a href="viewSearch_fast.asp?type1=pinpai&zhi=宝马" target="_blank">宝马</a></td>
                        <td align="center" valign="middle"><a href="viewSearch_fast.asp?type1=pinpai&zhi=奔驰" target="_blank">奔驰</a></td>
                        <td align="center" valign="middle"><a href="viewSearch_fast.asp?type1=pinpai&zhi=中华" target="_blank">中华</a></td>
                      </tr>
                      <tr>
                        <td align="center" valign="middle"><a href="viewSearch_fast.asp?type1=pinpai&zhi=宝来" target="_blank">宝来</a></td>
                        <td align="center" valign="middle"><a href="viewSearch_fast.asp?type1=pinpai&zhi=波罗" target="_blank">波罗</a></td>
                        <td align="center" valign="middle"><a href="viewSearch_fast.asp?type1=pinpai&zhi=伊兰特" target="_blank">伊兰特</a></td>
                        <td align="center" valign="middle"><a href="viewSearch_fast.asp?type1=pinpai&zhi=千里马" target="_blank">千里马</a></td>
                      </tr>
                      <tr>
                        <td align="center" valign="middle"><a href="viewSearch_fast.asp?type1=pinpai&zhi=切诺基" target="_blank">切诺基</a></td>
                        <td align="center" valign="middle"><a href="viewSearch_fast.asp?type1=pinpai&zhi=金杯" target="_blank">金杯</a></td>
                        <td align="center" valign="middle"><a href="viewSearch_fast.asp?type1=pinpai&zhi=君威" target="_blank">君威</a></td>
                        <td align="center" valign="middle"><a href="viewSearch_fast.asp?type1=pinpai&zhi=飞度" target="_blank">飞度</a></td>
                      </tr>

                    </table></td>
                  </tr>
                </table><br /><img src="images/mo_2.jpg" width="294" height="24" /><br />
                <table width="100%" height="176" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td><%


sql = "select top 6 * from member where ifpinggushi = '1' order by id desc"
rs.open sql,conn,1,1

%>
                        <table width="100%" height="125" border="0" align="center" cellpadding="0" cellspacing="0">
                          <tr>
                            <%
		dim i
		i = 0
		do while not rs.eof
		%>
                            <td valign="top"><table width="92" border="0" cellspacing="1" cellpadding="0" style="color:#696969;">
                                <tr>
                                  <td><%
				if rs("pgimg") = "nothing" then
					imgtmp = "images/morepgs/nohead.jpg"
				else
					imgtmp = rs("pgimg")
				end if
				%>
                                    <a href="viewPgs.asp?id=<%=rs("id")%>" target="_blank"><img src="<%=imgtmp%>" width="90" height="110" style="border:solid 1px #F0F0F0;" /></a></td>
                                </tr>
                                <tr>
                                  <td height="20" align="center"><%=rs("name")%></td>
                                </tr>
                            </table></td>
                            <%
		i = i + 1
		if i=3 then response.write "</tr><tr>"
		rs.movenext
		loop
		rs.close
		%>
                          </tr>
                        </table>                      </td>
                  </tr>
                </table>
                <img src="images/mo_3.jpg" width="294" height="24" /><table width="294" border="0" cellpadding="0" cellspacing="1" bgcolor="#DCDCDC">
                  <tr>
                    <td align="left" valign="middle" bgcolor="#FFFFFF">
					
					<!--#include file="model_tuijian.asp"-->
					
					
					&nbsp;</td>
                  </tr>
                </table><br /><br />
                <div>     </td>
    </tr>
    </table>
    </td></tr></table>
<!--#include file="model_bottom.asp"-->
</div>
</body>
</html>