113 lines
3.9 KiB
PHP
Executable File
113 lines
3.9 KiB
PHP
Executable File
<!-- Report_Material_Master_ItemWise.php -->
|
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
|
<style>
|
|
table {
|
|
width: auto;
|
|
}
|
|
</style>
|
|
|
|
<div class="content-page">
|
|
<div class="content">
|
|
<!-- Start Content-->
|
|
<div class="container-fluid">
|
|
<!-- start page title -->
|
|
<div>
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<div class="page-title-box page-title-box-alt">
|
|
<div class="page-title-right">
|
|
<ol class="breadcrumb m-0">
|
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Report</a></li>
|
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Material Master</a></li>
|
|
<li class="breadcrumb-item active">
|
|
<h4 class="page-title"><b> Item Wise </b></h4>
|
|
</li>
|
|
</ol>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<table id="MM_Supplier" class="table table-bordered table-hover mb-0 nowrap w-100"
|
|
style="background-color:#fff; font-size:12px;">
|
|
<thead>
|
|
<tr>
|
|
<th>Material Code</th>
|
|
<th>Material Name</th>
|
|
<th>UOM</th>
|
|
<th>Category</th>
|
|
<th>HSNCODE</th>
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php if (!empty($mmi)) {
|
|
foreach ($mmi as $rel) {
|
|
?>
|
|
<tr>
|
|
|
|
<td><span><?php echo $rel->MaterialCode ?></span></td>
|
|
<td><span><?php echo $rel->MaterialName ?></span></td>
|
|
<td><span><?php echo $rel->UOM ?></span></td>
|
|
<td><span><?php echo $rel->Category ?></span></td>
|
|
<td><span><?php echo $rel->HSNCODE ?></span></td>
|
|
|
|
|
|
|
|
</tr>
|
|
<?php
|
|
}
|
|
}
|
|
?>
|
|
</tbody>
|
|
</table>
|
|
</div> <!-- end card body-->
|
|
</div> <!-- end card -->
|
|
</div><!-- end col-->
|
|
</div>
|
|
</div>
|
|
</div> <!-- container -->
|
|
</div> <!-- content -->
|
|
</div>
|
|
|
|
|
|
<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 src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
|
<script>
|
|
// Bootstrap datepicker
|
|
// Set up your table
|
|
$(document).ready(function() {
|
|
|
|
|
|
// Initialize the DataTable
|
|
var table = $('#MM_Supplier').DataTable({
|
|
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
|
buttons: [
|
|
'excel' // Export buttons
|
|
],
|
|
pageLength: 10, // Default rows per page
|
|
lengthMenu: [
|
|
[10, 20, 30, 50, -1],
|
|
[10, 20, 30, 50, "All"]
|
|
], // Rows per page options
|
|
responsive: true, // Responsive table
|
|
ordering: false,
|
|
language: {
|
|
paginate: {
|
|
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
|
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
|
},
|
|
emptyTable: '<div style="text-align:center;">Data Not Found!</div>'
|
|
}
|
|
});
|
|
});
|
|
</script>
|