git-svn-id: file:///svn-source/pmgr/branches/statements_20090623@184 97e9348a-65ac-dc4b-aefc-98561f571b83
76 lines
2.3 KiB
PHP
76 lines
2.3 KiB
PHP
<?php /* -*- mode:PHP -*- */
|
|
|
|
echo '<div class="unit view">' . "\n";
|
|
|
|
/**********************************************************************
|
|
**********************************************************************
|
|
**********************************************************************
|
|
**********************************************************************
|
|
* Unit Detail Main Section
|
|
*/
|
|
|
|
$rows = array(array('Name', $unit['Unit']['name']),
|
|
array('Status', $unit['Unit']['status']),
|
|
array('Comment', $unit['Unit']['comment']));
|
|
|
|
echo $this->element('table',
|
|
array('class' => 'item unit detail',
|
|
'caption' => 'Unit Info',
|
|
'rows' => $rows,
|
|
'column_class' => array('field', 'value')));
|
|
|
|
|
|
/**********************************************************************
|
|
* Unit Info Box
|
|
*/
|
|
|
|
echo '<div class="infobox">' . "\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 '</div>' . "\n";
|
|
|
|
|
|
/**********************************************************************
|
|
**********************************************************************
|
|
**********************************************************************
|
|
**********************************************************************
|
|
* Supporting Elements Section
|
|
*/
|
|
|
|
echo '<div CLASS="detail supporting">' . "\n";
|
|
|
|
|
|
/**********************************************************************
|
|
* Lease History
|
|
*/
|
|
|
|
echo $this->element('leases',
|
|
array('caption' => 'Lease History',
|
|
'leases' => $unit['Lease']));
|
|
|
|
|
|
/**********************************************************************
|
|
* Current Lease Statement History
|
|
*/
|
|
|
|
echo $this->element('statement_entries',
|
|
array('caption' => ('Current Lease Statement (' .
|
|
$unit['CurrentLease']['Customer']['name'] .
|
|
')'),
|
|
'statement_id' => $unit['CurrentLease']['statement_id']
|
|
));
|
|
|
|
|
|
/* End "detail supporting" div */
|
|
echo '</div>' . "\n";
|
|
|
|
/* End page div */
|
|
echo '</div>' . "\n";
|