'true']; $qfKey = CRM_Utils_Request::retrieve('qfKey', 'String'); if (CRM_Utils_Rule::qfKey($qfKey)) { $query['qfKey'] = $qfKey; } $previousURL = CRM_Utils_System::url($path, $query, FALSE, NULL, FALSE); $cancelURL = CRM_Utils_System::url($path, 'reset=1', FALSE, NULL, FALSE); $this->addButtons([ [ 'type' => 'back', 'name' => ts('Previous'), 'js' => ['onclick' => "location.href='{$previousURL}'; return false;"], ], [ 'type' => 'next', 'name' => ts('Import Now'), 'spacing' => '          ', 'isDefault' => TRUE, ], [ 'type' => 'cancel', 'name' => ts('Cancel'), 'js' => ['onclick' => "location.href='{$cancelURL}'; return false;"], ], ]); } /** * Set status url for ajax. */ public function setStatusUrl() { $statusID = $this->get('statusID'); if (!$statusID) { $statusID = md5(uniqid(rand(), TRUE)); $this->set('statusID', $statusID); } $statusUrl = CRM_Utils_System::url('civicrm/ajax/status', "id={$statusID}", FALSE, NULL, FALSE); $this->assign('statusUrl', $statusUrl); } }