diff --git a/src/main/webapp/WEB-INF/jsp/cmm/uss/umt/EgovGnrlUserSelectUpdt.jsp b/src/main/webapp/WEB-INF/jsp/cmm/uss/umt/EgovGnrlUserSelectUpdt.jsp
index e8aa3a6a..9e54b0c9 100644
--- a/src/main/webapp/WEB-INF/jsp/cmm/uss/umt/EgovGnrlUserSelectUpdt.jsp
+++ b/src/main/webapp/WEB-INF/jsp/cmm/uss/umt/EgovGnrlUserSelectUpdt.jsp
@@ -22,6 +22,7 @@
<%@ taglib prefix="double-submit" uri="http://www.egovframe.go.kr/tags/double-submit/jsp" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="ec" uri="/WEB-INF/tld/ecnet_tld.tld"%>
+<%@ taglib prefix="fnc" uri="/WEB-INF/tld/functions.tld"%>
<% pageContext.setAttribute("newLineChar", "\r\n"); %>
<% pageContext.setAttribute("newLineChar2", "\n"); %>
<% String serverName = request.getServerName(); %>
@@ -4157,8 +4158,10 @@ function fnInputSmsTxt(){
-
-
+
+<%-- --%>
+ ${fnc:setStrToDataFormatter(mjonMsgSentList.regDate, 'MM-dd HH:mm') }
+<%-- --%>
-
@@ -4190,7 +4193,8 @@ function fnInputSmsTxt(){
[예약]
-
+<%-- --%>
+ ${fnc:setStrToDataFormatter(mjonMsgSentList.regDate, 'MM-dd HH:mm') }
-
@@ -4367,8 +4371,11 @@ function fnInputSmsTxt(){
|
-
-
+
+<%-- --%>
+<%-- --%>
+
+ ${fnc:setStrToDataFormatter(mjonMsgSentList.regDate, 'MM-dd HH:mm') }
-
@@ -4400,7 +4407,8 @@ function fnInputSmsTxt(){
[예약]
-
+ ${fnc:setStrToDataFormatter(mjonMsgSentList.regDate, 'yyyy-MM-dd HH:mm') }
+<%-- --%>
-
@@ -4586,8 +4594,8 @@ function fnInputSmsTxt(){
|
-
-
+
+
-
@@ -4605,7 +4613,7 @@ function fnInputSmsTxt(){
- [스미싱의심]
+ [스미싱의심]
-
@@ -4785,6 +4793,10 @@ function fnInputSmsTxt(){
+
+
+
+<%-- ${fnc:setStrToDataFormatter(kakaoResultList.regDate, 'MM-dd HH:mm') } --%>
@@ -4925,8 +4937,10 @@ function fnInputSmsTxt(){
-
-
+
+ ${fnc:setStrToDataFormatter(kakaoReserveList.regDate, 'MM-dd HH:mm') }
+<%-- --%>
+<%-- --%>
@@ -5073,8 +5087,11 @@ function fnInputSmsTxt(){
-
-
+<%-- --%>
+ ${fnc:setStrToDataFormatter(kakaoDelayInfo.regDate, 'MM-dd HH:mm') }
+<%-- --%>
+<%-- --%>
+<%-- --%>
-
diff --git a/src/main/webapp/WEB-INF/jsp/uss/ion/bnr/pop/mainPopupModify.jsp b/src/main/webapp/WEB-INF/jsp/uss/ion/bnr/pop/mainPopupModify.jsp
index 614e740f..ef23eab8 100644
--- a/src/main/webapp/WEB-INF/jsp/uss/ion/bnr/pop/mainPopupModify.jsp
+++ b/src/main/webapp/WEB-INF/jsp/uss/ion/bnr/pop/mainPopupModify.jsp
@@ -31,8 +31,18 @@ $( document ).ready(function(){
makeDate('ntceBgndeYYYMMDD');
makeTomorrow('ntceEnddeYYYMMDD');
-
-
+ // class="mlink"인 모든 input 요소에 대해 이벤트 리스너 추가
+ document.getElementById('linkTable').addEventListener('paste', function(event) {
+ if (event.target.classList.contains('mlink')) {
+ let pastedText = event.clipboardData.getData("text");
+ console.log("붙여넣기 한 URL:", pastedText);
+ let cleanedUrl = cleanUrlParameters(pastedText);
+ setTimeout(() => {
+ event.target.value = cleanedUrl;
+ console.log("정리된 URL:", cleanedUrl);
+ }, 0);
+ }
+ });
});
/**
@@ -40,39 +50,37 @@ $( document ).ready(function(){
* @param {string} url 원본 URL 문자열
* @returns {string} 불필요한 파라미터가 제거된 URL
*/
- function cleanUrlParameters(url) {
- try {
- // URL이 절대경로 (/web/... 형태)인지 확인
- let hasFullDomain = url.startsWith("http://") || url.startsWith("https://");
- let urlObj;
-
- if (hasFullDomain) {
- // 도메인이 포함된 URL 처리
- urlObj = new URL(url);
- } else {
- // 절대경로 URL 처리 (가상의 도메인 추가 후 파싱)
- urlObj = new URL("https://www.munjaon.co.kr" + url);
- }
-
- let params = new URLSearchParams(urlObj.search);
-
- // ❗ 값이 비어있는 모든 파라미터 제거
- for (let [key, value] of [...params.entries()]) { // `params.entries()`를 배열로 변환하여 반복
- if (!value.trim()) { // 값이 비어있는 경우 제거
- params.delete(key);
- }
- }
-
- // 정리된 URL 반환
- let cleanedPath = urlObj.pathname + (params.toString() ? "?" + params.toString() : "");
- // 정리된 URL 반환 (도메인을 제거하고 절대경로만 반환)
- return cleanedPath.replace(/^https:\/\/www\.munjaon\.co\.kr/, "");
-
- } catch (e) {
- console.warn("잘못된 URL 형식:", url);
- return url; // URL 파싱 실패 시 원본 유지
+function cleanUrlParameters(url) {
+ try {
+ // URL이 절대경로 (/web/... 형태)인지 확인
+ let hasFullDomain = url.startsWith("http://") || url.startsWith("https://");
+ let urlObj;
+
+ if (hasFullDomain) {
+ // 도메인이 포함된 URL 처리
+ urlObj = new URL(url);
+ } else {
+ // 절대경로 URL 처리 (가상의 도메인 추가 후 파싱)
+ urlObj = new URL("https://www.munjaon.co.kr" + url);
}
+
+ let params = new URLSearchParams(urlObj.search);
+
+ // 값이 비어있는 모든 파라미터 제거
+ for (let [key, value] of [...params.entries()]) {
+ if (!value.trim()) { // 값이 비어있는 경우 제거
+ params.delete(key);
+ }
+ }
+
+ // 정리된 URL 반환
+ let cleanedPath = urlObj.pathname + (params.toString() ? "?" + params.toString() : "");
+ return cleanedPath.replace(/^https:\/\/www\.munjaon\.co\.kr/, "");
+ } catch (e) {
+ console.warn("잘못된 URL 형식:", url);
+ return url; // URL 파싱 실패 시 원본 유지
}
+}
//게시기간이 없으면 초기 값 입력
function makeDate(id){
@@ -141,17 +149,6 @@ function validate(method_parm) {
for (let i = 0; i < linkRows.length; i++) {
let linkInput = document.querySelector('input[name="mainPopupLinkList['+i+'].mlink"]');
let coordInput = document.querySelector('input[name="mainPopupLinkList['+i+'].coords"]');
- let sortInput = document.querySelector('input[name="mainPopupLinkList['+i+'].sort"]');
-
- if (!linkInput.value && !coordInput.value) {
- if(sortInput.value){
- let trElement = sortInput.closest("tr");
- if (trElement) {
- trElement.remove();
- }
- }
- continue; // 요소가 없으면 건너뛴다.
- }
if (linkInput.value.trim() === "") {
alert('['+(i + 1)+']번째 링크주소를 입력해 주십시오');
@@ -165,11 +162,6 @@ function validate(method_parm) {
return false;
}
- if (sortInput.value.trim() === "") {
- alert('['+(i + 1)+']번째 순서를 입력해 주십시오');
- sortInput.focus();
- return false;
- }
}
console.log('isTbodyEmpty("tbody_fiielist") : ', isTbodyEmpty("tbody_fiielist"));
@@ -286,30 +278,77 @@ function addLinkRow() {
coordTd.innerHTML = '';
// 세 번째 컬럼 (링크 좌표)
- let sortTh = document.createElement("th");
- sortTh.innerHTML = '순서';
let sortTd = document.createElement("td");
- sortTd.innerHTML = '';
-
+ sortTd.setAttribute("colspan", "2");
+ sortTd.innerHTML = '';
// tr에 추가
newRow.appendChild(linkTh);
newRow.appendChild(linkTd);
newRow.appendChild(coordTh);
newRow.appendChild(coordTd);
- newRow.appendChild(sortTh);
newRow.appendChild(sortTd);
// tbody에 추가
tbody.appendChild(newRow);
}
-
+function fn_linkDel(p_linkId) {
+ // event.target을 저장
+ const $target = $(event.target);
+
+ if (!p_linkId) {
+
+ $target.closest('tr').remove();
+ }else{
+
+ var p_popId = $('#popId').val();
+ var p_popLinkId = p_linkId;
+
+ var sendData = {
+ "popId" : p_popId
+ , "popLinkId" : p_popLinkId
+ }
+
+ $.ajax({
+ type: 'POST',
+ url: '',
+ contentType: 'application/json',
+ data: JSON.stringify(sendData),
+ dataType: 'json',
+ success : function(data) {
+ alert(data.msg);
+ console.log('data : ', data);
+ if(data.status == 'OK')
+ {
+ console.log('data OK : ', data);
+ $target.closest('tr').remove();
+ }
+ else
+ {
+ // 실패 처리 로직
+ }
+ },
+ error : function(jqXHR, textStatus, errorThrown) {
+ console.error("AJAX Error:", textStatus, errorThrown);
+ console.error("Response:", jqXHR.responseText);
+ }
+ });
+
+ }
+
+
+
+}
@@ -441,30 +480,12 @@ function addLinkRow() {
|
|
- 순서 |
-
-
+ |
+
|
-
-
-
- | [1]링크주소 |
-
-
- |
- 링크좌표 |
-
-
- |
- 순서 |
-
-
- |
-
-
|
diff --git a/src/main/webapp/WEB-INF/jsp/web/com/webCommonHeader.jsp b/src/main/webapp/WEB-INF/jsp/web/com/webCommonHeader.jsp
index fc77da82..7231f629 100644
--- a/src/main/webapp/WEB-INF/jsp/web/com/webCommonHeader.jsp
+++ b/src/main/webapp/WEB-INF/jsp/web/com/webCommonHeader.jsp
@@ -341,8 +341,8 @@ function whoisIpCountry() {
}
function actionLogin() {
- location.href="";
- /*
+// location.href="";
+
// 아이디 공백 제거
document.loginForm.id_text.value = $.trim(document.loginForm.id_text.value);
@@ -353,16 +353,6 @@ function actionLogin() {
alert("비밀번호를 입력하세요");
return;
} else {
-
- // Whois IP 국가코드
- //whoisIpCountry();
- setTimeout(function() {
- if (isKoreaIpAddress == false) {
- alert("해외 IP로 감지되어 로그인이 제한되었습니다.\n문자온 고객센터로 문의 바랍니다.");
- location.href='/web/uat/uia/actionLogout.do';
- return false;
- }
-
// 로그인 START
var rsa = new RSAKey();
rsa.setPublic($('#RSAModulus').val(),$('#RSAExponent').val());
@@ -373,13 +363,84 @@ function actionLogin() {
$("#id").val(rsa.encrypt(id.val().toLowerCase()));
$("#password").val(rsa.encrypt(pw.val()));
- document.loginForm.action="";
saveid(document.loginForm);
- document.loginForm.submit();
- }, 600);
-
+
+ var checkForm = $("form[name=loginForm]").serialize() ;
+
+ $.ajax({
+ type : "POST",
+ async : false,
+ url : "/web/user/login/actionSecurityLoginBeforeHpAjax.do",
+ data : checkForm,
+ dataType:'json',
+ success : function(data) {
+ if (data.status=="success"){
+
+ document.loginForm.passFlag.value = data.passFlag;
+ if(data.passFlag == "Y")
+ {
+ actionLogin_end();
+ }
+ else
+ {
+ goLoginPage(id.val(), pw.val(), "secure");
+ }
+ }else if (data.status=="fail"){
+
+ if (data.returnType == "A"){
+ //휴면 회원
+ document.loginForm.action="";
+ document.loginForm.submit();
+ }else if (data.returnType == "B"){
+ //기업회원 기업정보 기입
+ document.cmpChangeForm.mberId.value = data.mberId;
+ document.cmpChangeForm.action="";
+ document.cmpChangeForm.submit();
+ }else if (data.returnType == "C"){
+ document.cmpChangeForm.mberId.value = data.mberId;
+ document.cmpChangeForm.action="";
+ document.cmpChangeForm.submit();
+ }else{
+ //로그인 실패 page이동
+ goLoginPage(id.val(), pw.val(), data.msg);
+ }
+ }
+
+ //alert(JSON.stringify(data));
+ console.log("sucess data1 : " + JSON.stringify(data));
+ if (data.isSuccess == true) {
+ console.log("fn_click_banner_add_stat sucess data2 : " + JSON.stringify(data));
+ }
+ else {
+ console.log("data.isSuccess not true ");
+ console.log("sucess data.msg : " + data.msg);
+ console.log("sucess data1 : " + JSON.stringify(data));
+ }
+ },
+ error : function(xhr, status, error) {
+ console.log("fn_click_banner_add_stat error : " + error);
+ console.log("fn_click_banner_add_stat xhr : " + JSON.stringify(xhr) + "\r\status : " + JSON.stringify(status) + "\r\error : " + JSON.stringify(error));
+ return false;
+ }
+ });
}
- */
+
+}
+
+function goLoginPage(id, pw, headerLoginResult){
+ document.loginForm.id.value = id;
+ document.loginForm.password.value = pw;
+ document.loginForm.headerLoginResult.value = headerLoginResult;
+ document.loginForm.action = "";
+
+ document.loginForm.submit();
+}
+
+//아이디/휴대폰 번호 체크
+function actionLogin_end(){
+ document.loginForm.action="";
+ saveid(document.loginForm);
+ document.loginForm.submit();
}
function saveid(form) {
@@ -1636,14 +1697,19 @@ function actionLogin() {
+
+
+
-
+
+
-
+
+
@@ -1758,5 +1824,9 @@ function actionLogin() {
+
+
diff --git a/src/main/webapp/WEB-INF/jsp/web/kakao/include/KaKaoAlimtalkTopMenuTap.jsp b/src/main/webapp/WEB-INF/jsp/web/kakao/include/KaKaoAlimtalkTopMenuTap.jsp
index 0ab5e87b..d0e25dd8 100644
--- a/src/main/webapp/WEB-INF/jsp/web/kakao/include/KaKaoAlimtalkTopMenuTap.jsp
+++ b/src/main/webapp/WEB-INF/jsp/web/kakao/include/KaKaoAlimtalkTopMenuTap.jsp
@@ -142,10 +142,10 @@ function cntntBtnInfo(stepInfo){
-<%-- --%>
-
-<%-- --%>
+
+
+
\ No newline at end of file
diff --git a/src/main/webapp/WEB-INF/jsp/web/kakao/include/KakaoSentTopMentTap.jsp b/src/main/webapp/WEB-INF/jsp/web/kakao/include/KakaoSentTopMentTap.jsp
index 930800d1..0e019972 100644
--- a/src/main/webapp/WEB-INF/jsp/web/kakao/include/KakaoSentTopMentTap.jsp
+++ b/src/main/webapp/WEB-INF/jsp/web/kakao/include/KakaoSentTopMentTap.jsp
@@ -25,16 +25,23 @@ function initMenuTab(){
console.log('uri:', uri);
- if(uri.includes('selectMsgSentView')){
- $('.topTab').removeClass("active");
- $("#smsTab").addClass("active");
- }else if(uri.includes('selectKakaoSentView')){
- $('.topTab').removeClass("active");
- $("#kakaoTab").addClass("active");
- }else if(uri.includes('faxSendList')){
- $('.topTab').removeClass("active");
- $("#faxTab").addClass("active");
+ // URI 키워드와 해당 탭 ID를 매핑
+ const tabMapping = [
+ { keyword: 'selectMsgSentView', tabId: '#smsTab' }, // 'selectMsgSentView' 키워드를 '#smsTab'으로 매핑
+ { keyword: 'selectKakaoSentView', tabId: '#kakaoTab' }, // 'selectKakaoSentView' 키워드를 '#kakaoTab'으로 매핑
+ { keyword: 'faxSendList', tabId: '#faxTab' } // 'faxSendList' 키워드를 '#faxTab'으로 매핑
+ ];
+
+ // URI에 특정 키워드가 포함되어 있는지 확인하여 활성 탭 정보를 찾음
+ const activeTab = tabMapping.find(mapping => uri.includes(mapping.keyword)); // 'uri'에 키워드가 포함된 첫 번째 매핑을 검색
+
+ // 매칭된 탭이 있으면 UI를 업데이트하여 해당 탭을 활성화
+ if (activeTab) {
+ $('.topTab').removeClass("active"); // 모든 탭에서 "active" 클래스 제거
+ $(activeTab.tabId).addClass("active"); // 매핑된 탭 ID에 "active" 클래스 추가
}
+
+
}
function fnLinkPageTab(tabInfo){
diff --git a/src/main/webapp/WEB-INF/jsp/web/kakao/msgdata/at/KakaoAlimtalkMsgDataView.jsp b/src/main/webapp/WEB-INF/jsp/web/kakao/msgdata/at/KakaoAlimtalkMsgDataView.jsp
index 391e7a03..dd0d5996 100644
--- a/src/main/webapp/WEB-INF/jsp/web/kakao/msgdata/at/KakaoAlimtalkMsgDataView.jsp
+++ b/src/main/webapp/WEB-INF/jsp/web/kakao/msgdata/at/KakaoAlimtalkMsgDataView.jsp
@@ -7,15 +7,18 @@
+
+
+
+
@@ -1085,6 +1291,17 @@ function checkNumber(event) {
+
| | |