          <section id="contact" class="g-pt-<?php echo $sectionptop; ?> g-pb-<?php echo $sectionpbuttom; ?>" style="background-image: linear-gradient(-45deg, <?php echo $sectionbj; ?>, <?php echo $sectionjbbj; ?>);">
		  <div class="container">
            <div class="row text-<?php echo $dpposition; ?>">
			<div class="col-lg-<?php echo $wgdlg1; ?>">
			<?php if ($cdescribe): ?>
                    <div class="g-font-weight-400 g-mb-20">
                      <p style="color:<?php echo $sectiontitle; ?>;"><?php echo $cdescribe; ?></p>
                    </div><?php endif ?>
                    <address class="g-font-size-16 g-py-10">
					<?php if ($cname): ?>
                      <div class="d-flex g-mb-10">
                        <div class="u-icon-v3 g-bg-<?php echo $hoverbj; ?>--hover g-color-<?php echo $hovertit; ?>--hover g-font-size-<?php echo $miconsize; ?> g-rounded-<?php echo $miconround; ?> g-mr-10" style="background-image:linear-gradient(-45deg, <?php echo $miconbj; ?>, <?php echo $miconcolorc; ?>);color:<?php echo $miconcolor; ?>;border:<?php echo $miconborder; ?>px solid <?php echo $miconbc; ?>;width:<?php echo $miconwidth; ?>px;height:<?php echo $miconheight; ?>px;">
                          <i class="fa fa-user-o"></i>
                        </div>
                        <div class="align-self-center g-font-size-14" style="color:<?php echo $sectiondescribe; ?>;"><?php echo $cname; ?></div>
                      </div>
					  <?php endif ?>
					<?php if ($cadress): ?>
                      <div class="d-flex g-mb-10">
                        <div class="u-icon-v3 g-bg-<?php echo $hoverbj; ?>--hover g-color-<?php echo $hovertit; ?>--hover g-font-size-<?php echo $miconsize; ?> g-rounded-<?php echo $miconround; ?> g-mr-10" style="background-image:linear-gradient(-45deg, <?php echo $miconbj; ?>, <?php echo $miconcolorc; ?>);color:<?php echo $miconcolor; ?>;border:<?php echo $miconborder; ?>px solid <?php echo $miconbc; ?>;width:<?php echo $miconwidth; ?>px;height:<?php echo $miconheight; ?>px;">
                          <i class="fa fa-map-marker"></i>
                        </div>
                        <div class="align-self-center g-font-size-14" style="color:<?php echo $sectiondescribe; ?>;"><?php echo $cadress; ?></div>
                      </div>
					  <?php endif ?>
                      <?php if ($telephone): ?>
                      <div class="d-flex g-mb-10">
                        <div class="u-icon-v3 g-bg-<?php echo $hoverbj; ?>--hover g-color-<?php echo $hovertit; ?>--hover g-font-size-<?php echo $miconsize; ?> g-rounded-<?php echo $miconround; ?> g-mr-10" style="background-image:linear-gradient(-45deg, <?php echo $miconbj; ?>, <?php echo $miconcolorc; ?>);color:<?php echo $miconcolor; ?>;border:<?php echo $miconborder; ?>px solid <?php echo $miconbc; ?>;width:<?php echo $miconwidth; ?>px;height:<?php echo $miconheight; ?>px;">
                          <i class="fa fa-phone"></i>
                        </div>
                        <div class="align-self-center g-font-size-14" style="color:<?php echo $sectiondescribe; ?>;"><?php echo $telephone; ?></div>
                      </div>
					  <?php endif ?>
                      <?php if ($qq): ?>
                      <div class="d-flex g-mb-10">
                        <div class="u-icon-v3 g-bg-<?php echo $hoverbj; ?>--hover g-color-<?php echo $hovertit; ?>--hover g-font-size-<?php echo $miconsize; ?> g-rounded-<?php echo $miconround; ?> g-mr-10" style="background-image:linear-gradient(-45deg, <?php echo $miconbj; ?>, <?php echo $miconcolorc; ?>);color:<?php echo $miconcolor; ?>;border:<?php echo $miconborder; ?>px solid <?php echo $miconbc; ?>;width:<?php echo $miconwidth; ?>px;height:<?php echo $miconheight; ?>px;">
                          <i class="fa fa-qq"></i>
                        </div>
                        <div class="align-self-center g-font-size-14" style="color:<?php echo $sectiondescribe; ?>;"><?php echo $qq; ?></div>
                      </div>
					  <?php endif ?>
                      <?php if ($emall): ?>
                      <div class="d-flex g-mb-10">
                        <div class="u-icon-v3 g-bg-<?php echo $hoverbj; ?>--hover g-color-<?php echo $hovertit; ?>--hover g-font-size-<?php echo $miconsize; ?> g-rounded-<?php echo $miconround; ?> g-mr-10" style="background-image:linear-gradient(-45deg, <?php echo $miconbj; ?>, <?php echo $miconcolorc; ?>);color:<?php echo $miconcolor; ?>;border:<?php echo $miconborder; ?>px solid <?php echo $miconbc; ?>;width:<?php echo $miconwidth; ?>px;height:<?php echo $miconheight; ?>px;">
                          <i class="fa fa-envelope"></i>
                        </div>
                        <div class="align-self-center g-font-size-14" style="color:<?php echo $sectiondescribe; ?>;"><?php echo $emall; ?></div>
                      </div>
					  <?php endif ?>
                      <?php if ($weibo): ?>
                      <div class="d-flex g-mb-10">
                        <div class="u-icon-v3 g-bg-<?php echo $hoverbj; ?>--hover g-color-<?php echo $hovertit; ?>--hover g-font-size-<?php echo $miconsize; ?> g-rounded-<?php echo $miconround; ?> g-mr-10" style="background-image:linear-gradient(-45deg, <?php echo $miconbj; ?>, <?php echo $miconcolorc; ?>);color:<?php echo $miconcolor; ?>;border:<?php echo $miconborder; ?>px solid <?php echo $miconbc; ?>;width:<?php echo $miconwidth; ?>px;height:<?php echo $miconheight; ?>px;">
                          <i class="fa fa-weibo"></i>
                        </div>
                        <div class="align-self-center g-font-size-14" style="color:<?php echo $sectiondescribe; ?>;"><a href="<?php echo $weibo; ?>" target="_blank">新浪微博</a></div>
                      </div>
					  <?php endif ?>
                      <?php if ($weblink): ?>
                      <div class="d-flex">
                        <div class="u-icon-v3 g-bg-<?php echo $hoverbj; ?>--hover g-color-<?php echo $hovertit; ?>--hover g-font-size-<?php echo $miconsize; ?> g-rounded-<?php echo $miconround; ?> g-mr-10" style="background-image:linear-gradient(-45deg, <?php echo $miconbj; ?>, <?php echo $miconcolorc; ?>);color:<?php echo $miconcolor; ?>;border:<?php echo $miconborder; ?>px solid <?php echo $miconbc; ?>;width:<?php echo $miconwidth; ?>px;height:<?php echo $miconheight; ?>px;">
                          <i class="fa fa-link"></i>
                        </div>
                        <div class="align-self-center g-font-size-14" style="color:<?php echo $sectiondescribe; ?>;"><a href="http://<?php echo $weblink; ?>" target="_blank"><?php echo $weblink; ?></a></div>
                      </div>
					  <?php endif ?>
                    </address>
			 </div>
			 <div class="col-lg-<?php echo $wgdlg2; ?>">
    <style type="text/css">
        .info {
            border: solid 1px silver;
        }
        div.info-top {
            position: relative;
            background: none repeat scroll 0 0 #F9F9F9;
            border-bottom: 1px solid #CCC;
            border-radius: 5px 5px 0 0;
        }
        div.info-top div {
            display: inline-block;
            color: #333333;
            font-size: 14px;
            font-weight: bold;
            line-height: 31px;
            padding: 0 10px;
        }
        div.info-top img {
            position: absolute;
            top: 10px;
            right: 10px;
            transition-duration: 0.25s;
        }
        div.info-top img:hover {
            box-shadow: 0px 0px 5px #000;
        }
        div.info-middle {
            font-size: 12px;
            padding: 6px;
            line-height: 20px;
        }
        div.info-bottom {
            height: 0px;
            width: 100%;
            clear: both;
            text-align: center;
        }
        div.info-bottom img {
            position: relative;
            z-index: 104;
        }
        span {
            margin-left: 5px;
            font-size: 11px;
        }
        .info-middle img {
            float: left;
            margin-right: 6px;
        }
    </style>
    <script type="text/javascript"
            src="http://webapi.amap.com/maps?v=1.3&key=<?php echo $key; ?>"></script>
   
<div style="width:100%;height:320px; position: relative;border:#ccc solid 1px;" id="container"></div>
<script type="text/javascript">
	//地图初始化时，在地图上添加一个marker标记,鼠标点击marker可弹出自定义的信息窗体
    var map = new AMap.Map("container", {
        resizeEnable: true,
        center: [<?php echo $coordinate; ?>],
        zoom: 16
    });    
    addMarker();
    //添加marker标记
    function addMarker() {
        map.clearMap();
        var marker = new AMap.Marker({
            map: map,
            position: [<?php echo $coordinate; ?>]
        });
        //鼠标点击marker弹出自定义的信息窗体
        AMap.event.addListener(marker, 'click', function() {
            infoWindow.open(map, marker.getPosition());
        });
    }

    //实例化信息窗体
    var title = '联系我们',
        content = [];
	content.push("公司：<?php echo $cname; ?>");
    content.push("地址：<?php echo $cadress; ?>");
    content.push("电话：<?php echo $telephone; ?>");
    var infoWindow = new AMap.InfoWindow({
        isCustom: true,  //使用自定义窗体
        content: createInfoWindow(title, content.join("<br/>")),
        offset: new AMap.Pixel(16, -45)
    });

    //构建自定义信息窗体
    function createInfoWindow(title, content) {
        var info = document.createElement("div");
        info.className = "info";

        //可以通过下面的方式修改自定义窗体的宽高
        //info.style.width = "400px";
        // 定义顶部标题
        var top = document.createElement("div");
        var titleD = document.createElement("div");
        var closeX = document.createElement("img");
        top.className = "info-top";
        titleD.innerHTML = title;
        closeX.src = "http://webapi.amap.com/images/close2.gif";
        closeX.onclick = closeInfoWindow;

        top.appendChild(titleD);
        top.appendChild(closeX);
        info.appendChild(top);

        // 定义中部内容
        var middle = document.createElement("div");
        middle.className = "info-middle";
        middle.style.backgroundColor = 'white';
        middle.innerHTML = content;
        info.appendChild(middle);

        // 定义底部内容
        var bottom = document.createElement("div");
        bottom.className = "info-bottom";
        bottom.style.position = 'relative';
        bottom.style.top = '0px';
        bottom.style.margin = '0 auto';
        var sharp = document.createElement("img");
        sharp.src = "http://webapi.amap.com/images/sharp.png";
        bottom.appendChild(sharp);
        info.appendChild(bottom);
        return info;
    }

    //关闭信息窗体
    function closeInfoWindow() {
        map.clearInfoWindow();
    }
</script>
<script type="text/javascript" src="http://webapi.amap.com/demos/js/liteToolbar.js"></script>
			  </div>
            </div>
			</div>
          </section>
