93 lines
3.3 KiB
PHP
Executable File
93 lines
3.3 KiB
PHP
Executable File
|
|
<div class="content-wrapper">
|
|
|
|
<section class="content">
|
|
<div class="box">
|
|
<div class="box-header">
|
|
<CENTER><h3 class="box-title">Siddharth Industries - Cost Details</h3></CENTER>
|
|
</div>
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-xs-12 text-right">
|
|
<div class="form-group">
|
|
<a class="btn btn-primary" href="<?php echo base_url(); ?>CostCenter/addCostCenter">Add New Cost List</a>
|
|
<a class="btn btn-primary" href="<?php echo base_url(); ?>CostCenter/export_cost">Export Cost Details <i class="fa fa-download"aira-hidden="true"></i></a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
<table id="datatable" class="table table-bordered table-hover" style="background-color:#fff;font-size:12px;" >
|
|
<thead style="background-color:#ddf">
|
|
<tr>
|
|
<th>Cost Center Code</th>
|
|
<th>Cost Center Name</th>
|
|
<th>Created By</th>
|
|
<th>Create Date</th>
|
|
<th>Active</th>
|
|
<th>Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
if(!empty($userRecords))
|
|
{
|
|
foreach($userRecords as $record)
|
|
{
|
|
?>
|
|
<tr>
|
|
<td><?php echo $record->code ?></td>
|
|
<td><?php echo $record->CostCenterName ?></td>
|
|
<!-- <td><?php echo $record->ApprovedBy ?></td> -->
|
|
<td><?php echo $record->FirstName ?></td>
|
|
<td align="right"><?php
|
|
$date = new DateTime($record->CreatedDate);
|
|
echo $date->format('d-m-Y'); ?></td>
|
|
|
|
<td><?php
|
|
$R='';
|
|
$record->IsActive == 1?$R='ACTIVE':$R='INACTIVE';
|
|
echo $R;
|
|
?></td>
|
|
<td>
|
|
<a href="<?php echo base_url().'CostCenter/editOldcost?CostCode='.$record->code; ?>"><i class="fa fa-pencil"></i> </a>
|
|
<!-- <a href="<?php echo base_url().'CostCenter/viewcost?CostCode='.$record->code; ?>"><i class="fa fa-eye"></i> </a> -->
|
|
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
}
|
|
?>
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/common.js" charset="utf-8"></script>
|
|
<script type="text/javascript">
|
|
|
|
$(function () {
|
|
|
|
$('#datatable').DataTable({
|
|
"paging": true,
|
|
"lengthChange": true,
|
|
"searching": true,
|
|
"ordering": true,
|
|
"columnDefs" : [{"targets":3, "type":"date-eu"}],
|
|
|
|
"info": true,
|
|
"autoWidth": true
|
|
|
|
});
|
|
});
|
|
|
|
</script>
|
|
<script src="https://cdn.datatables.net/plug-ins/1.10.11/sorting/date-eu.js"></script>
|
|
|