siddharth_application/application/views/Report_Material_Master_SupplierWise.php
2017-08-21 19:19:42 +05:30

137 lines
3.6 KiB
PHP
Executable File

<?php
if(!empty($mms))
{
}
?>
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
<style>
.dataTables_filter {
width: 50%;
float: right;
text-align: right;
}
.dataTables_paginate {
width: 50%;
float: right;
text-align: right;
}
div.dt-buttons {
position: relative;
float: right;
}
</style>
<div class="row" style="min-height: 600px;">
<!-- Left col -->
<div class="col-md-12">
<!-- TABLE: LATEST ORDERS -->
<div class="box box-info">
<div class="box-header with-border">
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Report - Material Master - Supplier Wise</b></p></h3></center>
</div>
<!-- /.box-header -->
<div class="box-body">
<div>
<table class="table table-bordered table-hover" id="cc" style="font-size:12.5px;">
<thead>
<tr>
<th>Material Date</th>
<th>Supplier ID </th>
<th>Supplier Name</th>
<th>Material Code</th>
<th>Material Name</th>
<th>Material Type</th>
<th>UOM</th>
<th>HSNCODE</th>
</tr>
</thead>
<tbody>
<?php if(!empty($mms)){
foreach($mms as $rel)
{
?>
<tr>
<td><span><?php $date = new DateTime($rel->Material_Date);echo $date->format('Y-m-d');?></span></td>
<td><span><?php echo $rel->SupplierID?></span></td>
<td><span><?php echo $rel->SupplierName?></span></td>
<td><span><?php echo $rel->MaterialCode?></span></td>
<td><span><?php echo $rel->MaterialName?></span></td>
<td><span><?php echo $rel->MaterialType?></span></td>
<td><span><?php echo $rel->UOM?></span></td>
<td><span><?php echo $rel->HSNCODE?></span></td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
</div>
</div>
<!-- /.box -->
</div>
<!-- /.col -->
</div>
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
<script>
// Bootstrap datepicker
// Set up your table
$(document).ready(function() {
table = $('#cc').DataTable( {
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
"<'row'<'col-md-6'><'col-md-6'>>" +
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
buttons: [
{
extend: 'collection',
text: 'Export MM-SupplierWise Report',
buttons: [
'excel'
]
}
]
} );
} );
$('#mySelect').on('change',function(){
table
.column(4)
.search(this.value)
.draw();
});
function Reset()
{
$('#mySelect').val('');
}
</script>