70 lines
3.1 KiB
PHP
Executable File
70 lines
3.1 KiB
PHP
Executable File
<?php echo $header; ?>
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-lg-8">
|
|
<h1 class="page-header">
|
|
User Roles<?php echo $this->lang->line('setting_roles_header'); ?>
|
|
</h1>
|
|
</div>
|
|
<div class="col-lg-4">
|
|
<div class="input-group searchContainer">
|
|
<input type="text" class="form-control" id="searchString">
|
|
<span class="input-group-btn">
|
|
<button class="btn btn-default" type="button" id="searchBtn" onClick="doRoleSearch();"><span
|
|
class="fa fa-search"></span></button>
|
|
</span>
|
|
</div><!-- /input-group -->
|
|
</div>
|
|
<div class="col-lg-12">
|
|
<ol class="breadcrumb">
|
|
<li>
|
|
<i class="fa fa-dashboard"></i>
|
|
<a href="<?php echo BASE_URL; ?>/admin"><?php echo $this->lang->line('nav_dash'); ?></a>
|
|
</li>
|
|
<li class="active">
|
|
<i class="fa fa-fw fa-user"></i>
|
|
<a href="<?php echo BASE_URL; ?>/admin/settings/roles">User
|
|
Roles<?php echo $this->lang->line('setting_roles_header'); ?></a>
|
|
</li>
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="searchContainer">
|
|
<a href="<?php echo BASE_URL.'/admin/settings/roles/new'?>" class="btn btn-primary"><span><i
|
|
class="fa fa-edit"></i> New Role</span></a>
|
|
|
|
</div><!-- /input-group -->
|
|
<table class="table table-striped table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th> Role name<?php echo $this->lang->line('role_name'); ?> </th>
|
|
<th> Role Slug<?php echo $this->lang->line('role_slug'); ?> </th>
|
|
<th> Created<?php echo $this->lang->line('role_created_at'); ?> </th>
|
|
<th class="td-actions"> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="roleContainer">
|
|
<?php
|
|
foreach ($roles as $r) {
|
|
echo '<tr>';
|
|
echo '<td>'.$r['name'].'</td>';
|
|
echo '<td>'.$r['slug'].'</td>';
|
|
echo '<td>'.$r['created_at'].'</td>';
|
|
echo '<td class="td-actions"><a href="'.BASE_URL.'/admin/settings/roles/edit/'.$r['roleID']
|
|
. '" class="btn btn-small btn-success"><i class="fa fa-pencil"> '
|
|
. '</i></a> <a data-toggle="modal" data-target="#ajaxModal" class="btn btn-danger btn-small" href="'
|
|
. BASE_URL.'/admin/settings/roles/delete/'.$r['roleID'].'"><i class="fa fa-remove"> </i></a></td>';
|
|
echo '</tr>';
|
|
} ?>
|
|
</tbody>
|
|
</table>
|
|
<?php echo $this->pagination->create_links(); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php echo $footer; ?>
|