git-svn-id: file:///svn-source/pmgr/branches/ledger_transactions_20090605/site@77 97e9348a-65ac-dc4b-aefc-98561f571b83
69 lines
2.0 KiB
PHP
69 lines
2.0 KiB
PHP
<?php /* -*- mode:PHP -*- */ ?>
|
|
|
|
<div class="ledger view">
|
|
|
|
<?php
|
|
; // Editor alignment
|
|
|
|
/**********************************************************************
|
|
**********************************************************************
|
|
**********************************************************************
|
|
**********************************************************************
|
|
* Ledger Detail Main Section
|
|
*/
|
|
|
|
$rows = array(array('ID', $ledger['Ledger']['id']),
|
|
array('Name', $ledger['Ledger']['name']),
|
|
array('Account', $html->link($ledger['Account']['name'],
|
|
array('controller' => 'accounts',
|
|
'action' => 'view',
|
|
$ledger['Account']['id']))),
|
|
array('Status', $ledger['Ledger']['closed'] ? 'Closed' : 'Open'),
|
|
array('Comment', $ledger['Ledger']['comment']));
|
|
|
|
echo $this->element('table',
|
|
array('class' => 'item ledger detail',
|
|
'caption' => 'Ledger Detail',
|
|
'rows' => $rows,
|
|
'column_class' => array('field', 'value')));
|
|
|
|
|
|
/**********************************************************************
|
|
* Ledger Info Box
|
|
*/
|
|
|
|
?>
|
|
|
|
<DIV CLASS="infobox">
|
|
<DIV CLASS="summary balance">
|
|
Ledger Balance: <?php echo FormatHelper::currency($balance); ?>
|
|
</DIV>
|
|
</DIV>
|
|
|
|
<DIV CLASS="detail supporting">
|
|
<?php
|
|
; // Editor alignment
|
|
|
|
/**********************************************************************
|
|
**********************************************************************
|
|
**********************************************************************
|
|
**********************************************************************
|
|
* Supporting Elements Section
|
|
*/
|
|
|
|
|
|
/**********************************************************************
|
|
* Ledger
|
|
*/
|
|
|
|
echo $this->element('ledger',
|
|
array('caption' => $ledger['Ledger']['name'],
|
|
'ledger' => array('id' => $ledger['Ledger']['id'],
|
|
'type' => $ledger['Account']['type']),
|
|
'entries' => $ledger['LedgerEntry']));
|
|
|
|
/* End "detail supporting" DIV */ ?>
|
|
</DIV>
|
|
|
|
</div>
|