Files
pmgr/site/views/customers/view.ctp
abijah c002f3f3ba Another snapshot
git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716@356 97e9348a-65ac-dc4b-aefc-98561f571b83
2009-07-20 23:35:11 +00:00

94 lines
2.7 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
('no_customer' => true,
'config' => array
('caption' => 'Lease History',
'rows' => $customer['Lease'],
)));
/**********************************************************************
* Customer Account History
*/
echo $this->element('entries', array
(// Element configuration
'customer_id' => $customer['Customer']['id'],
'entry_type' => array('CHARGE', 'PAYMENT'),
// Grid configuration
'config' => array
('caption' => 'Account',
),
));
/* End "detail supporting" div */
echo '</div>' . "\n";
/* End page div */
echo '</div>' . "\n";