git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716/site@360 97e9348a-65ac-dc4b-aefc-98561f571b83
92 lines
2.6 KiB
PHP
92 lines
2.6 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
|
|
('config' => array
|
|
('caption' => 'Customer Contacts',
|
|
'rows' => $customer['Contact'],
|
|
)));
|
|
|
|
|
|
/**********************************************************************
|
|
* Lease History
|
|
*/
|
|
|
|
echo $this->element('leases', array
|
|
('customer_id' => $customer['Customer']['id'],
|
|
|
|
'config' => array
|
|
('caption' => 'Lease History',
|
|
)));
|
|
|
|
|
|
/**********************************************************************
|
|
* Customer Account History
|
|
*/
|
|
|
|
echo $this->element('ledger_entries', array
|
|
(// Element configuration
|
|
'customer_id' => $customer['Customer']['id'],
|
|
|
|
// Grid configuration
|
|
'config' => array
|
|
('caption' => 'Account',
|
|
),
|
|
));
|
|
|
|
|
|
/* End "detail supporting" div */
|
|
echo '</div>' . "\n";
|
|
|
|
/* End page div */
|
|
echo '</div>' . "\n";
|