2019-01-09 15:18:46 +00:00
|
|
|
<div class="container">
|
2011-08-18 00:16:27 +00:00
|
|
|
|
2019-01-09 15:18:46 +00:00
|
|
|
<br>
|
2011-08-18 00:16:27 +00:00
|
|
|
|
2020-10-20 14:51:55 +00:00
|
|
|
<h2><?php echo $page_title; ?></h2>
|
|
|
|
|
2023-02-24 16:28:36 +00:00
|
|
|
<?php if($this->session->flashdata('notice')) { ?>
|
|
|
|
<!-- Display Message -->
|
|
|
|
<div class="alert alert-info" role="alert">
|
|
|
|
<?php echo $this->session->flashdata('notice'); ?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php } ?>
|
|
|
|
|
2019-01-09 15:18:46 +00:00
|
|
|
<div class="card">
|
|
|
|
<div class="card-header">
|
2023-05-17 14:01:55 +00:00
|
|
|
<?php echo lang('admin_user_list'); ?>
|
2019-01-09 15:18:46 +00:00
|
|
|
</div>
|
|
|
|
<div class="card-body">
|
2023-05-17 14:01:55 +00:00
|
|
|
<p class="card-text"><?php echo lang('admin_user_line1'); ?></p>
|
|
|
|
<p class="card-text"><?php echo lang('admin_user_line2'); ?></p>
|
|
|
|
<p class="card-text"><?php echo lang('admin_user_line3'); ?></p>
|
2019-01-09 15:18:46 +00:00
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2023-05-17 14:01:55 +00:00
|
|
|
<th scope="col"><?php echo lang('admin_user'); ?></th>
|
|
|
|
<th scope="col"><?php echo lang('admin_email'); ?></th>
|
|
|
|
<th scope="col"><?php echo lang('admin_type'); ?></th>
|
|
|
|
<th scope="col"><?php echo lang('admin_options'); ?></th>
|
2019-01-09 15:18:46 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
$i = 0;
|
|
|
|
foreach ($results->result() as $row) { ?>
|
|
|
|
<?php echo '<tr class="tr'.($i & 1).'">'; ?>
|
|
|
|
<td><a href="<?php echo site_url('user/edit')."/".$row->user_id; ?>"><?php echo $row->user_name; ?></a></td>
|
|
|
|
<td><?php echo $row->user_email; ?></td>
|
|
|
|
<td><?php $l = $this->config->item('auth_level'); echo $l[$row->user_type]; ?></td>
|
2021-08-12 11:13:03 +00:00
|
|
|
<td>
|
2023-05-17 14:01:55 +00:00
|
|
|
<a href="<?php echo site_url('user/edit')."/".$row->user_id; ?>" class="btn btn-outline-primary btn-sm"><i class="fas fa-user-edit"></i> <?php echo lang('admin_edit'); ?></a>
|
2021-08-12 11:13:03 +00:00
|
|
|
<?php
|
|
|
|
if ($_SESSION['user_id'] != $row->user_id) {
|
2023-05-17 14:01:55 +00:00
|
|
|
echo "<a href=" . site_url('user/delete'). "/" . $row->user_id . " class=\"btn btn-danger btn-sm\"><i class=\"fas fa-user-minus\"></i> ".lang('admin_delete')."</a>";
|
2021-08-12 11:13:03 +00:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
</td>
|
2019-01-09 15:18:46 +00:00
|
|
|
</tr>
|
|
|
|
<?php $i++; } ?>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2011-11-06 23:09:51 +00:00
|
|
|
</div>
|
2019-01-09 15:18:46 +00:00
|
|
|
<p>
|
2023-05-17 14:01:55 +00:00
|
|
|
<a class="btn btn-primary" href="<?php echo site_url('user/add'); ?>"><i class="fas fa-user-plus"></i> <?php echo lang('admin_create_user'); ?></a>
|
2019-01-09 15:18:46 +00:00
|
|
|
</p>
|
|
|
|
</div>
|
2011-08-18 00:16:27 +00:00
|
|
|
</div>
|
2019-01-09 15:18:46 +00:00
|
|
|
|
|
|
|
|
2021-08-12 11:13:03 +00:00
|
|
|
</div>
|