+
+ <div class="modal-footer">
+ <button id="CloseButton" type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
+ <button type="submit" name="do_add_user" class="btn btn-danger">Add User</button>
+
+ </div>
+ </div>
+ </div>
+ </div>
+</form>
+ <table class="container-xxl table table-sm table-responsive caption-top table-striped">
+ <thead class="table-primary">
+ <form method="post">
+ <th scope="col"><input type="checkbox" label='selectall' onClick="toggle_tkl(this)" /></th>
+ <th scope="col">Username</th>
+ <th scope="col">First Name</th>
+ <th scope="col">Last Name</th>
+ <th scope="col">Created</th>
+ <th scope="col">Bio</th>
+
+ </thead>
+ <tbody>
+ <?php
+ foreach($userlist as $user)
+ {
+
+ echo "<td scope=\"col\"><input type=\"checkbox\" value='" .$user->id . "' name=\"userch[]\"></td>";
+ echo "<td scope=\"col\">".$user->username."</td>";
+ echo "<td scope=\"col\">".$user->first_name."</td>";
+ echo "<td scope=\"col\">".$user->last_name."</td>";
+ echo "<td scope=\"col\">".$user->created."</td>";
+ echo "<td scope=\"col\">".$user->bio."</td>";
+ echo "</tr>";
+ }
+ ?></tbody></table><p><button type="button" class="btn btn-danger" data-toggle="modal" data-target="#myModal2">
+ Delete selected
+ </button></p>
+ <div class="modal fade" id="myModal2" tabindex="-1" role="dialog" aria-labelledby="confirmModalCenterTitle" aria-hidden="true">
+ <div class="modal-dialog modal-dialog-centered" role="document">
+ <div class="modal-content">
+ <div class="modal-header">
+ <h5 class="modal-title" id="myModalLabel">Confirm deletion</h5>
+ <button type="button" class="close" data-dismiss="modal" aria-label="Close">
+ <span aria-hidden="true">×</span>
+ </button>
+ </div>
+ <div class="modal-body">
+ Are you sure you want to do this?<br>
+ This cannot be undone.
+ </div>
+ <div class="modal-footer">
+ <button id="CloseButton" type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
+ <button type="submit" action="post" name="delete_user" class="btn btn-danger">Delete</button>
+
+ </div>
+ </div>
+ </div>
+ </div></form></div></div>
+
+<?php require_once 'footer.php'; ?>