|
1 | 1 | <?php |
2 | 2 | include_once 'functions/menu/offcanva-menu.php'; |
3 | 3 | include_once 'functions/authentication.php'; |
| 4 | +include_once 'functions/tables/datatables.php'; |
4 | 5 | ?> |
5 | 6 | <!DOCTYPE html> |
6 | 7 | <html data-bs-theme="light" lang="en"> |
|
72 | 73 | </tr> |
73 | 74 | </thead> |
74 | 75 | <tbody> |
75 | | - <tr> |
76 | | - <td><img class="rounded-circle me-2" width="30" height="30" src="assets/img/logo.png"> <username></td> |
77 | | - <td><password></td> |
78 | | - <td><phone></td> |
79 | | - <td><address></td> |
80 | | - <td><created_at></td> |
81 | | - <td class="text-center"><a class="mx-1" href="#"><i class="fas fa-eye fs-4"></i></a><a class="mx-1" href="#" data-bs-target="#update" data-bs-toggle="modal"><i class="fas fa-user-edit fs-4 text-warning"></i></a><a class="mx-1" href="#" data-bs-target="#remove" data-bs-toggle="modal"><i class="fas fa-trash-alt fs-4 text-danger"></i></a></td> |
82 | | - </tr> |
| 76 | + <?php staff_list(); ?> |
83 | 77 | </tbody> |
84 | 78 | <tfoot> |
85 | 79 | <tr></tr> |
|
105 | 99 | <h4 class="modal-title">Add User</h4><button class="btn-close" type="button" aria-label="Close" data-bs-dismiss="modal"></button> |
106 | 100 | </div> |
107 | 101 | <div class="modal-body"> |
108 | | - <form class="needs-validation" method="post" novalidate> |
| 102 | + <form class="needs-validation" action="functions/staff-create.php" method="post" novalidate> |
109 | 103 | <div class="mb-1"><label class="form-label">Username</label><input class="form-control" type="text" name="username" required=""> |
110 | 104 | <div class="invalid-feedback"> |
111 | 105 | Please enter your username. |
|
140 | 134 | <h4 class="modal-title">Update User</h4><button class="btn-close" type="button" aria-label="Close" data-bs-dismiss="modal"></button> |
141 | 135 | </div> |
142 | 136 | <div class="modal-body"> |
143 | | - <form class="needs-validation" method="post" novalidate> |
| 137 | + <form class="needs-validation" action="functions/staff-update.php" method="post" novalidate> |
| 138 | + <input type="hidden" name="id"> |
144 | 139 | <div class="mb-1"><label class="form-label">Username</label><input class="form-control" type="text" name="username" required=""> |
145 | 140 | <div class="invalid-feedback"> |
146 | 141 | Please enter your username. |
|
177 | 172 | <div class="modal-body"> |
178 | 173 | <p>Are you sure you want to remove this User?</p> |
179 | 174 | </div> |
180 | | - <div class="modal-footer"><button class="btn btn-light" type="button" data-bs-dismiss="modal">Close</button><button class="btn btn-danger" type="button">Remove</button></div> |
| 175 | + <form action="functions/staff-remove.php" method="post"> |
| 176 | + <input type="hidden" name="id"> |
| 177 | + <div class="modal-footer"><button class="btn btn-light" type="button" data-bs-dismiss="modal">Close</button><button class="btn btn-danger" type="submit">Remove</button></div> |
| 178 | + </form> |
181 | 179 | </div> |
182 | 180 | </div> |
183 | 181 | </div> |
|
194 | 192 | <script src="assets/js/buttons.html5.min.js"></script> |
195 | 193 | <script src="assets/js/sweetalert2.all.min.js"></script> |
196 | 194 | <script src="assets/js/main.js"></script> |
197 | | - <script src="assets/js/fullcalendar.js"></script> |
198 | 195 | <script src="assets/js/index.global.min.js"></script> |
199 | 196 | <script src="assets/js/tinymce.min.js"></script> |
200 | 197 | </body> |
|
0 commit comments