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_events' => array('onSelectRow' => array('ids' => 'if (ids != null){onRowSelect("#"+$(this).attr("id"), ids);}'), 'onHeaderClick' => array('gridstate' => 'onGridState("#"+$(this).attr("id"), gridstate)'), ), 'filter' => array('Customer.id !=' => $dst_id), //'nolinks' => true, 'limit' => 10, ))); echo ('
' . '' . '' . '
' . "\n"); echo $this->element('contacts', array (// Grid configuration 'config' => array ( 'grid_div_id' => 'contacts', 'grid_setup' => array('multiselect' => true), 'caption' => 'Source contacts to keep', 'filter' => array('ContactsCustomer.customer_id' => 0), 'include' => array('Relationship', 'License', 'Comment'), ), )); // Add a hidden item to hold the jqGrid selection, // which we'll populate prior to form submission. echo "\n"; echo ''."\n"; ?>

WARNING!

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