이지우 - 관리자 성인/실무 - 메일/sms 테스트 발송 추가
This commit is contained in:
parent
71b42bf2b7
commit
829d0aa0d2
@ -32,6 +32,7 @@
|
||||
<head>
|
||||
<title>교육신청 상세</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<script src="${pageContext.request.contextPath}/js/ve/sendSmsEmailUtil.js"></script>
|
||||
<script type="text/javascript">
|
||||
function fncGoDetail(){
|
||||
var linkForm = document.linkForm ;
|
||||
@ -379,6 +380,24 @@
|
||||
});
|
||||
}
|
||||
|
||||
function testSnd(){
|
||||
var mailAdress = $("#testSndEMail").val();
|
||||
var cn = $("#smsEmail").val();
|
||||
if(mailAdress == ''){
|
||||
alert("테스트 발송 이메일 주소를 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
sendEmail(
|
||||
mailAdress,
|
||||
$("#smsEmail").val(),
|
||||
"testSend",
|
||||
"testSend",
|
||||
"S", // 청소년
|
||||
"Y"
|
||||
);
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
</head>
|
||||
@ -752,6 +771,10 @@
|
||||
|
||||
</div>
|
||||
<p><span id="byteEmail">0</span>/1000 byte</p>
|
||||
<div style="justify-content:left;">
|
||||
<input type="text" id="testSndEMail" placeholder="이메일 주소"/>
|
||||
<button type="button" class="btn_type08" onclick="testSnd();">테스트 발송</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
@ -32,6 +32,7 @@
|
||||
<head>
|
||||
<title>교육확정 상세</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<script src="${pageContext.request.contextPath}/js/ve/sendSmsEmailUtil.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
function fncGoList(){
|
||||
@ -251,6 +252,25 @@
|
||||
function reloadPage(){
|
||||
location.reload();
|
||||
}
|
||||
|
||||
function testSnd(){
|
||||
var mailAdress = $("#testSndEMail").val();
|
||||
var cn = $("#smsEmail").val();
|
||||
if(mailAdress == ''){
|
||||
alert("테스트 발송 이메일 주소를 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
sendEmail(
|
||||
mailAdress,
|
||||
$("#smsEmail").val(),
|
||||
"testSend",
|
||||
"testSend",
|
||||
"S", // 청소년
|
||||
"Y"
|
||||
);
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
</head>
|
||||
@ -605,6 +625,10 @@
|
||||
|
||||
</div>
|
||||
<p><span id="byteEmail">0</span>/1000 byte</p>
|
||||
<div style="justify-content:left;">
|
||||
<input type="text" id="testSndEMail" placeholder="이메일 주소"/>
|
||||
<button type="button" class="btn_type08" onclick="testSnd();">테스트 발송</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
@ -192,7 +192,7 @@
|
||||
$('input:checkbox[name="chk"]:checked').each(function() {
|
||||
sendSms(
|
||||
$(this).data('instrphone'),
|
||||
"교육운영 관리 시스템입니다." + $(this).data('instrnm')+"님의 " + $(this).data('date') + " 교육 강사료는 " + $(this).data('instrfeesum') +"원입니다.",
|
||||
$(this).data('instrnm')+"님의 " + $(this).data('date') + " 교육 강사료는 " + $(this).data('instrfeesum') +"원입니다.",
|
||||
$(this).val().split('@')[0],
|
||||
$(this).data('userid'),
|
||||
"S",
|
||||
@ -202,6 +202,34 @@
|
||||
alert("발송되었습니다.");
|
||||
|
||||
}
|
||||
|
||||
function testSendSms(){
|
||||
var chkLen = $(listForm).find("input[name=chk]:checked").length;
|
||||
var testPhone = $("#testPhone").val();
|
||||
|
||||
if(chkLen == 0){
|
||||
alert("선택된 항목이 없습니다.");
|
||||
return;
|
||||
}
|
||||
|
||||
if(testPhone == ''){
|
||||
alert("테스트 번호를 입력해주세요.")
|
||||
return;
|
||||
}
|
||||
|
||||
//테스트 발송 시 체크된 항목 중 첫번째 내용만 전송
|
||||
$('input:checkbox[name="chk"]:checked').first().each(function() {
|
||||
sendSms(
|
||||
testPhone,
|
||||
$(this).data('instrnm')+"님의 " + $(this).data('date') + " 교육 강사료는 " + $(this).data('instrfeesum') +"원입니다.",
|
||||
"testSms",
|
||||
"testSms",
|
||||
"S",
|
||||
"Y"
|
||||
);
|
||||
});
|
||||
|
||||
}
|
||||
</script>
|
||||
<title>신청관리</title>
|
||||
</head>
|
||||
@ -400,6 +428,8 @@
|
||||
<!-- <button type="button" class="btn_type06" onclick="fnAcmdtFileZipDownload(); return false;">숙박영수증다운로드</button> -->
|
||||
<button type="button" class="btn_type06" onclick="excelDownLoad();">지급내역다운로드</button>
|
||||
<button type="button" class="btn_type06" onclick="chkSendSms();">강사료 안내 문자발송</button>
|
||||
<input type="text" name="testPhone" id="testPhone" onkeyup="onlyNumber(this);" maxlength="11" placeholder="테스트 번호">
|
||||
<button type="button" class="btn_type06" onclick="testSendSms();">강사료 안내 문자발송</button>
|
||||
</div>
|
||||
<div class="btn_center">
|
||||
</div>
|
||||
|
||||
@ -29,6 +29,7 @@
|
||||
<head>
|
||||
<title>교육과정관리</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<script src="${pageContext.request.contextPath}/js/ve/sendSmsEmailUtil.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
$(document).ready(function () {
|
||||
@ -317,6 +318,25 @@
|
||||
|
||||
}
|
||||
|
||||
|
||||
function testSnd(){
|
||||
var mailAdress = $("#testSndEMail").val();
|
||||
var cn = $("#smsEmail").val();
|
||||
if(mailAdress == ''){
|
||||
alert("테스트 발송 이메일 주소를 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
sendEmail(
|
||||
mailAdress,
|
||||
$("#smsEmail").val(),
|
||||
"testSend",
|
||||
"testSend",
|
||||
"S", // 청소년
|
||||
"Y"
|
||||
);
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
</head>
|
||||
@ -557,6 +577,10 @@
|
||||
|
||||
</div>
|
||||
<p><span id="byteEmail">0</span>/1000 byte</p>
|
||||
<div style="justify-content:left;">
|
||||
<input type="text" id="testSndEMail" placeholder="이메일 주소"/>
|
||||
<button type="button" class="btn_type08" onclick="testSnd();">테스트 발송</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
@ -213,7 +213,7 @@
|
||||
$('input:checkbox[name="chk"]:checked').each(function() {
|
||||
sendSms(
|
||||
$(this).data('phone'),
|
||||
"교육운영 관리 시스템입니다.\n" + $(this).data('chrgnm')+"님의 " + $(this).data('date') + " 교육 강의만족도 제출 바랍니다.",
|
||||
$(this).data('chrgnm')+"님의 " + $(this).data('date') + " 교육 강의만족도 제출 바랍니다.",
|
||||
$(this).val().split('@')[0],
|
||||
$(this).data('userid'),
|
||||
"S",
|
||||
@ -221,7 +221,7 @@
|
||||
);
|
||||
sendEmail(
|
||||
$(this).data('email'),
|
||||
"교육운영 관리 시스템입니다. \n" + $(this).data('chrgnm')+"님의 " + $(this).data('date') + " 교육 강의만족도 제출 바랍니다.",
|
||||
$(this).data('chrgnm')+"님의 " + $(this).data('date') + " 교육 강의만족도 제출 바랍니다.",
|
||||
$(this).val().split('@')[0],
|
||||
$(this).data('userid'),
|
||||
"S",
|
||||
@ -251,6 +251,32 @@
|
||||
alert("발송되었습니다.");
|
||||
|
||||
}
|
||||
|
||||
function testSendEmail(){
|
||||
var chkLen = $(listForm).find("input[name=chk]:checked").length;
|
||||
var mailAdress = $("#testSndEMail").val();
|
||||
if(chkLen == 0){
|
||||
alert("선택된 항목이 없습니다.");
|
||||
return;
|
||||
}
|
||||
|
||||
if(mailAdress == ''){
|
||||
alert("테스트 발송 이메일 주소를 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
$('input:checkbox[name="chk"]:checked').first().each(function() {
|
||||
sendEmail(
|
||||
mailAdress,
|
||||
$(this).data('chrgnm')+"님의 " + $(this).data('date') + " 교육 강의만족도 제출 바랍니다.",
|
||||
$(this).val().split('@')[0],
|
||||
$(this).data('userid'),
|
||||
"S",
|
||||
"Y"
|
||||
);
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
//알림 등록용 함수-문자,메일 중 요청한 곳에만 추가한다.
|
||||
function fncNotiReg(
|
||||
@ -519,6 +545,8 @@
|
||||
<div class="btn_right">
|
||||
<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="이메일 주소"/>
|
||||
<button type="button" class="btn_type08" onclick="testSendEmail();" style="padding:0;">강의만족도 제출요청 테스트 발송</button>
|
||||
<%-- <ve:select codeId="VE0016" name="pnltyCd" id="pnltyCd" css="class='sel_type1'" --%>
|
||||
<%-- selectedValue="<c:out value='${info.eduSlctAreaCd}'/>" --%>
|
||||
<%-- /> --%>
|
||||
|
||||
@ -292,22 +292,21 @@
|
||||
|
||||
}
|
||||
function testSnd(){
|
||||
var cn = $("#testSndEMail").val();
|
||||
if(cn == ''){
|
||||
var mailAdress = $("#testSndEMail").val();
|
||||
var cn = $("#smsEmail").val();
|
||||
if(mailAdress == ''){
|
||||
alert("테스트 발송 이메일 주소를 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
sendEmail(
|
||||
cn,
|
||||
mailAdress,
|
||||
$("#smsEmail").val(),
|
||||
$(this).val(),
|
||||
$(this).data('userid'),
|
||||
"testSend",
|
||||
"testSend",
|
||||
"A", // 기반강화
|
||||
"N"
|
||||
"Y"
|
||||
);
|
||||
alert("발송되었습니다.");
|
||||
|
||||
}
|
||||
|
||||
@ -850,8 +849,8 @@
|
||||
|
||||
</div>
|
||||
<p><span id="byteEmail">0</span>/1000 byte</p>
|
||||
<div>
|
||||
<input type="text" id="testSndEMail" />
|
||||
<div style="justify-content:left;">
|
||||
<input type="text" id="testSndEMail" placeholder="이메일 주소"/>
|
||||
<button type="button" class="btn_type08" onclick="testSnd();">테스트 발송</button>
|
||||
</div>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user