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