73 lines
2.5 KiB
PHP
73 lines
2.5 KiB
PHP
<head>
|
|
<link rel='stylesheet' href='https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.2/font/bootstrap-icons.css'>
|
|
</head>
|
|
<div class="col-md-12 col-sm-12 ">
|
|
<div class="x_panel">
|
|
<div class="x_title">
|
|
<h2>Group List</h2>
|
|
|
|
<ul class="nav navbar-right panel_toolbox">
|
|
<a href="<?php echo base_url();?>Group/Create_Group_Form" class="btn btn-sm btn-primary">Add Group</a>
|
|
<li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
|
|
</li>
|
|
</ul>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
<div class="x_content">
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<div class="card-box table-responsive">
|
|
|
|
<table id="datatable" class="table table-striped table-bordered dataTable no-footer" width="100%">
|
|
<thead>
|
|
<tr class="headings">
|
|
<th class="column-title">Group Name</th>
|
|
<th class="column-title">Modules </th>
|
|
<th class="column-title" >Action </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($tableData as $key => $value) { ?>
|
|
|
|
<tr class="even pointer">
|
|
|
|
<td class=" "> <?php echo $value->group_name; ?> </td>
|
|
|
|
<td class=" ">
|
|
|
|
|
|
<?php
|
|
$modules = array();
|
|
foreach ($Group_module_list as $one => $val) {
|
|
if($value->id == $val->group_id)
|
|
$modules[] = $val->modules;
|
|
} echo implode(" , ", $modules);
|
|
?>
|
|
</td>
|
|
<td style=" text-align: center; font-size: 16px;">
|
|
<a href="<?php echo base_url()?>Group/Edit_Group/<?php echo md5($value->id);?>"><i class="fa fa-pencil"></i></a>
|
|
|
|
<a href="<?php echo base_url()?>Group/delete_group/<?php echo md5($value->id);?>" ><i class="fa fa-trash"></i></a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
<?php } ?>
|
|
</tbody>
|
|
</table>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<br/>
|
|
|
|
<div style="display:none" id="sub-value">
|
|
|
|
</div>
|
|
|
|
|