Files
pmgr/site/views/monetary_sources/view.ctp
abijah 23f4a29fc7 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
2009-06-15 21:01:22 +00:00

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";