' . "\n"; /********************************************************************** ********************************************************************** ********************************************************************** ********************************************************************** * Overview Main Section */ $rows = array(); $rows[] = array('Total Units', $overview['count']); $rows[] = array('Gross Scheduled Rent', FormatHelper::currency($overview['rents'])); echo $this->element('table', array('class' => 'item unit detail', 'caption' => 'Unit Overview', 'rows' => $rows, 'column_class' => array('field', 'value'))); /********************************************************************** * Unit Overview Info Box echo '
' . "\n"; $rows = array(); $rows[] = array('Security Deposit:', FormatHelper::currency($outstandingDeposit)); $rows[] = array('Balance:', FormatHelper::currency($outstandingBalance)); echo $this->element('table', array('class' => 'summary', 'rows' => $rows, 'column_class' => array('field', 'value'), 'suppress_alternate_rows' => true, )); echo '
' . "\n"; */ /********************************************************************** ********************************************************************** ********************************************************************** ********************************************************************** * Supporting Elements Section */ echo '
' . "\n"; /* foreach ($overview['types'] AS $type) { $headers = array('Status', 'Count', 'Rent', 'Physical', 'Economic', 'Physical (Facility)', 'Economic (Facility)'); $row_class = array(); $rows = array(); foreach ($type['subs'] AS $sub) { $row_class[] = array(); $rows[] = array($sub['name'], $sub['count'], FormatHelper::currency($sub['rents']), FormatHelper::percent($sub['phys_subpct'], 1), FormatHelper::percent($sub['econ_subpct'], 1), FormatHelper::percent($sub['phys_totpct'], 1), FormatHelper::percent($sub['econ_totpct'], 1)); } $row_class[] = 'grand'; $rows[] = array('Total '.$type['name'], $type['count'], FormatHelper::currency($type['rents']), FormatHelper::percent(1, 1), FormatHelper::percent(1, 1), FormatHelper::percent($type['phys_pct'], 1), FormatHelper::percent($type['econ_pct'], 1)); echo $this->element('table', array('class' => 'item unit-overview overview list', 'caption' => $type['name'], 'headers' => $headers, 'rows' => $rows, 'row_class' => $row_class )); } */ $headers = array('Status', 'Count', 'Rent', 'Physical', 'Economic', 'Physical
(Facility)', 'Economic
(Facility)'); $row_class = array(); $rows = array(); foreach ($overview['types'] AS $type) { $row_class[] = 'subheader'; $rows[] = array($type['name']); $odd = 1; foreach ($type['subs'] AS $sub) { $row_class[] = array('subitem', $odd ? 'oddrow' : 'evenrow'); $rows[] = array($sub['name'], $sub['count'], FormatHelper::currency($sub['rents']), FormatHelper::percent($sub['phys_subpct'], 1), FormatHelper::percent($sub['econ_subpct'], 1), FormatHelper::percent($sub['phys_totpct'], 1), FormatHelper::percent($sub['econ_totpct'], 1)); $odd = !$odd; } $row_class[] = 'grand'; $rows[] = array('Total '.$type['name'], $type['count'], FormatHelper::currency($type['rents']), FormatHelper::percent(1, 1), FormatHelper::percent(1, 1), FormatHelper::percent($type['phys_pct'], 1), FormatHelper::percent($type['econ_pct'], 1)); } echo $this->element('table', array('class' => 'item unit-overview overview list', 'caption' => 'Unit Types', 'headers' => $headers, 'rows' => $rows, 'row_class' => $row_class, 'suppress_alternate_rows' => true )); ?> ' . "\n"; /* End page div */ echo '
' . "\n";