Files
scattport-web/application/views/admin/users/list.php
2011-08-15 00:58:12 +02:00

38 lines
945 B
PHP

<?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');?>