本文整理汇总了PHP中SugarThemeRegistry::availableThemes方法的典型用法代码示例。如果您正苦于以下问题:PHP SugarThemeRegistry::availableThemes方法的具体用法?PHP SugarThemeRegistry::availableThemes怎么用?PHP SugarThemeRegistry::availableThemes使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SugarThemeRegistry
的用法示例。
在下文中一共展示了SugarThemeRegistry::availableThemes方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: display
/**
* display the form
*/
public function display()
{
global $mod_strings, $app_strings, $current_user;
if (!is_admin($current_user)) {
sugar_die('Admin Only');
}
$this->ss->assign('enabled_modules', SugarThemeRegistry::availableThemes());
$this->ss->assign('disabled_modules', SugarThemeRegistry::unAvailableThemes());
$this->ss->assign('mod', $mod_strings);
$this->ss->assign('APP', $app_strings);
$this->ss->assign('currentTheme', SugarThemeRegistry::current());
echo get_module_title($mod_strings['LBL_MODULE_NAME'], $mod_strings['LBL_THEME_SETTINGS'], true);
echo $this->ss->fetch('modules/Administration/templates/themeSettings.tpl');
}
示例2: get_themes
/**
* Return an array of directory names.
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): ______________________________________..
*
* @deprecated use SugarThemeRegistry::availableThemes() instead.
*/
function get_themes()
{
return SugarThemeRegistry::availableThemes();
}
示例3: get_languages
if (isset($_SESSION["waiting_error"])) {
$sugar_smarty->assign('WAITING_ERROR', $_SESSION['waiting_error']);
}
if (isset($_REQUEST['ck_login_language_20'])) {
$display_language = $_REQUEST['ck_login_language_20'];
} else {
$display_language = $sugar_config['default_language'];
}
if (empty($GLOBALS['sugar_config']['passwordsetting']['forgotpasswordON'])) {
$sugar_smarty->assign('DISPLAY_FORGOT_PASSWORD_FEATURE', 'none');
}
$the_languages = get_languages();
if (count($the_languages) > 1) {
$sugar_smarty->assign('SELECT_LANGUAGE', get_select_options_with_id($the_languages, $display_language));
}
$the_themes = SugarThemeRegistry::availableThemes();
if (!empty($logindisplay)) {
$sugar_smarty->assign('LOGIN_DISPLAY', $logindisplay);
}
// RECAPTCHA
$admin = new Administration();
$admin->retrieveSettings('captcha');
$captcha_privatekey = "";
$captcha_publickey = "";
$captcha_js = "";
$Captcha = '';
// if the admin set the captcha stuff, assign javascript and div
if (isset($admin->settings['captcha_on']) && $admin->settings['captcha_on'] == '1' && !empty($admin->settings['captcha_private_key']) && !empty($admin->settings['captcha_public_key'])) {
$captcha_privatekey = $admin->settings['captcha_private_key'];
$captcha_publickey = $admin->settings['captcha_public_key'];
$captcha_js .= "<script type='text/javascript' src='" . getJSPath('cache/include/javascript/sugar_grp1_yui.js') . "'></script><script type='text/javascript' src='" . getJSPath('cache/include/javascript/sugar_grp_yui2.js') . "'></script>\n\t\t\t<script type='text/javascript' src='http://api.recaptcha.net/js/recaptcha_ajax.js'></script>\n\t\t\t<script>\n\t\t\tfunction initCaptcha(){\n\t\t\tRecaptcha.create('{$captcha_publickey}' ,'captchaImage',{theme:'custom'});\n\t\t\t}\n\t\t\twindow.onload=initCaptcha;\n\n\t\t\tvar handleFailure=handleSuccess;\n\t\t\tvar handleSuccess = function(o){\n\t\t\t\tif(o.responseText!==undefined && o.responseText =='Success'){\n\t\t\t\t\tgeneratepwd();\n\t\t\t\t\tRecaptcha.reload();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tif(o.responseText!='')\n\t\t\t\t\t\tdocument.getElementById('generate_success').innerHTML =o.responseText;\n\t\t\t\t\tRecaptcha.reload();\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar callback2 ={ success:handleSuccess, failure: handleFailure };\n\n\t\t\tfunction validateAndSubmit(){\n\t\t\t\t\tvar form = document.getElementById('form');\n\t\t\t\t\tvar url = '&to_pdf=1&module=Home&action=index&entryPoint=Changenewpassword&recaptcha_challenge_field='+Recaptcha.get_challenge()+'&recaptcha_response_field='+ Recaptcha.get_response();\n\t\t\t\t\tYAHOO.util.Connect.asyncRequest('POST','index.php',callback2,url);\n\t\t\t}</script>";
示例4: get_select_options_with_id
" onclick='toggleDisplay("more");'><IMG src="<?php
echo SugarThemeRegistry::current()->getImageURL('advanced_search.gif');
?>
" border="0" alt="Hide Options" id="more_options"> <a href='javascript:void(0)'><?php
echo $mod_strings['LBL_LOGIN_OPTIONS'];
?>
</a></div>
<div id='more' style='display: none'>
<table cellpadding="0" cellspacing="2" border="0" align="center" width="100%">
<tr>
<td scope="row" width="30%"><?php
echo $current_module_strings['LBL_THEME'];
?>
</td>
<td width="70%"><select style='width: 152px' name='login_theme'><?php
echo get_select_options_with_id(SugarThemeRegistry::availableThemes(), $display_theme);
?>
</select></td>
</tr>
<tr>
<td scope="row"><?php
echo $current_module_strings['LBL_LANGUAGE'];
?>
</td>
<td><select style='width: 152px' name='login_language'><?php
$the_languages = get_languages();
echo get_select_options_with_id($the_languages, $display_language);
?>
</select></td>
</tr>
</table>
示例5: loadDisplaySettings
/**
* Load the themes/images.
*/
function loadDisplaySettings()
{
global $theme;
// load the user's default theme
$theme = $GLOBALS['current_user']->getPreference('user_theme');
if (is_null($theme)) {
$theme = $GLOBALS['sugar_config']['default_theme'];
if (!empty($_SESSION['authenticated_user_theme'])) {
$theme = $_SESSION['authenticated_user_theme'];
} else {
if (!empty($_COOKIE['sugar_user_theme'])) {
$theme = $_COOKIE['sugar_user_theme'];
}
}
if (isset($_SESSION['authenticated_user_theme']) && $_SESSION['authenticated_user_theme'] != '') {
$_SESSION['theme_changed'] = false;
}
}
$available_themes = SugarThemeRegistry::availableThemes();
if (!isset($available_themes[$theme])) {
$theme = $GLOBALS['sugar_config']['default_theme'];
}
if (!is_null($theme) && !headers_sent()) {
setcookie('sugar_user_theme', $theme, time() + 31536000, null, null, false, true);
// expires in a year
}
SugarThemeRegistry::set($theme);
require_once 'include/utils/layout_utils.php';
$GLOBALS['image_path'] = SugarThemeRegistry::current()->getImagePath() . '/';
if (defined('TEMPLATE_URL')) {
$GLOBALS['image_path'] = TEMPLATE_URL . '/' . $GLOBALS['image_path'];
}
if (isset($GLOBALS['current_user'])) {
$GLOBALS['gridline'] = (int) ($GLOBALS['current_user']->getPreference('gridline') == 'on');
$GLOBALS['current_user']->setPreference('user_theme', $theme, 0, 'global');
}
}
示例6: testDisabledThemeNotInListOfAvailableThemes
public function testDisabledThemeNotInListOfAvailableThemes()
{
if (isset($GLOBALS['sugar_config']['disabled_themes'])) {
$disabled_themes = $GLOBALS['sugar_config']['disabled_themes'];
unset($GLOBALS['sugar_config']['disabled_themes']);
}
$GLOBALS['sugar_config']['disabled_themes'] = $this->_themeName;
$themes = SugarThemeRegistry::availableThemes();
$this->assertTrue(!isset($themes[$this->_themeName]));
$themes = SugarThemeRegistry::unAvailableThemes();
$this->assertTrue(isset($themes[$this->_themeName]));
$themes = SugarThemeRegistry::allThemes();
$this->assertTrue(isset($themes[$this->_themeName]));
if (isset($disabled_themes)) {
$GLOBALS['sugar_config']['disabled_themes'] = $disabled_themes;
}
}
示例7: get_languages
if (isset($_REQUEST['ck_login_language_20'])) {
$display_language = $_REQUEST['ck_login_language_20'];
} else {
$display_language = $sugar_config['default_language'];
}
if (isset($_REQUEST['ck_login_theme_20'])) {
$display_theme = $_REQUEST['ck_login_theme_20'];
} else {
$display_theme = $sugar_config['default_theme'];
}
if (empty($GLOBALS['sugar_config']['passwordsetting']['forgotpasswordON'])) {
$sugar_smarty->assign('DISPLAY_FORGOT_PASSWORD_FEATURE', 'none');
}
$the_languages = get_languages();
$sugar_smarty->assign('SELECT_LANGUAGE', get_select_options_with_id($the_languages, $display_language));
$sugar_smarty->assign('SELECT_THEME', get_select_options_with_id(SugarThemeRegistry::availableThemes(), $display_theme));
if (!empty($logindisplay)) {
$sugar_smarty->assign('LOGIN_DISPLAY', $logindisplay);
}
//echo get_module_title($mod_strings['LBL_MODULE_NAME'], $mod_strings['LBL_LOGIN'], false);
$sugar_smarty->assign('theme_changed', !empty($_SESSION['theme_changed']) ? 'true' : 'false');
// RECAPTCHA
$admin = new Administration();
$admin->retrieveSettings('captcha');
$captcha_privatekey = "";
$captcha_publickey = "";
$captcha_js = "";
$Captcha = '';
// if the admin set the captcha stuff, assign javascript and div
if (isset($admin->settings['captcha_on']) && $admin->settings['captcha_on'] == '1' && !empty($admin->settings['captcha_private_key']) && !empty($admin->settings['captcha_public_key'])) {
$captcha_privatekey = $admin->settings['captcha_private_key'];
示例8: setupThemeTab
protected function setupThemeTab()
{
$user_theme = $this->bean->getPreference('user_theme');
if (isset($user_theme)) {
$this->ss->assign("THEMES", get_select_options_with_id(SugarThemeRegistry::availableThemes(), $user_theme));
} else {
$this->ss->assign("THEMES", get_select_options_with_id(SugarThemeRegistry::availableThemes(), $GLOBALS['sugar_config']['default_theme']));
}
$this->ss->assign("SHOW_THEMES", count(SugarThemeRegistry::availableThemes()) > 1);
$this->ss->assign("USER_THEME_COLOR", $this->bean->getPreference('user_theme_color'));
$this->ss->assign("USER_THEME_FONT", $this->bean->getPreference('user_theme_font'));
$this->ss->assign("USER_THEME", $user_theme);
// Build a list of themes that support group modules
$this->ss->assign("DISPLAY_GROUP_TAB", 'none');
$selectedTheme = $user_theme;
if (!isset($user_theme)) {
$selectedTheme = $GLOBALS['sugar_config']['default_theme'];
}
$themeList = SugarThemeRegistry::availableThemes();
$themeGroupList = array();
foreach ($themeList as $themeId => $themeName) {
$currThemeObj = SugarThemeRegistry::get($themeId);
if (isset($currThemeObj->group_tabs) && $currThemeObj->group_tabs == 1) {
$themeGroupList[$themeId] = true;
if ($themeId == $selectedTheme) {
$this->ss->assign("DISPLAY_GROUP_TAB", '');
}
} else {
$themeGroupList[$themeId] = false;
}
}
$this->ss->assign("themeGroupListJSON", json_encode($themeGroupList));
}
示例9: unlink
unlink($GLOBALS['sugar_config']['cache_dir'] . 'modules/Contacts/EditView.tpl');
}
header('Location: index.php?module=Administration&action=index');
}
$focus->retrieveSettings();
if (!empty($_POST['restore'])) {
$configurator->restoreConfig();
}
require_once 'include/SugarLogger/SugarLogger.php';
$sugar_smarty = new Sugar_Smarty();
$sugar_smarty->assign('MOD', $mod_strings);
$sugar_smarty->assign('APP', $app_strings);
$sugar_smarty->assign('APP_LIST', $app_list_strings);
$sugar_smarty->assign('config', $configurator->config);
$sugar_smarty->assign('error', $configurator->errors);
$sugar_smarty->assign('THEMES', SugarThemeRegistry::availableThemes());
$sugar_smarty->assign('LANGUAGES', get_languages());
$sugar_smarty->assign("JAVASCRIPT", get_set_focus_js() . get_configsettings_js());
$sugar_smarty->assign('company_logo', SugarThemeRegistry::current()->getImageURL('company_logo.png'));
$sugar_smarty->assign("settings", $focus->settings);
$sugar_smarty->assign("mail_sendtype_options", get_select_options_with_id($app_list_strings['notifymail_sendtype'], $focus->settings['mail_sendtype']));
if (!empty($focus->settings['proxy_on'])) {
$sugar_smarty->assign("PROXY_CONFIG_DISPLAY", 'inline');
} else {
$sugar_smarty->assign("PROXY_CONFIG_DISPLAY", 'none');
}
if (!empty($focus->settings['proxy_auth'])) {
$sugar_smarty->assign("PROXY_AUTH_DISPLAY", 'inline');
} else {
$sugar_smarty->assign("PROXY_AUTH_DISPLAY", 'none');
}
示例10: display
/**
* @see SugarView::display()
*/
public function display()
{
global $current_user, $mod_strings, $app_strings, $app_list_strings, $sugar_config, $locale;
$configurator = new Configurator();
$sugarConfig = SugarConfig::getInstance();
$focus = new Administration();
$configurator->parseLoggerSettings();
$focus->retrieveSettings();
if (!empty($_POST['restore'])) {
$configurator->restoreConfig();
}
$this->ss->assign('MOD', $mod_strings);
$this->ss->assign('APP', $app_strings);
$this->ss->assign('APP_LIST', $app_list_strings);
$this->ss->assign('config', $configurator->config);
$this->ss->assign('error', $configurator->errors);
$this->ss->assign('THEMES', SugarThemeRegistry::availableThemes());
$this->ss->assign('LANGUAGES', get_languages());
$this->ss->assign("JAVASCRIPT", get_set_focus_js() . get_configsettings_js());
$this->ss->assign('company_logo', SugarThemeRegistry::current()->getImageURL('company_logo.png'));
$this->ss->assign("settings", $focus->settings);
$this->ss->assign("mail_sendtype_options", get_select_options_with_id($app_list_strings['notifymail_sendtype'], $focus->settings['mail_sendtype']));
if (!empty($focus->settings['proxy_on'])) {
$this->ss->assign("PROXY_CONFIG_DISPLAY", 'inline');
} else {
$this->ss->assign("PROXY_CONFIG_DISPLAY", 'none');
}
if (!empty($focus->settings['proxy_auth'])) {
$this->ss->assign("PROXY_AUTH_DISPLAY", 'inline');
} else {
$this->ss->assign("PROXY_AUTH_DISPLAY", 'none');
}
if (!empty($configurator->config['logger']['level'])) {
$this->ss->assign('log_levels', get_select_options_with_id(LoggerManager::getLoggerLevels(), $configurator->config['logger']['level']));
} else {
$this->ss->assign('log_levels', get_select_options_with_id(LoggerManager::getLoggerLevels(), ''));
}
if (!empty($configurator->config['logger']['file']['suffix'])) {
$this->ss->assign('filename_suffix', get_select_options_with_id(SugarLogger::$filename_suffix, $configurator->config['logger']['file']['suffix']));
} else {
$this->ss->assign('filename_suffix', get_select_options_with_id(SugarLogger::$filename_suffix, ''));
}
echo $this->getModuleTitle();
$this->ss->display('modules/Configurator/tpls/EditView.tpl');
$javascript = new javascript();
$javascript->setFormName("ConfigureSettings");
$javascript->addFieldGeneric("notify_fromaddress", "email", $mod_strings['LBL_NOTIFY_FROMADDRESS'], TRUE, "");
$javascript->addFieldGeneric("notify_subject", "varchar", $mod_strings['LBL_NOTIFY_SUBJECT'], TRUE, "");
$javascript->addFieldGeneric("proxy_host", "varchar", $mod_strings['LBL_PROXY_HOST'], TRUE, "");
$javascript->addFieldGeneric("proxy_port", "int", $mod_strings['LBL_PROXY_PORT'], TRUE, "");
$javascript->addFieldGeneric("proxy_password", "varchar", $mod_strings['LBL_PROXY_PASSWORD'], TRUE, "");
$javascript->addFieldGeneric("proxy_username", "varchar", $mod_strings['LBL_PROXY_USERNAME'], TRUE, "");
echo $javascript->getScript();
}
示例11: display
/**
* display the form
*/
public function display()
{
global $mod_strings, $app_strings, $current_user;
if (!is_admin($current_user)) {
sugar_die($GLOBALS['app_strings']['ERR_NOT_ADMIN']);
}
$enabled = array();
foreach (SugarThemeRegistry::availableThemes() as $dir => $theme) {
$enabled[] = array("theme" => $theme, "dir" => $dir);
}
$disabled = array();
foreach (SugarThemeRegistry::unAvailableThemes() as $dir => $theme) {
$disabled[] = array("theme" => $theme, "dir" => $dir);
}
$this->ss->assign("THEMES", get_select_options_with_id(SugarThemeRegistry::allThemes(), $GLOBALS['sugar_config']['default_theme']));
$this->ss->assign('enabled_modules', json_encode($enabled));
$this->ss->assign('disabled_modules', json_encode($disabled));
$this->ss->assign('mod', $mod_strings);
$this->ss->assign('APP', $app_strings);
$this->ss->assign('currentTheme', SugarThemeRegistry::current());
echo $this->getModuleTitle(false);
echo $this->ss->fetch('modules/Administration/templates/themeSettings.tpl');
}
示例12: get_select_options_with_id
if (isset($user_theme)) {
$sugar_smarty->assign("THEMES", get_select_options_with_id(SugarThemeRegistry::availableThemes(), $user_theme));
} else {
$sugar_smarty->assign("THEMES", get_select_options_with_id(SugarThemeRegistry::availableThemes(), $GLOBALS['sugar_config']['default_theme']));
}
$sugar_smarty->assign("SHOW_THEMES", count(SugarThemeRegistry::availableThemes()) > 1);
$sugar_smarty->assign("USER_THEME_COLOR", $focus->getPreference('user_theme_color'));
$sugar_smarty->assign("USER_THEME_FONT", $focus->getPreference('user_theme_font'));
$sugar_smarty->assign("USER_THEME", $user_theme);
// Build a list of themes that support group modules
$sugar_smarty->assign("DISPLAY_GROUP_TAB", 'none');
$selectedTheme = $user_theme;
if (!isset($user_theme)) {
$selectedTheme = $GLOBALS['sugar_config']['default_theme'];
}
$themeList = SugarThemeRegistry::availableThemes();
$themeGroupList = array();
foreach ($themeList as $themeId => $themeName) {
$currThemeObj = SugarThemeRegistry::get($themeId);
if (isset($currThemeObj->group_tabs) && $currThemeObj->group_tabs == 1) {
$themeGroupList[$themeId] = true;
if ($themeId == $selectedTheme) {
$sugar_smarty->assign("DISPLAY_GROUP_TAB", '');
}
} else {
$themeGroupList[$themeId] = false;
}
}
$sugar_smarty->assign("themeGroupListJSON", json_encode($themeGroupList));
$sugar_smarty->assign("MAIL_SENDTYPE", get_select_options_with_id($app_list_strings['notifymail_sendtype'], $focus->getPreference('mail_sendtype')));
$reminder_time = $focus->getPreference('reminder_time');
示例13: displayHeader
//.........这里部分代码省略.........
$gcls = array();
$global_control_links = array();
require "include/globalControlLinks.php";
foreach ($global_control_links as $key => $value) {
if ($key == 'users') {
//represents logout link.
$ss->assign("LOGOUT_LINK", $value['linkinfo'][key($value['linkinfo'])]);
$ss->assign("LOGOUT_LABEL", key($value['linkinfo']));
//key value for first element.
continue;
}
foreach ($value as $linkattribute => $attributevalue) {
// get the main link info
if ($linkattribute == 'linkinfo') {
$gcls[$key] = array("LABEL" => key($attributevalue), "URL" => current($attributevalue));
}
// and now the sublinks
if ($linkattribute == 'submenu' && is_array($attributevalue)) {
foreach ($attributevalue as $submenulinkkey => $submenulinkinfo) {
$gcls[$key]['SUBMENU'][$submenulinkkey] = array("LABEL" => key($submenulinkinfo), "URL" => current($submenulinkinfo));
}
}
}
}
$ss->assign("GCLS", $gcls);
if (isset($_REQUEST['query_string'])) {
$ss->assign("SEARCH", $_REQUEST['query_string']);
}
if ($this->action == "EditView" || $this->action == "Login") {
$ss->assign("ONLOAD", 'onload="set_focus()"');
}
$ss->assign("AUTHENTICATED", isset($_SESSION["authenticated_user_id"]));
if (isset($_SESSION["authenticated_user_id"])) {
$ss->assign('selectThemeOptions', get_select_options_with_id(SugarThemeRegistry::availableThemes(), SugarThemeRegistry::current()->__toString()));
// build json string of theme properties
$allThemes = array();
foreach (SugarThemeRegistry::availableThemes() as $dirName => $themeName) {
$selectedTheme = SugarThemeRegistry::get($dirName);
$allThemes[$dirName] = array('name' => $themeName, 'description' => $selectedTheme->description, 'previewImage' => $selectedTheme->getImageURL('themePreview.png'), 'colorSelect' => '', 'fontSelect' => '');
// foreach color
if (count($selectedTheme->colors) > 1) {
$startingColorName = $selectedTheme->colors[0];
if (!empty($_SESSION['authenticated_user_theme_color']) && in_array($_SESSION['authenticated_user_theme_color'], $themeObject->colors)) {
$startingColorName = $_SESSION['authenticated_user_theme_color'];
}
$startingColorIcon = $selectedTheme->getImageURL("colors.{$startingColorName}.icon.gif");
$allThemes[$dirName]['colorSelect'] = <<<EOHTML
<script type="text/javascript">
function change_color(color) {
\t\tvar callback = {
success: function(o){
\t\t\t\tSUGAR.themes.changeColor(color);
},
failure: function(o){
alert("Ajax failure");
}
}
\t\tvar postData = '&usercolor='+color;
YAHOO.util.Connect.asyncRequest('POST','index.php?module=Home&action=index', callback, postData);
}
function change_font(font) {
\tvar callback = {
success: function(o){
示例14: displayHeader
//.........这里部分代码省略.........
require "include/globalControlLinks.php";
foreach ($global_control_links as $key => $value) {
if ($key == 'users') {
//represents logout link.
$ss->assign("LOGOUT_LINK", $value['linkinfo'][key($value['linkinfo'])]);
$ss->assign("LOGOUT_LABEL", key($value['linkinfo']));
//key value for first element.
continue;
}
foreach ($value as $linkattribute => $attributevalue) {
// get the main link info
if ($linkattribute == 'linkinfo') {
$gcls[$key] = array("LABEL" => key($attributevalue), "URL" => current($attributevalue));
}
// and now the sublinks
if ($linkattribute == 'submenu' && is_array($attributevalue)) {
foreach ($attributevalue as $submenulinkkey => $submenulinkinfo) {
$gcls[$key]['SUBMENU'][$submenulinkkey] = array("LABEL" => key($submenulinkinfo), "URL" => current($submenulinkinfo));
}
}
}
}
$ss->assign("GCLS", $gcls);
if (isset($_REQUEST['query_string'])) {
$ss->assign("SEARCH", $_REQUEST['query_string']);
}
if ($this->action == "EditView" || $this->action == "Login") {
$ss->assign("ONLOAD", 'onload="set_focus()"');
}
$ss->assign("AUTHENTICATED", isset($_SESSION["authenticated_user_id"]));
// awu: moving allThemes json array out of authenticated if block for IE6 check on Login screen
// build json string of theme properties
$allThemes = array();
foreach (SugarThemeRegistry::availableThemes() as $dirName => $themeName) {
$selectedTheme = SugarThemeRegistry::get($dirName);
$allThemes[$dirName] = array('name' => $themeName, 'description' => $selectedTheme->description, 'ie6compat' => $selectedTheme->ie6compat);
}
// get other things needed for page style popup
$json = getJSONobj();
$ss->assign('allThemes', $json->encode($allThemes));
if (isset($_SESSION["authenticated_user_id"])) {
$ss->assign('currentTheme_fonts', $themeObject->fonts);
$ss->assign('currentTheme_colors', $themeObject->colors);
$ss->assign('currentTheme_groupedTabscompat', $themeObject->group_tabs);
$ss->assign('selectThemeOptions', get_select_options_with_id(SugarThemeRegistry::availableThemes(), SugarThemeRegistry::current()->__toString()));
$ss->assign('USERS_MOD', return_module_language($GLOBALS['current_language'], 'Users'));
$user_navigation_paradigm = $current_user->getPreference('navigation_paradigm');
if (isset($user_navigation_paradigm)) {
$ss->assign("NAVADIGMS", get_select_options_with_id($app_list_strings['navigation_paradigms'], $user_navigation_paradigm));
} else {
$ss->assign("NAVADIGMS", get_select_options_with_id($app_list_strings['navigation_paradigms'], $GLOBALS['sugar_config']['default_navigation_paradigm']));
}
// get the current user name and id
$ss->assign("CURRENT_USER", $current_user->first_name != '' ? $current_user->first_name : $current_user->user_name);
$ss->assign("CURRENT_USER_ID", $current_user->id);
// get the last viewed records
$tracker = new Tracker();
$history = $tracker->get_recently_viewed($current_user->id);
foreach ($history as $key => $row) {
$history[$key]['item_summary_short'] = getTrackerSubstring($row['item_summary']);
$history[$key]['image'] = SugarThemeRegistry::current()->getImage($row['module_name'], 'border="0" align="absmiddle" alt="' . $row['item_summary'] . '"');
}
$ss->assign("recentRecords", $history);
// new record
require_once "modules/" . $this->module . "/Forms.php";
if ($this->action == "index" && function_exists('get_new_record_form')) {