Files
pmgr/site/views/tenders/view.ctp

89 lines
2.8 KiB
PHP

<?php /* -*- mode:PHP -*- */
echo '<div class="tender view">' . "\n";
/**********************************************************************
**********************************************************************
**********************************************************************
**********************************************************************
* Tender Detail Main Section
*/
$ttype = $tender['TenderType'];
$tender = $tender['Tender'];
$rows = array();
$rows[] = array('ID', $tender['id']);
$rows[] = array('Name', $tender['name']);
$rows[] = array('Type', $ttype['name']);
/* $rows[] = array('Type', $html->link($ttype['name'], */
/* array('controller' => 'tender_types', */
/* 'action' => 'view', */
/* $ttype['id']))); */
for ($i=1; $i<=4; ++$i)
if (!empty($ttype["data{$i}_name"]))
$rows[] = array($ttype["data{$i}_name"], $tender["data{$i}"]);
$rows[] = array('Deposit', $html->link('#'.$tender['deposit_transaction_id'],
array('controller' => 'transactions',
'action' => 'view',
$tender['deposit_transaction_id'])));
if (!empty($tender['nsf_transaction_id']))
$rows[] = array('NSF', $html->link('#'.$tender['nsf_transaction_id'],
array('controller' => 'transactions',
'action' => 'view',
$tender['nsf_transaction_id'])));
$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";