Gitlab@Informatics

Skip to content
Snippets Groups Projects
Commit 736ac319 authored by 64160072's avatar 64160072
Browse files

datatable in approve member

parent 2b35ae9b
Branches
No related tags found
1 merge request!12proof tranfer update
...@@ -10,6 +10,8 @@ ...@@ -10,6 +10,8 @@
<html> <html>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script>
<script src="https://cdn.datatables.net/1.13.4/js/jquery.dataTables.min.js"></script>
<link rel="stylesheet" href="https://cdn.datatables.net/1.13.4/css/jquery.dataTables.min.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous" /> integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous" />
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"
...@@ -49,15 +51,15 @@ ...@@ -49,15 +51,15 @@
<span class="col-3 text-center mt-2 "> <span class="col-3 text-center mt-2 ">
ทั้งหมด ทั้งหมด
</span> </span>
<span class="col-3 text-center mt-2"> <!-- <span class="col-3 text-center mt-2">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;อนุมัติแล้ว &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;อนุมัติแล้ว
</span> </span>
<span class="col-3 text-center mt-2"> <span class="col-3 text-center mt-2">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;รออนุมัติ&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;รออนุมัติ&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span> </span> -->
</div> </div>
<div class="col-mt-3 d-flex flex-row"> <!-- <div class="col-mt-3 d-flex flex-row">
<div class="input-group "> <div class="input-group ">
<div class="form-outline"> <div class="form-outline">
<input type="search" id="form1" class="form-control" placeholder="ค้นหา"> <input type="search" id="form1" class="form-control" placeholder="ค้นหา">
...@@ -66,7 +68,7 @@ ...@@ -66,7 +68,7 @@
<i class='bx bx-search-alt-2'></i> <i class='bx bx-search-alt-2'></i>
</button> </button>
</div> </div>
</div> </div> -->
</div> </div>
<div class="row bg-white mt-3"> <div class="row bg-white mt-3">
...@@ -75,8 +77,7 @@ ...@@ -75,8 +77,7 @@
<table id="example" class="table" style="width:100%"> <table id="example" class="table" style="width:100%">
<thead> <thead>
<tr> <tr>
<th class="ps-5">วันที่สมัคร <th class="ps-5">วันที่สมัคร</th>
</th>
<th>ชื่อ-นามสกุล</th> <th>ชื่อ-นามสกุล</th>
<th>ประเภท</th> <th>ประเภท</th>
...@@ -107,12 +108,12 @@ ...@@ -107,12 +108,12 @@
<?php <?php
$status = 0; $status = 0;
if ($status == 0) { // if ($status == 0) {
$status = 0; // $status = 0;
echo "Member has been approved!"; // echo "Member has been approved!";
} else if ($status = 1) { // } else if ($status = 1) {
echo "Member has already been approved."; // echo "Member has already been approved.";
} // }
?> ?>
...@@ -146,13 +147,10 @@ ...@@ -146,13 +147,10 @@
@endif @endif
</tr> </tr>
@endforeach @endforeach
<tr>
</tr>
</tbody> </tbody>
</table> </table>
<div class="d-grid gap-2 d-md-flex justify-content-md-end m-3"> <!-- <div class="d-grid gap-2 d-md-flex justify-content-md-end m-3">
<button class="btn btn-light" type="button">ก่อนหน้า</button> <button class="btn btn-light" type="button">ก่อนหน้า</button>
<button class="btn btn-primary" type="button">1</button> <button class="btn btn-primary" type="button">1</button>
<button class="btn btn-light" type="button">2</button> <button class="btn btn-light" type="button">2</button>
...@@ -160,7 +158,7 @@ ...@@ -160,7 +158,7 @@
<button class="btn btn-light" type="button">4</button> <button class="btn btn-light" type="button">4</button>
<button class="btn btn-light" type="button">5</button> <button class="btn btn-light" type="button">5</button>
<button class="btn btn-light" type="button">ถัดไป</button> <button class="btn btn-light" type="button">ถัดไป</button>
</div> </div> -->
</div> </div>
</div> </div>
</div> </div>
...@@ -257,6 +255,10 @@ ...@@ -257,6 +255,10 @@
</body> </body>
<script> <script>
$(document).ready(function () {
$('table').DataTable();
});
let selected_mem_id; let selected_mem_id;
function getMemberDetail(mem_id) { function getMemberDetail(mem_id) {
clear_modal(); clear_modal();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment