91 lines
3.5 KiB
PHP
Executable File
91 lines
3.5 KiB
PHP
Executable File
<div class="content-wrapper">
|
|
<section class="content" id="loadingcontent">
|
|
<div>
|
|
<CENTER><h3>Siddharth Industries - Machine Master/History Listing</h3></CENTER>
|
|
</div>
|
|
<div class="box">
|
|
<div class="box-header">
|
|
|
|
<div align="right" style="padding-right:10px">
|
|
<a class="btn btn-Primary" style="padding-right:10px" align="right" href="<?php echo base_url(); ?>batchcard/addHist">Add New</a>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-xs-12 col-md-12">
|
|
|
|
|
|
<table id="histtable" class="table table-hover table-bordered" style="background-color:#fff;font-size:12px;" >
|
|
<thead style="background-color:#ddf">
|
|
<tr>
|
|
<th>Machines</th>
|
|
<th>Machines Make</th>
|
|
<th>Machines Capacity</th>
|
|
<th>Category</th>
|
|
<th>Department</th>
|
|
<th>Location</th>
|
|
<th>PONO</th>
|
|
<th>Instalization Date</th>
|
|
<th>Machines Lifetime</th>
|
|
<th>Commencement Date</th>
|
|
<th>Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
// print_r($HistListing);
|
|
if(!empty($HistListing))
|
|
{
|
|
foreach($HistListing as $hl)
|
|
{
|
|
?>
|
|
<tr>
|
|
<td><?php echo $hl->Machine_Code.'-'.$hl->Machine_Name ?></td>
|
|
<td><?php echo $hl->Machines_Make ?></td>
|
|
<td><?php echo $hl->Machines_Capacity ?></td>
|
|
<td><?php echo $hl->Machines_Category ?></td>
|
|
<td><?php echo $hl->Machines_Dept ?></td>
|
|
<td><?php echo $hl->Factory_Loc ?></td>
|
|
<td><?php echo $hl->Machines_PONO ?></td>
|
|
<td><?php echo $hl->Instalization_Date ?></td>
|
|
<td><?php echo $hl->Machines_Lifetime ?></td>
|
|
<td><?php echo $hl->Commencement_Date; ?></td>
|
|
<!-- <td><?php echo $hl->Machine_Code ?></td> -->
|
|
<td><a href="<?php echo base_url().'batchcard/editHist/'.urlencode(base64_encode($hl->Machine_Code)) ?>" data-toggle="tooltip" title="Click here to Edit details"><i class="fa fa-edit" style="font-size:20px;"></i></a></td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
}
|
|
?>
|
|
</tbody>
|
|
</table>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</section>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(function () {
|
|
|
|
$('#histtable').DataTable({
|
|
"paging": true,
|
|
"lengthChange": true,
|
|
"searching": true,
|
|
"ordering": true,
|
|
"columnDefs" : [{"targets":9, "type":"date-eu"}],
|
|
|
|
"info": true,
|
|
"autoWidth": true
|
|
|
|
});
|
|
});
|
|
|
|
</script>
|
|
<script src="https://cdn.datatables.net/plug-ins/1.10.11/sorting/date-eu.js"></script>
|