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

115 lines
3.8 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"> Enquiry List</h3></center>
</div>
<!-- /.box-header -->
<div class="box-body">
<table id="example1" class="table table-bordered table-hover editableTable" style="font-size:12px;">
<thead>
<tr >
<!-- <th>#</th> -->
<th>Date</th>
<th>Customer Name</th>
<th>Contact Person</th>
<th>Requirement</th>
<th>Customer Order No</th>
<th>Requested Qty</th>
<th>Delivered Qty</th>
<th>Balance Qty</th>
<th>Feasibility</th>
<th>Remarks</th>
<th>Action</th>
</tr>
</thead>
<tbody><?php
if(!empty($Customer_Order))
{
$index = 0;
foreach($Customer_Order as $record)
{
$index = $index + 1;
$supplied= $record->Supplied_Qty;
if($supplied =='')
{
$Suppliedquantity=0;
// echo $Suppliedquantity;
}
else
{
$Suppliedquantity=$supplied;
//echo $Suppliedquantity;
}
?>
<tr id="<?php echo $index ; ?>">
<!-- <td align="left"><?php echo $index ; ?></td> -->
<!-- <td><?php echo $record->Created_Date;?></td> -->
<td align="right"><?php $Pdt = new DateTime($record->Created_Date);
$Created_Date = $Pdt->format('d-m-Y');
echo $Created_Date
?></td>
<td><?php echo $record->client_name;?></td>
<td><?php echo $record->Contact_Person;?></td>
<td><?php echo $record->Requirement;?></td>
<td><?php echo $record->OrderNo;?></td>
<td><?php echo $record->Requested_Qty;?></td>
<td><?php echo $Suppliedquantity;?></td>
<td><?php echo ($record->Requested_Qty)-($record->Supplied_Qty);?></td>
<td><?php echo $record->Feasible;?></td>
<td><?php echo $record->Remarks;?></td>
<td><a data-toggle="tooltip" href="<?php echo base_url().'Editenquiry?Id='.$record->Id; ?>"><i class="fa fa-pencil" data-toggle="tooltip" title="<?php echo $record->Id; ?> - Click here to Edit Enquiry 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>
$(function () {
$.fn.dataTable.moment( 'DD-MM-YYYY' );
$('#example1').DataTable({
"paging": true,
"lengthChange": true,
"searching": true,
"ordering": true,
// "columnDefs" : [{"targets":1, "type":"date-eu"}],
"aaSorting": [[ 0, "desc" ]],
"info": true,
"autoWidth": false
});
});
</script>
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
<!-- <script src="https://cdn.datatables.net/plug-ins/1.10.11/sorting/date-eu.js"></script> -->