• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP getClassicModuleTitle函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中getClassicModuleTitle函数的典型用法代码示例。如果您正苦于以下问题:PHP getClassicModuleTitle函数的具体用法?PHP getClassicModuleTitle怎么用?PHP getClassicModuleTitle使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了getClassicModuleTitle函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: display

 /**
  * @see SugarView::display()
  */
 public function display()
 {
     global $mod_strings, $app_strings, $app_list_strings;
     $this->ss->assign("ERROR_TEXT", $app_strings['LBL_EMPTY_VCARD']);
     if (isset($_REQUEST['error'])) {
         switch ($_REQUEST['error']) {
             case 'vcardErrorFilesize':
                 $error = 'LBL_VCARD_ERROR_FILESIZE';
                 break;
             case 'vcardErrorRequired':
                 $error = 'LBL_EMPTY_REQUIRED_VCARD';
                 break;
             default:
                 $error = 'LBL_VCARD_ERROR_DEFAULT';
                 break;
         }
         $this->ss->assign("ERROR", $app_strings[$error]);
     }
     $this->ss->assign("HEADER", $app_strings['LBL_IMPORT_VCARD']);
     $this->ss->assign("MODULE", $_REQUEST['module']);
     $params = [];
     $params[] = "<a href='index.php?module={$_REQUEST['module']}&action=index'>{$mod_strings['LBL_MODULE_NAME']}</a>";
     $params[] = $app_strings['LBL_IMPORT_VCARD_BUTTON_LABEL'];
     echo getClassicModuleTitle($mod_strings['LBL_MODULE_NAME'], $params, true);
     $this->ss->display($this->getCustomFilePathIfExists('include/MVC/View/tpls/Importvcard.tpl'));
 }
开发者ID:butschster,项目名称:sugarcrm_dev,代码行数:29,代码来源:view.importvcard.php


示例2: display

 /** 
  * display the form
  */
 public function display()
 {
     global $mod_strings, $app_list_strings, $app_strings, $current_user;
     $error = "";
     if (!is_admin($current_user)) {
         sugar_die($GLOBALS['app_strings']['ERR_NOT_ADMIN']);
     }
     $fontManager = new FontManager();
     if (!$fontManager->listFontFiles()) {
         $error = implode("<br>", $fontManager->errors);
     }
     $this->ss->assign("MODULE_TITLE", getClassicModuleTitle($mod_strings['LBL_MODULE_ID'], array($mod_strings['LBL_FONTMANAGER_TITLE']), false));
     if (!empty($_REQUEST['error'])) {
         $error .= "<br>" . $_REQUEST['error'];
     }
     $this->ss->assign("error", $error);
     $this->ss->assign("MOD", $mod_strings);
     $this->ss->assign("APP", $app_strings);
     $this->ss->assign("JAVASCRIPT", $this->_getJS());
     if (isset($_REQUEST['return_action'])) {
         $this->ss->assign("RETURN_ACTION", $_REQUEST['return_action']);
     } else {
         $this->ss->assign("RETURN_ACTION", 'SugarpdfSettings');
     }
     $this->ss->assign("K_PATH_FONTS", K_PATH_FONTS);
     // YUI List
     $this->ss->assign("COLUMNDEFS", $this->getYuiColumnDefs($fontManager->fontList));
     $this->ss->assign("DATASOURCE", $this->getYuiDataSource($fontManager->fontList));
     $this->ss->assign("RESPONSESCHEMA", $this->getYuiResponseSchema());
     //display
     $this->ss->display('modules/Configurator/tpls/fontmanager.tpl');
 }
开发者ID:MexinaD,项目名称:SuiteCRM,代码行数:35,代码来源:view.fontmanager.php


示例3: display

 /**
  * @see SugarView::display()
  */
 public function display()
 {
     global $mod_strings, $app_strings, $app_list_strings;
     $this->ss->assign("ERROR_TEXT", $app_strings['LBL_EMPTY_VCARD']);
     $this->ss->assign("HEADER", $app_strings['LBL_IMPORT_VCARD']);
     $this->ss->assign("MODULE", $_REQUEST['module']);
     $params = array();
     $params[] = "<a href='index.php?module={$_REQUEST['module']}&action=index'>{$mod_strings['LBL_MODULE_NAME']}</a>";
     $params[] = $app_strings['LBL_IMPORT_VCARD_BUTTON_LABEL'];
     echo getClassicModuleTitle($mod_strings['LBL_MODULE_NAME'], $params, true);
     $this->ss->display($this->getCustomFilePathIfExists('include/MVC/View/tpls/Importvcard.tpl'));
 }
开发者ID:jgera,项目名称:sugarcrm_dev,代码行数:15,代码来源:view.importvcard.php


示例4: display

 /** 
  * @see SugarView::display()
  */
 public function display()
 {
     global $mod_strings, $app_strings;
     $admin = Administration::getSettings();
     require 'modules/Trackers/config.php';
     ///////////////////////////////////////////////////////////////////////////////
     ////	HANDLE CHANGES
     if (isset($_POST['process'])) {
         if ($_POST['process'] == 'true') {
             foreach ($tracker_config as $entry) {
                 if (isset($entry['bean'])) {
                     //If checkbox is unchecked, we add the entry into the config table; otherwise delete it
                     if (empty($_POST[$entry['name']])) {
                         $admin->saveSetting('tracker', $entry['name'], 1);
                     } else {
                         $db = DBManagerFactory::getInstance();
                         $db->query("DELETE FROM config WHERE category = 'tracker' and name = '" . $entry['name'] . "'");
                     }
                 }
             }
             //foreach
             //save the tracker prune interval
             if (!empty($_POST['tracker_prune_interval'])) {
                 $admin->saveSetting('tracker', 'prune_interval', $_POST['tracker_prune_interval']);
             }
             //save log slow queries and slow query interval
             $configurator = new Configurator();
             $configurator->saveConfig();
         }
         //if
         header('Location: index.php?module=Administration&action=index');
     }
     echo getClassicModuleTitle("Administration", array("<a href='index.php?module=Administration&action=index'>" . translate('LBL_MODULE_NAME', 'Administration') . "</a>", translate('LBL_TRACKER_SETTINGS', 'Administration')), false);
     $trackerManager = TrackerManager::getInstance();
     $disabledMonitors = $trackerManager->getDisabledMonitors();
     $trackerEntries = array();
     foreach ($tracker_config as $entry) {
         if (isset($entry['bean'])) {
             $disabled = !empty($disabledMonitors[$entry['name']]);
             $trackerEntries[$entry['name']] = array('label' => $mod_strings['LBL_' . strtoupper($entry['name']) . '_DESC'], 'helpLabel' => $mod_strings['LBL_' . strtoupper($entry['name']) . '_HELP'], 'disabled' => $disabled);
         }
     }
     $configurator = new Configurator();
     $this->ss->assign('config', $configurator->config);
     $config_strings = return_module_language($GLOBALS['current_language'], 'Configurator');
     $mod_strings['LOG_SLOW_QUERIES'] = $config_strings['LOG_SLOW_QUERIES'];
     $mod_strings['SLOW_QUERY_TIME_MSEC'] = $config_strings['SLOW_QUERY_TIME_MSEC'];
     $this->ss->assign('mod', $mod_strings);
     $this->ss->assign('app', $app_strings);
     $this->ss->assign('trackerEntries', $trackerEntries);
     $this->ss->assign('tracker_prune_interval', !empty($admin->settings['tracker_prune_interval']) ? $admin->settings['tracker_prune_interval'] : 30);
     $this->ss->display('modules/Trackers/tpls/TrackerSettings.tpl');
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:56,代码来源:view.trackersettings.php


示例5: testgetClassicModuleTitle

 public function testgetClassicModuleTitle()
 {
     //execute the method and test if it returns html and contains the values provided in parameters
     //with show_create false, generates less html
     $html1 = getClassicModuleTitle('users', array('Users Home'));
     $this->assertGreaterThan(0, strlen($html1));
     $this->assertContains('Users Home', $html1);
     //with show_create true, generates more html
     $html2 = getClassicModuleTitle('users', array('Users Home'), true);
     $this->assertGreaterThan(0, strlen($html2));
     $this->assertContains('Users Home', $html2);
     $this->assertGreaterThan(strlen($html1), strlen($html2));
 }
开发者ID:sacredwebsite,项目名称:SuiteCRM,代码行数:13,代码来源:layoutUtilsTest.php


示例6: display

 function display()
 {
     global $mod_strings, $timedate, $app_strings;
     include_once 'modules/Reports/schedule/save_schedule.php';
     $smarty = new Sugar_Smarty();
     $smarty->assign('MOD', $mod_strings);
     $smarty->assign('APP', $app_strings);
     $smarty->assign('PAGE_TITLE', getClassicModuleTitle($mod_strings['LBL_MODULE_NAME'], array($mod_strings['LBL_SCHEDULE_EMAIL']), false));
     $smarty->assign('STYLESHEET', SugarThemeRegistry::current()->getCSS());
     $smarty->assign("CALENDAR_LANG", substr($GLOBALS['current_language'], 0, 2));
     $smarty->assign("CALENDAR_DATEFORMAT", $timedate->get_cal_date_format());
     $smarty->assign("PRINT_URL", "index.php?" . $GLOBALS['request_string']);
     $smarty->assign("RECORD", $_REQUEST['id']);
     $cache_dir = !empty($GLOBALS['sugar_config']['cache_dir']) ? rtrim($GLOBALS['sugar_config']['cache_dir'], '/\\') : 'cache';
     $smarty->assign('CACHE_DIR', $cache_dir);
     $refreshPage = isset($_REQUEST['refreshPage']) ? $_REQUEST['refreshPage'] : "true";
     $smarty->assign("REFRESH_PAGE", $refreshPage);
     $time_interval_select = translate('DROPDOWN_SCHEDULE_INTERVALS', 'Reports');
     $time_format = $timedate->get_user_time_format();
     $smarty->assign("TIME_FORMAT", $time_format);
     $smarty->assign("TIMEDATE_JS", self::getJavascriptValidation());
     require_once 'modules/Reports/schedule/ReportSchedule.php';
     $rs = new ReportSchedule();
     $schedule = $rs->get_report_schedule_for_user($_REQUEST['id']);
     if ($schedule) {
         $smarty->assign('SCHEDULE_ID', $schedule['id']);
         $smarty->assign('DATE_START', $timedate->to_display_date_time($schedule['date_start'], true));
         if ($schedule['active']) {
             $smarty->assign('SCHEDULE_ACTIVE_CHECKED', 'checked');
         }
         $smarty->assign('NEXT_RUN', $timedate->to_display_date_time($schedule['next_run']));
         $smarty->assign('TIME_INTERVAL_SELECT', get_select_options_with_id($time_interval_select, $schedule['time_interval']));
         $smarty->assign('SCHEDULE_TYPE', $schedule['schedule_type']);
     } else {
         $smarty->assign('NEXT_RUN', $mod_strings['LBL_NONE']);
         $smarty->assign('TIME_INTERVAL_SELECT', get_select_options_with_id($time_interval_select, ''));
         if (isset($_REQUEST['schedule_type']) && $_REQUEST['schedule_type'] != "") {
             $smarty->assign('SCHEDULE_TYPE', $_REQUEST['schedule_type']);
         }
     }
     $smarty->assign('CURRENT_LANGUAGE', $GLOBALS['current_language']);
     $smarty->assign('JS_VERSION', $GLOBALS['js_version_key']);
     $smarty->assign('JS_CUSTOM_VERSION', $GLOBALS['sugar_config']['js_custom_version']);
     $smarty->assign('JS_LANGUAGE_VERSION', $GLOBALS['sugar_config']['js_lang_version']);
     //$this->_displayJavascript();
     $html = $smarty->fetch('modules/Reports/tpls/AddSchedule.tpl');
     echo $html;
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:48,代码来源:view.schedule.php


示例7: display

 /**
  * display the form
  */
 public function display()
 {
     global $mod_strings, $app_list_strings, $app_strings, $current_user;
     if (!is_admin($current_user)) {
         sugar_die($GLOBALS['app_strings']['ERR_NOT_ADMIN']);
     }
     $error = $this->addFont();
     $this->ss->assign("MODULE_TITLE", getClassicModuleTitle($mod_strings['LBL_MODULE_ID'], array($mod_strings['LBL_ADDFONTRESULT_TITLE']), false));
     if ($error) {
         $this->ss->assign("error", $this->log);
     } else {
         $this->ss->assign("info", $this->log);
     }
     $this->ss->assign("MOD", $mod_strings);
     $this->ss->assign("APP", $app_strings);
     //display
     $this->ss->display('modules/Configurator/tpls/addFontResult.tpl');
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:21,代码来源:view.addfontresult.php


示例8: display

 /**
  * @see SugarView::display()
  */
 public function display()
 {
     require_once "include/JSON.php";
     $json = new JSON();
     global $mod_strings;
     $title = getClassicModuleTitle("Administration", array("<a href='index.php?module=Administration&action=index'>{$mod_strings['LBL_MODULE_NAME']}</a>", translate('LBL_CONFIGURE_SHORTCUT_BAR')), false);
     $msg = "";
     $GLOBALS['log']->info("Administration ConfigureShortcutBar view");
     $quickCreateModules = $this->getQuickCreateModules();
     //If save is set, save then let the user know if the save worked.
     if (!empty($_REQUEST['enabled_modules'])) {
         $toDecode = html_entity_decode($_REQUEST['enabled_modules'], ENT_QUOTES);
         // get the enabled
         $enabledModules = array_flip(json_decode($toDecode));
         $successful = $this->saveChangesToQuickCreateMetadata($quickCreateModules['enabled'], $quickCreateModules['disabled'], $enabledModules);
         if ($successful) {
             MetaDataManager::refreshSectionCache(array(MetaDataManager::MM_MODULES));
             echo "true";
         } else {
             echo translate("LBL_SAVE_FAILED");
         }
     } else {
         $enabled = $this->sortEnabledModules($quickCreateModules['enabled']);
         $enabled = $this->filterAndFormatModuleList($enabled);
         ksort($quickCreateModules['disabled']);
         $disabled = $this->filterAndFormatModuleList($quickCreateModules['disabled']);
         $this->ss->assign('APP', $GLOBALS['app_strings']);
         $this->ss->assign('MOD', $GLOBALS['mod_strings']);
         $this->ss->assign('title', $title);
         $this->ss->assign('enabled_modules', $json->encode($enabled));
         $this->ss->assign('disabled_modules', $json->encode($disabled));
         $this->ss->assign('description', translate("LBL_CONFIGURE_SHORTCUT_BAR"));
         $this->ss->assign('msg', $msg);
         $returnModule = !empty($_REQUEST['return_module']) ? $_REQUEST['return_module'] : 'Administration';
         $returnAction = !empty($_REQUEST['return_action']) ? $_REQUEST['return_action'] : 'index';
         $this->ss->assign('RETURN_MODULE', $returnModule);
         $this->ss->assign('RETURN_ACTION', $returnAction);
         echo $this->ss->fetch('modules/Administration/templates/ShortcutBar.tpl');
     }
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:43,代码来源:view.configureshortcutbar.php


示例9: display

 /** 
  * display the form
  */
 public function display()
 {
     global $mod_strings, $app_list_strings, $app_strings, $current_user;
     if (!is_admin($current_user)) {
         sugar_die($GLOBALS['app_strings']['ERR_NOT_ADMIN']);
     }
     $this->ss->assign("MODULE_TITLE", getClassicModuleTitle($mod_strings['LBL_MODULE_ID'], array($mod_strings['LBL_ADDFONT_TITLE']), true));
     if (!empty($_REQUEST['error'])) {
         $this->ss->assign("error", $_REQUEST['error']);
     }
     $this->ss->assign("MOD", $mod_strings);
     $this->ss->assign("APP", $app_strings);
     if (isset($_REQUEST['return_action'])) {
         $this->ss->assign("RETURN_ACTION", $_REQUEST['return_action']);
     } else {
         $this->ss->assign("RETURN_ACTION", 'FontManager');
     }
     $this->ss->assign("STYLE_LIST", array("regular" => $mod_strings["LBL_FONT_REGULAR"], "italic" => $mod_strings["LBL_FONT_ITALIC"], "bold" => $mod_strings["LBL_FONT_BOLD"], "boldItalic" => $mod_strings["LBL_FONT_BOLDITALIC"]));
     $this->ss->assign("ENCODING_TABLE", array_combine(explode(",", PDF_ENCODING_TABLE_LIST), explode(",", PDF_ENCODING_TABLE_LABEL_LIST)));
     //display
     $this->ss->display('modules/Configurator/tpls/addFontView.tpl');
 }
开发者ID:sacredwebsite,项目名称:SuiteCRM,代码行数:25,代码来源:view.addfontview.php


示例10: cleanAllBeans

function cleanAllBeans()
{
}
////	END UTILITIES
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
////	PAGE OUTPUT
if (isset($runSilent) && $runSilent == true) {
    // if called from Scheduler
    cleanAllBeans();
} else {
    $hide = array('Activities', 'Home', 'iFrames', 'Calendar', 'Dashboard');
    sort($moduleList);
    $options = array();
    $options[] = $app_strings['LBL_NONE'];
    $options['all'] = "--{$app_strings['LBL_TABGROUP_ALL']}--";
    foreach ($moduleList as $module) {
        if (!in_array($module, $hide)) {
            $options[$module] = $module;
        }
    }
    $options = get_select_options_with_id($options, '');
    $beanDropDown = "<select onchange='SUGAR.Administration.RepairXSS.refreshEstimate(this);' id='repairXssDropdown'>{$options}</select>";
    echo getClassicModuleTitle('Administration', array($mod_strings['LBL_REPAIRXSS_TITLE']), false);
    echo "<script>var done = '{$mod_strings['LBL_DONE']}';</script>";
    $smarty = new Sugar_Smarty();
    $smarty->assign("mod", $mod_strings);
    $smarty->assign("beanDropDown", $beanDropDown);
    $smarty->display("modules/Administration/templates/RepairXSS.tpl");
}
// end else
开发者ID:omusico,项目名称:sugar_work,代码行数:31,代码来源:RepairXSS.php


示例11: getClassicModuleTitle

 * of this program must display Appropriate Legal Notices, as required under
 * Section 5 of the GNU Affero General Public License version 3.
 *
 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
 * these Appropriate Legal Notices must retain the display of the "Powered by
 * SugarCRM" logo and "Supercharged by SuiteCRM" logo. If the display of the logos is not
 * reasonably feasible for  technical reasons, the Appropriate Legal Notices must
 * display the words  "Powered by SugarCRM" and "Supercharged by SuiteCRM".
 ********************************************************************************/
global $app_strings;
global $app_list_strings;
global $mod_strings;
global $theme;
global $currentModule;
global $gridline;
echo getClassicModuleTitle('Customize Fields', array('Customize Fields'), false);
?>
<table cellspacing="<?php 
echo $gridline;
?>
" class="other view">
<tr>
<td>
<form>
Module Name:
<select>
<?php 
foreach ($moduleList as $module) {
    echo "<option>{$module}</option>";
}
?>
开发者ID:MexinaD,项目名称:SuiteCRM,代码行数:31,代码来源:CustomizeFields.php


示例12: display

 /**
  * @see SugarView::display()
  */
 public function display()
 {
     global $mod_strings, $app_strings, $app_list_strings;
     require_once "modules/Configurator/metadata/SugarpdfSettingsdefs.php";
     if (file_exists('custom/modules/Configurator/metadata/SugarpdfSettingsdefs.php')) {
         require_once 'custom/modules/Configurator/metadata/SugarpdfSettingsdefs.php';
     }
     if (!empty($_POST['save'])) {
         // Save the logos
         $error = $this->checkUploadImage();
         if (empty($error)) {
             $focus = new Administration();
             foreach ($SugarpdfSettings as $k => $v) {
                 if ($v['type'] == 'password') {
                     if (isset($_POST[$k])) {
                         $_POST[$k] = blowfishEncode(blowfishGetKey($k), $_POST[$k]);
                     }
                 }
             }
             if (!empty($_POST["sugarpdf_pdf_class"]) && $_POST["sugarpdf_pdf_class"] != PDF_CLASS) {
                 // clear the cache for quotes detailview in order to switch the pdf class.
                 if (is_file($cachedfile = sugar_cached('modules/Quotes/DetailView.tpl'))) {
                     unlink($cachedfile);
                 }
             }
             $focus->saveConfig();
             header('Location: index.php?module=Administration&action=index');
         }
     }
     if (!empty($_POST['restore'])) {
         $focus = new Administration();
         foreach ($_POST as $key => $val) {
             $prefix = $focus->get_config_prefix($key);
             if (in_array($prefix[0], $focus->config_categories)) {
                 $result = $focus->db->query("SELECT count(*) AS the_count FROM config WHERE category = '{$prefix[0]}' AND name = '{$prefix[1]}'");
                 $row = $focus->db->fetchByAssoc($result);
                 if ($row['the_count'] != 0) {
                     $focus->db->query("DELETE FROM config WHERE category = '{$prefix[0]}' AND name = '{$prefix[1]}'");
                 }
             }
         }
         header('Location: index.php?module=Configurator&action=SugarpdfSettings');
     }
     echo getClassicModuleTitle("Administration", array("<a href='index.php?module=Administration&action=index'>" . translate('LBL_MODULE_NAME', 'Administration') . "</a>", $mod_strings['LBL_PDFMODULE_NAME']), false);
     $pdf_class = array("TCPDF" => "TCPDF", "EZPDF" => "EZPDF");
     $this->ss->assign('APP_LIST', $app_list_strings);
     $this->ss->assign("JAVASCRIPT", get_set_focus_js());
     $this->ss->assign("SugarpdfSettings", $SugarpdfSettings);
     $this->ss->assign("pdf_enable_ezpdf", PDF_ENABLE_EZPDF);
     if (PDF_ENABLE_EZPDF == "0" && PDF_CLASS == "EZPDF") {
         $error = "ERR_EZPDF_DISABLE";
         $this->ss->assign("selected_pdf_class", "TCPDF");
     } else {
         $this->ss->assign("selected_pdf_class", PDF_CLASS);
     }
     $this->ss->assign("pdf_class", $pdf_class);
     if (!empty($error)) {
         $this->ss->assign("error", $mod_strings[$error]);
     }
     if (!function_exists('imagecreatefrompng')) {
         $this->ss->assign("GD_WARNING", 1);
     } else {
         $this->ss->assign("GD_WARNING", 0);
     }
     $this->ss->display('modules/Configurator/tpls/SugarpdfSettings.tpl');
     require_once "include/javascript/javascript.php";
     $javascript = new javascript();
     $javascript->setFormName("ConfigureSugarpdfSettings");
     foreach ($SugarpdfSettings as $k => $v) {
         if (isset($v["required"]) && $v["required"] == true) {
             $javascript->addFieldGeneric($k, "varchar", $v['label'], TRUE, "");
         }
     }
     echo $javascript->getScript();
 }
开发者ID:omusico,项目名称:sugar_work,代码行数:78,代码来源:view.sugarpdfsettings.php


示例13: Group

require_once 'include/DetailView/DetailView.php';
global $theme;
global $mod_strings;
/* start standard DetailView layout process */
$GLOBALS['log']->info("Groups DetailView");
$focus = new Group();
$focus->retrieve($_REQUEST['record']);
$detailView = new DetailView();
$offset = 0;
if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) {
    $result = $detailView->processSugarBean("Group", $focus, $offset);
    if ($result == null) {
        sugar_die($app_strings['ERROR_NO_RECORD']);
    }
    $focus = $result;
} else {
    header("Location: index.php?module=Groups&action=index");
}
echo getClassicModuleTitle($mod_strings['LBL_MODULE_NAME'], array($mod_strings['LBL_MODULE_NAME'], $focus->user_name), true);
/* end standard DetailView layout process */
$xtpl = new XTemplate('modules/Groups/DetailView.html');
$xtpl->assign('MOD', $mod_strings);
$xtpl->assign('APP', $app_strings);
$xtpl->assign("CREATED_BY", $focus->created_by_name);
$xtpl->assign("MODIFIED_BY", $focus->modified_by_name);
$xtpl->assign("GRIDLINE", $gridline);
$xtpl->assign("PRINT_URL", "index.php?" . $GLOBALS['request_string']);
$xtpl->assign("ID", $focus->id);
$xtpl->assign('USER_NAME', $focus->user_name);
$xtpl->parse('main');
$xtpl->out('main');
开发者ID:MexinaD,项目名称:SuiteCRM,代码行数:31,代码来源:DetailView.php


示例14: return_module_language

 * SugarCRM" logo. If the display of the logo is not reasonably feasible for
 * technical reasons, the Appropriate Legal Notices must display the words
 * "Powered by SugarCRM".
 ********************************************************************************/
$style = 'embeded';
if (isset($_REQUEST['style'])) {
    $style = $_REQUEST['style'];
}
if (isset($_REQUEST['module_name'])) {
    $the_strings = return_module_language($current_language, $_REQUEST['module_name']);
    global $app_strings;
    global $app_list_strings;
    global $mod_strings;
    global $current_user;
    echo SugarThemeRegistry::current()->getCSS();
    echo getClassicModuleTitle($mod_strings['LBL_MODULE_NAME'], array($mod_strings['LBL_MODULE_NAME'], $_REQUEST['module_name']), true);
    $xtpl = new XTemplate('modules/LabelEditor/EditView.html');
    $xtpl->assign("MOD", $mod_strings);
    $xtpl->assign("APP", $app_strings);
    $xtpl->assign("MODULE_NAME", $_REQUEST['module_name']);
    $xtpl->assign("STYLE", $style);
    if (isset($_REQUEST['sugar_body_only'])) {
        $xtpl->assign("SUGAR_BODY_ONLY", $_REQUEST['sugar_body_only']);
    }
    if (isset($_REQUEST['record'])) {
        $xtpl->assign("NO_EDIT", "readonly");
        $xtpl->assign("KEY", $_REQUEST['record']);
        if (isset($the_strings[$_REQUEST['record']])) {
            $xtpl->assign("VALUE", $the_strings[$_REQUEST['record']]);
        } else {
            if (isset($_REQUEST['value'])) {
开发者ID:omusico,项目名称:sugar_work,代码行数:31,代码来源:EditView.php


示例15: insert_popup_header

    $focus->parent_type = $app_list_strings['record_type_default_key'];
}
if (isset($_REQUEST['filename']) && $_REQUEST['isDuplicate'] != 'true') {
    $focus->filename = $_REQUEST['filename'];
}
if ($has_campaign || $inboundEmail) {
    insert_popup_header($theme);
}
$params = array();
if (empty($focus->id)) {
    $params[] = $GLOBALS['app_strings']['LBL_CREATE_BUTTON_LABEL'];
} else {
    $params[] = "<a href='index.php?module={$focus->module_dir}&action=DetailView&record={$focus->id}'>{$focus->name}</a>";
    $params[] = $GLOBALS['app_strings']['LBL_EDIT_BUTTON_LABEL'];
}
echo getClassicModuleTitle($focus->module_dir, $params, true);
$GLOBALS['log']->info("EmailTemplate detail view");
if ($has_campaign || $inboundEmail) {
    $xtpl = new XTemplate('modules/EmailTemplates/EditView.html');
} else {
    $xtpl = new XTemplate('modules/EmailTemplates/EditViewMain.html');
}
// else
$xtpl->assign("MOD", $mod_strings);
$xtpl->assign("APP", $app_strings);
$xtpl->assign("LBL_ACCOUNT", $app_list_strings['moduleList']['Accounts']);
$xtpl->parse("main.variable_option");
$returnAction = 'index';
if (isset($_REQUEST['return_module'])) {
    $xtpl->assign("RETURN_MODULE", $_REQUEST['return_module']);
}
开发者ID:sysraj86,项目名称:carnivalcrm,代码行数:31,代码来源:EditView.php


示例16: display

    /**
     * @see SugarView::display()
     */
    public function display()
    {
        require_once 'include/utils/zip_utils.php';
        $form_action = "index.php?module=Administration&action=Backups";
        $backup_dir = "";
        $backup_zip = "";
        $run = "confirm";
        $input_disabled = "";
        global $mod_strings;
        $errors = array();
        // process "run" commands
        if (isset($_REQUEST['run']) && $_REQUEST['run'] != "") {
            $run = $_REQUEST['run'];
            $backup_dir = $_REQUEST['backup_dir'];
            $backup_zip = $_REQUEST['backup_zip'];
            if ($run == "confirm") {
                if ($backup_dir == "") {
                    $errors[] = $mod_strings['LBL_BACKUP_DIRECTORY_ERROR'];
                }
                if ($backup_zip == "") {
                    $errors[] = $mod_strings['LBL_BACKUP_FILENAME_ERROR'];
                }
                if (sizeof($errors) > 0) {
                    return $errors;
                }
                if (!is_dir($backup_dir)) {
                    if (!mkdir_recursive($backup_dir)) {
                        $errors[] = $mod_strings['LBL_BACKUP_DIRECTORY_EXISTS'];
                    }
                }
                if (!is_writable($backup_dir)) {
                    $errors[] = $mod_strings['LBL_BACKUP_DIRECTORY_NOT_WRITABLE'];
                }
                if (is_file("{$backup_dir}/{$backup_zip}")) {
                    $errors[] = $mod_strings['LBL_BACKUP_FILE_EXISTS'];
                }
                if (is_dir("{$backup_dir}/{$backup_zip}")) {
                    $errors[] = $mod_strings['LBL_BACKUP_FILE_AS_SUB'];
                }
                if (sizeof($errors) == 0) {
                    $run = "confirmed";
                    $input_disabled = "readonly";
                }
            } else {
                if ($run == "confirmed") {
                    ini_set("memory_limit", "-1");
                    ini_set("max_execution_time", "0");
                    zip_dir(".", "{$backup_dir}/{$backup_zip}");
                    $run = "done";
                }
            }
        }
        if (sizeof($errors) > 0) {
            foreach ($errors as $error) {
                print "<font color=\"red\">{$error}</font><br>";
            }
        }
        if ($run == "done") {
            $size = filesize("{$backup_dir}/{$backup_zip}");
            print $mod_strings['LBL_BACKUP_FILE_STORED'] . " {$backup_dir}/{$backup_zip} ({$size} bytes).<br>\n";
            print "<a href=\"index.php?module=Administration&action=index\">" . $mod_strings['LBL_BACKUP_BACK_HOME'] . "</a>\n";
        } else {
            ?>
        
            <?php 
            echo getClassicModuleTitle("Administration", array("<a href='index.php?module=Administration&action=index'>" . translate('LBL_MODULE_NAME', 'Administration') . "</a>", $mod_strings['LBL_BACKUPS_TITLE']), false);
            echo $mod_strings['LBL_BACKUP_INSTRUCTIONS_1'];
            ?>
            <br>
            <?php 
            echo $mod_strings['LBL_BACKUP_INSTRUCTIONS_2'];
            ?>
<br>
            <form action="<?php 
            print $form_action;
            ?>
" method="post">
            <table>
            <tr>
                <td><?php 
            echo $mod_strings['LBL_BACKUP_DIRECTORY'];
            ?>
<br><i><?php 
            echo $mod_strings['LBL_BACKUP_DIRECTORY_WRITABLE'];
            ?>
</i></td>
                <td><input size="100" type="input" name="backup_dir" <?php 
            print $input_disabled;
            ?>
 value="<?php 
            print $backup_dir;
            ?>
"/></td>
            </tr>
            <tr>
                <td><?php 
            echo $mod_strings['LBL_BACKUP_FILENAME'];
//.........这里部分代码省略.........
开发者ID:sysraj86,项目名称:carnivalcrm,代码行数:101,代码来源:view.backups.php


示例17: elseif

         //echo html_entity_decode($_POST['sql']);
         echo $sql;
     } elseif (isset($_POST['raction']) && strtolower($_POST['raction']) == "execute") {
         $sql = str_replace(array("\n", '&#039;'), array('', "'"), preg_replace('#(/\\*.+?\\*/\\n*)#', '', $_POST['sql']));
         foreach (explode(";", $sql) as $stmt) {
             $stmt = trim($stmt);
             if (!empty($stmt)) {
                 $db->query($stmt, true, 'Executing repair query: ');
             }
         }
         echo "<h3>{$mod_strings['LBL_REPAIR_DATABASE_SYNCED']}</h3>";
     }
 } else {
     if (!$export && empty($_REQUEST['repair_silent'])) {
         if (empty($hideModuleMenu)) {
             echo getClassicModuleTitle($mod_strings['LBL_REPAIR_DATABASE'], array($mod_strings['LBL_REPAIR_DATABASE']), true);
         }
         echo "<h1 id=\"rdloading\">{$mod_strings['LBL_REPAIR_DATABASE_PROCESSING']}</h1>";
         ob_flush();
     }
     $sql = '';
     VardefManager::clearVardef();
     $repairedTables = array();
     foreach ($beanFiles as $bean => $file) {
         if (file_exists($file)) {
             require_once $file;
             unset($GLOBALS['dictionary'][$bean]);
             $focus = BeanFactory::newBeanByName($bean);
             if ($focus instanceof SugarBean && !isset($repairedTables[$focus->table_name])) {
                 $sql .= $db->repairTable($focus, $execute);
                 $repairedTables[$focus->table_name] = true;
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:31,代码来源:repairDatabase.php


示例18: sugar_die

        sugar_die($app_strings['ERROR_NO_RECORD']);
    }
}
if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') {
    Log::debug("isDuplicate found - duplicating record of id: " . $focus->id);
    $focus->id = "";
}
$params = array();
$params[] = "<a href='index.php?module=Schedulers&action=index'>{$mod_strings['LBL_MODULE_TITLE']}</a>";
if (empty($focus->id)) {
    $params[] = $GLOBALS['app_strings']['LBL_CREATE_BUTTON_LABEL'];
} else {
    $params[] = "<a href='index.php?module=Schedulers&action=DetailView&record={$focus->id}'>{$focus->name}</a>";
    $params[] = $GLOBALS['app_strings']['LBL_EDIT_BUTTON_LABEL'];
}
echo getClassicModuleTitle("Schedulers", $params, true);
Log::info("Scheduler Edit View");
/* End standard EditView setup logic */
// javascript calls
$javascript = new javascript();
$javascript->setSugarBean($focus);
$javascript->setFormName('EditView');
$javascript->addAllFields('');
$javascript->addFieldGeneric('mins', 'alpha', 'Mins', true, $prefix = '');
$javascript->addFieldGeneric('day_of_month', 'alpha', 'Days of Month', true, $prefix = '');
$javascript->addFieldGeneric('months', 'alpha', 'Months', true, $prefix = '');
$javascript->addFieldGeneric('day_of_week', 'alpha', 'Days of Week', true, $prefix = '');
$javascript->addFieldGeneric('date_start', 'date', 'Start Date', true, $prefix = '');
//$javascript->addFieldDateBeforeAllowBlank('date_start', 'date', 'Date End', 'false', $prefix='', 'date_end', 'true'); // cn: disabled because it does not handle user-pref date format
$javascript->addToValidateBinaryDependency('time_hour_from', 'alpha', 'Active From (hr) must be set with Active To (hr) ', 'false', $prefix = '', 'time_hour_to');
$javascript->addToValidateBinaryDependency('time_minute_from', 'alpha', 'Active From (min) must be set with Active To (min) ', 'false', $prefix = '', 'time_minute_to');
开发者ID:butschster,项目名称:sugarcrm_dev,代码行数:31,代码来源:EditView.php


示例19: prepareDiag

function prepareDiag()
{
    global $getDumpsFrom;
    global $cacheDir;
    global $curdatetime;
    global $progress_bar_percent;
    global $skip_md5_diff;
    global $sod_guid;
    global $mod_strings;
    echo getClassicModuleTitle("Administration", array("<a href='index.php?module=Administration&action=index'>{$mod_strings['LBL_MODULE_NAME']}</a>", translate('LBL_DIAGNOSTIC_TITLE')), false);
    echo "<BR>";
    echo $mod_strings['LBL_DIAGNOSTIC_EXECUTING'];
    echo "<BR>";
    //determine if files.md5 exists or not
    if (file_exists('files.md5')) {
        $skip_md5_diff = false;
    } else {
        $skip_md5_diff = true;
    }
    // array of all tables that we need to pull rows from below
    $getDumpsFrom = array('config' => 'config', 'fields_meta_data' => 'fields_meta_data', 'upgrade_history' => 'upgrade_history', 'versions' => 'versions');
    //Creates the diagnostic directory in the cache directory
    $cacheDir = create_cache_directory("diagnostic/");
    $cacheDir = create_cache_directory("diagnostic/" . $sod_guid);
    $cacheDir = create_cache_directory("diagnostic/" . $sod_guid . "/diagnostic" . $curdatetime . "/");
    display_progress_bar("diagnostic", $progress_bar_percent, 100);
    ob_flush();
}
开发者ID:sysraj86,项目名称:carnivalcrm,代码行数:28,代码来源:DiagnosticRun.php


示例20: foreach

    if (!$GLOBALS['current_user']->isAdminForModule('Users')) {
        $tabs = $focus->getPreference('display_tabs');
        global $modInvisList;
        if (!empty($tabs)) {
            foreach ($categories as $key => $value) {
                if (!in_array($key, $tabs) && !in_array($key, $modInvisList)) {
                    unset($categories[$key]);
                }
            }
        }
    }
    $names = array();
    $names = ACLAction::setupCategoriesMatrix($categories);
    if (!empty($names)) {
        $tdwidth = 100 / sizeof($names);
    }
    $sugar_smarty->assign('APP', $app_list_strings);
    $sugar_smarty->assign('CATEGORIES', $categories);
    $sugar_smarty->assign('TDWIDTH', $tdwidth);
    $sugar_smarty->assign('ACTION_NAMES', $names);
    $title = getClassicModuleTitle 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP getClient函数代码示例发布时间:2022-05-15
下一篇:
PHP getClassProperties函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap