Merge branch 'new_theme' of bitbucket.org:venbainformationtechnology/ria into new_theme
This commit is contained in:
commit
367e85de89
@ -139,8 +139,10 @@ class Emppaydate extends BaseController
|
||||
{
|
||||
|
||||
$data['emppay'] = $this->emppaydate_model->getUserInfo($paydataid);
|
||||
|
||||
$data['loan_histoty'] = $this->emppaydate_model->getUserLoanHistoryInfo($data['emppay'][0]->Loan_ID);
|
||||
|
||||
// print_r($data);die;
|
||||
// print_r($data['loan_histoty']);die;
|
||||
|
||||
$this->global['pageTitle'] = 'Edit Employee Pay Monthly Details ';
|
||||
|
||||
|
||||
@ -76,6 +76,13 @@ class Emppaydate_model extends Model
|
||||
|
||||
return $query->getResult();
|
||||
}
|
||||
function getUserLoanHistoryInfo($loan_id)
|
||||
{
|
||||
$sql = 'select * from t_loan_history where Loan_ID = ?;';
|
||||
$query = $this->db->query($sql, array($loan_id));
|
||||
|
||||
return $query->getResult();
|
||||
}
|
||||
|
||||
function getEmpPayData($EmpID)
|
||||
{
|
||||
|
||||
@ -292,6 +292,36 @@ if (!empty($emppay)) {
|
||||
|
||||
|
||||
|
||||
<div class="container">
|
||||
<h3>Loan History</h3>
|
||||
<table class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Due Amount</th>
|
||||
<th>Balance Amount </th>
|
||||
<th>Debit Date</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if (!empty($loan_histoty)): ?>
|
||||
<?php foreach ($loan_histoty as $history): ?>
|
||||
<tr>
|
||||
<td><?php echo number_format($history->Due_Amount, 2); ?></td>
|
||||
<td><?php echo number_format($history->Balance_Amount, 2); ?></td>
|
||||
<td><?php $entryDate = new DateTime($history->Entry_Date); echo $entryDate->format('F j, Y, g:i A'); ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<?php else: ?>
|
||||
<tr>
|
||||
<td colspan="6" class="text-center">No Loan History Found</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12 text-right">
|
||||
@ -341,6 +371,12 @@ if (!empty($emppay)) {
|
||||
</div>
|
||||
</div> <!-- end card -->
|
||||
</div><!-- end col -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<!-- end row -->
|
||||
</div> <!-- container -->
|
||||
|
||||
Loading…
Reference in New Issue
Block a user