' . "\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' => '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(); /********************************************************************** ********************************************************************** ********************************************************************** ********************************************************************** * Supporting Elements Section */ echo '