Add: admin new registered maestro account list, registered date

This commit is contained in:
2019-03-14 22:12:46 +09:00
parent e9e3fc7b6b
commit 002b43b4b6
2 changed files with 8 additions and 4 deletions
+2
View File
@@ -97,6 +97,7 @@
+ " <input type='text' class='maestro_id d-none' value='" + jsonList[i].maestroID + "'>"
+ " <input type='text' class='col-sm' value='" + jsonList[i].maestroName + "'>"
+ " <input type='text' class='col-sm' value='" + accoutType(jsonList[i].accountType) + "'>"
+ " <input type='text' class='col-sm' value='" + jsonList[i].acceptClausesDateTime.substring(0, 10) + "'>"
+ " <input type='button' class='col-sm-1' value='+' onClick='register(this)'>"
+ " <input type='button' class='col-sm-1' disabled value='-'>"
+ "</div>"
@@ -176,6 +177,7 @@
<label class="col-form-label d-none">ID</label>
<label class="col-form-label col-sm text-center">마에스트로 아이디</label>
<label class="col-form-label col-sm text-center">계정 타입</label>
<label class="col-form-label col-sm text-center">등록 날짜</label>
<label class="col-form-label col-sm-1 text-center"></label>
<label class="col-form-label col-sm-1 text-center"></label>
</div>
@@ -29,7 +29,7 @@ function get_maestro_list() {
global $db_conn;
$query = "
SELECT MaestroID, Name, AccountType
SELECT MaestroID, Name, AccountType, AcceptClausesDateTime
FROM maestro
WHERE ActivateStatus=0
ORDER BY MaestroID DESC
@@ -38,13 +38,14 @@ function get_maestro_list() {
// $stmt->bind_param("iii", $maestroID, $startNo, $endNo);
// $stmt->bind_param("ii", $maestroName, $startNo);
$stmt->execute();
$stmt->bind_result($maestroID, $name, $accountType);
$stmt->bind_result($maestroID, $name, $accountType, $acceptClausesDateTime);
$maestroList = array();
while($stmt->fetch()) {
$maestro["maestroID"] = $maestroID;
$maestro["maestroName"] = $name;
$maestro["accountType"] = $accountType;
$maestro["acceptClausesDateTime"] = $acceptClausesDateTime;
array_push($maestroList, $maestro);
}
@@ -55,7 +56,7 @@ function get_maestro_list_by_name($maestroName) {
global $db_conn;
$query = "
SELECT MaestroID, Name, AccountType
SELECT MaestroID, Name, AccountType, AcceptClausesDateTime
FROM maestro
WHERE Name LIKE CONCAT('%', ?, '%') AND ActivateStatus=0
ORDER BY MaestroID DESC
@@ -64,13 +65,14 @@ function get_maestro_list_by_name($maestroName) {
// $stmt->bind_param("iii", $maestroID, $startNo, $endNo);
$stmt->bind_param("s", $maestroName);
$stmt->execute();
$stmt->bind_result($maestroID, $name, $accountType);
$stmt->bind_result($maestroID, $name, $accountType, $acceptClausesDateTime);
$maestroList = array();
while($stmt->fetch()) {
$maestro["maestroID"] = $maestroID;
$maestro["maestroName"] = $name;
$maestro["accountType"] = $accountType;
$maestro["acceptClausesDateTime"] = $acceptClausesDateTime;
array_push($maestroList, $maestro);
}