' . "\n"; /********************************************************************** ********************************************************************** ********************************************************************** ********************************************************************** * Javascript */ ?> ' . "\n"; echo $form->create(null, array('id' => 'receipt-form', //'onsubmit' => 'updateEntriesGrid(); return false', 'url' => array('controller' => 'transactions', 'action' => 'postReceipt'))); echo $form->input("id", array('id' => 'account-id', 'type' => 'hidden', 'value' => 0)); echo $this->element('form_table', array('class' => "item account collected entry", //'with_name_after' => ':', 'field_prefix' => 'Tx.', 'fields' => array ("account_id" => array('name' => 'Account', 'opts' => array('type' => 'select', 'multiple' => 'checkbox', 'options' => $paymentAccounts, 'selected' => array_keys($defaultAccounts), ), ), "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(); echo $this->element('ledger_entries', array (// Element configuration 'collected_account_id' => $account['id'], 'collected_payment_accounts' => array_keys($defaultAccounts), // Grid configuration 'config' => array ( 'grid_div_id' => 'collected-entries', 'grid_div_class' => 'text-below', //'caption' => '', 'caption' => 'Collected Charges', ), )); echo('
| Balance: |