ria/application/views/viewmaterialinspectionreport.php
venbatechnologies@gmail.com d8a1189cf1 company name changed
2018-04-04 19:49:32 +05:30

152 lines
5.6 KiB
PHP

<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
<style>
.dataTables_filter input {padding: 4px;}
.dataTables_filter {
width: 50%;
float: right;
text-align: right;
}
.dataTables_paginate {
width: 50%;
float: right;
text-align: right;
}
div.dt-buttons {
font-size: 15px;
position: relative;
float: right;
}
.btn-success {
background-color: #5d0411;
border-color: #5d0411;
}
.modal
{
padding-right:25% ! important;
}
.num{
text-align:right;
}
</style>
<div class="content-wrapper">
<section class="content"><br/>
<div class="box">
<div class=" container-fluid">
<div class="box-header">
<!-- <CENTER><h3 class="box-title">Resico Industries - View Material Receipt And Inspection Report</h3></CENTER> -->
<CENTER><h3 class="box-title"><?php echo $pageTitle; ?></h3></CENTER>
</div>
<div class="row">
<div class="col-md-12 table-responsive !important">
<!-- <div style="overflow-x:auto;"> -->
<table id="MRIRtable" class="table table-bordered table-hover" style="background-color:#fff;font-size:12px;">
<thead style="background-color:#ddf">
<tr>
<th>S.No</th>
<th>MRIR No</th>
<th>IGR No</th>
<th>PO No</th>
<th>PO Department</th>
<th>PO Raised By</th>
<th>Invoice No</th>
<th>Invoice Date</th>
<th>Actual Quantity</th>
<th>Vehicle No</th>
<th>Courier No</th>
<th>MRIR Status</th>
<th>Updated By</th>
<th>Action</th>
</tr>
</thead>
<tbody >
<?php
if(!empty($viewmrirdatas))
{
$Index=0;
foreach($viewmrirdatas as $d)
{
$Index= $Index+1;
?>
<tr id="<?php echo $Index ?>">
<td style="text-align: center;"><?php echo $Index ?></td>
<td><?php echo $d->MRIRNO ?></td>
<td><?php echo $d->IGRNO ?></td>
<td><?php echo $d->PONO ?></td>
<td><?php echo $d->POType ?></td>
<td><?php echo $d->CreatedByName ?></td>
<td align="right"><?php echo $d->DeliveryChellanOrInvoiceNo ?></td>
<td align="right"><?php
$date = new DateTime($d->DeliveryChellanDate);
echo $date->format('d-m-Y'); ?></td>
<td><?php echo $d->ActualQuantityReceived ?></td>
<td><?php echo $d->VehicleNo ?></td>
<td><?php echo $d->CourierNo ?></td>
<td><?php echo $d->StatusName ?></td>
<td><?php echo $d->UpdatedbyName ?></td>
<td>
<?php if($d->MRIRStatus== MRIR_CREATED){ ?>
<a href="<?php echo base_url().'EditMRIR?MRIRNO='.$d->MRIRNO; ?>"><i class="fa fa-pencil"></i></a>&nbsp;&nbsp;&nbsp;
<?php }
else{ ?>
<a href="<?php echo base_url().'EditMRIR?MRIRNO='.$d->MRIRNO; ?>"><i class="fa fa-eye"></i></a>&nbsp;&nbsp;&nbsp;
<?php } ?>
<a href="<?php echo base_url().'MRIRcontroller/MrirDetailsPrintPdf?MRIRNO='.$d->MRIRNO;?>"<i class="fa fa-print" data-toggle="tooltip" target="_blank" title=" Click here to Print the MRIR details"></i>&nbsp;&nbsp;&nbsp;</a>
</td>
</tr>
<?php
}} ?>
</tbody>
</table>
</div>
</div>
</div></div>
</div>
</section>
</div>
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
<script>
$(document).ready(function() {
// buttons: [ {name: 'copy', extend: 'copy', exportOptions: {columns: ':gt(0)', orthogonal: 'export'}} ]
table = $('#MRIRtable').DataTable( {
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
"<'row'<'col-md-3'><'col-md-6'>>" +
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
"lengthMenu": [ 25, 50, 75, 100 ],
buttons: [
{
extend: 'excelHtml5',
footer: 'true',
//messageTop: $('h3').text(),
title: $('h3').text(),
exportOptions: {
columns: ':lt(13)', orthogonal: 'export'
}
},
]
} );
} );
</script>