git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716/site@371 97e9348a-65ac-dc4b-aefc-98561f571b83
73 lines
2.2 KiB
PHP
73 lines
2.2 KiB
PHP
<?php /* -*- mode:PHP -*- */
|
|
|
|
echo '<div class="tender view">' . "\n";
|
|
|
|
/**********************************************************************
|
|
**********************************************************************
|
|
**********************************************************************
|
|
**********************************************************************
|
|
* Tender Detail Main Section
|
|
*/
|
|
|
|
$tender = $tender['Tender'];
|
|
|
|
$rows = array();
|
|
$rows[] = array('ID', $tender['id']);
|
|
$rows[] = array('Name', $tender['name']);
|
|
$rows[] = array('Data 1', $tender['data1']);
|
|
$rows[] = array('Data 2', $tender['data2']);
|
|
$rows[] = array('Data 3', $tender['data3']);
|
|
$rows[] = array('Data 4', $tender['data4']);
|
|
$rows[] = array('Comment', $tender['comment']);
|
|
|
|
echo $this->element('table',
|
|
array('class' => 'item tender detail',
|
|
'caption' => 'Legal Tender Detail',
|
|
'rows' => $rows,
|
|
'column_class' => array('field', 'value')));
|
|
|
|
|
|
/**********************************************************************
|
|
* Tender 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";
|
|
|
|
|
|
/**********************************************************************
|
|
* Ledger Entries
|
|
*/
|
|
|
|
echo $this->element('ledger_entries', array
|
|
(// Grid configuration
|
|
'config' => array
|
|
('caption' => "Ledger Entries",
|
|
'filter' => array('tender_id' => $tender['id']),
|
|
'exclude' => array('Tender'),
|
|
)));
|
|
|
|
|
|
/* End "detail supporting" div */
|
|
echo '</div>' . "\n";
|
|
|
|
/* End page div */
|
|
echo '</div>' . "\n";
|