refractoring of user list
这个提交包含在:
父节点
a572b4c234
当前提交
773cbec28a
共有 1 个文件被更改,包括 59 次插入 和 49 次删除
|
|
@ -20,14 +20,19 @@
|
||||||
<p class="card-text"><?php echo lang('admin_user_line1'); ?></p>
|
<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_line2'); ?></p>
|
||||||
<p class="card-text"><?php echo lang('admin_user_line3'); ?></p>
|
<p class="card-text"><?php echo lang('admin_user_line3'); ?></p>
|
||||||
|
<p><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></p>
|
||||||
|
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col"><?php echo lang('admin_user'); ?></th>
|
<th scope="col"><?php echo lang('admin_user'); ?></th>
|
||||||
|
<th scope="col"><?php echo lang('gen_hamradio_callsign'); ?></th>
|
||||||
<th scope="col"><?php echo lang('admin_email'); ?></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_type'); ?></th>
|
||||||
<th scope="col"><?php echo lang('admin_options'); ?></th>
|
<th style="text-align: center; vertical-align: middle;" scope="col"><?php echo lang('admin_edit'); ?></th>
|
||||||
|
<th style="text-align: center; vertical-align: middle;" scope="col">Password Reset</th>
|
||||||
|
<th style="text-align: center; vertical-align: middle;" scope="col"><?php echo lang('admin_delete'); ?></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
@ -38,26 +43,31 @@
|
||||||
foreach ($results->result() as $row) { ?>
|
foreach ($results->result() as $row) { ?>
|
||||||
<?php echo '<tr class="tr' . ($i & 1) . '">'; ?>
|
<?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><a href="<?php echo site_url('user/edit') . "/" . $row->user_id; ?>"><?php echo $row->user_name; ?></a></td>
|
||||||
|
<td><?php echo $row->user_callsign; ?></td>
|
||||||
<td><?php echo $row->user_email; ?></td>
|
<td><?php echo $row->user_email; ?></td>
|
||||||
<td><?php $l = $this->config->item('auth_level'); echo $l[$row->user_type]; ?></td>
|
<td><?php $l = $this->config->item('auth_level');
|
||||||
<td>
|
echo $l[$row->user_type]; ?></td>
|
||||||
<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>
|
<td style="text-align: center; vertical-align: middle;"><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></a>
|
||||||
|
<td style="text-align: center; vertical-align: middle;">
|
||||||
<?php
|
<?php
|
||||||
if ($_SESSION['user_id'] != $row->user_id) {
|
if ($_SESSION['user_id'] != $row->user_id) {
|
||||||
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>";
|
echo "<a href=" . site_url('user/admin_send_passwort_reset') . "/" . $row->user_id . " class=\"btn btn-primary btn-sm ms-1\"><i class=\"fas fa-key\"></i></a>";
|
||||||
}
|
}
|
||||||
?>
|
?></td>
|
||||||
|
<td style="text-align: center; vertical-align: middle;">
|
||||||
|
<?php
|
||||||
|
if ($_SESSION['user_id'] != $row->user_id) {
|
||||||
|
echo "<a href=" . site_url('user/delete') . "/" . $row->user_id . " class=\"btn btn-danger btn-sm\"><i class=\"fas fa-user-minus\"></i></a>";
|
||||||
|
}
|
||||||
|
?></td>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php $i++; } ?>
|
<?php $i++;
|
||||||
|
} ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<p>
|
|
||||||
<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>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
正在加载…
在新工单中引用