<?php 
    $conf_basedir	= "../../";	//相对主目录的位置
    $conf_where		= "admin";	//选择调用相应模块
    $directory		= basename(dirname(__FILE__));	//定义当前所在的目录，引入模块公用函数
    include_once($conf_basedir."base.inc.php");
 
	if($improve_id){

		$sql = "select g.attr_info,b.blockname from growth_block_improve_audit as g left join block as b on g.block_id = b.id   where g.id=$improve_id";
		$arr = $dbback->GetRow($sql);
 
        $res = explode('||',$arr['attr_info']);
		$arr['b_map_x'] = $res[0];
		$arr['b_map_y'] = $res[1];
		$arr['blockname'] = $arr['blockname'];
	}elseif($blockid){
		$sql = "select b_map_x, b_map_y, blockname from block where id=$blockid";
		$arr = $dbback->GetRow($sql);
	}
	
	if ($width == 0 || $width == '' || $type==1) {
		$width = '400';
	}
	$widthMap = $width;
	if ($height == 0 || $height == '' || $type==1) {
		$height = '200';
	}
	$heightMap = $height;
	if ($arr['b_map_x'] == 0 || $arr['b_map_x'] == 0) {
		return;
	}
	
?>
<!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><?=$conf_cityname?>二手房地图-地图找房-365地产家居网</title>
<meta name="description" content="<?=$conf_cityname?>二手房地图系统快速地反映出<?=$conf_cityname?>二手房分布情况,在电子地图上及时更新,保证购房者得到最新资料.电子地图找房\租房,就上南京二手房地图.">
<meta name="keywords" content="二手房地图,地图找房,<?=$conf_cityname?>二手房,二手房地图,二手房电子地图">
<link rel="stylesheet" type="text/css" href="/script/css/api.css"/>
<script type="text/javascript" src="/script/dwz/js/jquery-1.7.1.js"></script>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.3"></script>
</head>
<body>
<div class="listmap" style="width:<?=$width?>px; height:<?=$height?>px;">
  <div class="left" id="allmap" style="width:<?=$widthMap?>px; height:<?=$heightMap?>px;"></div>
 
</div>
<script type="text/javascript">
	//初始化参数的值
	var intLng =  "<?=$arr['b_map_x']?>";
	var intLat =  "<?=$arr['b_map_y']?>";
	var strBlockName = "<?=$arr['blockname']?>";	
	var config = {'lng' : intLng, 'lat' : intLat, 'zoom' : 14};
</script>
<script type="text/javascript" src="/script/js/map/draw.js"></script>
<script type="text/javascript" src="/script/js/map/overlay.js"></script>
<script type="text/javascript" src="/script/js/map/api.js"></script>
</body>
</html>
