diff --git a/app/Views/pages/article/dept/lists.php b/app/Views/pages/article/dept/lists.php
index 6bb83f2..d8cf303 100644
--- a/app/Views/pages/article/dept/lists.php
+++ b/app/Views/pages/article/dept/lists.php
@@ -718,7 +718,7 @@ $usr_nm = session('usr_nm');
const rcpt_key = rowData.rcpt_key;
- location.href = "= site_url('article/dept/detail') ?>/" + rcpt_key;
+ window.open("= site_url('article/dept/detail') ?>/" + rcpt_key, '_blank');
});
$(document).on('change', '#chkAll', function () {
diff --git a/app/Views/pages/article/lists.php b/app/Views/pages/article/lists.php
index 8f5c769..3544011 100644
--- a/app/Views/pages/article/lists.php
+++ b/app/Views/pages/article/lists.php
@@ -749,7 +749,7 @@
if (!rowData) return;
const id = rowData.rcpt_no;
- location.href = "= site_url('article/apt/detail') ?>/" + id;
+ window.open("= site_url('article/apt/detail') ?>/" + id, '_blank');
});
$('#btnSearch').on('click', function () {
diff --git a/app/Views/pages/article/receipt/detail.php b/app/Views/pages/article/receipt/detail.php
index f399229..36ec4dc 100644
--- a/app/Views/pages/article/receipt/detail.php
+++ b/app/Views/pages/article/receipt/detail.php
@@ -2691,15 +2691,20 @@ $usr_id = session('usr_id');
position: new naver.maps.LatLng(lat, lng),
title: "매물ID: = $data['rcpt_key'] ?>",
map: map,
- zIndex: 50
+ zIndex: 50,
+ icon: {
+ content: '
', // HTML 방식
+ anchor: new naver.maps.Point(16, 32) // 앵커 포인트 (보통 하단 중앙)
+ }
});
+
// 마커에 정보창 추가
var infoWindow = new naver.maps.InfoWindow({
content: `
-
-
매물ID: = esc($data['rcpt_atclno'] ?? '') ?>
-
+
+
매물ID: = esc($data['rcpt_atclno'] ?? '') ?>
+
`,
borderWidth: 1,
@@ -2710,83 +2715,58 @@ $usr_id = session('usr_id');
pixelOffset: new naver.maps.Point(10, -10)
});
- // 마커 클릭 시 정보창 열기/닫기
- naver.maps.Event.addListener(marker, 'click', function () {
- if (infoWindow.getMap()) {
- infoWindow.close();
- } else {
- infoWindow.open(map, marker);
- }
- });
+ // 마커 클릭 시 정보창 열기/닫기
+ // naver.maps.Event.addListener(marker, 'click', function () {
+ // if (infoWindow.getMap()) {
+ // infoWindow.close();
+ // } else {
+ // infoWindow.open(map, marker);
+ // }
+ // });
+
+ // 페이지 로드 시 정보창 자동으로 열기
+ infoWindow.open(map, marker);
if (assignArr.length > 0) {
for (var i = 0; i < assignArr.length; i++) {
-
- marker = new naver.maps.Marker({
+ var additionalMarker = new naver.maps.Marker({
position: new naver.maps.LatLng(assignArr[i].rcpt_y, assignArr[i].rcpt_x),
map: map,
zIndex: 50
});
+ var addWindow = new naver.maps.InfoWindow({
+ content: `
+
+
+
매물ID: ${assignArr[i].rcpt_atclno}
+
+
+ `,
+ borderWidth: 1,
+ borderColor: '#ddd',
+ backgroundColor: '#fff',
+ anchorSize: new naver.maps.Size(10, 10),
+ anchorSkew: true,
+ pixelOffset: new naver.maps.Point(10, -10)
+ });
+
+ // 추가 마커 클릭 이벤트 - 클로저를 사용하여 각 마커별 정보창 참조 유지
+ // (function (marker, infoWin) {
+ // naver.maps.Event.addListener(marker, 'click', function () {
+ // if (infoWin.getMap()) {
+ // infoWin.close();
+ // } else {
+ // infoWin.open(map, marker);
+ // }
+ // });
+ // })(additionalMarker, addWindow);
+
}
- // // 현재 매물과 동일한 것은 건너뛰기 (이미 메인 마커로 표시됨)
- // if (assignArr[i].rcpt_sq == '= $data['rcpt_sq'] ?>') continue;
-
- // // assignArr[i]의 좌표 사용
- // var assignLat = parseFloat(assignArr[i].rcpt_y || 0);
- // var assignLng = parseFloat(assignArr[i].rcpt_x || 0);
-
- // // 좌표가 유효하지 않으면 건너뛰기
- // if (assignLat === 0 || assignLng === 0) continue;
-
- // // 추가 마커 생성 (기본 빨간색 마커 아이콘 사용)
- // var submarker = new naver.maps.Marker({
- // position: new naver.maps.LatLng(assignLat, assignLng),
- // title: "매물ID: " + assignArr[i].rcpt_atclno,
- // map: map,
- // zIndex: 40,
- // icon: {
- // content: '',
- // anchor: new naver.maps.Point(8, 8)
- // }
- // });
-
- // // 정보창 생성 (클로저 문제 해결을 위해 즉시실행함수 사용)
- // (function (marker, info) {
- // var subinfoWindow = new naver.maps.InfoWindow({
- // content: `
- //
- //
- //
매물ID: ${info.rcpt_atclno}
- //
- //
- // `,
- // borderWidth: 1,
- // borderColor: '#ddd',
- // backgroundColor: '#fff',
- // anchorSize: new naver.maps.Size(10, 10),
- // anchorSkew: true,
- // pixelOffset: new naver.maps.Point(10, -10)
- // });
-
- // // 마커 클릭 이벤트
- // naver.maps.Event.addListener(marker, 'click', function () {
- // if (subinfoWindow.getMap()) {
- // subinfoWindow.close();
- // } else {
- // subinfoWindow.open(map, marker);
- // }
- // });
- // })(submarker, assignArr[i]);
- // }
}
- // 페이지 로드 시 정보창 자동으로 열기
- infoWindow.open(map, marker);
-
-
// 업로드파일 선택
$("#uploadPick").on("click", function () {
if (!dz) return;
diff --git a/app/Views/pages/article/receipt/lists.php b/app/Views/pages/article/receipt/lists.php
index 68b2dce..9cd667b 100644
--- a/app/Views/pages/article/receipt/lists.php
+++ b/app/Views/pages/article/receipt/lists.php
@@ -174,19 +174,20 @@ $usr_nm = session('usr_nm');
-
@@ -655,7 +656,7 @@ $usr_nm = session('usr_nm');
{ data: null, render: fn_prd_render },
{ data: 'rcpt_product_info1' },
- { data: 'dept_nm' },
+ { data: 'dept_nm' },
{ data: 'usr_nm' },
{ data: 'parcel_out_yn' },
@@ -684,7 +685,7 @@ $usr_nm = session('usr_nm');
if (!rowData) return;
const rcpt_atclno = rowData.rcpt_atclno;
- location.href = "= site_url('article/receipt/detail') ?>/" + rcpt_atclno;
+ window.open("= site_url('article/receipt/detail') ?>/" + rcpt_atclno, '_blank');
});
diff --git a/app/Views/pages/article/record/lists.php b/app/Views/pages/article/record/lists.php
index d3ec638..8867451 100644
--- a/app/Views/pages/article/record/lists.php
+++ b/app/Views/pages/article/record/lists.php
@@ -520,7 +520,7 @@ $usr_nm = session('usr_nm');
if (!rowData) return;
const rcpt_key = rowData.rcpt_key;
- location.href = "= site_url('article/record/detail') ?>/" + rcpt_key;
+ window.open("= site_url('article/record/detail') ?>/" + rcpt_key, '_blank');
});
diff --git a/app/Views/pages/v2/m701/lists.php b/app/Views/pages/v2/m701/lists.php
index 71d350d..526c826 100644
--- a/app/Views/pages/v2/m701/lists.php
+++ b/app/Views/pages/v2/m701/lists.php
@@ -554,7 +554,7 @@
if (!rowData) return;
const vr_sq = rowData.vr_sq;
- location.href = "= site_url('m701/m701a/detail') ?>/" + vr_sq;
+ window.open("= site_url('m701/m701a/detail') ?>/" + vr_sq, '_blank');
});
$('#btnSearch').on('click', function () {
diff --git a/app/Views/pages/v2/m702/lists.php b/app/Views/pages/v2/m702/lists.php
index 3302028..9bd2e8e 100644
--- a/app/Views/pages/v2/m702/lists.php
+++ b/app/Views/pages/v2/m702/lists.php
@@ -578,7 +578,7 @@
if (!rowData) return;
const vr_sq = rowData.vr_sq;
- location.href = "= site_url('m702/m702a/detail') ?>/" + vr_sq;
+ window.open("= site_url('m702/m702a/detail') ?>/" + vr_sq, '_blank');
});
$('#btnSearch').on('click', function () {
diff --git a/app/Views/pages/v2/m703/lists.php b/app/Views/pages/v2/m703/lists.php
index 78827da..8f5b7b2 100644
--- a/app/Views/pages/v2/m703/lists.php
+++ b/app/Views/pages/v2/m703/lists.php
@@ -532,7 +532,7 @@
if (!rowData) return;
const fax_sq = rowData.fax_sq;
- location.href = "= site_url('m703/m703a/detail') ?>/" + fax_sq;
+ window.open("= site_url('m703/m703a/detail') ?>/" + fax_sq, '_blank');
});
$('#btnSearch').on('click', function () {
diff --git a/app/Views/pages/v2/m704/lists.php b/app/Views/pages/v2/m704/lists.php
index c0bb06a..fb2a27d 100644
--- a/app/Views/pages/v2/m704/lists.php
+++ b/app/Views/pages/v2/m704/lists.php
@@ -530,7 +530,7 @@
if (!rowData) return;
const vr_sq = rowData.vr_sq;
- location.href = "= site_url('m704/m704a/detail') ?>/" + vr_sq;
+ window.open("= site_url('m704/m704a/detail') ?>/" + vr_sq, '_blank');
});
$('#btnSearch').on('click', function () {
diff --git a/app/Views/pages/v2/m705/lists.php b/app/Views/pages/v2/m705/lists.php
index 7e5f1f0..720b8e9 100644
--- a/app/Views/pages/v2/m705/lists.php
+++ b/app/Views/pages/v2/m705/lists.php
@@ -569,7 +569,7 @@
if (!rowData) return;
const vr_sq = rowData.vr_sq;
- location.href = "= site_url('m705/m705a/detail') ?>/" + vr_sq;
+ window.open("= site_url('m705/m705a/detail') ?>/" + vr_sq, '_blank');
});
$('#btnSearch').on('click', function () {
diff --git a/app/Views/pages/v2/m706/lists.php b/app/Views/pages/v2/m706/lists.php
index d5735c0..bd68712 100644
--- a/app/Views/pages/v2/m706/lists.php
+++ b/app/Views/pages/v2/m706/lists.php
@@ -481,7 +481,7 @@
if (!rowData) return;
const vr_sq = rowData.vr_sq;
- location.href = "= site_url('m706/m706a/detail') ?>/" + vr_sq;
+ window.open("= site_url('m706/m706a/detail') ?>/" + vr_sq, '_blank');
});
$('#btnSearch').on('click', function () {
diff --git a/app/Views/pages/v2/m708/lists.php b/app/Views/pages/v2/m708/lists.php
index 49f64aa..4582b2a 100644
--- a/app/Views/pages/v2/m708/lists.php
+++ b/app/Views/pages/v2/m708/lists.php
@@ -557,7 +557,7 @@
if (!rowData) return;
const fax_sq = rowData.fax_sq;
- location.href = "= site_url('m708/m708a/detail') ?>/" + fax_sq;
+ window.open("= site_url('m708/m708a/detail') ?>/" + fax_sq, '_blank');
});
$('#btnSearch').on('click', function () {
diff --git a/app/Views/pages/v2/m709/lists.php b/app/Views/pages/v2/m709/lists.php
index 0f529d8..b6753c9 100644
--- a/app/Views/pages/v2/m709/lists.php
+++ b/app/Views/pages/v2/m709/lists.php
@@ -557,7 +557,7 @@
if (!rowData) return;
const fax_sq = rowData.fax_sq;
- location.href = "= site_url('m709/m709a/detail') ?>/" + fax_sq;
+ window.open("= site_url('m709/m709a/detail') ?>/" + fax_sq, '_blank');
});
$('#btnSearch').on('click', function () {
diff --git a/app/Views/pages/v2/m710/lists.php b/app/Views/pages/v2/m710/lists.php
index d76725c..4a09a8e 100644
--- a/app/Views/pages/v2/m710/lists.php
+++ b/app/Views/pages/v2/m710/lists.php
@@ -560,7 +560,7 @@
if (!rowData) return;
const vr_sq = rowData.vr_sq;
- location.href = "= site_url('m701/m701a/detail') ?>/" + vr_sq;
+ window.open("= site_url('m701/m701a/detail') ?>/" + vr_sq, '_blank');
});
$('#btnSearch').on('click', function () {
diff --git a/app/Views/pages/v2/m712/lists.php b/app/Views/pages/v2/m712/lists.php
index 35d97a0..63c345e 100644
--- a/app/Views/pages/v2/m712/lists.php
+++ b/app/Views/pages/v2/m712/lists.php
@@ -551,7 +551,7 @@
if (!rowData) return;
const vr_sq = rowData.vr_sq;
- location.href = "= site_url('m712/m712a/detail') ?>/" + vr_sq;
+ window.open("= site_url('m712/m712a/detail') ?>/" + vr_sq, '_blank');
});
$('#btnSearch').on('click', function () {
diff --git a/app/Views/pages/v2/m713/lists.php b/app/Views/pages/v2/m713/lists.php
index 5e4f501..5c98611 100644
--- a/app/Views/pages/v2/m713/lists.php
+++ b/app/Views/pages/v2/m713/lists.php
@@ -570,7 +570,7 @@
if (!rowData) return;
const vr_sq = rowData.vr_sq;
- location.href = "= site_url('m713/m713a/detail') ?>/" + vr_sq;
+ window.open("= site_url('m713/m713a/detail') ?>/" + vr_sq, '_blank');
});
$('#btnSearch').on('click', function () {