?
Current Path : /home1/savoy/public_html/savoyeducation.com/application/views/back-end/pages/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/public_html/savoyeducation.com/application/views/back-end/pages/userlist.php |
<div id="page-wrapper"> <div class="main-page"> <div class="tables"> <h3 class="title1">Users List</h3> <div class="panel-body widget-shadow"> <table class="table table-bordered"> <thead> <tr> <th>#</th> <th>First Name</th> <th>Last Name</th> <th>User Type</th> <th>Permission</th> <th>Action </th> </tr> </thead> <tbody> <?php $i=1; foreach($userlisting as $key=>$list){ ?> <tr> <th scope="row"><?php echo $i; ?></th> <td><?php echo $list['first_name']; ?></td> <td><?php echo $list['last_name'];?></td> <td><?php echo $list['user_type'];?></td> <td><?php if ($list['user_type']=='admin') {?> <a href="<?= base_url(); ?>admin/Admin_controller/user_permission/<?php echo $list['id']; ?>/user" class="btn btn-sm btn-success"><span>Make as User</span></a><?php } else {?><a href="<?= base_url(); ?>admin/Admin_controller/user_permission/<?php echo $list['id']; ?>/admin" class="btn btn-sm btn-success"><span>Make as Admin</span></a><?php }?> </td> <td><a href="<?= base_url();?>admin/Admin_controller/delete_users/<?php echo $list['id'];?>" onclick="return confirm('Are you sure you want to delete?')" class="btn btn-danger" ><span>Delete</span></a></td> </tr> <?php $i++; } ?> </tbody> </table> </div> </div> </div> </div> <script> function confirmDelete(delUrl) { if (confirm("Are you sure you want to delete")) { document.location = delUrl; } } </script>