echo $this->_tpl_vars['MOD']['LBL_NONE']; ?> </td> </tr> <tr> <td colspan="2"><input class="radio" type="radio" name="external_source" value="salesforce" id='sf_map'/> <?php echo $this->_tpl_vars['MOD']['LBL_SALESFORCE']; ?> </td> </tr> <tr> <td colspan="2"><input class="radio" type="radio" name="external_source" value="outlook" id='outlook_map'/> <?php echo $this->_tpl_vars['MOD']['LBL_MICROSOFT_OUTLOOK']; ?> <?php echo smarty_function_sugar_help(array('text' => $this->_tpl_vars['MOD']['LBL_MICROSOFT_OUTLOOK_HELP']), $this); ?> </td> </tr> <tr> <td colspan="2"> </td> </tr> </table> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td align="left"> <input title="<?php echo $this->_tpl_vars['MOD']['LBL_BACK']; ?> " id="goback" class="button" type="submit" name="button" value=" <?php
<?php echo smarty_function_sugar_help(array('text' => $this->_tpl_vars['MOD']['LBL_SAML_LOGIN_URL_DESC']), $this); ?> </td> <td align="left" valign='middle'><input name="SAML_loginurl" size='35' type="text" value="<?php echo $this->_tpl_vars['config']['SAML_loginurl']; ?> "></td> </tr> <tr> <td width='25%' scope="row" valign='top' nowrap><?php echo $this->_tpl_vars['MOD']['LBL_SAML_CERT']; ?> <?php echo smarty_function_sugar_help(array('text' => $this->_tpl_vars['MOD']['LBL_SAML_CERT_DESC']), $this); ?> </td><?php echo $this->_tpl_vars['settings']['proxy_host']; ?> <td width='25%' align="left" valign='top'><textarea style='height:200px;width:600px' name="SAML_X509Cert" ><?php echo $this->_tpl_vars['config']['SAML_X509Cert']; ?> </textarea></td> </tr> </table>
} if (!$this->_tpl_vars['hideDuplicatable']) { ?> <tr><td class='mbLBL'><?php echo smarty_function_sugar_translate(array('module' => 'DynamicFields', 'label' => 'COLUMN_TITLE_DUPLICATE_MERGE'), $this); ?> :</td><td> <?php if ($this->_tpl_vars['hideLevel'] < 5) { ?> <?php echo smarty_function_html_options(array('name' => 'duplicate_merge', 'id' => 'duplicate_merge', 'selected' => $this->_tpl_vars['vardef']['duplicate_merge_dom_value'], 'options' => $this->_tpl_vars['duplicate_merge_options']), $this); ?> <?php echo smarty_function_sugar_help(array('text' => $this->_tpl_vars['mod_strings']['LBL_POPHELP_DUPLICATE_MERGE'], 'FIXX' => 250, 'FIXY' => 80), $this); ?> <?php } else { ?> <?php if (isset($this->_tpl_vars['vardef']['duplicate_merge_dom_value'])) { echo $this->_tpl_vars['vardef']['duplicate_merge_dom_value']; ?> <?php } else { echo $this->_tpl_vars['duplicate_merge_options'][0]; } }
<p /> <form name='edittabs' id='edittabs' method='POST' action='index.php'> <input type="hidden" name="slot_count" id="slot_count" value="" /> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td width="100%" class='dataLabel' colspan=2> <?php echo $this->_tpl_vars['MOD']['LBL_TABGROUP_LANGUAGE']; ?> <?php echo smarty_function_html_options(array('name' => 'grouptab_lang', 'options' => $this->_tpl_vars['available_languages'], 'selected' => $this->_tpl_vars['tabGroupSelected_lang'], 'onchange' => " tabLanguageChange(this)"), $this); ?> <?php echo smarty_function_sugar_help(array('text' => $this->_tpl_vars['MOD']['LBL_TAB_GROUP_LANGUAGE_HELP']), $this); ?> </td> </tr> </table> <table><tr><td valign='top' nowrap class="edit view" style="width: auto;"> <table cellpadding="0" cellspacing="0" width="100%" id='s_field_delete'> <tr><td ><ul id='trash' class='listContainer'> <li class='nobullet' id='trashcan'><table> <tr> <td><?php echo $this->_tpl_vars['recycleImage']; ?> </td> <td><br /><?php
public function testExtraParametersAreAdded() { $string = 'my string'; $output = smarty_function_sugar_help(array('text' => $string, 'myPos' => 'foo', 'atPos' => 'bar'), $this->_smarty); $this->assertContains(",'foo','bar'", $output); }
} if ($row['id'] == $_POST['touser']) { $tousername = $row['user_name']; } } echo "{$mod_strings_users['LBL_REASS_DESC_PART2']}\n"; echo "<form action=\"index.php?module=Users&action=reassignUserRecords&execute=true\" method=post>\n"; echo "<BR>{$mod_strings_users['LBL_REASS_NOTES_TITLE']}\n"; echo "<ul>\n"; echo "<li>* {$mod_strings_users['LBL_REASS_NOTES_ONE']}\n"; echo "<li>* {$mod_strings_users['LBL_REASS_NOTES_TWO']}\n"; echo "<li>* {$mod_strings_users['LBL_REASS_NOTES_THREE']}\n"; echo "</ul>\n"; require_once 'include/Smarty/plugins/function.sugar_help.php'; $sugar_smarty = new Sugar_Smarty(); $help_img = smarty_function_sugar_help(array("text" => $mod_strings['LBL_REASS_VERBOSE_HELP']), $sugar_smarty); echo "<BR><input type=checkbox name=verbose> {$mod_strings_users['LBL_REASS_VERBOSE_OUTPUT']}" . $help_img . "<BR>\n"; unset($_SESSION['reassignRecords']['modules']); $beanListFlip = array_flip($_SESSION['reassignRecords']['assignedModuleListCache']); foreach ($_POST['modules'] as $module) { if (!array_key_exists($module, $beanListFlip)) { //echo "$module not found as key in \$beanListFlip. Skipping $module.<BR>"; continue; } $p_module = $beanListFlip[$module]; require_once $beanFiles[$module]; $object = new $module(); if (empty($object->table_name)) { // echo "<h5>Could not find the database table for $p_module.</h5>"; continue; }
<td colspan="4"><hr /></td> </tr> <tr> <?php ob_start(); ?> <?php echo $this->_tpl_vars['MOD']['LBL_LOCALE_NAME_FORMAT_DESC']; $this->_smarty_vars['capture']['SMARTY_LOCALE_NAME_FORMAT_DESC'] = ob_get_contents(); ob_end_clean(); ?> <td nowrap="nowrap" scope="row" valign="top"><?php echo $this->_tpl_vars['MOD']['LBL_LOCALE_DEFAULT_NAME_FORMAT']; ?> : <?php echo smarty_function_sugar_help(array('text' => $this->_smarty_vars['capture']['SMARTY_LOCALE_NAME_FORMAT_DESC']), $this); ?> </td> <td><slot><select id="default_locale_name_format" tabindex='14' name="default_locale_name_format" selected="<?php echo $this->_tpl_vars['default_locale_name_format']; ?> "><?php echo $this->_tpl_vars['NAMEOPTIONS']; ?> </select></slot></td> </tr> </table> </div> </td> </tr> </table>
<table id="ConfigureTabs" class="themeSettings edit view" style='margin-bottom:0px;' border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="2"> <input type='checkbox' name='user_edit_tabs' value=1 class='checkbox' <?php if (!empty($this->_tpl_vars['user_can_edit'])) { ?> CHECKED<?php } ?> > <b onclick='document.EditView.user_edit_tabs.checked= !document.EditView.user_edit_tabs.checked' style='cursor:default'><?php echo $this->_tpl_vars['MOD']['LBL_ALLOW_USER_TABS']; ?> </b> <?php echo smarty_function_sugar_help(array('text' => $this->_tpl_vars['MOD']['LBL_CONFIG_TABS_ALLOW_USERS_HIDE_TABS_HELP']), $this); ?> </td> </tr> <tr> <td width='1%'> <div id="enabled_div" class="enabled_tab_workarea"> </div> </td> <td> <div id="disabled_div" class="disabled_tab_workarea"> </div> </td> </tr> </table>
protected function setupAdvancedTabNavSettings() { global $app_list_strings; // Grouped tabs? $useGroupTabs = $this->bean->getPreference('navigation_paradigm'); if (!isset($useGroupTabs)) { if (!isset($GLOBALS['sugar_config']['default_navigation_paradigm'])) { $GLOBALS['sugar_config']['default_navigation_paradigm'] = 'gm'; } $useGroupTabs = $GLOBALS['sugar_config']['default_navigation_paradigm']; } $this->ss->assign("USE_GROUP_TABS", $useGroupTabs == 'gm' ? 'checked' : ''); $user_subpanel_tabs = $this->bean->getPreference('subpanel_tabs'); if (isset($user_subpanel_tabs)) { $this->ss->assign("SUBPANEL_TABS", $user_subpanel_tabs ? 'checked' : ''); } else { $this->ss->assign("SUBPANEL_TABS", $GLOBALS['sugar_config']['default_subpanel_tabs'] ? 'checked' : ''); } /* Module Tab Chooser */ require_once 'include/templates/TemplateGroupChooser.php'; require_once 'modules/MySettings/TabController.php'; $chooser = new TemplateGroupChooser(); $controller = new TabController(); if ($this->is_current_admin || $controller->get_users_can_edit()) { $chooser->display_hide_tabs = true; } else { $chooser->display_hide_tabs = false; } $chooser->args['id'] = 'edit_tabs'; $chooser->args['values_array'] = $controller->get_tabs($this->bean); foreach ($chooser->args['values_array'][0] as $key => $value) { $chooser->args['values_array'][0][$key] = $app_list_strings['moduleList'][$key]; } foreach ($chooser->args['values_array'][1] as $key => $value) { $chooser->args['values_array'][1][$key] = $app_list_strings['moduleList'][$key]; } foreach ($chooser->args['values_array'][2] as $key => $value) { $chooser->args['values_array'][2][$key] = $app_list_strings['moduleList'][$key]; } $chooser->args['left_name'] = 'display_tabs'; $chooser->args['right_name'] = 'hide_tabs'; $chooser->args['left_label'] = translate('LBL_DISPLAY_TABS', 'Users'); $chooser->args['right_label'] = translate('LBL_HIDE_TABS', 'Users'); require_once 'include/Smarty/plugins/function.sugar_help.php'; $chooser->args['title'] = translate('LBL_EDIT_TABS', 'Users') . smarty_function_sugar_help(array("text" => translate('LBL_CHOOSE_WHICH', 'Users')), $ss); $this->ss->assign('TAB_CHOOSER', $chooser->display()); $this->ss->assign('CHOOSER_SCRIPT', 'set_chooser();'); $this->ss->assign('CHOOSE_WHICH', translate('LBL_CHOOSE_WHICH', 'Users')); }
?> <?php echo smarty_function_sugar_help(array('text' => $this->_tpl_vars['MOD']['vCAL_HELP']), $this); ?> </td> <td > <input type='text' size='4' name='vcal_time' value='<?php echo $this->_tpl_vars['config']['vcal_time']; ?> '> </td> <td scope="row"><?php echo $this->_tpl_vars['MOD']['LBL_IMPORT_MAX_RECORDS']; ?> <?php echo smarty_function_sugar_help(array('text' => $this->_tpl_vars['MOD']['LBL_IMPORT_MAX_RECORDS_HELP']), $this); ?> </td> <td > <input type='text' size='4' name='import_max_records_total_limit' value='<?php echo $this->_tpl_vars['config']['import_max_records_total_limit']; ?> '> </td> </tr> </table>
<?php echo smarty_function_sugar_getimage(array('name' => 'edit_inline', 'ext' => ".gif", 'other_attributes' => $this->_tpl_vars['otherAttributes']), $this); ?> <?php } ?> <span id="le_paneltype_<?php echo $this->_tpl_vars['idCount']; ?> " style="float:left;"> <?php echo smarty_function_sugar_translate(array('label' => 'LBL_TABDEF_TYPE', 'module' => 'ModuleBuilder'), $this); ?> <?php echo smarty_function_sugar_help(array('text' => $this->_tpl_vars['mod']['LBL_TABDEF_TYPE_OPTION_HELP']), $this); ?> : <?php if ($this->_tpl_vars['idCounter'] == 1) { ?> <?php $this->assign('firstpanelid', $this->_tpl_vars['panelid']); ?> <?php $this->assign('firstpanelidcount', $this->_tpl_vars['idCount']); ?> <?php } ?> <select id="le_paneltype_select_<?php
<?php } } unset($_from); ?> <tr> <td align="left" colspan="4"> <input title="<?php echo $this->_tpl_vars['MOD']['LBL_ADD_ROW']; ?> " id="addrow" class="button" type="button" name="button" value=" <?php echo $this->_tpl_vars['MOD']['LBL_ADD_ROW']; ?> "> <?php echo smarty_function_sugar_help(array('text' => $this->_tpl_vars['MOD']['LBL_ADD_FIELD_HELP']), $this); ?> </td> </tr> </table> <br /> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td align="left"> <input title="<?php echo $this->_tpl_vars['MOD']['LBL_BACK']; ?>
</td> <td align="left"> <div id="disabled_div" class="disabled_tab_workarea"> </div> </td> </tr> </table> </td> </tr> </table> <div class="hr"></div> <span><strong><label for="save_map_as"><?php echo $this->_tpl_vars['MOD']['LBL_SAVE_MAPPING_AS']; ?> </label></strong> <?php echo smarty_function_sugar_help(array('text' => $this->_tpl_vars['MOD']['LBL_SAVE_MAPPING_HELP']), $this); ?> </span> <span > <input type="text" name="save_map_as" id="save_map_as" value="" style="width: 20em" maxlength="254"> </span> </div> <br /> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td align="left"> <input title="<?php echo $this->_tpl_vars['MOD']['LBL_BACK']; ?> " id="goback" class="button" type="submit" name="button" value=" <?php
</tr> </table> <?php } elseif ($this->_tpl_vars['lead_conv_activity_opt'] == 'copy' || $this->_tpl_vars['lead_conv_activity_opt'] == '') { ?> <table width="100%" border="0" cellspacing="1" cellpadding="0" class="<?php echo is_array($_tmp = @$this->_tpl_vars['def']['templateMeta']['panelClass']) ? $this->_run_mod_handler('default', true, $_tmp, 'edit view') : smarty_modifier_default($_tmp, 'edit view'); ?> " id ="lead_conv_ac_op"> <tr> <td width="15%" class="rssItemDate"> <?php echo smarty_function_sugar_translate(array('label' => 'LBL_ACTIVITIES_COPY', 'module' => 'Leads'), $this); ?> : <?php echo smarty_function_sugar_help(array('text' => $this->_tpl_vars['MOD']['LBL_ACTIVITIES_COPY_HELP']), $this); ?> </td> <td> <select id="lead_conv_ac_op_sel" name="lead_conv_ac_op_sel[]" size="5" multiple=""> <?php echo $this->_tpl_vars['convertModuleListOptions']; ?> </select> </td> </tr> </table> <?php }
<td width="30%" ><slot><input type="password" id="mail_smtppass" name="mail_smtppass" size="25" maxlength="64" value="<?php echo $this->_tpl_vars['mail_smtppass']; ?> " tabindex='1'></slot></td> <td scope="row"> </td> <td > </td> </tr> <tr> <td width="20%" scope="row"> <span id="notify_allow_default_outbound_label"> <?php echo $this->_tpl_vars['MOD']['LBL_ALLOW_DEFAULT_SELECTION']; ?> <?php echo smarty_function_sugar_help(array('text' => $this->_tpl_vars['MOD']['LBL_ALLOW_DEFAULT_SELECTION_HELP']), $this); ?> </span> </td> <td width="30%"> <slot> <input type="hidden" name="notify_allow_default_outbound" id="notify_allow_default_outbound_hidden_input" value="0"> <input id='notify_allow_default_outbound' name='notify_allow_default_outbound' value="2" tabindex='1' class="checkbox" type="checkbox" <?php echo $this->_tpl_vars['notify_allow_default_outbound_on']; ?> > </slot> </td> <td scope="row"> </td> <td > </td>
<table width="400px" > <tr> <td class="mbLBL" style="width:92px;"><?php echo smarty_function_sugar_translate(array('module' => 'DynamicFields', 'label' => 'COLUMN_TITLE_DATA_TYPE'), $this); ?> :</td> <td ><?php if (empty($this->_tpl_vars['vardef']['name']) && $this->_tpl_vars['isClone'] == 0) { ?> <?php echo smarty_function_html_options(array('name' => 'type', 'id' => 'type', 'options' => $this->_tpl_vars['field_types'], 'selected' => $this->_tpl_vars['vardef']['type'], 'onchange' => 'ModuleBuilder.moduleLoadField("", this.options[this.selectedIndex].value);'), $this); ?> <?php echo smarty_function_sugar_help(array('text' => $this->_tpl_vars['mod_strings']['LBL_POPHELP_FIELD_DATA_TYPE'], 'FIXX' => 250, 'FIXY' => 80), $this); ?> <?php } else { ?> <?php echo $this->_tpl_vars['field_types'][$this->_tpl_vars['vardef']['type']]; ?> <?php } ?> <?php if (empty($this->_tpl_vars['field_types'][$this->_tpl_vars['vardef']['type']]) && !empty($this->_tpl_vars['vardef']['type'])) { ?>
$xtpl->assign('CREATE_CASE_EMAIL_TEMPLATE_OPTIONS', get_select_options_with_id($email_templates_arr, $create_case_email_template)); if (!empty($create_case_email_template)) { $xtpl->assign("CREATE_CASE_EDIT_TEMPLATE", "visibility:inline"); } else { $xtpl->assign("CREATE_CASE_EDIT_TEMPLATE", "visibility:hidden"); } $quicksearch_js = ""; //$javascript = get_set_focus_js(). $javascript->getScript() . $quicksearch_js; $xtpl->assign('JAVASCRIPT', get_set_focus_js() . $javascript->getScript() . $quicksearch_js); require_once 'include/Smarty/plugins/function.sugar_help.php'; $tipsStrings = array('LBL_SSL_DESC', 'LBL_ASSIGN_TO_TEAM_DESC', 'LBL_ASSIGN_TO_GROUP_FOLDER_DESC', 'LBL_FROM_ADDR_DESC', 'LBL_CREATE_CASE_HELP', 'LBL_CREATE_CASE_REPLY_TEMPLATE_HELP', 'LBL_ALLOW_OUTBOUND_GROUP_USAGE_DESC', 'LBL_AUTOREPLY_HELP', 'LBL_FILTER_DOMAIN_DESC', 'LBL_MAX_AUTO_REPLIES_DESC'); $smarty = null; $tips = array(); foreach ($tipsStrings as $string) { if (!empty($mod_strings[$string])) { $tips[$string] = smarty_function_sugar_help(array('text' => $mod_strings[$string]), $smarty); } } $xtpl->assign('TIPS', $tips); // WINDOWS work arounds //if(is_windows()) { // $xtpl->assign('MAYBE', '<style> div.maybe { display:none; }</style>'); //} // PARSE AND PRINT //Overrides for bounce mailbox accounts if ($focus->mailbox_type == 'bounce') { $xtpl->assign('MODULE_TITLE', getClassicModuleTitle('InboundEmail', array($mod_strings['LBL_BOUNCE_MODULE_NAME'], $focus->name), true)); $xtpl->assign("EMAIL_OPTIONS", $mod_strings['LBL_EMAIL_BOUNCE_OPTIONS']); $xtpl->assign('MAILBOX_TYPE_STYLE', "display:none"); $xtpl->assign('AUTO_IMPORT_STYLE', "display:none"); } elseif ($focus->mailbox_type == 'createcase') {
protected function setupAdvancedTabNavSettings() { global $app_list_strings; /* Module Tab Chooser */ require_once 'include/templates/TemplateGroupChooser.php'; require_once 'modules/MySettings/TabController.php'; $chooser = new TemplateGroupChooser(); $controller = new TabController(); if ($this->is_current_admin || $controller->get_users_can_edit()) { $chooser->display_hide_tabs = true; } else { $chooser->display_hide_tabs = false; } $chooser->args['id'] = 'edit_tabs'; $chooser->args['values_array'] = $controller->get_tabs($this->bean); //Remove 'Home' module from tab configuration UI (we add it back in at top of display tabs on save) if (isset($chooser->args['values_array'][0]['Home'])) { unset($chooser->args['values_array'][0]['Home']); } if (isset($chooser->args['values_array'][1]['Home'])) { unset($chooser->args['values_array'][1]['Home']); } if (isset($chooser->args['values_array'][2]['Home'])) { unset($chooser->args['values_array'][2]['Home']); } foreach ($chooser->args['values_array'][0] as $key => $value) { $chooser->args['values_array'][0][$key] = $app_list_strings['moduleList'][$key]; } foreach ($chooser->args['values_array'][1] as $key => $value) { $chooser->args['values_array'][1][$key] = $app_list_strings['moduleList'][$key]; } foreach ($chooser->args['values_array'][2] as $key => $value) { $chooser->args['values_array'][2][$key] = $app_list_strings['moduleList'][$key]; } $chooser->args['left_name'] = 'display_tabs'; $chooser->args['right_name'] = 'hide_tabs'; $chooser->args['left_label'] = translate('LBL_DISPLAY_TABS', 'Users'); $chooser->args['right_label'] = translate('LBL_HIDE_TABS', 'Users'); require_once 'include/SugarSmarty/plugins/function.sugar_help.php'; $chooser->args['title'] = translate('LBL_EDIT_TABS', 'Users') . smarty_function_sugar_help(array("text" => translate('LBL_CHOOSE_WHICH', 'Users')), $ss); $this->ss->assign('TAB_CHOOSER', $chooser->display()); $this->ss->assign('CHOOSER_SCRIPT', 'set_chooser();'); $this->ss->assign('CHOOSE_WHICH', translate('LBL_CHOOSE_WHICH', 'Users')); }
<?php } } unset($_from); ?> <?php if (!empty($this->_tpl_vars['custom_imports']) || !empty($this->_tpl_vars['published_imports'])) { ?> <tr> <td scope="row" colspan="3"> <h3><?php echo $this->_tpl_vars['MOD']['LBL_PUBLISHED_SOURCES']; ?> <?php echo smarty_function_sugar_help(array('text' => $this->_tpl_vars['savedMappingHelpText']), $this); ?> </h3></td> </tr> <tr id="custom_import_<?php echo $this->_foreach['saved']['iteration'] - 1; ?> "> <td scope="row" colspan="4"> <input class="radio" type="radio" name="source" value=""/> <?php echo $this->_tpl_vars['MOD']['LBL_NONE']; ?> </td>
?> </slot></td> <td colspan=2><span class="calendar_publish_ok"><?php echo $this->_tpl_vars['CALENDAR_ICAL_URL']; ?> </span><span class="calendar_publish_none" style="display: none"><?php echo $this->_tpl_vars['MOD']['LBL_NO_KEY']; ?> </span></td> </tr> <tr> <td width="17%" scope="row"><slot><?php echo $this->_tpl_vars['MOD']['LBL_FDOW']; ?> :</slot> <?php echo smarty_function_sugar_help(array('text' => $this->_tpl_vars['MOD']['LBL_FDOW_TEXT']), $this); ?> </td> <td ><slot> <select tabindex='14' name='fdow'><?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['FDOWOPTIONS'], 'selected' => $this->_tpl_vars['FDOWCURRENT']), $this); ?> </select> </slot></td> </tr> </table> </div> </div> <?php if ($this->_tpl_vars['ID']) { ?>
:</slot></td> <td colspan=2><slot><?php if ($this->_tpl_vars['CALENDAR_PUBLISH_KEY']) { echo $this->_tpl_vars['CALENDAR_SEARCH_URL']; } else { echo $this->_tpl_vars['MOD']['LBL_NO_KEY']; } ?> </slot></td> </tr> <tr> <td width="15%" scope="row"><slot><?php echo is_array($_tmp = $this->_tpl_vars['MOD']['LBL_ICAL_PUB_URL']) ? $this->_run_mod_handler('strip_semicolon', true, $_tmp) : smarty_modifier_strip_semicolon($_tmp); ?> : <?php echo smarty_function_sugar_help(array('text' => $this->_tpl_vars['MOD']['LBL_ICAL_PUB_URL_HELP']), $this); ?> </slot></td> <td colspan=2><slot><?php if ($this->_tpl_vars['CALENDAR_PUBLISH_KEY']) { echo $this->_tpl_vars['CALENDAR_ICAL_URL']; } else { echo $this->_tpl_vars['MOD']['LBL_NO_KEY']; } ?> </slot></td> </tr> <tr> <td width="15%" scope="row"><slot><?php echo is_array($_tmp = $this->_tpl_vars['MOD']['LBL_FDOW']) ? $this->_run_mod_handler('strip_semicolon', true, $_tmp) : smarty_modifier_strip_semicolon($_tmp); ?>
global $current_user, $mod_strings, $ACLAllowedModules, $current_language, $app_list_strings, $app_strings, $sugar_config, $sugar_version; $params = array(); $params[] = $mod_strings['LBL_CREATE_CUSTOM_REPORT']; echo getClassicModuleTitle("Reports", $params, false); $ACLAllowedModules = getACLAllowedModules(); uksort($ACLAllowedModules, "juliansort"); $buttons = array(); require_once "modules/MySettings/TabController.php"; $controller = new TabController(); $tabs = $controller->get_user_tabs($current_user, $type = 'display'); //$ACLAllowedModulesAdded = array(); require_once 'include/SugarSmarty/plugins/function.sugar_help.php'; $sugar_smarty = new Sugar_Smarty(); $help_img = smarty_function_sugar_help(array("text" => $mod_strings['LBL_OPTIONAL_HELP']), $sugar_smarty); $chart_data_help = smarty_function_sugar_help(array("text" => $mod_strings['LBL_CHART_DATA_HELP']), $sugar_smarty); $do_round_help = smarty_function_sugar_help(array("text" => $mod_strings['LBL_DO_ROUND_HELP']), $sugar_smarty); // Add the modules in the order of the user-defined tabs. /* foreach ($tabs as $tabModuleKey=>$tabModuleKeyValue) { if (isset($ACLAllowedModules[$tabModuleKey])) { if (file_exists($image_path1."icon_".$tabModuleKey."_32.gif")) array_push($buttons, array('name'=>$app_list_strings['moduleList'][$tabModuleKey], 'img'=> SugarThemeRegistry::current()->getImageURL("icon_".$tabModuleKey."_32.gif"), 'key'=>$tabModuleKey)); else array_push($buttons, array('name'=>$app_list_strings['moduleList'][$tabModuleKey], 'img'=> SugarThemeRegistry::current()->getImageURL("icon_A1_newmod.gif"),'alt'=> $mod_strings['LBL_NO_IMAGE'], 'key'=>$tabModuleKey)); $ACLAllowedModulesAdded[$tabModuleKey] = 1; } } */ // Add the remaining modules. foreach ($ACLAllowedModules as $module => $singular) {