aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Views/Desktop
diff options
context:
space:
mode:
authorIan Gilfillan <ian@greenman.co.za>2016-07-31 13:52:46 +0000
committerIan Gilfillan <ian@greenman.co.za>2016-07-31 13:52:46 +0000
commit78d649395a72e8ac1e07d8ae751890a674067ca9 (patch)
tree751849838f4f950e965229dc74de118f91f38af8 /h-source/Application/Views/Desktop
parentae9775b52ffadec19f6ebb5a9fc8d858953180da (diff)
Total and translate statistics
Diffstat (limited to 'h-source/Application/Views/Desktop')
-rw-r--r--h-source/Application/Views/Desktop/right.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/h-source/Application/Views/Desktop/right.php b/h-source/Application/Views/Desktop/right.php
index 352386a..0e6c22a 100644
--- a/h-source/Application/Views/Desktop/right.php
+++ b/h-source/Application/Views/Desktop/right.php
@@ -136,12 +136,16 @@
</div>
<table width="100%">
- <?php foreach ($stat as $type => $number) { ?>
+ <?php $total_number=0;foreach ($stat as $type => $number) { $total_number+=$number; $type=displayName($type);?>
<tr>
- <td><?php echo $type;?></td>
- <td><?php echo "<b>".$number."</b>";?></td>
+ <td><?php echo gtext($type);?></td>
+ <td align="right"><?php echo "<b>".$number."</b>";?></td>
</tr>
<?php } ?>
+ <tr>
+ <td><?php echo gtext("<b>TOTAL</b>");?></td>
+ <td align="right"><?php echo "<b>".$total_number."</b>";?></td>
+ </tr>
</table>
<div class="statistics_hard_title">