' . "\n"; /********************************************************************** ********************************************************************** ********************************************************************** ********************************************************************** * Transaction Detail Main Section */ $account = $transaction['Account']; $ledger = $transaction['Ledger']; if (isset($transaction['Transaction'])) $transaction = $transaction['Transaction']; $rows = array(); $rows[] = array('ID', $transaction['id']); $rows[] = array('Type', $transaction['type']); $rows[] = array('Timestamp', FormatHelper::datetime($transaction['stamp'])); $rows[] = array('Amount', FormatHelper::currency($transaction['amount'])); $rows[] = array('Account', $html->link($account['name'], array('controller' => 'accounts', 'action' => 'view', $account['id']))); $rows[] = array('Ledger', $html->link($ledger['name'], array('controller' => 'ledgers', 'action' => 'view', $ledger['id']))); $rows[] = array('Comment', $transaction['comment']); echo $this->element('table', array('class' => 'item transaction detail', 'caption' => 'Transaction Detail', 'rows' => $rows, 'column_class' => array('field', 'value'))); /********************************************************************** * Transaction Info Box */ echo '