106 lines
2.8 KiB
PHP
106 lines
2.8 KiB
PHP
|
|
<style>
|
|
.pagination {
|
|
margin:0px !important;
|
|
}
|
|
|
|
</style>
|
|
<div class="content-wrapper">
|
|
<!-- Content Header (Page header) -->
|
|
|
|
<!-- Main content -->
|
|
<section class="content">
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
<div class="box">
|
|
<div class="box-header">
|
|
<center><h3 class="box-title">Siddharth Industries - Material History</h3></center>
|
|
</div>
|
|
<!-- /.box-header -->
|
|
<div class="box-body">
|
|
<table class="table table-bordered" id="cc" style="font-size:11px !important;">
|
|
<thead>
|
|
<tr>
|
|
<th style="text-align:center">Stock ID</th>
|
|
<th style="text-align:center">Supplier Name</th>
|
|
<th style="text-align:center">Material Name</th>
|
|
<th style="text-align:center">Transaction Type</th>
|
|
<th style="text-align:center">Ref Type</th>
|
|
<th style="text-align:center">Ref NO</th>
|
|
<th style="text-align:center">Quantity</th>
|
|
<th style="text-align:center">Item Value</th>
|
|
<th style="text-align:center">CreatedON</th>
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php if(!empty($material)){
|
|
|
|
|
|
foreach($material as $rel)
|
|
{
|
|
?>
|
|
<tr>
|
|
|
|
<td style="text-align:center"><span><?php echo $rel->StockId;?></span></td>
|
|
<td><span><?php echo $rel->SupplierName;?></span></td>
|
|
<td><span><?php echo $rel->MaterialName;?></span></td>
|
|
<td><span><?php
|
|
echo $rel->Transaction_type;?></span></td>
|
|
<td><span><?php
|
|
echo $rel->Ref_Type;?></span></td>
|
|
<td><span><?php
|
|
echo $rel->Ref_No;?></span></td>
|
|
<td style="text-align:right"><span><?php
|
|
echo $rel->Quantity;?></span></td>
|
|
<td style="text-align:right"><span><?php
|
|
echo $rel->ItemValue;?></span></td>
|
|
<td style="text-align:right"><span><?php
|
|
echo $rel->CreatedOn;?></span></td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
<?php
|
|
}
|
|
|
|
?>
|
|
</tbody>
|
|
|
|
<?php
|
|
}
|
|
|
|
?>
|
|
</table>
|
|
</div>
|
|
<!-- /.box-body -->
|
|
</div>
|
|
<!-- /.box -->
|
|
|
|
</div>
|
|
<!-- /.col -->
|
|
</div>
|
|
<!-- /.row -->
|
|
</section>
|
|
<!-- /.content -->
|
|
</div>
|
|
<!-- /.content-wrapper -->
|
|
<script src="https://cdn.datatables.net/plug-ins/1.10.11/sorting/date-eu.js"></script>
|
|
|
|
<script>
|
|
|
|
$(function () {
|
|
|
|
$('#cc').DataTable({
|
|
"paging" : true,
|
|
"ordering" : true,
|
|
"scrollCollapse" : true,
|
|
"searching" : true,
|
|
"columnDefs" : [{"targets":3, "type":"date-eu"}],
|
|
"bInfo": true
|
|
});
|
|
});
|
|
</script>
|