' . "\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('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 '
' . "\n"; $rows = array(); echo $this->element('table', array('class' => 'summary', 'rows' => $rows, 'column_class' => array('field', 'value'), 'suppress_alternate_rows' => true, )); echo '
' . "\n"; /********************************************************************** ********************************************************************** ********************************************************************** ********************************************************************** * Supporting Elements Section */ echo '
' . "\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 '
' . "\n"; /* End page div */ echo '' . "\n";