이지우 - 관리자 성인교육 SMS 테스트 발송 추가

This commit is contained in:
jiwoo 2024-02-19 17:43:53 +09:00
parent a266ac1a71
commit cb1d7c5edf
4 changed files with 98 additions and 3 deletions

View File

@ -390,10 +390,28 @@
sendEmail(
mailAdress,
$("#smsEmail").val(),
cn,
"testSend",
"testSend",
"S", // 청소년
"S", // 성인
"Y"
);
}
function testSmsSnd(){
var clphone = $("#testSndSms").val();
var cn = $("#smsMsg").val();
if(clphone == ''){
alert("테스트 발송 휴대폰 번호를 입력해주세요.");
return false;
}
sendSms(
clphone,
cn,
"testSend",
"testSend",
"S", // 성인
"Y"
);
@ -757,6 +775,10 @@
<textarea id="smsMsg"></textarea>
<button type="button" class="btn_type08" onclick="fncSndSms();return false;">SMS 발송</button>
</div>
<div style="justify-content:left; margin-top:5px;">
<input type="text" id="testSndSms" onkeyup="onlyNumber(this);" maxlength="11" placeholder="휴대폰 주소"/>
<button type="button" class="btn_type08" onclick="testSmsSnd();" style="margin-left: 8px;">테스트 발송</button>
</div>
<!-- <p><span id="byteSms">0</span>/90 byte</p> -->
</td>
</tr>

View File

@ -271,6 +271,25 @@
);
}
function testSmsSnd(){
var clphone = $("#testSndSms").val();
var cn = $("#smsMsg").val();
if(clphone == ''){
alert("테스트 발송 휴대폰 번호를 입력해주세요.");
return false;
}
sendSms(
clphone,
cn,
"testSend",
"testSend",
"S", // 성인
"Y"
);
}
</script>
</head>
@ -611,6 +630,10 @@
<textarea id="smsMsg"></textarea>
<button type="button" class="btn_type08" onclick="fncSndSms();return false;">SMS 발송</button>
</div>
<div style="justify-content:left; margin-top:5px;">
<input type="text" id="testSndSms" onkeyup="onlyNumber(this);" maxlength="11" placeholder="휴대폰 주소"/>
<button type="button" class="btn_type08" onclick="testSmsSnd();" style="margin-left: 8px;">테스트 발송</button>
</div>
<!-- <p><span id="byteSms">0</span>/90 byte</p> -->
</td>
</tr>

View File

@ -336,6 +336,24 @@
"Y"
);
}
function testSmsSnd(){
var clphone = $("#testSndSms").val();
var cn = $("#smsMsg").val();
if(clphone == ''){
alert("테스트 발송 휴대폰 번호를 입력해주세요.");
return false;
}
sendSms(
clphone,
cn,
"testSend",
"testSend",
"S", // 성인
"Y"
);
}
</script>
@ -563,6 +581,10 @@
<textarea id="smsMsg"></textarea>
<button type="button" class="btn_type08" onclick="fncSndSms();return false;">SMS 발송</button>
</div>
<div style="justify-content:left; margin-top:5px;">
<input type="text" id="testSndSms" onkeyup="onlyNumber(this);" maxlength="11" placeholder="휴대폰 주소"/>
<button type="button" class="btn_type08" onclick="testSmsSnd();" style="margin-left: 8px;">테스트 발송</button>
</div>
<!-- <p><span id="byteSms">0</span>/90 byte</p> -->
</td>
</tr>

View File

@ -277,6 +277,32 @@
});
}
function testSendSms(){
var chkLen = $(listForm).find("input[name=chk]:checked").length;
var clphone = $("#testSndSms").val();
if(chkLen == 0){
alert("선택된 항목이 없습니다.");
return;
}
if(clphone == ''){
alert("테스트 발송 휴대폰 번호를 입력해주세요.");
return false;
}
$('input:checkbox[name="chk"]:checked').first().each(function() {
sendSms(
clphone,
$(this).data('chrgnm')+"님의 " + $(this).data('date') + " 교육 강의만족도 제출 바랍니다.",
$(this).val().split('@')[0],
$(this).data('userid'),
"S",
"Y"
);
});
}
//알림 등록용 함수-문자,메일 중 요청한 곳에만 추가한다.
function fncNotiReg(
@ -546,7 +572,9 @@
<button type="button" class="btn_type06" onclick="chkRprtPrint(); return false;">결과보고 출력 </button>
<button type="button" class="btn_type06" onclick="chkSendSmsEmail(); return false;">강의만족도 제출요청 </button>
<input type="text" id="testSndEMail" placeholder="이메일 주소" style="margin-top:8px;"/>
<button type="button" class="btn_type06" onclick="testSendEmail();" style="padding:8px; margin-top:8px;">강의만족도 제출요청 테스트 발송</button>
<button type="button" class="btn_type06" onclick="testSendEmail();" style="padding:8px; margin-top:8px;">강의만족도 제출요청 이메일 테스트</button>
<input type="text" id="testSndSms" placeholder="휴대폰 번호" style="margin-top:8px;" onkeyup="onlyNumber(this);" maxlength="11"/>
<button type="button" class="btn_type06" onclick="testSendSms();" style="padding:8px; margin-top:8px;">강의만족도 제출요청 SMS 테스트</button>
<%-- <ve:select codeId="VE0016" name="pnltyCd" id="pnltyCd" css="class='sel_type1'" --%>
<%-- selectedValue="<c:out value='${info.eduSlctAreaCd}'/>" --%>
<%-- /> --%>