Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
home
/
egg.eemo.co.kr
/
public_html
/
super5
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/egg.eemo.co.kr/public_html/super5/pop_beson_map.php
<? session_cache_limiter('no-cache, must-revalidate'); session_start(); header("Pragma: no-cache"); header("Cache-Control: no-cache,must-revalidate"); header("Content-Type: text/html; charset=utf-8"); include_once("dbconn.php"); include_once("lib.php"); foreach($_GET as $key => $value) { ${$key}=mysql_real_escape_string(trim($value)); } foreach($_POST as $key => $value) { ${$key}=mysql_real_escape_string(trim($value)); } $on_menu="farm"; $on_sub_menu=1; $client_id = "ec5f840932e27ebb79140d9e804bf811"; $exp_val=explode("&",$str_val); ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title><?=$_TITLE?></title> <link href="css/bootstrap.min.css" rel="stylesheet"> <link href="font-awesome/css/font-awesome.css" rel="stylesheet"> <link href="css/animate.css" rel="stylesheet"> <link href="css/style.css" rel="stylesheet"> <script type="text/javascript" src="//dapi.kakao.com/v2/maps/sdk.js?appkey=<?=$client_id?>"></script> </head> <style> .customoverlay {position:relative;bottom:55px;border-radius:6px;border: 1px solid #ccc;border-bottom:2px solid #ddd;float:left;} .customoverlay:nth-of-type(n) {border:0; box-shadow:0px 1px 2px #888;} .customoverlay a {display:block;text-decoration:none;color:#000;text-align:center;border-radius:6px;font-size:14px;font-weight:bold;overflow:hidden;background: #d95050;background: #d95050 url(http://t1.daumcdn.net/localimg/localimages/07/mapapidoc/arrow_white.png) no-repeat right 14px center;} .customoverlay .title {display:block;text-align:center;background:#fff;margin-right:35px;padding:10px 15px;font-size:14px;font-weight:bold;} .customoverlay:after {content:'';position:absolute;margin-left:-12px;left:50%;bottom:-12px;width:22px;height:12px;background:url('http://t1.daumcdn.net/localimg/localimages/07/mapapidoc/vertex_white.png')} </style> <body class="canvas-menu"> <div id="wrapper"> <div id="page-wrapper" class="gray-bg"> <div class="row border-bottom"> </div> <div class="wrapper wrapper-content animated fadeInRight"> <div class="row"> <div class="col-lg-12"> <div class="ibox "> <div class="ibox-title"> <h5>배송 지도</h5> <div class="ibox-tools"> <a class="collapse-link"> <i class="fa fa-chevron-up"></i> </a> <a class="close-link"> <i class="fa fa-times"></i> </a> </div> </div> <div class="ibox-content" id='dv_map' style="width:100%;height:350px;"> </div> </div> </div> </div> </div> </div> </div> <!-- Mainly scripts --> <script src="js/jquery-3.1.1.min.js"></script> <script src="js/popper.min.js"></script> <script src="js/bootstrap.js"></script> <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> <script src="js/plugins/slimscroll/jquery.slimscroll.min.js"></script> <!-- Custom and plugin javascript --> <script src="js/inspinia.js"></script> <script src="js/plugins/pace/pace.min.js"></script> <script> $('body.canvas-menu .sidebar-collapse').slimScroll({ height: '100%', railOpacity: 0.9 }); </script> </body> </html> <script> var mapContainer = document.getElementById('dv_map'), // 지도를 표시할 div mapOption = { center: new daum.maps.LatLng(37.54699, 127.09598), // 지도의 중심좌표 level: 4 // 지도의 확대 레벨 }; var map = new daum.maps.Map(mapContainer, mapOption); var imageSrc = 'http://t1.daumcdn.net/localimg/localimages/07/mapapidoc/marker_red.png', // 마커이미지의 주소입니다 imageSize = new daum.maps.Size(64, 69), // 마커이미지의 크기입니다 imageOption = {offset: new daum.maps.Point(27, 69)}; // 마커이미지의 옵션입니다. 마커의 좌표와 일치시킬 이미지 안에서의 좌표를 설정합니다. // 마커의 이미지정보를 가지고 있는 마커이미지를 생성합니다 var markerImage = new daum.maps.MarkerImage(imageSrc, imageSize, imageOption), markerPosition = new daum.maps.LatLng(37.54699, 127.09598); // 마커가 표시될 위치입니다 // 마커를 생성합니다 /* var marker = new daum.maps.Marker({ position: markerPosition, image: markerImage // 마커이미지 설정 }); */ var points = []; var bounds = new daum.maps.LatLngBounds(); <? foreach($exp_val as $ak => $av) { $rs=RS("select * from besong_log where no='$av' "); if($rs[lat]) { ?> var markerPosition = new daum.maps.LatLng(<?=$rs[lat]?>, <?=$rs[lon]?>); // 마커가 표시될 위치입니다 points.push(markerPosition); var marker = new daum.maps.Marker({ position: markerPosition, }); // 마커가 지도 위에 표시되도록 설정합니다 marker.setMap(map); // 커스텀 오버레이에 표출될 내용으로 HTML 문자열이나 document element가 가능합니다 var content = '<div class="customoverlay">' + ' <a href="#" target="_blank">' + ' <span class="title"><?=$rs[prd_type]?></span>' + ' </a>' + '</div>'; // 커스텀 오버레이가 표시될 위치입니다 var position = new daum.maps.LatLng(<?=$rs[lat]?>, <?=$rs[lon]?>); // 커스텀 오버레이를 생성합니다 var customOverlay = new daum.maps.CustomOverlay({ map: map, position: position, content: content, yAnchor: 1 }); <? } } ?> var i, marker; for (i = 0; i < points.length; i++) { // LatLngBounds 객체에 좌표를 추가합니다 bounds.extend(points[i]); } function setBounds() { // LatLngBounds 객체에 추가된 좌표들을 기준으로 지도의 범위를 재설정합니다 // 이때 지도의 중심좌표와 레벨이 변경될 수 있습니다 map.setBounds(bounds); } setBounds(); function fn_view(no) { //alert(no); var formdata = new FormData(); formdata.append("no", no); if (formdata) { jQuery.ajax({ url: "farm_map_detail.php", type: "POST", data: formdata, processData: false, contentType: false, success: function (res) { //var json = jQuery.parseJSON(res); var json = eval("(" + res + ")"); if(json.rst=='1') { $('#td_farm_code').html(json.farm_code); $('#td_farm_name').html(json.farm_name); $('#td_house_num').html(json.house_num); $('#td_addr').html(json.addr); $('#td_tel').html(json.tel); $('#td_cel').html(json.cel); $('#td_sido').html(json.sido); $('#td_sigungu').html(json.sigungu); $('#td_axis').html(json.lat+"<br>"+json.lon); $('#td_admins').html(json.admins); } } }); } } </script>