' . "\n"; /********************************************************************** ********************************************************************** ********************************************************************** ********************************************************************** * Javascript */ ?> ' . "\n"; $rows = array(); $rows[] = array('Total:', ''); echo $this->element('table', array('class' => 'summary', 'rows' => $rows, 'column_class' => array('field', 'value'), 'suppress_alternate_rows' => true, )); echo '' . "\n"; /********************************************************************** ********************************************************************** ********************************************************************** ********************************************************************** * User Configuration */ echo $form->create(null, array('id' => 'collected-form', 'onsubmit' => 'return false', 'url' => null)); echo $form->input("id", array('id' => 'account-id', 'type' => 'hidden', 'value' => 0)); /* echo '
'; */ /* echo ' Payment Account'; */ /* echo $form->input('Tx.account_id', */ /* array(//'label' => 'Payment
Account', */ /* 'label' => false, */ /* 'type' => 'select', */ /* 'multiple' => 'checkbox', */ /* 'options' => $paymentAccounts, */ /* 'selected' => array_keys($defaultAccounts), */ /* ) */ /* ); */ /* echo '
'; */ echo $this->element('form_table', array('class' => "item account collected entry", //'with_name_after' => ':', 'field_prefix' => 'Tx.', 'fields' => array ("account_id" => array('name' => 'Payment
Account', 'opts' => array('type' => 'select', 'multiple' => 'checkbox', 'options' => $paymentAccounts, 'selected' => array_keys($defaultAccounts), ), ), ), )); echo $this->element('form_table', array('class' => "item account collected entry", //'with_name_after' => ':', 'field_prefix' => 'Tx.', 'fields' => array ("from_date" => array('opts' => array('type' => 'text'), 'between' => 'BOM', ), "through_date" => array('opts' => array('type' => 'text'), 'between' => 'EOM', ), ), )); echo $form->button('Update', array('onclick' => 'updateEntriesGrid(); return false', )); echo $form->end(); /********************************************************************** ********************************************************************** ********************************************************************** ********************************************************************** * Supporting Elements Section */ echo '
' . "\n"; /********************************************************************** * Entries */ echo $this->element('statement_entries', array (// Grid configuration 'config' => array ( 'grid_div_id' => 'collected-entries', 'grid_div_class' => 'text-below', 'grid_events' => array('loadComplete' => 'onGridLoadComplete()'), 'grid_setup' => array('hiddengrid' => true), 'caption' => 'Collected ' . Inflector::pluralize($account['name']), 'action' => 'collected', 'filter' => array('ChargeEntry.account_id' => $account['id']), 'include' => array('Amount'), 'exclude' => array(/*'Type',*/ 'Debit', 'Credit'), ), )); ?> ' . "\n"; /* End page div */ echo '
' . "\n"; ?>