git-svn-id: file:///svn-source/pmgr/branches/ledger_transactions_20090605/site@81 97e9348a-65ac-dc4b-aefc-98561f571b83
75 lines
2.2 KiB
PHP
75 lines
2.2 KiB
PHP
<?php /* -*- mode:PHP -*- */ ?>
|
|
|
|
<div class="account view">
|
|
|
|
<?php
|
|
; // Editor alignment
|
|
|
|
/**********************************************************************
|
|
**********************************************************************
|
|
**********************************************************************
|
|
**********************************************************************
|
|
* Account Detail Main Section
|
|
*/
|
|
|
|
$rows = array(array('ID', $account['Account']['id']),
|
|
array('Name', $account['Account']['name']),
|
|
array('Type', $account['Account']['type']),
|
|
array('External Name', $account['Account']['external_name']),
|
|
array('External Account', $account['Account']['external_account']),
|
|
array('Comment', $account['Account']['comment']));
|
|
|
|
echo $this->element('table',
|
|
array('class' => 'item account detail',
|
|
'caption' => 'Account Detail',
|
|
'rows' => $rows,
|
|
'column_class' => array('field', 'value')));
|
|
|
|
|
|
/**********************************************************************
|
|
* Account Info Box
|
|
*/
|
|
|
|
?>
|
|
|
|
<DIV CLASS="infobox">
|
|
<DIV CLASS="summary balance">
|
|
Account Balance: <?php echo FormatHelper::currency($balance); ?>
|
|
</DIV>
|
|
</DIV>
|
|
|
|
<DIV CLASS="detail supporting">
|
|
<?php
|
|
; // Editor alignment
|
|
|
|
/**********************************************************************
|
|
**********************************************************************
|
|
**********************************************************************
|
|
**********************************************************************
|
|
* Supporting Elements Section
|
|
*/
|
|
|
|
|
|
/**********************************************************************
|
|
* Ledgers
|
|
*/
|
|
|
|
echo $this->element('ledgers',
|
|
array('caption' => $account['Account']['name'] . " Ledgers",
|
|
'ledgers' => $account['Ledger']));
|
|
|
|
|
|
/**********************************************************************
|
|
* Current Ledger
|
|
*/
|
|
|
|
echo $this->element('ledger_entries',
|
|
array('caption' => "Current Ledger: (#{$account['CurrentLedger']['sequence']})",
|
|
'ledger_entries' => $account['CurrentLedger']['LedgerEntry']));
|
|
|
|
/* End "detail supporting" DIV */ ?>
|
|
</DIV>
|
|
|
|
|
|
</div>
|