' . "\n"; /********************************************************************** ********************************************************************** ********************************************************************** ********************************************************************** * Account Detail Main Section */ $rows = array(array('ID', $account['Account']['id']), array('Name', $account['Account']['name']), array('Type', $account['Account']['type']), array('External Name', $account['Account']['external_name']), array('External Account', $account['Account']['external_account']), array('Comment', $account['Account']['comment'])); echo $this->element('table', array('class' => 'item account detail', 'caption' => 'Account Detail', 'rows' => $rows, 'column_class' => array('field', 'value'))); /********************************************************************** * Account Info Box */ echo '
' . "\n"; $rows = array(); $rows[] = array('Debits:', FormatHelper::currency($stats['debits'])); $rows[] = array('Credits:', FormatHelper::currency($stats['credits'])); $rows[] = array('Account Balance:', FormatHelper::currency($stats['balance'])); 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"; /********************************************************************** * Ledgers */ echo $this->element('ledgers', array ('config' => array ('caption' => $account['Account']['name'] . " Ledgers", 'rows' => $account['Ledger'], ))); /********************************************************************** * Current Ledger */ echo $this->element('ledger_entries', array (// Element configuration 'ledger_id' => $account['CurrentLedger']['id'], 'account_type' => $account['Account']['type'], // Grid configuration 'config' => array ('caption' => "Current Ledger: (" . "#{$account['Account']['id']}" . "-" . "{$account['CurrentLedger']['sequence']}" . ")", ), )); /* End "detail supporting" div */ echo '
' . "\n"; /* End page div */ echo '' . "\n";