Add: Enable/disable test_exam
This commit is contained in:
@@ -161,6 +161,7 @@ function makeTypingAppList(appList) {
|
|||||||
$("#typing_practice_eng").empty();
|
$("#typing_practice_eng").empty();
|
||||||
$("#typing_test_kor").empty();
|
$("#typing_test_kor").empty();
|
||||||
$("#typing_test_eng").empty();
|
$("#typing_test_eng").empty();
|
||||||
|
$("#test_exam").empty();
|
||||||
$("#typing_app").empty();
|
$("#typing_app").empty();
|
||||||
|
|
||||||
for(var i = 0; i < appList.length; i++) {
|
for(var i = 0; i < appList.length; i++) {
|
||||||
@@ -186,13 +187,12 @@ function makeTypingAppList(appList) {
|
|||||||
divTag = $("#typing_test_eng");
|
divTag = $("#typing_test_eng");
|
||||||
groupName = "typing_test_eng";
|
groupName = "typing_test_eng";
|
||||||
}
|
}
|
||||||
// else {
|
|
||||||
// divTag = $("#typing_app");
|
|
||||||
// groupName = "typing_app_all";
|
|
||||||
// }
|
|
||||||
else if(appData.appID < 200) {
|
else if(appData.appID < 200) {
|
||||||
divTag = $("#typing_app");
|
divTag = $("#typing_app");
|
||||||
groupName = "typing_app_all";
|
groupName = "typing_app_all";
|
||||||
|
} else if(appData.appID == 200) {
|
||||||
|
divTag = $("#test_exam");
|
||||||
|
groupName = "test_exam";
|
||||||
} else {
|
} else {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -271,6 +271,13 @@ function triggerAppGroup(groupName) {
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
||||||
|
<h5 class="mt-4 mb-2">긴글 (시험)</h5>
|
||||||
|
<form class="ml-4">
|
||||||
|
<div class="form-row ml-4" id="test_exam">
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
|
||||||
<h5 class="mt-4 mb-2">타자 놀이</h5>
|
<h5 class="mt-4 mb-2">타자 놀이</h5>
|
||||||
<form class="ml-4">
|
<form class="ml-4">
|
||||||
<input type="checkbox" id="group_typing_app_all" aria-label="Checkbox for all typing apps">
|
<input type="checkbox" id="group_typing_app_all" aria-label="Checkbox for all typing apps">
|
||||||
@@ -280,6 +287,7 @@ function triggerAppGroup(groupName) {
|
|||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
||||||
<h5 class="mt-4 mb-2">마우스 놀이</h5>
|
<h5 class="mt-4 mb-2">마우스 놀이</h5>
|
||||||
<form class="mx-4">
|
<form class="mx-4">
|
||||||
<input type="checkbox" id="group_mouse_app_all" aria-label="Checkbox for all mouse apps">
|
<input type="checkbox" id="group_mouse_app_all" aria-label="Checkbox for all mouse apps">
|
||||||
|
|||||||
@@ -44,9 +44,14 @@ class WritingCollection extends DBMethodContainer
|
|||||||
$query = "
|
$query = "
|
||||||
SELECT WritingID
|
SELECT WritingID
|
||||||
FROM writing
|
FROM writing
|
||||||
WHERE Language=? AND ActivateStatus=1";
|
WHERE
|
||||||
|
(
|
||||||
|
SELECT COUNT(1)
|
||||||
|
FROM active_app
|
||||||
|
WHERE MaestroID=? AND AppID=200
|
||||||
|
)=1 AND Language=? AND ActivateStatus=1";
|
||||||
$stmt = $this->mysqli->prepare($query);
|
$stmt = $this->mysqli->prepare($query);
|
||||||
$stmt->bind_param("s", $language);
|
$stmt->bind_param("ss", $maestroID, $language);
|
||||||
$stmt->execute();
|
$stmt->execute();
|
||||||
$stmt->bind_result($writingID);
|
$stmt->bind_result($writingID);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user