Clean-up user administration

This commit is contained in:
Eike Foken
2011-08-15 00:58:12 +02:00
parent dfba3049f1
commit 086631fe74
5 changed files with 14 additions and 21 deletions

View File

@@ -0,0 +1,38 @@
<?php $this->load->view('header');?>
<div id="content">
<div class="title">
<h2><?=_('Users');?></h2>
</div>
<div class="box">
<h3><?=_('Available users');?></h3>
<table class="tableList paginated">
<thead>
<tr>
<th scope="col"><?=_('Username');?></th>
<th scope="col"><?=_('Full name');?></th>
<th scope="col"><?=_('Actions');?></th>
</tr>
</thead>
<tbody>
<?php
foreach ($users as $user):
?>
<tr>
<td><?=$user['username'];?></td>
<td><?=$user['firstname'];?> <?=$user['lastname'];?></td>
<td><?=anchor('admin/users/edit/' . $user['id'], _('Edit'));?> | <a href="javascript:deleteConfirm('<?=site_url('admin/users/delete/' . $user['id']);?>');"><?=_('Delete');?></a></td>
</tr>
<?php
endforeach;
?>
</tbody>
</table>
<p><a class="button add" href="<?=site_url('admin/users/create')?>"><?=_('Create new user')?></a>
</div>
</div>
<?php $this->load->view('footer');?>