-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrep_hr_costs.php
74 lines (69 loc) · 2.12 KB
/
rep_hr_costs.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?php
//$flagNoAuth = true;
require ('common/auth.php');
require ('classes/budget.class.php');
require ('classes/reports.class.php');
require ('classes/reference.class.php');
require ('classes/item.class.php');
include ('includes/inc_report_settings.php');
$oBudget = new Budget($budget_scenario);
$arrJS[]='js/rep_pnl.js';
include ('includes/inc-frame_top.php');
echo '<h1>',$arrUsrData["pagTitle$strLocal"],': ',$oBudget->title,'</h1>';
if($_GET['DataAction']=='full'){
$sql = "SELECT * FROM vw_headcount WHERE scenario='{$budget_scenario}' ORDER BY empTitleLocal";
$rs = $oSQL->q($sql);
?>
<table id='headcount' class='log'>
<?php
while ($rw = $oSQL->f($rs)){
?>
<tr>
<td><?php echo $rw['empCode1C'];?></td>
<td><?php echo $rw['empTitleLocal'];?></td>
<td><?php echo $rw['funTitleLocal'];?></td>
<td><?php echo $rw['Location'];?></td>
<td><?php echo $rw['pccTitle'];?></td>
<td><?php echo $rw['empSalary'];?></td>
<td><?php echo $rw['salary'];?></td>
</tr>
<?php
}
?>
</table>
<?php
include ('includes/inc-frame_bottom.php');
die();
}
$sqlWhere = "WHERE `Group_code` IN (95) AND scenario='{$budget_scenario}'";
?>
<script>
$(document).ready(function(){
$('#period_switch').buttonset().children('input').change(function(){
if($(this).val()=='monthly'){
$('.budget-monthly').show();
$('.budget-quarterly').hide();
} else {
$('.budget-monthly').hide();
$('.budget-quarterly').show();
}
});
init_panel($('#report_content'));
});
</script>
<div class="report-radio f-row">
<div id='period_switch'>
<input type='radio' id='period_monthly_<?php echo $_GET['tab'];?>' name='period' value='monthly'/>
<label for='period_monthly_<?php echo $_GET['tab'];?>'>Monthly</label>
<input type='radio' checked id='period_quarterly_<?php echo $_GET['tab'];?>' name='period' value='quarterly'/>
<label for='period_quarterly_<?php echo $_GET['tab'];?>'>Quarterly</label>
</div>
</div>
<div id='report_content'>
<?php
Reports::masterbyProfitEst($sqlWhere);
?>
</div>
<?php
include ('includes/inc-frame_bottom.php');
?>