ria/app/Views/FinalProductlisting.php
2024-09-11 08:54:25 +05:30

102 lines
3.2 KiB
PHP
Executable File

<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"> Finished Product Batch Card History Listing</h3></center>
</div>
<div class="row">
<div class="col-md-12 text-right" style="margin-bottom:-3%;">
<div class="form-group">
<a class="btn btn-success" onclick="Test()" href="<?php echo base_url(); ?>FinalProduct">Add New FinalProduct</a>
</div>
</div>
</div>
<!-- /.box-header -->
<div class="box-body">
<table id="dataTableHistoriek" class="table table-bordered table-hover editableTable" style="font-size:12px;">
<thead>
<tr >
<!-- <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.'&check='."0"; ?>" ><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 src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
<script>
$(function () {
$.fn.dataTable.moment( 'DD-MM-YYYY' );
$('#dataTableHistoriek').DataTable({
"paging" : true,
"ordering" : true,
"scrollCollapse" : true,
"searching" : true,
// "columnDefs" : [{"targets":3, "type":"date-eu"}],
"bInfo": true,
"aaSorting": [[ 4, "desc" ]],
"info": true,
"autoWidth": true
});
});
</script>