Files
pmgr/views/customers/view.ctp

81 lines
2.4 KiB
PHP

<?php /* -*- mode:PHP -*- */
echo '<div class="customer view">' . "\n";
/**********************************************************************
**********************************************************************
**********************************************************************
**********************************************************************
* Customer Detail Main Section
*/
$rows = array(array('Name', $customer['Customer']['name']),
array('Comment', $customer['Customer']['comment']));
echo $this->element('table',
array('class' => 'item customer detail',
'caption' => 'Customer Info',
'rows' => $rows,
'column_class' => array('field', 'value')));
/**********************************************************************
* Customer 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";
/**********************************************************************
* Contacts
*/
echo $this->element('contacts',
array('caption' => 'Customer Contacts',
'contacts' => $customer['Contact']));
/**********************************************************************
* Lease History
*/
echo $this->element('leases',
array('caption' => 'Lease History',
'leases' => $customer['Lease']));
/**********************************************************************
* Customer Account History
*/
echo $this->element('ledger_entries',
array('caption' => 'Account',
'customer_id' => $customer['Customer']['id'],
'ar_account' => true,
));
/* End "detail supporting" div */
echo '</div>' . "\n";
/* End page div */
echo '</div>' . "\n";