106 lines
3.7 KiB
PHP
106 lines
3.7 KiB
PHP
|
||
<div class="content-wrapper">
|
||
|
||
<section class="content">
|
||
<div class="row">
|
||
<div class="col-md-12">
|
||
<?php
|
||
helper('form');
|
||
$error = session()->getFlashdata('error');
|
||
if($error){
|
||
$type = "error";
|
||
echo show_alert($type, $error);
|
||
}
|
||
$success = session()->getFlashdata('success');
|
||
if($success){
|
||
$type = "success";
|
||
echo show_alert($type, $success);
|
||
}
|
||
?>
|
||
|
||
<div class="row">
|
||
<div class="col-md-12">
|
||
<?php // \Config\Services::validation()->listErrors('<div class="alert alert-danger alert-dismissable">', ' <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button></div>');
|
||
?> </div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<div class="box">
|
||
<div class="box-header">
|
||
<center><b><h3 class="box-title">Supplier Listing</h3></b></center>
|
||
</div>
|
||
<div class="container-fluid">
|
||
<div class="row">
|
||
<div class="col-xs-12 text-right">
|
||
<div class="form-group">
|
||
<a class="btn btn-success" href="<?php echo base_url(); ?>addsupplier">Add New Supplier</a>
|
||
<a class="btn btn-success" href="<?php echo base_url(); ?>exportsupplier">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="datatable" style="background-color:#fff;font-size:11px !important;" >
|
||
<thead style="background-color: #ddd;">
|
||
<tr>
|
||
<th>Supplier ID</th>
|
||
<th>Supplier Name</th>
|
||
<th>Address</th>
|
||
<th>Contact Number</th>
|
||
<th>Email Address</th>
|
||
<th>PAN</th>
|
||
<th>GST Number</th>
|
||
<th>Payment Terms</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<?php
|
||
if(!empty($userRecords))
|
||
{
|
||
foreach($userRecords as $record)
|
||
{
|
||
?>
|
||
<tr>
|
||
<td><u><a class="a-tag-link" href="<?= base_url() ?>viewsupplier?SID=<?= $record->SupplierID ?>&Payment=<?= $record->PaymentTerms ?>" data-toggle="tooltip" title="<?= $record->SupplierID ?> - Click here to view Supplier details"><?= $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->PAN ?></td>
|
||
<td><?php echo $record->GSTNO ?></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(); ?>public/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
|
||
|
||
});
|
||
});
|
||
|
||
</script>
|