grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026currentStep = isset($_REQUEST['current_step']) ? ($_REQUEST['current_step'] + 1) : 1;
$this->importModule = isset($_REQUEST['import_module']) ? $_REQUEST['import_module'] : '';
if (isset($_REQUEST['from_admin_wizard']) && $_REQUEST['from_admin_wizard']) {
$this->importModule = 'Administration';
}
}
/**
* @see SugarView::_getModuleTitleParams()
*/
protected function _getModuleTitleParams($browserTitle = false)
{
global $mod_strings, $app_list_strings;
$iconPath = $this->getModuleTitleIconPath($this->module);
$returnArray = array();
if (!empty($iconPath) && !$browserTitle) {
$returnArray[] = "";
} else {
$returnArray[] = $app_list_strings['moduleList'][$_REQUEST['import_module']];
}
$returnArray[] = "".$mod_strings['LBL_MODULE_NAME']."";
$returnArray[] = $mod_strings['LBL_STEP_1_TITLE'];
return $returnArray;
}
/**
* @see SugarView::display()
*/
public function display()
{
global $mod_strings, $app_strings, $current_user;
global $sugar_config;
$this->ss->assign("MODULE_TITLE", $this->getModuleTitle(false));
$this->ss->assign("DELETE_INLINE_PNG", SugarThemeRegistry::current()->getImage('delete_inline', 'align="absmiddle" border="0"', null, null, '.gif', $app_strings['LNK_DELETE']));
$this->ss->assign("PUBLISH_INLINE_PNG", SugarThemeRegistry::current()->getImage('publish_inline', 'align="absmiddle" border="0"', null, null, '.gif', $mod_strings['LBL_PUBLISH']));
$this->ss->assign("UNPUBLISH_INLINE_PNG", SugarThemeRegistry::current()->getImage('unpublish_inline', 'align="absmiddle" border="0"', null, null, '.gif', $mod_strings['LBL_UNPUBLISH']));
$this->ss->assign("IMPORT_MODULE", $_REQUEST['import_module']);
$showModuleSelection = ($this->importModule == 'Administration');
$importableModulesOptions = array();
$importablePersonModules = array();
//If we are coming from the admin link, get the module list.
if ($showModuleSelection) {
$tmpImportable = Importer::getImportableModules();
$importableModulesOptions = get_select_options_with_id($tmpImportable, '');
$importablePersonModules = $this->getImportablePersonModulesJS();
$this->ss->assign("IMPORT_MODULE", key($tmpImportable));
} else {
$this->instruction = 'LBL_SELECT_DS_INSTRUCTION';
$this->ss->assign('INSTRUCTION', $this->getInstruction());
}
$this->ss->assign("FROM_ADMIN", $showModuleSelection);
$this->ss->assign("PERSON_MODULE_LIST", json_encode($importablePersonModules));
$this->ss->assign("showModuleSelection", $showModuleSelection);
$this->ss->assign("IMPORTABLE_MODULES_OPTIONS", $importableModulesOptions);
$this->ss->assign("EXTERNAL_SOURCES", $this->getAllImportableExternalEAPMs());
$this->ss->assign("EXTERNAL_AUTHENTICATED_SOURCES", json_encode($this->getAuthenticatedImportableExternalEAPMs()));
$selectExternal = !empty($_REQUEST['application']) ? $_REQUEST['application'] : '';
$this->ss->assign("selectExternalSource", $selectExternal);
$content = $this->ss->fetch('modules/Import/tpls/step1.tpl');
$submitContent = "
| "; $submitContent .= ""; $submitContent .= " |