git-svn-id: file:///svn-source/pmgr/branches/v0.3_work@1013 97e9348a-65ac-dc4b-aefc-98561f571b83
70 lines
2.4 KiB
PHP
70 lines
2.4 KiB
PHP
<?php /* -*- mode:PHP -*- */
|
|
|
|
echo '<div class="statement_entry overview">' . "\n";
|
|
|
|
/**********************************************************************
|
|
**********************************************************************
|
|
**********************************************************************
|
|
**********************************************************************
|
|
* Overview Main Section
|
|
*/
|
|
|
|
$rows = array();
|
|
$rows[] = array("$months Month Total", FormatHelper::currency($overview['amount']) . " / (" . FormatHelper::currency($overview['amount'] / $months) . " per month)");
|
|
|
|
echo $this->element('table',
|
|
array('class' => 'item statement_entry detail',
|
|
'caption' => $reptype,
|
|
'rows' => $rows,
|
|
'column_class' => array('field', 'value')));
|
|
|
|
|
|
/**********************************************************************
|
|
**********************************************************************
|
|
**********************************************************************
|
|
**********************************************************************
|
|
* Supporting Elements Section
|
|
*/
|
|
|
|
echo '<div CLASS="detail supporting">' . "\n";
|
|
|
|
$headers = array('Account', 'Amount');
|
|
$row_class = array();
|
|
$rows = array();
|
|
foreach ($overview['months'] AS $month) {
|
|
$row_class[] = 'subheader';
|
|
$rows[] = array($month['name']);
|
|
|
|
$odd = 1;
|
|
foreach ($month['subs'] AS $sub) {
|
|
$row_class[] = array('subitem', $odd ? 'oddrow' : 'evenrow');
|
|
$rows[] = array($sub['name'], FormatHelper::currency($sub['amount']));
|
|
$odd = !$odd;
|
|
}
|
|
$row_class[] = 'grand';
|
|
$rows[] = array('Total for '.$month['name'], FormatHelper::currency($month['amount']));
|
|
}
|
|
|
|
echo $this->element('table',
|
|
array('class' => 'item statement_entry-overview overview list',
|
|
'caption' => 'Months',
|
|
'headers' => $headers,
|
|
'rows' => $rows,
|
|
'row_class' => $row_class,
|
|
'suppress_alternate_rows' => true
|
|
));
|
|
|
|
?>
|
|
<script type="text/javascript"><!--
|
|
jQuery(document).ready(function(){
|
|
jQuery('table.overview td.subheader').attr('colSpan', 2);
|
|
});
|
|
--></script>
|
|
<?php
|
|
|
|
/* End "detail supporting" div */
|
|
echo '</div>' . "\n";
|
|
|
|
/* End page div */
|
|
echo '</div>' . "\n";
|