diff --git a/src/web/css/maestro_main.css b/src/web/css/maestro_main.css index b3184d2..cac0b67 100644 --- a/src/web/css/maestro_main.css +++ b/src/web/css/maestro_main.css @@ -110,4 +110,10 @@ } */ + +.activate_app_checkbox { + width: 200px; + height: 200px; +} + \ No newline at end of file diff --git a/src/web/css/module.css b/src/web/css/module.css index 55687ea..72c2e65 100644 --- a/src/web/css/module.css +++ b/src/web/css/module.css @@ -80,4 +80,32 @@ footer { width: 25%; } + +input[type="checkbox"]{ + width:1px; + height:1px; + padding:0; + border:0 none; + margin:0; + position:absolute; + left:0; + top:0; + overflow:hidden; + clip:rect(0 0 0 0); +} + +label{ + height:15px; + line-height:15px; + padding-left:20px; + display:inline-block; + background:url(http://hcs1105.com/wp/wp-content/themes/hcs1105/images/checkbox1.png) no-repeat 0 0; + font-size:15px; + vertical-align:middle; + cursor:pointer; +} + +input[type="checkbox"]:checked + label{ + background-position: 0 -15px; +} \ No newline at end of file diff --git a/src/web/module/maestro_section_mouse_app.html b/src/web/module/maestro_section_mouse_app.html index abef33c..a0c0834 100644 --- a/src/web/module/maestro_section_mouse_app.html +++ b/src/web/module/maestro_section_mouse_app.html @@ -1,21 +1,108 @@ 
- - + + + + - - + + + + - - + + + +
\ No newline at end of file diff --git a/src/web/server/app/mouse_app_list.php b/src/web/server/app/mouse_app_list.php new file mode 100644 index 0000000..92f151e --- /dev/null +++ b/src/web/server/app/mouse_app_list.php @@ -0,0 +1,69 @@ +close(); + exit; +} + +$activated_mouse_app_list = get_activated_mouse_app_list($maestroID); +$replyJSON["List"] = $mouse_app_list; +$replyJSON["ActivatedList"] = $activated_mouse_app_list; +$replyJSON["RESULT"] = "ok"; +echo json_encode($replyJSON, JSON_UNESCAPED_UNICODE); +$db_conn->close(); + + +function get_mouse_app_list() { + global $db_conn; + + $query = " + SELECT AppID, AppName, KoreanName FROM moty_app + WHERE AppType=100 + ORDER BY AppID DESC + "; + $stmt = $db_conn->prepare($query); + $stmt->execute(); + $stmt->bind_result($appID, $appName, $koreanName); + + $playerList = array(); + while($stmt->fetch()) { + $player['AppID'] = $appID; + $player['AppName'] = $appName; + $player['KoreanName'] = $koreanName; + array_push($playerList, $player); + } + + return $playerList; +} + +function get_activated_mouse_app_list($maestroID) { + global $db_conn; + + $query = " + SELECT A.AppID + FROM moty_app AS A + INNER JOIN moty_active_app AS AA ON A.AppID = AA.AppID AND A.AppType = 100 AND AA.MaestroID=?" + ; + $stmt = $db_conn->prepare($query); + $stmt->bind_param('i', $maestroID); + $stmt->execute(); + $stmt->bind_result($appID); + + $playerList = array(); + while($stmt->fetch()) { + $player['AppID'] = $appID; + array_push($playerList, $player); + } + + return $playerList; +} + +?> \ No newline at end of file