diff --git a/src/web/module/maestro_section_add_player.html b/src/web/module/maestro_section_add_player.html index 32e5706..2cfeb85 100644 --- a/src/web/module/maestro_section_add_player.html +++ b/src/web/module/maestro_section_add_player.html @@ -7,10 +7,6 @@ $(document).ready(function() { } }); - // checkbox-allow-edit-entercode - setCheckboxEvent(); - loadAllowEditEnterCode(); - addPlayerListManager = new PlayerListManager( $("#add_player_list"), // $(".pagination") @@ -20,57 +16,6 @@ $(document).ready(function() { addPlayerListManager.setupAddPlayerList(); }); -function setCheckboxEvent() { - $("#checkbox-allow-edit-entercode").change(function() { - if($(this).is(":checked")) { - changeAllowEditEnterCode(true); - } else { - changeAllowEditEnterCode(false); - } - }); -} - -function changeAllowEditEnterCode(isActivated) { - var allowEditEnterCode = isActivated ? 1 : 0; - - sendRequestServer( //url, sendParams, onSuccess, onFail, isDebugMode); - "./../server/maestro/set_allow_edit_entercode.php", - "maestro_id=" + maestroID + "&allowEditEnterCode=" + allowEditEnterCode, - - (function(jsonData) { - // console.log(jsonData); - if(jsonData["isActivated"] == "0") - showErrorMessage("학생 로그인 후 나오는 메뉴 화면(우상단)에 있던 [설정]버튼을 숨겼습니다.
마에스트로만 학생들의 입장번호를 수정할 수 있습니다.", "error"); - else - showErrorMessage("학생 로그인 후 나오는 메뉴 화면(우상단)에, [설정]버튼을 활성화 시켰습니다.
[설정] 버튼을 눌러 설정 화면에 들어가면, 학생이 자신의 입장번호를 바꿀 수 있습니다.", "success"); - }), - - (function(errorMessage, errorCode) { - showErrorMessage(errorMessage, "error"); - }) - - ); -} - -function loadAllowEditEnterCode() { - sendRequestServer( //url, sendParams, onSuccess, onFail, isDebugMode); - "./../server/maestro/get_allow_edit_entercode.php", - "maestro_id=" + maestroID, - - (function(jsonData) { - var flag = jsonData["AllowEditEnterCode"]; - if(flag) { - $("#checkbox-allow-edit-entercode").prop("checked", true); - } - }), - - (function(errorMessage, errorCode) { - showErrorMessage(errorMessage, "error"); - }) - - ); -} - function addPlayer() { var playerName = $("#player_name").val(); var enterCode = $("#entercode").val(); @@ -165,14 +110,10 @@ function onErrorPlayerPW(message) { -
학생 입장번호 변경 설정 활성화
-
-
-
- - -
-
-
- - - diff --git a/src/web/module/maestro_section_app_setting.html b/src/web/module/maestro_section_app_setting.html index b9c289b..e0b905c 100644 --- a/src/web/module/maestro_section_app_setting.html +++ b/src/web/module/maestro_section_app_setting.html @@ -10,6 +10,10 @@ $(document).ready(function() { }); */ + // checkbox-allow-edit-entercode + setCheckboxEvent(); + loadAllowEditEnterCode(); + // load maestro timer password and show it sendRequestServer( //url, sendParams, onSuccess, onFail, isDebugMode); "./../server/license_timer/get_license_maestro_password.php", @@ -29,6 +33,57 @@ $(document).ready(function() { }); +function setCheckboxEvent() { + $("#checkbox-allow-edit-entercode").change(function() { + if($(this).is(":checked")) { + changeAllowEditEnterCode(true); + } else { + changeAllowEditEnterCode(false); + } + }); +} + +function loadAllowEditEnterCode() { + sendRequestServer( //url, sendParams, onSuccess, onFail, isDebugMode); + "./../server/maestro/get_allow_edit_entercode.php", + "maestro_id=" + maestroID, + + (function(jsonData) { + var flag = jsonData["AllowEditEnterCode"]; + if(flag) { + $("#checkbox-allow-edit-entercode").prop("checked", true); + } + }), + + (function(errorMessage, errorCode) { + showErrorMessage(errorMessage, "error"); + }) + + ); +} + +function changeAllowEditEnterCode(isActivated) { + var allowEditEnterCode = isActivated ? 1 : 0; + + sendRequestServer( //url, sendParams, onSuccess, onFail, isDebugMode); + "./../server/maestro/set_allow_edit_entercode.php", + "maestro_id=" + maestroID + "&allowEditEnterCode=" + allowEditEnterCode, + + (function(jsonData) { + // console.log(jsonData); + if(jsonData["isActivated"] == "0") + showErrorMessage("학생 로그인 후 나오는 메뉴 화면(우상단)에 있던 [설정]버튼을 숨겼습니다.
마에스트로만 학생들의 입장번호를 수정할 수 있습니다.", "error"); + else + showErrorMessage("학생 로그인 후 나오는 메뉴 화면(우상단)에, [설정]버튼을 활성화 시켰습니다.
[설정] 버튼을 눌러 설정 화면에 들어가면, 학생이 자신의 입장번호를 바꿀 수 있습니다.", "success"); + }), + + (function(errorMessage, errorCode) { + showErrorMessage(errorMessage, "error"); + }) + + ); +} + function editPassword() { var password = $("#password").val(); @@ -78,6 +133,42 @@ function onErrorPassword(message) { + +
+
학생 입장번호 변경 설정
+
+

+ +

+
+
학생 입장번호 변경 설정 활성화
+
+
+ +
+
+
+
+
+ + +
+
+
+
+
+ +

+
+
+
+ + + + +
자격증 타이머
diff --git a/src/web/module/maestro_section_help.html b/src/web/module/maestro_section_help.html index 9f4dd18..ca1d851 100644 --- a/src/web/module/maestro_section_help.html +++ b/src/web/module/maestro_section_help.html @@ -173,24 +173,7 @@ function showModal(contentFileName) {
  • 같은 이름이지만 입장번호가 다를 경우, 중복 이름으로 학생 계정을 등록하실 수 있습니다.
  • 이름과 입장번호가 모두 같으면, 학생 계정을 등록할 수 없습니다.
  • - -
    -
    -
    학생 입장번호 변경 설정
    -
    -
    - - +
    @@ -201,6 +184,7 @@ function showModal(contentFileName) {
    • 학생 계정을 삭제하면, 해당 학생의 기록과 순위 정보도 모두 함께 삭제됩니다.
    +
    @@ -219,15 +203,15 @@ function showModal(contentFileName) {
    - +
    -
    앱 관리
    +
    앱 활성화

    -
    앱 활성화
    +
    앱 활성화 / 비활성화 설정
    @@ -239,13 +223,46 @@ function showModal(contentFileName) {
  • 전체 활성화 / 전체 비활성화 기능은 아직 준비하지 못했습니다.
  • +

    +
    +
    +
    + + + + +
    +
    앱 설정
    +
    +

    +

    -
    앱 설정
    +
    학생 입장번호 변경 설정 활성화
      +
    • "[ ] 학생 로그인 후, 설정 화면에서 입장번호 변경을 허용" 항목을 체크해서 활성화 시킬 수 있습니다.
    • +
    • + 학생 입장번호 변경 설정을 활성화하면, +
        +
      1. 학생들이 로그인 한 뒤 나오는 메뉴 화면의 상단 우측에 설정 버튼이 나타납니다.
      2. +
      3. 설정 화면에서 학생 스스로 입장번호를 변경할 수 있게 됩니다.
      4. +
      +
    • +
    • 학생 입장번호 변경 설정을 비활성화 하면, 학생들의 화면에서 설정 버튼이 샤라집니다.
    • +
    +
    + +
    +
    +
    자격증 타이머 앱
    +
    +
    + +
      +
    • 자격증 타이머 점수 기록시, 학생들이 장난으로 입력하지 못하도록 (점수 입력) 비밀번호를 설정하세요.