Files
pmgr/views/customers/view.ctp
abijah b820929ddc Made progress adapting the receipt code onto the latest db changes.
git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716/site@387 97e9348a-65ac-dc4b-aefc-98561f571b83
2009-07-24 07:43:42 +00:00

94 lines
2.8 KiB
PHP

<?php /* -*- mode:PHP -*- */
echo '<div class="customer view">' . "\n";
/**********************************************************************
**********************************************************************
**********************************************************************
**********************************************************************
* Customer Detail Main Section
*/
$rows = array();
$rows[] = array('Name', $customer['Customer']['name']);
$rows[] = 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
(// Grid configuration
'config' => array
('caption' => 'Customer Contacts',
'filter' => array('Customer.id' => $customer['Customer']['id']),
'include' => array('Type', 'Active'),
)));
/**********************************************************************
* Lease History
*/
echo $this->element('leases', array
(// Grid configuration
'config' => array
('caption' => 'Lease History',
'filter' => array('Customer.id' => $customer['Customer']['id']),
'exclude' => array('Customer'),
)));
/**********************************************************************
* Customer Account History
*/
echo $this->element('statement_entries', array
(// Grid configuration
'config' => array
('caption' => 'Account',
'filter' => array('Customer.id' => $customer['Customer']['id']),
'exclude' => array('Customer'),
)));
/* End "detail supporting" div */
echo '</div>' . "\n";
/* End page div */
echo '</div>' . "\n";