diff --git a/site/views/statement_entries/chargesbymonth.ctp b/site/views/statement_entries/chargesbymonth.ctp new file mode 100644 index 0000000..94ac055 --- /dev/null +++ b/site/views/statement_entries/chargesbymonth.ctp @@ -0,0 +1,69 @@ +' . "\n"; + +/********************************************************************** + ********************************************************************** + ********************************************************************** + ********************************************************************** + * Overview Main Section + */ + +$rows = array(); +$rows[] = array('Total Charges', FormatHelper::currency($overview['charges'])); + +echo $this->element('table', + array('class' => 'item statement_entry detail', + 'caption' => 'Monthly Charges', + '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['charges'])); + $odd = !$odd; + } + $row_class[] = 'grand'; + $rows[] = array('Total for '.$month['name'], FormatHelper::currency($month['charges'])); +} + +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"; diff --git a/site/views/units/overview.ctp b/site/views/units/overview.ctp new file mode 100644 index 0000000..19b148d --- /dev/null +++ b/site/views/units/overview.ctp @@ -0,0 +1,128 @@ +' . "\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";