-
Notifications
You must be signed in to change notification settings - Fork 0
/
g_agency_performance.php
36 lines (35 loc) · 1.06 KB
/
g_agency_performance.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
<?php
$year = $_GET['year'];
$agency_id = $_GET['agency_id'];
$row = $system->selected_agency($agency_id);
?>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><?php echo $row['agency_name']; ?> Performance Report</h3>
</div>
<div class="panel-body">
<?php
$row = $system->selected_agency_data($year,$agency_id);
$saving = $row['total_abc'] - $row['total_po'];
?>
<table class="table table-bordered table-condensed">
<tbody>
<tr>
<td>Total ABC</td><td class="right"><?php echo number_format($row['total_abc'],2); ?></td>
</tr>
<tr>
<td>Total PO</td><td class="right"><?php echo number_format($row['total_po'],2); ?></td>
</tr>
<tr>
<td>Actual Savings,(ABC-PO)</td><td class="right"><?php echo number_format($saving,2); ?></td>
</tr>
<tr>
<td>Savings Effeciency, %</td><td class="right"><?php echo number_format(($saving / $row['total_abc']) * 100,2); ?></td>
</tr>
<tr>
<td>On process ABC</td><td class="right"></td>
</tr>
</tbody>
</table>
</div>
</div>