siddharth_application/application/views/resinbatchcardreportlist.php
2023-05-30 18:45:55 +05:30

117 lines
3.5 KiB
PHP

<?php
//print_r($records);
?>
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
<center>Resin Batch Cards List</center>
</h1>
</section>
<section class="content">
<div class="row">
<div class="col-xs-12">
<div class="box">
<div class="box-header">
<!--<center><h3 class="box-title">-->
<div class="box-tools">
<!-- <form action="<?php echo base_url() ?>assetListing" method="POST" id="searchList">-->
<div class="col-md-3">
<a href=" <?php echo base_url().'addNewResinbatchcard';?> " type="button" class="btn btn-primary">Add New</a>
</div>
</form>
</div><!--</h3></center>-->
</div><!-- /.box-header -->
<div class="box-body">
<br/>
<table id="testspecifications" class="table table-bordered table-hover" style="background-color:#fff;font-size:12px;">
<thead style="background-color:#ddf">
<tr>
<th>Resin Batch Card ID</th>
<th>Customer</th>
<th>Grade</th>
<th>Batch Date</th>
<th>Operated By</th>
<th>Production In Charge</th>
</tr>
</thead>
<tbody id="specAppend">
<?php
if(!empty($records))
{
//print_r($records);
foreach($records as $data)
{
//print_r($data);echo "</br></br>";
?>
<tr> <td><a href="<?php echo base_url()?>resinbatchcard/viewIndReport/<?php echo $data->resinbatch_id ?>"><?php echo $data->resinbatch_id?></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<?php if(!empty($data->document)){?>
<a target="_blank" href="<?php echo base_url()?>uploads/QAD/<?php echo $data->document ?>"><span class="fa fa-file-o"></span></a>
<?php }?>
</td> <td><?php echo $data->client_name?></td> <td><?php echo $data->product_name;?></td><td style="text-align:right;"><?php echo date_format(date_create($data->batchdate),'d-m-Y');?></td>
<td><?php echo $data->FirstName;?></td>
<td><?php echo $data->approvedby;?></td>
</tr>
<?php
}
}
?>
</tbody>
</table>
<p>&nbsp;</p>
<div class="row">
</div>
</div><!-- /.box-body -->
<!-- <div class="box-footer clearfix">
</div> -->
</div><!-- /.box -->
</div>
</div>
</section>
</div>
<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/common.js" charset="utf-8"></script>
<script type="text/javascript">
$(function () {
$.fn.dataTable.moment( 'DD-MM-YYYY' );
$('#testspecifications').DataTable({
"paging": true,
"lengthChange": true,
"searching": true,
"ordering": true,
// "columnDefs" : [{"targets":3, "type":"date-eu"}],
"aaSorting": [[ 3, "desc" ]],
"info": true,
"autoWidth": true,
});
});
</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> -->