109 lines
3.5 KiB
PHP
109 lines
3.5 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 - 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 style="background-color:#ddf">
|
|
<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><?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> </a></td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
}
|
|
?>
|
|
</tbody>
|
|
|
|
</table>
|
|
</div>
|
|
<!-- /.box-body -->
|
|
</div>
|
|
<!-- /.box -->
|
|
|
|
</div>
|
|
<!-- /.col -->
|
|
</div>
|
|
<!-- /.row -->
|
|
</section>
|
|
<!-- /.content -->
|
|
</div>
|
|
<!-- /.content-wrapper -->
|
|
<script>
|
|
$(function () {
|
|
|
|
$('#example1').DataTable({
|
|
"paging": true,
|
|
"lengthChange": true,
|
|
"searching": true,
|
|
"ordering": true,
|
|
"columnDefs" : [{"targets":1, "type":"date-eu"}],
|
|
|
|
"info": true,
|
|
"autoWidth": false
|
|
});
|
|
});
|
|
</script>
|
|
<script src="https://cdn.datatables.net/plug-ins/1.10.11/sorting/date-eu.js"></script>
|