110 lines
3.9 KiB
PHP
110 lines
3.9 KiB
PHP
|
|
<div class="content-wrapper">
|
|
|
|
<section class="content">
|
|
<div class="box">
|
|
<div class="box-header">
|
|
<CENTER><h3 class="box-title">Resico Industries - Supplier Details</h3></CENTER>
|
|
</div>
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-xs-12 text-right">
|
|
<div class="form-group">
|
|
<a class="btn btn-Primary" href="<?php echo base_url(); ?>addsupplier">Add New Supplier</a>
|
|
<a class="btn btn-Primary" href="<?php echo base_url(); ?>supplier/export_supplierdetails">Export supplier details <i class="fa fa-download"aira-hidden="true"></i></a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
|
|
<table class="table table-bordered table-hover" id="tab" style="background-color:#fff;font-size:12px !important;" >
|
|
<thead style="background-color:#ddf">
|
|
<tr>
|
|
<th>Supplier ID</th>
|
|
<th>Supplier Name</th>
|
|
<th>Address</th>
|
|
<th>Contact Number</th>
|
|
<th>Email Address</th>
|
|
<th>Excise Registration</th>
|
|
<th>TIN</th>
|
|
<th>PAN</th>
|
|
<th>GST Number</th>
|
|
<th>GST Range</th>
|
|
<th>UA Number</th>
|
|
<th>Payment Terms</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
if(!empty($userRecords))
|
|
{
|
|
foreach($userRecords as $record)
|
|
{
|
|
?>
|
|
<tr>
|
|
<td><u><a href="<?php echo base_url().'supplier/viewsupplier/?SID='.$record->SupplierID.'&Payment='.$record->PaymentTerms ?>" data-toggle="tooltip" title="<?php echo $record->SupplierID; ?> - Click here to view Supplier details"><?php echo $record->SupplierID ?> </a></u></td>
|
|
<td><?php echo $record->SupplierName ?></td>
|
|
<td><?php echo $record->Address ?></td>
|
|
<td><?php echo $record->ContactNumber ?></td>
|
|
<td><?php echo $record->EmailAddress ?></td>
|
|
<td><?php echo $record->Exiseregistration ?></td>
|
|
<td><?php echo $record->TIN ?></td>
|
|
<td><?php echo $record->PAN ?></td>
|
|
<td><?php echo $record->GSTNO ?></td>
|
|
<td><?php echo $record->GSTRange ?></td>
|
|
<td><?php echo $record->UANumber ?></td>
|
|
<td><?php echo $record->PaymentTerms ?></td>
|
|
|
|
</tr>
|
|
<?php
|
|
}
|
|
}
|
|
?>
|
|
</tbody>
|
|
</table>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/common.js" charset="utf-8"></script>
|
|
<script type="text/javascript">
|
|
|
|
// $(function () {
|
|
|
|
// $('#datatable').DataTable({
|
|
// "paging": true,
|
|
// "lengthChange": true,
|
|
// "searching": true,
|
|
// "ordering": true,
|
|
// "info": true,
|
|
// "autoWidth": true
|
|
|
|
// });
|
|
// });
|
|
$(document).ready(function() {
|
|
table = $('#tab').DataTable( {
|
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
|
"<'table-responsive'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
|
buttons: [
|
|
{
|
|
extend: 'excelHtml5',
|
|
footer: 'true',
|
|
messageTop: $('h3').text(),
|
|
title: 'supplier listing',
|
|
exportOptions: {
|
|
columns: ':visible'
|
|
}
|
|
},
|
|
'colvis'
|
|
]
|
|
} );
|
|
} );
|
|
|
|
|
|
</script>
|