git-svn-id: file:///svn-source/pmgr/branches/invoice_receipt_20090629/site@195 97e9348a-65ac-dc4b-aefc-98561f571b83
61 lines
2.0 KiB
PHP
61 lines
2.0 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('Data 1', $source['data1']),
|
|
array('Data 2', $source['data2']),
|
|
array('Data 3', $source['data3']),
|
|
array('Data 4', $source['data4']),
|
|
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";
|