siddharth_application/application/views/viewmaterialinspectionreport.php
saravanakumar_kandasami aa6dffb404 UI issues of listing
2017-07-28 18:05:16 +05:30

99 lines
3.1 KiB
PHP
Executable File

<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>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 align="right"><?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->UpdatedbyName ?></td>
<td>
<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;
<a href="<?php echo base_url().'MRIRcontroller/MrirDetailsPrintPdf?MRIRNO='.$d->MRIRNO;?>"<i class="fa fa-print" data-toggle="tooltip" 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>
<!-- script for table , It works under the datatable plugin-->
$(function () {
$('#MRIRtable').DataTable({
"paging": true,
"lengthChange": true,
"searching": true,
"ordering": true,
"info": true,
"autoWidth": true
});
});
</script>