siddharth_application/application/views/viewmaterialinspectionreport.php
2021-04-23 12:07:34 +05:30

109 lines
3.7 KiB
PHP

<style>
.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">Siddharth Industries - View Material Receipt And Inspection Report</h3></CENTER>
</div>
<div class="row">
<div class="col-md-12">
<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>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->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; ?>"><button style="font-size:12px" id="generated" name="generated">Edit MRIR <i class="fa fa-pencil"></i></button></a>&nbsp;&nbsp;&nbsp;
<?php }
else{ ?>
<a href="<?php echo base_url().'EditMRIR?MRIRNO='.$d->MRIRNO; ?>"><button style="font-size:12px" id="generated" name="generated">View MRIR <i class="fa fa-eye"></i></button></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/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
<script>
<!-- script for table , It works under the datatable plugin-->
$(function () {
$.fn.dataTable.moment( 'DD-MM-YYYY' );
$('#MRIRtable').DataTable({
"paging": true,
"lengthChange": true,
"searching": true,
"ordering": true,
"aaSorting": [[ 6, "desc" ]],
"info": true,
"autoWidth": true
});
});
</script>