<!--#include file="pysjzx_conn.asp"-->
<!--#include file="webconfig.asp"-->
<%if IsNumeric(request.QueryString("id"))=False then
response.write("<script>alert(""参数错误!"");location.href=""company.asp"";</script>")
response.end
end if
dim id
id=request.QueryString("id")
if not IsNumeric(id) then
response.write"<script>alert(""参数错误!"");location.href=""company.asp"";</script>"
response.end
end if

		Set rs3= Server.CreateObject("ADODB.Recordset")
		sql3="select * from pysjzx_user where sort=2 and userid=" &id & ""
		rs3.open sql3,conn,1,1
		%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<title><%=webname%>-经销商-<%=rs3("company")%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta content="<%=keyword%>" name="keywords">
<meta content="<%=description%>" name="description">
<LINK href="css/style.css" rel=stylesheet type=text/css>
<SCRIPT language=javaScript>
<!--
function mOvr(src,clrOver){ 
	if (!src.contains(event.fromElement)) { 
		src.bgColor = clrOver; 
	}
}
function mOut(src,clrIn)  { 
	if (!src.contains(event.toElement)) { 
		src.bgColor = clrIn; 
	}
} 
//-->
</SCRIPT>
</head>
<table height="5" cellSpacing="0" cellPadding="0" width="776" align="center" border="0">
	<tr>
		<td width="550" bgColor="#c71444">　</td>
		<td width="227" bgColor="#666666">　</td>
	</tr>
</table>
<table height="67" cellSpacing="0" cellPadding="0" width="776" align="center" bgColor="#ffffff" border="0">
	<tr>
		<td align="middle" width="549" height="59">
		<table border="0" width="100%" cellspacing="0" cellpadding="0">
			<tr>
				<td width="178">
		<p align="center">
		<%if rs3("logo") <>"" then%><img height="40" src="<%=rs3("logo")%>" width="70" border="0">
		<%end if%></td>
				<td><font color="#d22119" size="5"><b><%=rs3("company")%></b></font></td>
			</tr>
		</table>
		</td>
		<td width="227">
		联系电话:<%=rs3("tel")%></td>
	</tr>
</table>
<table  cellSpacing="0" cellPadding="0" width="776" align="center" border="0">
	<tr>
		<td vAlign="top" ><%if rs3("ad") <>"" then%>
		<img  width="775" src="<%=rs3("ad")%>"  border="0">
		<%end if%></td>
	</tr>
	</table>
<table height="10" cellSpacing="0" cellPadding="0" width="776" align="center" bgColor="#ffffff" border="0">
	<tr>
		<td>　</td>
	</tr>
</table>
<table height="29" cellSpacing="0" cellPadding="0" width="776" align="center" bgColor="#ffffff" border="0">
	<tr>
		<td vAlign="bottom" align="middle" width="79" background="images/t-1.gif" height="29">
		<strong class="1423"><a name="01#"><font color="#d22119">公司简介</font></a></strong></td>
		<td width="605" background="images/t-2.gif">　</td>
		<td align="right" width="92">
		<img height="33" src="images/t-2.gif" width="92"></td>
	</tr>
</table>
<table cellSpacing="0" cellPadding="0" width="776" align="center" bgColor="#ffffff" border="0">
	<tr>
		<td align="middle" width="214" ><%if rs3("info_pic") <>"" then%>
		<img height="137" src="<%=rs3("info_pic")%>" width="182" border="1"><%end if%></td>
		<td class="1423" valign="top"><font color="#c71444"><br>
		<%=rs3("company")%>公司简介： <br>
		<br>
		</font>
&nbsp;&nbsp;&nbsp;&nbsp;<%=rs3("info")%></td>
		<td width="6">　</td>
	</tr>
</table>



<table height="10" cellSpacing="0" cellPadding="0" width="776" align="center" bgColor="#ffffff" border="0">
	<tr>
		<td>　</td>
	</tr>
</table>
<table height="29" cellSpacing="0" cellPadding="0" width="776" align="center" bgColor="#ffffff" border="0">
	<tr>
		<td vAlign="bottom" align="middle" width="79" background="images/t-1.gif" height="29">
		<strong class="1423"><a id="#03" name="03#"><font color="#d22119">最新动态</font></a></strong></td>
		<td width="605" background="images/t-2.gif">　</td>
		<td align="right" width="92">
		<img height="33" src="images/t-2.gif" width="92"></td>
	</tr>
</table>
<table cellSpacing="0" cellPadding="0" width="776" align="center" border="0">
	<tr>
		<td vAlign="top" bgColor="#ffffff" >
		<table height="15" cellSpacing="0" cellPadding="0" width="20%" border="0">
			<tr>
				<td>　</td>
			</tr>
		</table>
		<table cellSpacing="0" cellPadding="0" width="96%" align="center" border="0">
			<tr>
				<td class="1218" width="357" height="21">
				<strong><font color="#c71444"><%=rs3("news")%> 
				</font></strong></a>　　　</td>
			</tr>
			<tr>
				<td class="1218" vAlign="top" >
				<table class="updown9B9B9B" height="10" cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
					<tr>
						<td>　</td>
					</tr>
				</table>
				<font color="#666666">
				&nbsp;&nbsp;&nbsp;&nbsp;<%=rs3("news_info")%></font> 	<table class="updown9B9B9B" height="10" cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
					<tr>
						<td>　</td>
					</tr>
				</table>
				</td>
			</tr>
		</table>
		</td>
	</tr>
</table>
<table height="10" cellSpacing="0" cellPadding="0" width="776" align="center" bgColor="#ffffff" border="0">
	<tr>
		<td>　</td>
	</tr>
</table>
<div align="center">
<%if rs3("service_sort1")=1 then%>
<table height="29" cellSpacing="0" cellPadding="0" width="776" align="center" bgColor="#ffffff" border="0">
	<tr>
		<td vAlign="bottom" align="middle" width="79" background="images/t-1.gif" height="29">
		<strong class="1423"><a name="05#"><font color="#d22119">报&nbsp; 价</font></a></strong></td>
		<td width="605" background="images/t-2.gif">　</td>
		<td align="right" width="92">
		<img height="33" src="images/t-2.gif" width="92"></td>
	</tr>
</table>
		<table cellSpacing="1" cellPadding="0" width="778" border="0">
			<tr align="middle">
				<td width="20%" bgColor="#EFEFEF" height="19">品 牌</td>
				<td width="30%" bgColor="#EFEFEF">型 号</td>
				<td width="15%" bgColor="#EFEFEF">价格(元)</td>
				<td width="20%" bgColor="#EFEFEF">日期</td>
				<td width="15%" bgColor="#EFEFEF">订</td>
			</tr>
			<%
			  set rs=server.createobject("adodb.recordset")
sql="select  id,model,adddate,province,price,city,estate,anclass,nclass,attop,topadddate,username from price where estate=1 and username='"&rs3("username")&"' order by adddate desc"
rs.open sql,conn,1,1
do while not rs.eof
if rs("attop")=1 then
color="<font color='#FF0000'>"
elseif rs("attop")=2 then
color="<font color='#008080'>"
else
color="<font color='#000000'>"
end if

			%>
			<tr bgColor="#efefef" onmouseout="mOut(this,'#efefef');" onmouseover="mOvr(this,'#FFD28E');">
				<td vAlign="center" align="middle" height="19" >
					<%=color%>
				<%set rs2=server.createobject("adodb.recordset")
									rs2.open "select * from anclass where anclassid="&rs("anclass"),conn,1,1
									if rs2.recordcount>0 then
									response.write rs2("anclass")
									end if
									rs2.close
									%></td>
				<td align="center"  height="19"><p align="center"><a   href="price_list.asp?id=<%=rs("id")%>">
										<%=color%>
				<%=rs("model")%></font></a></td>
				<td  align="middle"><%=color%>
				<%=rs("price")%></td>
				<td align="middle"   height="19"><%=color%>
					<%if rs("attop")=1 then%>
				<%=right("0"&month(rs("topadddate")),2)%>-<%=right("0"&day(rs("topadddate")),2)%>
				<%elseif rs("attop")=2 then%>
				<%else%>
	<%=right("0"&month(rs("adddate")),2)%>-<%=right("0"&day(rs("adddate")),2)%>
	<%end if%></td>
				<td align="middle"  height="19">
				<a href="javascript:winopen1('order.asp?id=<%=rs("id")%>')">
				<%=color%>
				订</a></td>
			</tr>
		
					<%
			  rs.movenext
              loop
              rs.close
              set rs=nothing
	
			%>
			</table>
			<%end if%>
			<%if rs3("service_sort2")=1 then%>
			<table height="29" cellSpacing="0" cellPadding="0" width="776" align="center" bgColor="#ffffff" border="0">
	<tr>
		<td vAlign="bottom" align="middle" width="79" background="images/t-1.gif" height="29">
		<strong class="1423"><a name="05#"><font color="#d22119">二 手 车</font></a></strong></td>
		<td width="605" background="images/t-2.gif">　</td>
		<td align="right" width="92">
		<img height="33" src="images/t-2.gif" width="92"></td>
	</tr>
</table>
			<table cellSpacing="1" cellPadding="0" width="778" border="0">
			<tr align="middle">
				<td width="20%" bgColor="#EFEFEF" height="19">品 牌</td>
				<td width="30%" bgColor="#EFEFEF">型 号</td>
				<td width="15%" bgColor="#EFEFEF">价格(元)</td>
				<td width="20%" bgColor="#EFEFEF">地区</td>
				<td width="15%" bgColor="#EFEFEF">日期</td>
			</tr><%
         set rs=server.createobject("adodb.recordset")
sql="select top 14 id,model,adddate,province,sell_price,city,estate,anclass,nclass,attop,topadddate,username from second_hand where estate=1 and username='"&rs3("username")&"'  order by adddate desc"
rs.open sql,conn,1,1
do while not rs.eof
            %>
			<tr bgColor="#efefef" onmouseout="mOut(this,'#efefef');" onmouseover="mOvr(this,'#FFD28E');">
				<td vAlign="center" align="middle"  height="19" >
				<%=color%>
				<%set rs2=server.createobject("adodb.recordset")
									rs2.open "select * from anclass where anclassid="&rs("anclass"),conn,1,1
									if rs2.recordcount>0 then
									response.write rs2("anclass")
									end if
									rs2.close
									%></td>
				<td align="center"  height="19" >
				<a   href="second_hand_list.asp?id=<%=rs("id")%>">
				<%=color%>
	<%
				if len(trim(rs("model"))) >= 28 then
				response.write left(trim(rs("model")),26)&".."
				else
				response.write trim(rs("model"))
				end if
				%></a></td>
				<td  align="middle"  >
				<%=color%>
	<%if rs("sell_price") =0 then
				response.write "面议"
				else
				response.write rs("sell_price")
				end if
				%></td>
				<td align="middle"  height="19"><%=color%>
				<%set rs2=server.createobject("adodb.recordset")
									rs2.open "select * from province where shengNo="&rs("province"),conn,1,1
									if rs2.recordcount>0 then
									response.write rs2("shengname")
									shengid=rs2("id")
									else
									response.write "不限地区"
									end if
									rs2.close
									%>
									<%set rs2=server.createobject("adodb.recordset")
									rs2.open "select * from city where shengid="&shengid&" and shiNo="&rs("city")&"",conn,1,1
									if rs2.recordcount>0 then
									response.write "-"&rs2("shiname")
									end if
									rs2.close
									%>
				</td>
				<td align="middle"  height="19"><%=color%>
				<%if rs("attop")=1 then%>
				<%=right("0"&month(rs("topadddate")),2)%>-<%=right("0"&day(rs("topadddate")),2)%>
				<%elseif rs("attop")=2 then%>
				<%else%>
	<%=right("0"&month(rs("adddate")),2)%>-<%=right("0"&day(rs("adddate")),2)%>
	<%end if%></td>
			</tr>
			<%
			  rs.movenext
              loop
              rs.close
              set rs=nothing
			%>
		</table>
		<%end if%>
	<%if rs3("service_sort3")=1 then%>
	<table height="29" cellSpacing="0" cellPadding="0" width="776" align="center" bgColor="#ffffff" border="0">
	<tr>
		<td vAlign="bottom" align="middle" width="79" background="images/t-1.gif" height="29">
		<strong class="1423"><a name="05#"><font color="#d22119">租 赁 车</font></a></strong></td>
		<td width="605" background="images/t-2.gif">　</td>
		<td align="right" width="92">
		<img height="33" src="images/t-2.gif" width="92"></td>
	</tr>
</table>
		<table cellSpacing="1" cellPadding="0" width="778" border="0">
			<tr align="middle">
				<td width="20%" bgColor="#EFEFEF" height="19">品 牌</td>
				<td width="30%" bgColor="#EFEFEF">型 号</td>
				<td width="17%" bgColor="#EFEFEF">日租价(元)</td>
				<td width="17%" bgColor="#EFEFEF">月租价<span lang="en-us">(</span>元<span lang="en-us">)</span></td>
				<td width="16%" bgColor="#EFEFEF">日期</td>
			</tr><%
         set rs=server.createobject("adodb.recordset")
sql="select top 14 id,model,adddate,province,day_lease_price,month_lease_price,city,estate,anclass,nclass,attop,topadddate,username from lease where estate=1 and username='"&rs3("username")&"'  order by adddate desc"
rs.open sql,conn,1,1
do while not rs.eof
            %>
			<tr  bgColor="#efefef" onmouseout="mOut(this,'#efefef');" onmouseover="mOvr(this,'#FFD28E');">
				<td vAlign="center" align="middle" height="19" >
				<%=color%>
				<%set rs2=server.createobject("adodb.recordset")
									rs2.open "select * from anclass where anclassid="&rs("anclass"),conn,1,1
									if rs2.recordcount>0 then
									response.write rs2("anclass")
									end if
									rs2.close
									%></td>
				<td align="center"  height="19" >
				<a   href="lease_list.asp?id=<%=rs("id")%>">
		<%=color%>
	<%
				if len(trim(rs("model"))) >= 28 then
				response.write left(trim(rs("model")),26)&".."
				else
				response.write trim(rs("model"))
				end if
				%></a></td>
				<td  align="middle"  >
		<%=color%>
	<%if rs("day_lease_price") =0 then
				response.write "面议"
				else
				response.write rs("day_lease_price")
				end if
				%></td>
				<td align="middle"   height="19">
			<%=color%>
	<%if rs("month_lease_price") =0 then
				response.write "面议"
				else
				response.write rs("month_lease_price")
				end if
				%></td>
				<td align="middle"   height="19">
				<%=color%>
				<%if rs("attop")=1 then%>
				<%=right("0"&month(rs("topadddate")),2)%>-<%=right("0"&day(rs("topadddate")),2)%>
				<%elseif rs("attop")=2 then%>
				<%else%>
	<%=right("0"&month(rs("adddate")),2)%>-<%=right("0"&day(rs("adddate")),2)%>
	<%end if%>
	</td>
				</tr>
			<%
			  rs.movenext
              loop
              rs.close
              set rs=nothing
			%>
		</table>
<%end if%>
		
		</div>
<table height="10" cellSpacing="0" cellPadding="0" width="776" align="center" bgColor="#ffffff" border="0">
	<tr>
		<td>　</td>
	</tr>
</table>
<table height="29" cellSpacing="0" cellPadding="0" width="776" align="center" bgColor="#ffffff" border="0">
	<tr>
		<td vAlign="bottom" align="middle" width="79" background="images/t-1.gif" height="29">
		<strong class="1423"><a name="06#"><font color="#d22119">联系我们</font></a></strong></td>
		<td width="605" background="images/t-2.gif">　</td>
		<td align="right" width="92">
		<img height="33" src="images/t-2.gif" width="92"></td>
	</tr>
</table>
<table height="252" cellSpacing="2" cellPadding="0" width="776" align="center" bgColor="#ffffff" border="0">
	<tr>
		<td align="middle" width="389" rowSpan="9"><span class="1218"><%if rs3("address_pic") <>"" then%>
		<a target="_blank" style="font-size: 12px; line-height: 18px; color: #000000; text-decoration: underline" href="<%=rs3("address_pic")%>">
		<img height="230" src="<%=rs3("address_pic")%>" width="362" border="0"></a></span><%end if%></td>
		<td  width="381" height="19" colspan="2">
		<p align="center">
		<font color="#c71444"><%=rs3("company")%></font></span></span></td>
	</tr>
	<tr>
		<td  height="20" bgColor="#efefef" width="80">
		<p align="right"><span class="1218">
		<span class="1423">
		联系电话：</span></span></td>
		<td  height="20" bgColor="#efefef" width="299">&nbsp;<%=rs3("tel")%>　</td>
	</tr>
	<tr>
		<td  height="20" width="80">
				<p align="right">联系地址<span class="1218"><span class="1423">：</span></span></td>
		<td  height="20" width="299">&nbsp;<%=rs3("address")%>
				　</td>
	</tr>
	<tr>
		<td height="20" width="80">
				<p align="right">联系人<span class="1218"><span class="1423">：</span></span>　</td>
		<td height="20" width="299"><%=rs3("linkname")%>　　
　</td>
	</tr>
	<tr>
		<td height="20" width="80">
				<p align="right">传真<span class="1218"><span class="1423">：</span></span></td>
		<td height="20" width="299"><%=rs3("fax")%>　　</td>
	</tr>
	<tr>
		<td height="20" width="80">
		<p align="right">邮编<span class="1218"><span class="1423">：</span></span></td>
		<td height="20" width="299"><%=rs3("zip")%> 　　</td>
	</tr>
	<tr>
		<td height="20" width="80">
				<p align="right">EMAIL<span class="1218"><span class="1423">：</span></span></td>
		<td height="20" width="299"><%=rs3("email")%>　</td>
	</tr>
	<tr>
		<td height="20" width="80">
				<p align="right">公司网址<span class="1218"><span class="1423">：</span></span></td>
		<td height="20" width="299"><a target="_blank" href="<%=rs3("web")%>"><%=rs3("web")%></a>　</td>
	</tr>


</table>
<table height="20" cellSpacing="0" cellPadding="0" width="776" align="center" bgColor="#ffffff" border="0">
	<tr>
		<td>　</td>
	</tr>
</table>
<table height="1" cellSpacing="0" cellPadding="0" width="776" align="center" bgColor="#acacac" border="0">
	<tr>
		<td height=2></td>
	</tr>
</table>
<table height="60" cellSpacing="0" cellPadding="0" width="776" align="center" bgColor="#ffffff" border="0">
	<tr>
		<td class="1218" align="middle">Copyright &copy; 2007  版权所有 All Rights Reserved
 <br>
		　</td>
	</tr>
</table>
	<SCRIPT language=javascript>
<!--
function winopen1(url)
{
window.open(url,"","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=yes,width=608,height=420,top=100,left=100");
}
//-->
</SCRIPT>