Add: TypingAppButton(flat button) (incompleted)

This commit is contained in:
2019-08-11 15:27:03 +09:00
parent 6aa89a5db4
commit 0b8984540e
6 changed files with 186 additions and 9 deletions
+1
View File
@@ -65,6 +65,7 @@
<script src="../../game/lib/flat_button/app_group_tab.js"></script>
<script src="../../game/lib/flat_button/language_tab.js"></script>
<script src="../../game/lib/flat_button/tab_layout.js"></script>
<script src="../../game/lib/flat_button/typing_app_button.js"></script>
<script src="../../game/lib/animal.js"></script>
<script src="../../game/lib/animal_list.js"></script>
+8 -6
View File
@@ -86,18 +86,19 @@ class MenuCollection extends DBMethodContainer
public function getTypingAppList($maestroID, $playerID, $appGroup, $language)
{
$query = "
SELECT AppID, KoreanName
SELECT AppID, AppName, KoreanName
FROM app
WHERE AppType=? AND Status=1";
$stmt = $this->mysqli->prepare($query);
$stmt->bind_param("i", $this->getTypingAppType($appGroup, $language));
$stmt->execute();
$stmt->bind_result($appID, $koreanName);
$stmt->bind_result($appID, $appName, $koreanName);
$resultArray = array();
while($stmt->fetch()) {
$rowArray = array();
$rowArray["appID"] = $appID;
$rowArray["appName"] = $appName;
$rowArray["koreanName"] = $koreanName;
array_push($resultArray, $rowArray);
}
@@ -109,17 +110,18 @@ class MenuCollection extends DBMethodContainer
public function getMouseAppList()
{
$query = "
SELECT AppID, KoreanName
SELECT AppID, AppName, KoreanName
FROM app
WHERE AppType=100 AND Status=1";
$stmt = $this->mysqli->prepare($query);
$stmt->execute();
$stmt->bind_result($appID, $koreanName);
$stmt->bind_result($appID, $appName, $koreanName);
$resultArray = array();
while($stmt->fetch()) {
$rowArray = array();
$rowArray["appID"] = $appID;
$rowArray["appName"] = $appName;
$rowArray["koreanName"] = $koreanName;
array_push($resultArray, $rowArray);
}
@@ -221,7 +223,7 @@ class MenuCollection extends DBMethodContainer
for($i = 0; $i < $count; $i++) {
$writingID = $appList[$i]["writingID"];
$highestRecord["writingID"] = $writingID;
$highestRecord["HighestRecord"] = $writingCollection->getWritingHighestRecord($maestroID, $playerID, $writingID);
$highestRecord["highestRecord"] = $writingCollection->getWritingHighestRecord($maestroID, $playerID, $writingID);
array_push($highestRecordArray, $highestRecord);
}
@@ -235,7 +237,7 @@ class MenuCollection extends DBMethodContainer
for($i = 0; $i < $count; $i++) {
$appID = $appList[$i]["appID"];
$highestRecord["appID"] = $appID;
$highestRecord["HighestRecord"] = $this->getTypingHighestRecord($maestroID, $playerID, $appID);
$highestRecord["highestRecord"] = $this->getTypingHighestRecord($maestroID, $playerID, $appID);
array_push($highestRecordArray, $highestRecord);
}