Updated all the view.ctp files to use the new style infobox. I should probably create an element for it, but I'll hold off for now.
git-svn-id: file:///svn-source/pmgr/branches/ledger_transactions_20090605@135 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
<?php /* -*- mode:PHP -*- */ ?>
|
||||
<?php /* -*- mode:PHP -*- */
|
||||
|
||||
<div class="account view">
|
||||
|
||||
<?php
|
||||
; // Editor alignment
|
||||
echo '<div class="account view">' . "\n";
|
||||
|
||||
/**********************************************************************
|
||||
**********************************************************************
|
||||
@@ -12,12 +9,12 @@
|
||||
* 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']));
|
||||
$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',
|
||||
@@ -30,30 +27,19 @@ echo $this->element('table',
|
||||
* Account Info Box
|
||||
*/
|
||||
|
||||
?>
|
||||
echo '<div class="infobox">' . "\n";
|
||||
$rows = array();
|
||||
$rows[] = array('Debits:', FormatHelper::currency($stats['debits']));
|
||||
$rows[] = array('Credits:', FormatHelper::currency($stats['credits']));
|
||||
$rows[] = array('Account Balance:', FormatHelper::currency($stats['balance']));
|
||||
echo $this->element('table',
|
||||
array('class' => 'summary',
|
||||
'rows' => $rows,
|
||||
'column_class' => array('field', 'value'),
|
||||
'suppress_alternate_rows' => true,
|
||||
));
|
||||
echo '</div>' . "\n";
|
||||
|
||||
<DIV CLASS="infobox">
|
||||
<TABLE CLASS="summary">
|
||||
<TR>
|
||||
<TD>Debits:</TD>
|
||||
<TD><?php echo FormatHelper::currency($stats['debits']); ?></TD>
|
||||
</TR>
|
||||
|
||||
<TR>
|
||||
<TD>Credits:</TD>
|
||||
<TD><?php echo FormatHelper::currency($stats['credits']); ?></TD>
|
||||
</TR>
|
||||
|
||||
<TR>
|
||||
<TD>Accout Balance:</TD>
|
||||
<TD><?php echo FormatHelper::currency($stats['balance']); ?></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</DIV>
|
||||
|
||||
<DIV CLASS="detail supporting">
|
||||
<?php
|
||||
; // Editor alignment
|
||||
|
||||
/**********************************************************************
|
||||
**********************************************************************
|
||||
@@ -62,6 +48,8 @@ echo $this->element('table',
|
||||
* Supporting Elements Section
|
||||
*/
|
||||
|
||||
echo '<div CLASS="detail supporting">' . "\n";
|
||||
|
||||
|
||||
/**********************************************************************
|
||||
* Ledgers
|
||||
@@ -82,8 +70,8 @@ echo $this->element('ledger_entries',
|
||||
'account_type' => $account['Account']['type'],
|
||||
));
|
||||
|
||||
/* End "detail supporting" DIV */ ?>
|
||||
</DIV>
|
||||
/* End "detail supporting" div */
|
||||
echo '</div>' . "\n";
|
||||
|
||||
|
||||
</div>
|
||||
/* End page div */
|
||||
echo '</div>' . "\n";
|
||||
|
||||
Reference in New Issue
Block a user