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