siddharth_application/application/views/FinalProductlisting.php
venbatechnologies@gmail.com 69efd99d28 final product
2018-05-30 23:39:23 +05:30

89 lines
2.6 KiB
PHP

<style>
.pagination {
margin:0px !important;
}
</style>
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-xs-12">
<div class="box">
<div class="box-header">
<center><h3 class="box-title">Siddharth Industries - Final Product Listing</h3></center>
</div>
<!-- /.box-header -->
<div class="box-body">
<table id="dataTableHistoriek" class="table table-bordered table-hover editableTable" style="font-size:12px;">
<thead>
<tr style="background-color:#ddf">
<th>#</th>
<th>Id</th>
<th>Product Name</th>
<th>Quantity</th>
<th>Price</th>
<th>Date</th>
<th>Action</th>
</tr>
</thead>
<tbody><?php
if(!empty($final_product))
{
$index = 0;
foreach($final_product as $record)
{
$index = $index + 1;
?>
<tr id="<?php echo $index ; ?>">
<td><?php echo $index ; ?></td>
<td><?php echo "FP".$record->FPId ?></td>
<td><?php echo $record->product_description."-".$record->product_name; ?></td> <td><?php echo $record->Quantity; ?></td>
<td><?php echo $record->Price ?></td>
<td><?php echo $Cdt=new DateTime($record->ProductDate);
$CreatedDate= $Cdt->format('d-m-Y');
echo $CreatedDate; ?></td>
<td> <a data-toggle="tooltip" href="<?php echo base_url().'EditFinalProduct?FPId='.$record->FPId; ?>" ><i class="fa fa-pencil" data-toggle="tooltip" title="<?php echo $record->FPId; ?> - Click here to Edit details"></i>&nbsp;&nbsp;&nbsp;</a> </td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
<!-- /.box-body -->
</div>
<!-- /.box -->
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</section>
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<script src="https://cdn.datatables.net/plug-ins/1.10.11/sorting/date-eu.js"></script>
<script>
$(function () {
$('#dataTableHistoriek').DataTable({
"paging" : true,
"ordering" : true,
"scrollCollapse" : true,
"searching" : true,
"columnDefs" : [{"targets":3, "type":"date-eu"}],
"bInfo": true
});
});
</script>