diff --git a/src/web/admin/admin_all_list.html b/src/web/admin/admin_all_list.html
new file mode 100644
index 0000000..d0f2385
--- /dev/null
+++ b/src/web/admin/admin_all_list.html
@@ -0,0 +1,201 @@
+
+
+
+
+
+
전체 목록
등록 목록
업그레이드 목록
계정 만료 목록
diff --git a/src/web/admin/login.html b/src/web/admin/login.html
index 2b8ab4f..868b0c7 100644
--- a/src/web/admin/login.html
+++ b/src/web/admin/login.html
@@ -53,7 +53,7 @@
"admin_name=" + name + "&password=" + password,
function(jsonData) {
- location.href = 'admin_register_list.html';
+ location.href = 'admin_all_list.html';
},
function(errorMessage, errorCode) {
diff --git a/src/web/js/lib/account_info.js b/src/web/js/lib/account_info.js
index 00b320d..9f7e842 100644
--- a/src/web/js/lib/account_info.js
+++ b/src/web/js/lib/account_info.js
@@ -19,7 +19,7 @@
return 0;
}
-function accoutType(accountType) {
+function accountType(accountType) {
switch(accountType) {
case 1:
return "20명 (1만원)";
@@ -40,6 +40,58 @@ function accoutType(accountType) {
return accountType + "? (N/A)";
}
+function accountStatus(accountType, activateStatus) {
+ if(activateStatus == 0)
+ return "입금대기";
+ else if(activateStatus == 100)
+ return "취소";
+
+ switch(accountType) {
+ case 1:
+ return "20명";
+
+ case 2:
+ return "50명";
+
+ case 3:
+ return "100명";
+
+ case 4:
+ return "500명";
+
+ case 5:
+ return "1,000명";
+
+ case 100:
+ return "학생체험";
+
+ case 101:
+ return "마에체험";
+ }
+
+ return "";
+}
+
+function accountStatusColorClass(status) {
+ switch(status) {
+ case "비활성화":
+ return " text-muted";
+
+ case "취소":
+ return " text-white bg-danger";
+
+ case "입금대기":
+ return " bg-warning";
+
+ case "학생체험":
+ case "마에체험":
+ return " text-success";
+
+ default:
+ return " text-primary";
+ }
+}
+
function accountTypePrice(accountType) {
switch(accountType) {
case 1:
diff --git a/src/web/server/admin/maestro_all_list.php b/src/web/server/admin/maestro_all_list.php
new file mode 100644
index 0000000..32dda47
--- /dev/null
+++ b/src/web/server/admin/maestro_all_list.php
@@ -0,0 +1,85 @@
+prepare($query);
+ // $stmt->bind_param("iii", $maestroID, $startNo, $endNo);
+ // $stmt->bind_param("ii", $maestroName, $startNo);
+ $stmt->execute();
+ $stmt->bind_result($maestroID, $name, $accountType, $activateStatus, $acceptClausesDateTime, $playerCount);
+
+ $maestroList = array();
+ while($stmt->fetch()) {
+ $maestro["maestroID"] = $maestroID;
+ $maestro["maestroName"] = $name;
+ $maestro["accountType"] = $accountType;
+ $maestro["activateStatus"] = $activateStatus;
+ $maestro["acceptClausesDateTime"] = $acceptClausesDateTime;
+ $maestro["playerCount"] = $playerCount;
+ array_push($maestroList, $maestro);
+ }
+
+ return $maestroList;
+}
+
+function get_maestro_list_by_name($maestroName) {
+ global $db_conn;
+
+ $query = "
+ SELECT MaestroID, Name, AccountType, ActivateStatus, AcceptClausesDateTime, PlayerCount
+ FROM maestro
+ WHERE Name LIKE CONCAT('%', ?, '%')
+ ORDER BY MaestroID DESC
+ ";
+ $stmt = $db_conn->prepare($query);
+ // $stmt->bind_param("iii", $maestroID, $startNo, $endNo);
+ $stmt->bind_param("s", $maestroName);
+ $stmt->execute();
+ $stmt->bind_result($maestroID, $name, $accountType, $activateStatus, $acceptClausesDateTime, $playerCount);
+
+ $maestroList = array();
+ while($stmt->fetch()) {
+ $maestro["maestroID"] = $maestroID;
+ $maestro["maestroName"] = $name;
+ $maestro["accountType"] = $accountType;
+ $maestro["activateStatus"] = $activateStatus;
+ $maestro["acceptClausesDateTime"] = $acceptClausesDateTime;
+ $maestro["playerCount"] = $playerCount;
+ array_push($maestroList, $maestro);
+ }
+
+ return $maestroList;
+}
+
+?>
\ No newline at end of file