예제 #1
0
 * display the words  "Powered by SugarCRM" and "Supercharged by SuiteCRM".
 ********************************************************************************/
global $app_list_strings, $app_strings, $mod_strings;
require_once 'modules/Studio/TabGroups/TabGroupHelper.php';
require_once 'modules/Studio/parsers/StudioParser.php';
$tabGroupSelected_lang = !empty($_GET['lang']) ? $_GET['lang'] : $_SESSION['authenticated_user_language'];
$tg = new TabGroupHelper();
$smarty = new Sugar_Smarty();
if (empty($GLOBALS['tabStructure'])) {
    require 'include/tabConfig.php';
}
$title = getClassicModuleTitle($mod_strings['LBL_MODULE_NAME'], array($mod_strings['LBL_CONFIGURE_GROUP_TABS']), false);
#30205
$selectedAppLanguages = return_application_language($tabGroupSelected_lang);
require_once 'include/GroupedTabs/GroupedTabStructure.php';
$availableModules = $tg->getAvailableModules($tabGroupSelected_lang);
$smarty->assign('availableModuleList', $availableModules);
$modList = array_keys($availableModules);
$modList = array_combine($modList, $modList);
// Bug #48693 We need full list of modules here instead of displayed modules
$groupedTabsClass = new GroupedTabStructure();
$groupedTabStructure = $groupedTabsClass->get_tab_structure($modList, '', true, true);
foreach ($groupedTabStructure as $mainTab => $subModules) {
    $groupedTabStructure[$mainTab]['label'] = $mainTab;
    $groupedTabStructure[$mainTab]['labelValue'] = $selectedAppLanguages[$mainTab];
}
$smarty->assign('tabs', $groupedTabStructure);
#end of 30205
$selectedLanguageModStrings = return_module_language($tabGroupSelected_lang, 'Studio');
$smarty->assign('TGMOD', $selectedLanguageModStrings);
$smarty->assign('MOD', $GLOBALS['mod_strings']);
global $app_list_strings, $app_strings;
require_once 'include/Sugar_Smarty.php';
require_once 'modules/Studio/TabGroups/TabGroupHelper.php';
require_once 'modules/Studio/parsers/StudioParser.php';
$tg = new TabGroupHelper();
$smarty = new Sugar_Smarty();
if (empty($GLOBALS['tabStructure'])) {
    require_once 'include/tabConfig.php';
}
$smarty->assign('tabs', $GLOBALS['tabStructure']);
$smarty->assign('MOD', $GLOBALS['mod_strings']);
$selected_lang = !empty($_REQUEST['dropdown_lang']) ? $_REQUEST['dropdown_lang'] : $_SESSION['authenticated_user_language'];
if (empty($selected_lang)) {
    $selected_lang = $GLOBALS['sugar_config']['default_language'];
}
$availableModules = $tg->getAvailableModules();
$smarty->assign('availableModuleList', $availableModules);
$smarty->assign('dropdown_languages', unserialize($_SESSION['avail_languages']));
global $image_path;
$imageSave = get_image($image_path . 'studio_save', '');
$buttons = array();
$buttons[] = array('image' => $imageSave, 'text' => $GLOBALS['mod_strings']['LBL_BTN_SAVEPUBLISH'], 'actionScript' => "onclick='studiotabs.generateForm(\"edittabs\");document.edittabs.submit()'");
$buttonTxt = StudioParser::buildImageButtons($buttons);
$smarty->assign('buttons', $buttonTxt);
$smarty->assign('dropdown_lang', $selected_lang);
global $image_path;
$editImage = get_image($image_path . 'edit_inline', '');
$smarty->assign('editImage', $editImage);
$deleteImage = get_image($image_path . 'delete_inline', '');
$smarty->assign('deleteImage', $deleteImage);
$smarty->display("modules/Studio/TabGroups/EditViewTabs.tpl");