diff --git a/src/web/admin/admin_send_email.html b/src/web/admin/admin_send_email.html index b82e422..47c4e37 100644 --- a/src/web/admin/admin_send_email.html +++ b/src/web/admin/admin_send_email.html @@ -15,10 +15,59 @@ $("#header").load("admin_header.html"); }); - function sendMail() { + function getMaestroData() { + var maestroID = 1; + sendRequestServer( //url, sendParams, onSuccess, onFail, isDebugMode); - "./../server/mail/testmail.php", - "maestro_id=" + maestroID, + // "./../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); @@ -49,25 +98,12 @@
- + - diff --git a/src/web/module/footer.html b/src/web/module/footer.html index f8fd084..e319ac4 100644 --- a/src/web/module/footer.html +++ b/src/web/module/footer.html @@ -7,7 +7,7 @@
- +
diff --git a/src/web/module/maestro_section_register.html b/src/web/module/maestro_section_register.html index d6de98e..d9a5b18 100644 --- a/src/web/module/maestro_section_register.html +++ b/src/web/module/maestro_section_register.html @@ -89,7 +89,7 @@ function checkData() { } password = $("#password").val(); - console.log("password : " + password); + // console.log("password : " + password); if(password.length === 0) { showErrorMessage("암호를 입력해 주세요.", "error"); $("#password").focus(); @@ -108,7 +108,7 @@ function checkData() { selectedAccountTypeValue = $("#account_type").val(); // selectedAccountTypeText = $("#account_type option:selected").text(); - console.log(selectedAccountTypeValue); + // console.log(selectedAccountTypeValue); // console.log(selectedAccountTypeText); let isCheckAcceptClauses = $("#check_accept_clauses").is(":checked"); @@ -200,7 +200,7 @@ function register_account() { } $('#myTab a').on('click', function (e) { - e.preventDefault() + e.preventDefault(); // $(this).tab('show') }) @@ -326,22 +326,21 @@ $('#myTab a').on('click', function (e) {
- +
- +
- 위의 내용이 모두 맞는지 확인해주세요.
- 아래의 등록 신청 버튼을 누르면, 입력하신 이메일 주소로도 입금 내용을 보내드립니다.
+ 입력하신 내용이 모두 맞는지 확인해주세요.
- +
@@ -355,10 +354,12 @@ $('#myTab a').on('click', function (e) {

마에스트로 아이디 ???? 가 신청되었습니다.

-
- 방금 이메일로 입금 안내 내용을 보내드렸습니다. -
- +
@@ -367,7 +368,7 @@ $('#myTab a').on('click', function (e) {
- +
@@ -378,7 +379,7 @@ $('#myTab a').on('click', function (e) {
- + 빠른 입금 확인과 계정 활성화를 위해, 송금자명을 아이디로 입력 부탁드립니다.
@@ -386,23 +387,13 @@ $('#myTab a').on('click', function (e) {
-
-

스팸 메일 확인 요청

- -
    -
  • support@jinaju.com 이 발송하는 메일이 네이버/다음 메일 등에서 [스팸 메일함]에 들어가는 것으로 확인되었습니다.
  • -
  • 번거로우시겠지만 [스팸 메일함]에서 해당 메일을 스팸 해제 처리 부탁드립니다.
  • -
- -
- -
+

계정 활성화 안내

    -
  • 계정 신청 내역과 입금 내역을 확인한 후, 바로 마에스트로 아이디를 활성화하겠습니다.
  • -
  • 신청후 24시간 안에 확인하고 활성화하도록 노력하겠습니다.
  • -
  • 계정 등록 절차가 완료되는대로, 활성화되었음을 알리는 메일을 드리겠습니다.
  • +
  • 입금 내역이 확인되는대로 마에스트로 아이디를 활성화 해드리겠습니다.
  • +
  • 현재 수작업으로 확인하고 계정을 활성화하고 있어서 시간이 조금 걸리고 있습니다. 양해 부탁드립니다.
  • +
  • 마에스트로 계정이 활성화되는대로 즉시 알림 메일을 드리겠습니다.
diff --git a/src/web/server/admin/register_maestro.php b/src/web/server/admin/register_maestro.php index 471f69f..49b2753 100644 --- a/src/web/server/admin/register_maestro.php +++ b/src/web/server/admin/register_maestro.php @@ -3,6 +3,10 @@ header("Content-Type: application/json"); include "./../lib/send_reply_json.php"; include "./../setup/connect_db.php"; +include "./../lib/maestro_account_info.php"; +include "./../lib/db_maestro.php"; +include "./../mail/mail_setting.php"; +include "./../mail/send_mail.php"; $maestroID = $_POST["maestro_id"]; @@ -35,6 +39,8 @@ add_maestro_sample_player_data($maestroID); $count = count_registered_player($maestroID); update_count_registered_player($maestroID, $count); +$maestro_data = get_maestro_data($maestroID); +sendMailRegistered($maestro_data["name"], $maestro_data["email"]); send_result_success(); exit; diff --git a/src/web/server/lib/db_maestro.php b/src/web/server/lib/db_maestro.php new file mode 100644 index 0000000..108da70 --- /dev/null +++ b/src/web/server/lib/db_maestro.php @@ -0,0 +1,31 @@ +prepare($query); + $stmt->bind_param("i", $maestro_id); + $stmt->execute(); + $stmt->bind_result($name, $email, $accountType, $activateStatus, $availableActivateDateTime, $playerCount, $acceptClausesDateTime, $maestroTestID); + $stmt->fetch(); + $stmt->close(); + + $maestro_data = array(); + $maestro_data['name'] = $name; + $maestro_data['email'] = $email; + $maestro_data['accountType'] = $accountType; + $maestro_data['activateStatus'] = $activateStatus; + $maestro_data['availableActivateDateTime'] = $availableActivateDateTime; + $maestro_data['playerCount'] = $playerCount; + $maestro_data['acceptClausesDateTime'] = $acceptClausesDateTime; + $maestro_data['maestroTestID'] = $maestroTestID; + + return $maestro_data; +} + +?> \ No newline at end of file diff --git a/src/web/server/lib/maestro_account_type.php b/src/web/server/lib/maestro_account_type.php deleted file mode 100644 index a10ed37..0000000 --- a/src/web/server/lib/maestro_account_type.php +++ /dev/null @@ -1,23 +0,0 @@ - \ No newline at end of file diff --git a/src/web/server/maestro/add_maestro.php b/src/web/server/maestro/add_maestro.php index 2351dd6..acd9c19 100644 --- a/src/web/server/maestro/add_maestro.php +++ b/src/web/server/maestro/add_maestro.php @@ -1,22 +1,16 @@ \ No newline at end of file diff --git a/src/web/server/mail/send_mail.php b/src/web/server/mail/send_mail.php new file mode 100644 index 0000000..ea27afb --- /dev/null +++ b/src/web/server/mail/send_mail.php @@ -0,0 +1,117 @@ + \ No newline at end of file diff --git a/src/web/server/mail/send_mail_test.php b/src/web/server/mail/send_mail_test.php new file mode 100644 index 0000000..9b545c6 --- /dev/null +++ b/src/web/server/mail/send_mail_test.php @@ -0,0 +1,57 @@ + \ No newline at end of file diff --git a/src/web/server/mail/testmail.php b/src/web/server/mail/testmail.php deleted file mode 100644 index a1085ac..0000000 --- a/src/web/server/mail/testmail.php +++ /dev/null @@ -1,87 +0,0 @@ - \ No newline at end of file