113 lines
3.2 KiB
HTML
113 lines
3.2 KiB
HTML
<html>
|
|
|
|
|
|
<head>
|
|
<title>마우스 타자 관리자 페이지</title>
|
|
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
|
|
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
|
<link href="../../../resources/bootstrap/css/bootstrap.min.css" rel="stylesheet">
|
|
|
|
<script type="text/javascript" src="./../../../resources/jquery/jquery-3.3.1.min.js"></script>
|
|
<script type="text/javascript" src="./../js/main.js"></script>
|
|
<script type="text/javascript" src="./../js/request_server.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
$("#header").load("admin_header.html");
|
|
});
|
|
|
|
function getMaestroData() {
|
|
var maestroID = 1;
|
|
|
|
sendRequestServer( //url, sendParams, onSuccess, onFail, isDebugMode);
|
|
// "./../server/mail/send_mail_bank_info.php",
|
|
"./../server/mail/send_mail_test.php",
|
|
"type=get_maestro_data" + "&maestro_id=" + maestroID,
|
|
|
|
function(jsonData) {
|
|
console.log(jsonData);
|
|
// showErrorMessage("마에스트로 계정이 정상적으로 등록되었습니다.", "success");
|
|
// loadMaestroList("");
|
|
},
|
|
|
|
function(errorMessage, errorCode) {
|
|
showErrorMessage(errorMessage, "error");
|
|
}
|
|
|
|
);
|
|
}
|
|
|
|
function sendMailBankInfo() {
|
|
var maestroName = "삼화초";
|
|
var email = "jisangs@daum.net";
|
|
var accountType = 1;
|
|
|
|
sendRequestServer( //url, sendParams, onSuccess, onFail, isDebugMode);
|
|
// "./../server/mail/send_mail_bank_info.php",
|
|
"./../server/mail/send_mail_test.php",
|
|
"type=sendMailBankInfo" + "&maestro_name=" + maestroName + "&email=" + email + "&account_type=" + accountType,
|
|
|
|
function(jsonData) {
|
|
console.log(jsonData);
|
|
// showErrorMessage("마에스트로 계정이 정상적으로 등록되었습니다.", "success");
|
|
// loadMaestroList("");
|
|
},
|
|
|
|
function(errorMessage, errorCode) {
|
|
showErrorMessage(errorMessage, "error");
|
|
}
|
|
|
|
);
|
|
}
|
|
|
|
function sendMailRegistered() {
|
|
var maestroName = "삼화초";
|
|
var email = "jisangs@daum.net";
|
|
var accountType = 1;
|
|
|
|
sendRequestServer( //url, sendParams, onSuccess, onFail, isDebugMode);
|
|
// "./../server/mail/send_mail_bank_info.php",
|
|
"./../server/mail/send_mail_test.php",
|
|
"type=sendMailRegistered" + "&maestro_name=" + maestroName + "&email=" + email + "&account_type=" + accountType,
|
|
|
|
function(jsonData) {
|
|
console.log(jsonData);
|
|
// showErrorMessage("마에스트로 계정이 정상적으로 등록되었습니다.", "success");
|
|
// loadMaestroList("");
|
|
},
|
|
|
|
function(errorMessage, errorCode) {
|
|
showErrorMessage(errorMessage, "error");
|
|
}
|
|
|
|
);
|
|
}
|
|
|
|
</script>
|
|
</head>
|
|
|
|
|
|
|
|
<body bgcolor="white">
|
|
|
|
<header id="header"></header>
|
|
|
|
<div class="container mt-3">
|
|
<div class="row mx-1">
|
|
<h3 class="my-3">이메일 발송</h3>
|
|
</div>
|
|
|
|
<div id="message_box"></div>
|
|
|
|
<button type="button" class="btn btn-primary" onClick="sendMailBankInfo()">[ 마에 ] 입금 계좌 안내 메일 발송</button>
|
|
|
|
<button type="button" class="btn btn-primary" onClick="sendMailRegistered()">[ 마에 ] 등록 완료 메일 발송</button>
|
|
|
|
<button type="button" class="btn btn-secondary" onClick="getMaestroData()">마에스트로 데이터 테스트</button>
|
|
|
|
|
|
|
|
</div> <!-- container -->
|
|
</body>
|
|
|
|
|
|
</html> |