96 lines
4.2 KiB
PHP
Executable File
96 lines
4.2 KiB
PHP
Executable File
<div class="content-wrapper">
|
|
<section class="content" id="loadingcontent">
|
|
<div>
|
|
<CENTER><h3>Siddharth Industries -Maintenance/Breakdown 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/addMaint">Add New</a>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<form role="form" id="" action="<?php echo base_url()?>" method="post" enctype="multipart/form-data">
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-xs-12 col-md-12">
|
|
|
|
|
|
<table id="mnttable" class="table table-hover table-bordered" style="background-color:#fff;font-size:12px;" >
|
|
<thead style="background-color:#ddf">
|
|
<tr>
|
|
<th colspan="4"><center>Maintenance Details</center></th>
|
|
<th colspan="3"><center>Time Taken for Maintenance</center></th>
|
|
<th colspan="3"></th>
|
|
</tr>
|
|
<tr>
|
|
<th >Nature of maintenance</th>
|
|
<!-- <th >Date</th>
|
|
<th >Time</th> -->
|
|
<th > Location </th>
|
|
<th > Description </th><th> Reason </th>
|
|
<th >From</th>
|
|
<th >To</th>
|
|
<th >Total Hrs</th>
|
|
<th >Work Done By</th>
|
|
<th >Approved By</th>
|
|
<th >Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
if(!empty($MaintListing))
|
|
{
|
|
foreach($MaintListing as $ml)
|
|
{
|
|
//, Type, , , , , , ,
|
|
?>
|
|
|
|
<td><?php if($ml->Type == 0){ echo "MAINTENANCES"; }else{echo "BREAKDOWN";} ?></td>
|
|
<!-- <td><?php echo $ml->Maint_Date ?></td>
|
|
<td><?php echo $ml->Maint_Time ?></td> -->
|
|
<td><?php echo $ml->Maint_Location ?></td>
|
|
<td><?php echo $ml->Maint_Description ?></td>
|
|
<td><?php echo $ml->Maint_Reason ?></td>
|
|
<td><?php echo $ml->Maint_Time_from ?></td>
|
|
<td><?php echo $ml->Maint_Time_to ?></td>
|
|
<td><?php echo $ml->Maint_Total_hrs ?></td>
|
|
<td><?php echo $ml->Worker_Name ?></td>
|
|
<td><?php echo $ml->Approver_Name ?></td>
|
|
<td><u><a href="<?php echo base_url().'batchcard/editMaint/'.urlencode(base64_encode($ml->Maint_ID)) ?>" data-toggle="tooltip" title="Click here to Edit details"><i class="fa fa-edit" style="font-size:20px;"></i></a></u></td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
}
|
|
?>
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</form>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(function () {
|
|
|
|
$('#mnttable').DataTable({
|
|
"paging": true,
|
|
"lengthChange": true,
|
|
"searching": true,
|
|
"ordering": true,
|
|
"info": true,
|
|
"autoWidth": true
|
|
|
|
});
|
|
});
|
|
|
|
</script>
|