<!--#include file="top_in.tpl"-->

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>品牌大全 - {anxinMall:global.cfg_sitename}</title>
<link rel="stylesheet" type="text/css" href="/skin/{anxinMall:global.cfg_siteskin}/template/style_brand/css/brand.css" media="screen"/><!---->

<script type="text/javascript" src="/skin/{anxinMall:global.cfg_siteskin}/template/style_index_map/jquery1.42.min.js"></script>

</head>
<body>

<div id="PageNav" class="wid1000 clearfix">当前位置：<a href="/?" title="首页">首页</a>&nbsp;&raquo;&nbsp;品牌大全</div>

<div class="wid1000 clearfix">
	<div style="display:none;">
	<strong class="s_1">品牌大全</strong>&nbsp;&nbsp;
	<strong class="s_2"><a href="/?a=brand_add">【品牌入驻】</a></strong>&nbsp;&nbsp;<strong class="s_2"><a href="/?a=pcat">【查看所有分类】</a></strong>
	</div>
</div>
	<div class="c_Title wid1000">
		<ul>
			<li class="normal"><a href="/?a=brand" title="品牌大全">品牌大全</a></li>
			<li class="normal"><a href="/?a=pcat" title="商品分类">商品分类</a></li>
			<li class="active"><a href="/?a=map" title="地图导航">地图导航</a></li>
		</ul>
	</div>
	<div id="category" class="clearfix wid1000">
		<div class="c_Item">
			<div class="a_shop_tit a_shop_today_new" style="width:1190px;height:650px;border:solid 2px #fff;">
				<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=BQmd1lDwSEGnwsARZOdG07mI"></script>
				<style>
				    .coupon_activate { background: none repeat scroll 0 0 #fff; border-top:
				    2px solid #6bc30d; padding: 25px; width:1190px; margin:0 0 20px 29px; height:680px;
				    } .brand_top{width:884px;} .qh{text-align:right; height:52px;} .qh a {
				    cursor: auto; vertical-align: middle; width: 105px; margin-top:25px; }
				    #allmap {width:1190px;height:648px;overflow: hidden;margin:0; position:absolute;}
				    #l-map{height:100%;width:78%;float:left;border-right:2px solid #bcbcbc;}
				    #r-result{height:100%;width:20%;float:left;}
				</style>
					<div id="allmap"></div>
					<script type="text/javascript">
					var m = new Array(
{anxinMall:maplist $sql=select top 100 userid,name,mapcode,dz,mobile,tel,erweima from [anxinMall_shjia] order by userid asc $cache=0}
[[maplist:mapcode],'[maplist:userid]','【微信扫扫打开微店】<br/>&nbsp;&nbsp;<img src=[maplist:erweima] width=100 height=100><br/><a href=/s/index.asp?id=[maplist:userid] target=_blank>【[maplist:name]】</a><br />网店:<a href=/s/index.asp?id=[maplist:userid] target=_blank>{anxinMall:global.cfg_siteurl}/s/?id=[maplist:userid]</a><br />地址:[maplist:dz]<br/>电话：[maplist:mobile]'],
{/anxinMall:maplist}
					[0,0,'','']
					);

					// 百度地图API功能
					var map = new BMap.Map("allmap");
					map.centerAndZoom(new BMap.Point(107.890201,31.379392), 6);

					map.addControl(new BMap.NavigationControl());  //添加默认缩放平移控件
					map.addControl(new BMap.ScaleControl());                    // 添加比例尺控件

					map.enableScrollWheelZoom();                            //启用滚轮放大缩小


					for (var i = 0; i < m.length; i ++) {
					//alert(m[i][0]);
					  var point = new BMap.Point(m[i][0],m[i][1]);
					  addMarker(point,m[i][2],m[i][3]);
					}


					// 编写自定义函数,创建标注
					function addMarker(point,id,tips){
					  var marker = new BMap.Marker(point);
					  map.addOverlay(marker);
					  var infoWindow = new BMap.InfoWindow(tips);  // 创建信息窗口对象
					  marker.addEventListener("click", function(){          
					  this.openInfoWindow(infoWindow);
					  });
					}

					</script>
			</div>
		</div>
	</div>
</div>
<link href="/skin/{anxinMall:global.cfg_siteskin}/template/style/css/Shared.css" rel="stylesheet" type="text/css" />
<!--#include file="bottom.tpl"-->