create(null, array('id' => 'customer-merge-form', 'onsubmit' => 'return verifyRequest();', 'url' => array('controller' => 'customers', 'action' => 'mergeFinal')))."\n"; echo ''."\n"; echo ''."\n"; echo $this->element('customers', array ('config' => array ('grid_div_id' => 'customers-list', 'grid_div_class' => 'text-below', 'caption' => ('Select Customer'), //'grid_setup' => array('hiddengrid' => isset($customer['id'])), 'grid_events' => array('onSelectRow' => array('ids' => 'if (ids != null){onRowSelect("#"+$(this).attr("id"), ids);}'), 'onHeaderClick' => array('gridstate' => 'onGridState("#"+$(this).attr("id"), gridstate)'), ), //'action' => 'current', //'nolinks' => true, 'limit' => 10, ))); echo ('
' . '' . '' . '
' . "\n"); echo $this->element('contacts', array (// Grid configuration 'config' => array ( 'grid_div_id' => 'primary-contacts', /* 'grid_events' => array('onSelectRow' => */ /* array('ids' => */ /* 'if (ids != null){$("#primary-contacts-list .HeaderButton").click();}')), */ 'grid_setup' => array('select' => true), 'caption' => 'Primary Contact', 'filter' => array('ContactsCustomer.customer_id' => $src_id), //'exclude' => array('Customer', 'Type', 'Debit', 'Credit'), //'include' => array('Applied', 'Balance'), //'remap' => array('Received' => 'Paid'), //'limit' => 20, ), )); // Add a hidden item to hold the jqGrid selection, // which we'll populate prior to form submission. echo "\n"; echo ''."\n"; echo $this->element('contacts', array (// Grid configuration 'config' => array ( 'grid_div_id' => 'contacts', //'grid_events' => array('loadComplete' => 'onContactsGridLoadComplete()'), 'grid_setup' => array('multiselect' => true), 'caption' => 'Combined Contacts', 'filter' => array('ContactsCustomer.customer_id' => $src_id), //'exclude' => array('Customer', 'Type', 'Debit', 'Credit'), //'include' => array('Applied', 'Balance'), //'remap' => array('Received' => 'Paid'), //'limit' => 20, ), )); // Add a hidden item to hold the jqGrid selection, // which we'll populate prior to form submission. echo "\n"; echo ''."\n"; ?>

WARNING!

is about to be deleted, and all data (leases, transactions, etc) from that customer will be merged into the destination customer selected above. This process is NOT reversible, so please ensure the selections are correct before proceeding.
end('Merge Customers') . "\n"; ?>