pay
This commit is contained in:
parent
7e325395ef
commit
38aa457d90
@ -1,7 +1,19 @@
|
|||||||
<?php
|
<?php
|
||||||
$sample = array_merge($month,$fresh);
|
$sample = array_merge($month,$fresh);
|
||||||
|
$show_hide_column_value = true;
|
||||||
|
|
||||||
//print_r("month"+$month);
|
foreach($sample as $s)
|
||||||
|
{
|
||||||
|
if(!empty($s->Key))
|
||||||
|
{
|
||||||
|
$show_hide_column_value = false;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$show_hide_column_value = true;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
$ex = explode('-',$dropdownvalue);
|
$ex = explode('-',$dropdownvalue);
|
||||||
|
|
||||||
@ -233,22 +245,7 @@ $('html').bind('keypress', function(e)
|
|||||||
<?php if(!empty($record->Loan_Recovered))
|
<?php if(!empty($record->Loan_Recovered))
|
||||||
{if(is_numeric($record->Loan_Recovered)){echo number_format($record->Loan_Recovered,2,'.','');}else {echo $record->Loan_Recovered;}}else{echo number_format(0.00,2,'.','');} ?>
|
{if(is_numeric($record->Loan_Recovered)){echo number_format($record->Loan_Recovered,2,'.','');}else {echo $record->Loan_Recovered;}}else{echo number_format(0.00,2,'.','');} ?>
|
||||||
|
|
||||||
<!--
|
|
||||||
<?php
|
|
||||||
if($record->Loan_Recovered !=0){
|
|
||||||
echo $record->Loan_Recovered;
|
|
||||||
}
|
|
||||||
else if($record->Loan_Recovered == 'NA')
|
|
||||||
{
|
|
||||||
echo $record->Loan_Recovered;
|
|
||||||
}
|
|
||||||
else { echo $record->Loan_Recovered;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
?> -->
|
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
@ -276,6 +273,9 @@ $('html').bind('keypress', function(e)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- <input type="hidden" id = "eid" value="<?php echo $record->EmpID?>">
|
<!-- <input type="hidden" id = "eid" value="<?php echo $record->EmpID?>">
|
||||||
<input type="hidden" id = "inv" value="<?php echo $record->Incentives?>">
|
<input type="hidden" id = "inv" value="<?php echo $record->Incentives?>">
|
||||||
<input type="hidden" id = "pdi" value="<?php echo $record->Pay_Data_ID?>"> -->
|
<input type="hidden" id = "pdi" value="<?php echo $record->Pay_Data_ID?>"> -->
|
||||||
@ -340,6 +340,17 @@ $('html').bind('keypress', function(e)
|
|||||||
|
|
||||||
}); */
|
}); */
|
||||||
|
|
||||||
|
var key = <?php echo $show_hide_column_value; ?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
show_hide_column(11,key);
|
||||||
var t = $('#monthlylistings').DataTable( {
|
var t = $('#monthlylistings').DataTable( {
|
||||||
"columnDefs": [ {
|
"columnDefs": [ {
|
||||||
"searchable": false,
|
"searchable": false,
|
||||||
@ -668,5 +679,15 @@ var manualLoan =parseFloat(loanRecd);
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function show_hide_column(col_no, do_show) {
|
||||||
|
var rows = document.getElementById('monthlylistings').rows;
|
||||||
|
|
||||||
|
for (var row = 0; row < rows.length; row++) {
|
||||||
|
var cols = rows[row].cells;
|
||||||
|
if (col_no >= 0 && col_no < cols.length) {
|
||||||
|
cols[col_no].style.display = do_show ? '' : 'none';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
Loading…
Reference in New Issue
Block a user