git-svn-id: file:///svn-source/pmgr/branches/ledger_transactions_20090605@135 97e9348a-65ac-dc4b-aefc-98561f571b83
57 lines
1.8 KiB
PHP
57 lines
1.8 KiB
PHP
<?php /* -*- mode:PHP -*- */
|
|
|
|
echo '<div class="monetary-source view">' . "\n";
|
|
|
|
/**********************************************************************
|
|
**********************************************************************
|
|
**********************************************************************
|
|
**********************************************************************
|
|
* MonetarySource Detail Main Section
|
|
*/
|
|
|
|
$type = $monetarySource['MonetaryType'];
|
|
$source = $monetarySource['MonetarySource'];
|
|
|
|
$rows = array(array('ID', $source['id']),
|
|
array('Name', $source['name']),
|
|
array('Type', $type['name']),
|
|
array('Tillable', $type['tillable'] ? 'Yes' : 'No'),
|
|
array('Comment', $source['comment']));
|
|
|
|
echo $this->element('table',
|
|
array('class' => 'item monetary-source detail',
|
|
'caption' => 'Monetary Source Detail',
|
|
'rows' => $rows,
|
|
'column_class' => array('field', 'value')));
|
|
|
|
|
|
/**********************************************************************
|
|
* MonetarySource Info Box
|
|
*/
|
|
|
|
echo '<div class="infobox">' . "\n";
|
|
$rows = array();
|
|
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";
|
|
|
|
/* End "detail supporting" div */
|
|
echo '</div>' . "\n";
|
|
|
|
/* End page div */
|
|
echo '</div>' . "\n";
|