' . "\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 '
' . "\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 )); ?> ' . "\n"; /* End page div */ echo '
' . "\n";