<!--#include file="../inc/config.asp"-->
<!--#include file="../inc/conn.asp"-->
<!--#include file="../inc/function.asp"-->
<%
dim id,d_sql,member,act
act=request.QueryString("act")
if(request.QueryString("id")<>"") then
	id=Clng(request.QueryString("id"))	
else
	id=0
end if
if(id>0) then
	set rs_m=server.CreateObject("adodb.recordset") 
	d_sql="SELECT t_member.UserId,Email,UserName,IdCard,CreateDate,IsReg,Province,City,IndustryId,SalesFor,InCome,Tel,Mobile,QQ,MSN,HomePage,Address,PostCode, RegDate,Stars,Photo,Hits,Demons,MapX,MapY,MapZ,ContactMan,catalogs.title FROM t_member INNER JOIN catalogs ON t_member.IndustryId = catalogs.id and t_member.id="&id
	rs_m.open d_sql,conn,3,1
	if not rs_m.eof then
		member=rs_m.getrows()
		rs_m.close
		set rs_m=nothing
	else
		response.Write("error")
		rs_m.close
		set rs_m=nothing
		response.End()
	end if
%>
<!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><%=member(2,0)%>-济南分类信息</title>
<meta content="<%=member(2,0)%>-济南分类信息" name=Description>
<meta content="<%=member(2,0)%>-济南分类信息" name=Keywords>
<link href="../style/global.css" rel="stylesheet" type="text/css" />
<link href="style/list.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/js/common.js"></script>
<script type="text/javascript" src="/js/http.js"></script>
<script type="text/javascript">
function LoadCommen(id,page){
	var contain=document.getElementById('commen_list');
	var xmlhttp;	 
			xmlhttp=getXMLRequester();	
			//alert(xmlhttp);
			if(xmlhttp){	
				xmlhttp.onreadystatechange = function doAction() {		
					if (xmlhttp.readyState == 4)
					{			
						contain.innerHTML=xmlhttp.responseText;
					}
				};
				xmlhttp.open("POST", "/commen_more.asp?id="+id+"&page="+page,true);
				xmlhttp.send("");
			}
}
</script>
<style type="text/css">
<!--
.s1 {}
.comname{FONT-WEIGHT: normal; FONT-SIZE: 28px; COLOR: #ffffff; FONT-STYLE: italic; FONT-FAMILY: 黑体}
.navs{ margin:0px; padding:0px; text-align:center; font-size:14px; font-weight:bold; color:#036;}
.navs a:link{ font-size:14px; font-weight:bold; color:#036; text-decoration:none;}
.navs a:hover{ font-size:14px; font-weight:bold; color:#036; text-decoration:none;}
.navs a:visited{ font-size:14px; font-weight:bold; color:#036; text-decoration:none;}
.navs a:active{ font-size:14px; font-weight:bold; color:#036; text-decoration:none;}
-->
</style>
</head>

<body onload="LoadMap()">
<table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="12" align="left" bgcolor="#F7F7F7">&nbsp;</td>
    <td width="948" height="20" align="left" bgcolor="#F7F7F7"><a href="http://www.jntao.com/">淘网首页</a> | <a href="http://www.jntao.com/info/">分类信息 | </a> <a href="http://www.jntao.com/es/">二手信息 | </a><a href="http://www.jntao.com/fdc/">济南房产 | </a><a href="http://www.jntao.com/eat/">吃在济南 | </a><a href="http://www.jntao.com/company/">公司/商户 | </a><a href="http://www.jntao.com/news/">打折/优惠 | </a><a href="http://www.jntao.com/ask/">济南问答</a></td>
  </tr>
</table>
<table width="960" border="0" align="center" cellpadding="0" cellspacing="0" class="black_brd">
  <tr>
    <td height="110" align="center" background="images/banner.gif"><span class="comname"><%=member(2,0)%></span></td>
  </tr>
  <tr>
    <td height="30" align="center" background="images/top.gif">
    <div class="navs">
    <a href="detail_<%=id%>.html">首 页</a> | <a href="detail_<%=id%>_about.html">公司介绍</a> | <a href="detail_<%=id%>_product.html">产品展厅</a> | <a href="detail_<%=id%>_business.html">经营范围</a> | <a href="detail_<%=id%>_contact.html">联系方式</a> | <a href="detail_<%=id%>_commen.html">发表评论</a></div>
    </td>
  </tr>
</table>
<div class="br"></div>
<table width="960"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><div class="right"><a href="/reg.asp" style="color:red; line-height:24px; font-weight:bold;">商家加入-&gt;</a>&nbsp;<a href="/login.asp" style="color:green; line-height:24px; font-weight:bold;">商家登录-&gt;</a></div>
    <div class="position">当前位置：<a href="/">首页</a>&gt;<a href="/company/">济南商户</a>&gt;<a href="list_<%=member(8,0)%>_0___1.html"><%=member(27,0)%></a>&gt;<%=member(2,0)%></div></td>
  </tr>
</table>
<div class="list_main">
	<div id="list_contain">
  	<div id="left">
  	  <%
			if(act="") then
			%>
      <table width="100%" border="0" cellpadding="0" cellspacing="1">
        <tr>
          <td height="35" colspan="2" class="th_title"><h2><%=member(2,0)%></h2></td>
        </tr>
        <tr>
          <td width="31%" bgcolor="#FFFFFF"><div align="left"><img src="<%=member(20,0)%>" alt="<%=member(2,0)%>" name="p_view2" width="200" height="170" id="p_view2" /></div></td>
          <td width="69%" valign="top" class="padd5"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="28%" class="padd5"><span class="td_row">年销售额</span>：</td>
              <td width="72%" class="padd5"><%=member(10,0)%></td>
            </tr>
            <tr>
              <td class="padd5"><span class="td_row">所属行业：</span></td>
              <td class="padd5"><a href="list_<%=member(8,0)%>_0___1.html"><%=member(27,0)%></a></td>
            </tr>
            <tr>
              <td class="padd5"><span class="td_row">是否工商注册：</span></td>
              <td class="padd5"><%=member(3,0)%></td>
            </tr>
            <tr>
              <td class="padd5">地区：</td>
              <td class="padd5"><%=member(6,0)%>-<%=member(7,0)%></td>
            </tr>
            <tr>
              <td class="padd5">地址：</td>
              <td class="padd5"><%=member(16,0)%> <a href="imap.asp?id=<%=id%>"><img src="../images/imap.gif" alt="我来标注位置" width="85" height="27" align="absmiddle" /></a></td>
            </tr>
            <tr>
              <td class="padd5">公司成立日期：</td>
              <td class="padd5"><%=member(4,0)%></td>
            </tr>
            <tr>
              <td class="padd5"><span class="td_row">点击次数：</span></td>
              <td class="padd5"><%=member(21,0)%></td>
            </tr>
          </table></td>
        </tr>
      </table>
      <%
			end if
			if(act="" or act="business") then
			%>
  	  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#E8EBF2" class="s1">
        <tr>
          <td bgcolor="#F8F8F9" class="padd5"><strong><span class="td_row">经营范围</span>：</strong></td>
        </tr>
        <tr>
          <td bgcolor="#FFFFFF" class="padd5"><%=member(9,0)%></td>
        </tr>
      </table>
      <%
			end if
			%>
      <div class="br"></div>
      <%
			if(act="" or act="product") then
			%>
      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#E8EBF2" class="s1">
        <tr>
          <td bgcolor="#F8F8F9" class="padd5"><strong><span class="td_row">产品列表</span>：</strong></td>
        </tr>
        <tr>
          <td bgcolor="#FFFFFF" class="padd5">
					<div class="hotPics">
            <ul>
              <%
              set rs=server.CreateObject("adodb.recordset") 
              rs.open "select top 6 id,Title,Photo from t_products where UserId='"&member(0,0)&"' order by id desc",conn,3,1
              while not rs.eof
              %>
              <li><a href="detail_<%=id%>_productshow_<%=rs(0)%>.html" title="<%=rs(1)%>"><img src="<%=rs(2)%>" alt="<%=rs(1)%>" width="148" height="113" border="0"  /></a><h2><a href="detail_<%=id%>_productshow_<%=rs(0)%>.html" title="<%=rs(1)%>"><%=left(rs(1),11)%></a></h2></li>
              <%
                rs.movenext
              wend
              rs.close
              set rs=nothing
              %>
            </ul>
            <div class="clear"></div>
          </div>
          </td>
        </tr>
      </table>
      <%
			end if
			%>
      <div class="br"></div>
			<%
			if(act="" or act="about") then
			%>  	        
  	  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#E8EBF2" class="s1">
        <tr>
          <td bgcolor="#F8F8F9" class="padd5"><strong>公司介绍：</strong></td>
        </tr>
        <tr>
          <td bgcolor="#FFFFFF" class="padd5"><%=member(22,0)%></td>
        </tr>
      </table>      
  	  <div class="br"></div>
  	  <%
			end if
			%>
      <%
			if(act="" or act="contact") then
			%>
      <div class="cont">
        <h2>联系方式</h2>
        <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#F2F8F9">
            <tr>
              <td width="23%" bgcolor="#FFFFFF" class="padd5">联系人：</td>
              <td width="77%" bgcolor="#FFFFFF" class="padd5"><div align="left"><%=member(26,0)%></div></td>
            </tr>
            <tr>
              <td width="23%" bgcolor="#FFFFFF" class="padd5">邮箱：</td>
              <td width="77%" bgcolor="#FFFFFF" class="padd5"><div align="left"><%=member(1,0)%></div></td>
            </tr>
            <tr>
              <td bgcolor="#FFFFFF" class="padd5">电话：</td>
              <td bgcolor="#FFFFFF" class="padd5"><div align="left"><%=member(11,0)%></div></td>
            </tr>
            <tr>
              <td bgcolor="#FFFFFF" class="padd5">传真：</td>
              <td bgcolor="#FFFFFF" class="padd5"><div align="left"><%=member(14,0)%></div></td>
            </tr>
            <tr>
              <td bgcolor="#FFFFFF" class="padd5">地址：</td>
              <td bgcolor="#FFFFFF" class="padd5"><div align="left"><%=member(16,0)%></div></td>
            </tr>
            <tr>
              <td bgcolor="#FFFFFF" class="padd5">手机：</td>
              <td bgcolor="#FFFFFF" class="padd5"><div align="left"><%=member(12,0)%></div></td>
            </tr>
            <tr>
              <td bgcolor="#FFFFFF" class="padd5">QQ：</td>
              <td bgcolor="#FFFFFF" class="padd5"><div align="left"><a href="http://wpa.qq.com/msgrd?V=1&amp;Uin=<%=member(13,0)%>&amp;Site=中国网店导航&amp;Menu=yes" target="_blank"><%=member(13,0)%></a></div></td>
            </tr>
            <tr>
              <td bgcolor="#FFFFFF" class="padd5">邮编：</td>
              <td bgcolor="#FFFFFF" class="padd5"><div align="left"><%=member(17,0)%></div></td>
            </tr>
            <tr>
              <td bgcolor="#FFFFFF" class="padd5">网址：</td>
              <td bgcolor="#FFFFFF" class="padd5"><a href="http://<%=replace(member(15,0),"http://","")%>" target="_blank"><%=member(15,0)%></a></td>
            </tr>
          </table>
      </div>
      <%
			end if
			%>
      <%
			if(act="" or act="commen") then
			%>
  	  <div align="center" id="commen_list"></div>
      <div class="cont">
        <h2>发表评论</h2>
          <form action="/shop_commen.asp" method="post">
          <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table">
            <tr>
              <td colspan="2" style="line-height:10px;">&nbsp;</td>
            </tr>
            <tr>
              <td width="17%"><div align="center">内容：</div></td>
              <td width="83%"><div align="left">
                  <textarea name="f_content" cols="55" id="f_content"></textarea>
                (150字以内)</div></td>
            </tr>
            <tr>
              <td><div align="center">姓名：</div></td>
              <td><div align="left">
                  <input name="f_name" type="text" id="f_name" value="<%=request.Cookies("TotCms_Cookie")("UserName")%>" size="15" />
                (<span class="style2">*</span>)</div></td>
            </tr>
            <tr>
              <td><div align="center">喜欢的商品：</div></td>
              <td><div align="left">
                  <input name="f_products" type="text" id="f_products" size="25" />
              </div></td>
            </tr>
            <tr>
              <td><div align="center">点评：</div></td>
              <td><div align="left">
                  <select name="f_score">
                    <option value="1" selected="selected">好评</option>
                    <option value="0">中评</option>
                    <option value="2">差评</option>
                  </select>
              </div></td>
            </tr>
            <tr>
              <td colspan="2"><div align="center">
                  <input type="hidden" name="shop_id" value="<%=id%>" />
                  <input type="submit" name="Submit2" value="提 交" />
                  <input type="reset" name="Submit22" value="重 写" />
              </div></td>
            </tr>
          </table>
        </form>
  	  </div>
      <script type="text/javascript">
				LoadCommen(<%=id%>,1);
			</script>
      <%
			end if
			%>
      <%
			if(act="" or act="productshow") then
				dim pid
				pid=Clng(request.QueryString("pid"))
				set rs=server.CreateObject("adodb.recordset") 
				rs.open "select Title,Photo,Price,Content,UserId from t_products where id="&pid,conn,3,1
				if not rs.eof then
			%>
      <div class="cont">
        <h2>产品展示</h2>
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td class="show_title"><%=member(0,0)%></td>
          </tr>
          <tr>
            <td align="center">价格：<%if(Clng(rs(2))=0) then response.Write("面议") else response.Write(rs(2)) end if%></td>
          </tr>
          <tr>
            <td align="center" class="padd5"><a href="<%=replace(rs(1),"_jumbnail","")%>" target="_blank"><img src="<%=rs(1)%>" height="200" alt="<%=rs(0)%>" /></a></td>
          </tr>
          <tr>
            <td class="show_content"><%=rs(3)%></td>
          </tr>
        </table>
      </div>
      <%
				end if
				rs.close
				set rs=nothing
			end if
			%>
  	</div>
    <div id="right">    	
    	<TABLE border=0 cellSpacing=1 cellPadding=0 width="100%" bgColor="#b7c8d9"><TBODY>
        <TR>
          <TD style="PADDING-LEFT: 10px; COLOR: #333333; FONT-WEIGHT: 700" bgColor="#ffffff" height="30" background="images/top.gif">联系方式</TD></TR>
        <TR>
          <TD 
          style="PADDING-BOTTOM: 8px; LINE-HEIGHT: 180%; PADDING-LEFT: 5px; PADDING-RIGHT: 5px; PADDING-TOP: 8px" bgColor="#ffffff"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#F2F8F9">
            <tr>
              <td width="23%" bgcolor="#FFFFFF" class="padd5">邮箱：</td>
              <td width="77%" bgcolor="#FFFFFF" class="padd5"><div align="left"><%=member(1,0)%></div></td>
            </tr>
            <tr>
              <td bgcolor="#FFFFFF" class="padd5">电话：</td>
              <td bgcolor="#FFFFFF" class="padd5"><div align="left"><%=member(11,0)%></div></td>
            </tr>
            <tr>
              <td bgcolor="#FFFFFF" class="padd5">手机：</td>
              <td bgcolor="#FFFFFF" class="padd5"><div align="left"><%=member(12,0)%></div></td>
            </tr>
            <tr>
              <td bgcolor="#FFFFFF" class="padd5">QQ：</td>
              <td bgcolor="#FFFFFF" class="padd5"><div align="left"><a href="http://wpa.qq.com/msgrd?V=1&amp;Uin=<%=member(13,0)%>&amp;Site=中国网店导航&amp;Menu=yes" target="_blank"><%=member(13,0)%></a></div></td>
            </tr>
            <tr>
              <td bgcolor="#FFFFFF" class="padd5">邮编：</td>
              <td bgcolor="#FFFFFF" class="padd5"><div align="left"><%=member(17,0)%></div></td>
            </tr>
            <tr>
              <td bgcolor="#FFFFFF" class="padd5">网址：</td>
              <td bgcolor="#FFFFFF" class="padd5"><a href="http://<%=replace(member(15,0),"http://","")%>" target="_blank"><%=member(15,0)%></a></td>
            </tr>
          </table></TD></TR></TBODY></TABLE>
    	<div id="mapDiv" name="mapDiv" style="width:100%;height:223px; border:1px solid #ccc;"></div>
      <div class="br"></div>
      <div class="cont">
        <h2><a href="/news/77/index_1.htm">本类热点</a></h2>
    	  <div class="txts_10">
          <ul>
            <%
							set rs=server.CreateObject("adodb.recordset") 
							rs.open "select top 6 id,UserName,HomePage,Photo from t_member where IsTop=1 order by SortId asc",conn,3,1
							while not rs.eof
							%>
							<li>·<a href="/company/detail_<%=rs(0)%>.html" title="<%=rs(1)%>" target="_blank"><%=rs(1)%></a></li>
							<%
								rs.movenext
							wend
							rs.close
							set rs=nothing
							%>    
          </ul>
  	    </div>    	  
  	  </div>
      <div class="cont">
        <h2>最新评论</h2>
    	  <div class="txts_10">
          <ul>
            <%
							set rs=server.CreateObject("adodb.recordset") 
							rs.open "select top 10 shop_id,f_content from t_shop_commen order by id desc",conn,3,1
							while not rs.eof
							%>
							<li>·<a href="/company/detail_<%=rs(0)%>.html" target="_blank"><%=left(rs(1),17)%></a></li>
							<%
								rs.movenext
							wend
							rs.close
							set rs=nothing
							%>    
          </ul>
  	    </div>
    	  <div class="clear"></div>
  	  </div>
    </div>
  </div>  
</div>   
<!--#include file="../root.asp"-->
<script type="text/javascript" language="javascript" src="http://api.51ditu.com/js/maps.js"></script>
<script type="text/javascript"> 
function LoadMap()
{
	var maps = new LTMaps( "mapDiv" ); 
	maps.cityNameAndZoom("jinan" ,<%=member(25,0)%>); 
	var point = new LTPoint(<%=member(23,0)%>,<%=member(24,0)%>);
	maps. centerAndZoom ( new LTPoint(<%=member(23,0)%>,<%=member(24,0)%>) , 1 ); 
	 
	var marker = new LTMarker( point ); 
	maps.addOverLay( marker ); 
	var infoWin = new LTInfoWindow( marker ); 
	infoWin.setLabel('<a href="http://www.jntao.com/company/detail_<%=id%>.html" target="_blank"><%=member(2,0)%></a>');  
	maps.addOverLay( infoWin ); 
	maps.handleKeyboard();//启用键盘
	maps.handleMouseScroll();//启用鼠标滚轮
}
</script>
</body>
</html>
<%
end if
set member=nothing
conn.execute("update t_member set Hits=Hits+1 where id="&id)
call connclose()
%>
