本文整理汇总了PHP中Vtiger_Theme类的典型用法代码示例。如果您正苦于以下问题:PHP Vtiger_Theme类的具体用法?PHP Vtiger_Theme怎么用?PHP Vtiger_Theme使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Vtiger_Theme类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: getDisplayValue
/**
* Function to get the Display Value, for the current field type with given DB Insert Value
* @param <Object> $value
* @return <Object>
*/
public function getDisplayValue($value)
{
$allSkins = Vtiger_Theme::getAllSkins();
$skinColor = $allSkins[$value];
$value = ucfirst($value);
return "<div class='span4' style='width:230px; background-color:{$skinColor};' title='{$value}'> </div>";
}
开发者ID:xrstf,项目名称:vtiger-mirror,代码行数:12,代码来源:Theme.php
示例2: getDisplayValue
/**
* Function to get the Display Value, for the current field type with given DB Insert Value
* @param <Object> $value
* @return <Object>
*/
public function getDisplayValue($value, $record = false, $recordInstance = false, $rawText = false)
{
$allSkins = Vtiger_Theme::getAllSkins();
$skinColor = $allSkins[$value];
$value = ucfirst($value);
return "<div class='col-md-4' style='width:230px; background-color:{$skinColor};' title='{$value}'> </div>";
}
开发者ID:Bergdahls,项目名称:YetiForceCRM,代码行数:12,代码来源:Theme.php
示例3: getSettingLinks
public function getSettingLinks()
{
$settingsLinks = parent::getSettingLinks();
$layoutEditorImagePath = Vtiger_Theme::getImagePath('LayoutEditor.gif');
$db = PearDatabase::getInstance();
$result = $db->query("SELECT fieldid FROM vtiger_settings_field WHERE name = 'OSSMailView' AND description = 'OSSMailView'", true);
$settingsLinks[] = array('linktype' => 'LISTVIEWSETTING', 'linklabel' => 'Konfiguracja modułu', 'linkurl' => 'index.php?module=OSSMailView&parent=Settings&view=index&block=4&fieldid=' . $db->query_result($result, 0, 'fieldid'), 'linkicon' => $layoutEditorImagePath);
return $settingsLinks;
}
开发者ID:rcrrich,项目名称:UpdatePackages,代码行数:9,代码来源:Module.php
示例4: getDisplayValue
/**
* Function to get the Display Value, for the current field type with given DB Insert Value
* @param <Object> $value
* @return <Object>
*/
public function getDisplayValue($value)
{
global $log;
$log->debug("Entering ./uitypes/Theme.php::getDisplayValue");
$allSkins = Vtiger_Theme::getAllSkins();
$skinColor = $allSkins[$value];
$value = ucfirst($value);
return "<div class='span4' style='width:230px; background-color:{$skinColor};' title='{$value}'> </div>";
}
开发者ID:cin-system,项目名称:cinrepo,代码行数:14,代码来源:Theme.php
示例5: getSettingLinks
public function getSettingLinks()
{
vimport('~~modules/com_vtiger_workflow/VTWorkflowUtils.php');
$layoutEditorImagePath = Vtiger_Theme::getImagePath('LayoutEditor.gif');
$settingsLinks = array();
$db = PearDatabase::getInstance();
$result = $db->query("SELECT fieldid FROM vtiger_settings_field WHERE name = 'OSSMail' AND description = 'OSSMail'", true);
$settingsLinks[] = array('linktype' => 'LISTVIEWSETTING', 'linklabel' => 'LBL_MODULE_CONFIGURATION', 'linkurl' => 'index.php?module=OSSMail&parent=Settings&view=index&block=4&fieldid=' . $db->query_result($result, 0, 'fieldid'), 'linkicon' => $layoutEditorImagePath);
return $settingsLinks;
}
开发者ID:rcrrich,项目名称:UpdatePackages,代码行数:10,代码来源:Module.php
示例6: getSettingLinks
/**
* Function to get Settings links
* @return <Array>
*/
public function getSettingLinks()
{
vimport('~~modules/com_vtiger_workflow/VTWorkflowUtils.php');
$editWorkflowsImagePath = Vtiger_Theme::getImagePath('EditWorkflows.png');
$settingsLinks = array();
if (VTWorkflowUtils::checkModuleWorkflow($this->getName())) {
$settingsLinks[] = array('linktype' => 'LISTVIEWSETTING', 'linklabel' => 'LBL_EDIT_WORKFLOWS', 'linkurl' => 'index.php?parent=Settings&module=Workflows&view=List&sourceModule=' . $this->getName(), 'linkicon' => $editWorkflowsImagePath);
}
return $settingsLinks;
}
开发者ID:nikdejan,项目名称:YetiForceCRM,代码行数:14,代码来源:Module.php
示例7: preProcess
public function preProcess(Vtiger_Request $request, $display = true)
{
if ($this->checkPermission($request)) {
$currentUser = Users_Record_Model::getCurrentUserModel();
$recordId = $request->get('record');
$moduleName = $request->getModule();
$detailViewModel = Vtiger_DetailView_Model::getInstance($moduleName, $recordId);
$recordModel = $detailViewModel->getRecord();
$detailViewLinkParams = array('MODULE' => $moduleName, 'RECORD' => $recordId);
$detailViewLinks = $detailViewModel->getDetailViewLinks($detailViewLinkParams);
$viewer = $this->getViewer($request);
$viewer->assign('RECORD', $recordModel);
$viewer->assign('MODULE_MODEL', $detailViewModel->getModule());
$viewer->assign('DETAILVIEW_LINKS', $detailViewLinks);
$viewer->assign('IS_EDITABLE', $detailViewModel->getRecord()->isEditable($moduleName));
$viewer->assign('IS_DELETABLE', $detailViewModel->getRecord()->isDeletable($moduleName));
$linkParams = array('MODULE' => $moduleName, 'ACTION' => $request->get('view'));
$linkModels = $detailViewModel->getSideBarLinks($linkParams);
$viewer->assign('QUICK_LINKS', $linkModels);
$viewer->assign('PAGETITLE', $this->getPageTitle($request));
$viewer->assign('SCRIPTS', $this->getHeaderScripts($request));
$viewer->assign('STYLES', $this->getHeaderCss($request));
$viewer->assign('LANGUAGE_STRINGS', $this->getJSLanguageStrings($request));
$viewer->assign('SEARCHABLE_MODULES', Vtiger_Module_Model::getSearchableModules());
$menuModelsList = Vtiger_Menu_Model::getAll(true);
$selectedModule = $request->getModule();
$menuStructure = Vtiger_MenuStructure_Model::getInstanceFromMenuList($menuModelsList, $selectedModule);
// Order by pre-defined automation process for QuickCreate.
uksort($menuModelsList, array('Vtiger_MenuStructure_Model', 'sortMenuItemsByProcess'));
$companyDetails = Vtiger_CompanyDetails_Model::getInstanceById();
$companyLogo = $companyDetails->getLogo();
$viewer->assign('CURRENTDATE', date('Y-n-j'));
$viewer->assign('MODULE', $selectedModule);
$viewer->assign('PARENT_MODULE', $request->get('parent'));
$viewer->assign('VIEW', $request->get('view'));
$viewer->assign('MENUS', $menuModelsList);
$viewer->assign('MENU_STRUCTURE', $menuStructure);
$viewer->assign('MENU_SELECTED_MODULENAME', $selectedModule);
$viewer->assign('MENU_TOPITEMS_LIMIT', $menuStructure->getLimit());
$viewer->assign('COMPANY_LOGO', $companyLogo);
$viewer->assign('USER_MODEL', Users_Record_Model::getCurrentUserModel());
$homeModuleModel = Vtiger_Module_Model::getInstance('Home');
$viewer->assign('HOME_MODULE_MODEL', $homeModuleModel);
$viewer->assign('HEADER_LINKS', $this->getHeaderLinks());
$viewer->assign('ANNOUNCEMENT', $this->getAnnouncement());
$viewer->assign('CURRENT_VIEW', $request->get('view'));
$viewer->assign('SKIN_PATH', Vtiger_Theme::getCurrentUserThemePath());
$viewer->assign('LANGUAGE', $currentUser->get('language'));
if ($display) {
$this->preProcessDisplay($request);
}
}
}
开发者ID:cannking,项目名称:vtigercrm-debug,代码行数:53,代码来源:PreferenceDetail.php
示例8: preProcess
public function preProcess(Vtiger_Request $request, $display = true)
{
if ($this->checkPermission($request)) {
$viewer = $this->getViewer($request);
$currentUser = Users_Record_Model::getCurrentUserModel();
$selectedModule = $request->getModule();
$companyDetails = Vtiger_CompanyDetails_Model::getInstanceById();
$companyLogo = $companyDetails->getLogo();
$currentDate = Vtiger_Date_UIType::getDisplayDateValue(date('Y-n-j'));
$viewer->assign('CURRENTDATE', $currentDate);
$viewer->assign('MODULE', $selectedModule);
$viewer->assign('MODULE_NAME', $selectedModule);
$viewer->assign('QUALIFIED_MODULE', $selectedModule);
$viewer->assign('PARENT_MODULE', $request->get('parent'));
$viewer->assign('MENUS', Vtiger_Menu_Model::getAll(true));
$viewer->assign('VIEW', $request->get('view'));
$viewer->assign('COMPANY_LOGO', $companyLogo);
$viewer->assign('USER_MODEL', $currentUser);
$homeModuleModel = Vtiger_Module_Model::getInstance('Home');
$viewer->assign('HOME_MODULE_MODEL', $homeModuleModel);
$viewer->assign('HEADER_LINKS', $this->getHeaderLinks());
$viewer->assign('ANNOUNCEMENT', $this->getAnnouncement());
$viewer->assign('SEARCHABLE_MODULES', Vtiger_Module_Model::getSearchableModules());
$viewer->assign('CHAT_ACTIVE', vtlib_isModuleActive('AJAXChat'));
//Additional parameters
$recordId = $request->get('record');
$moduleName = $request->getModule();
$detailViewModel = Vtiger_DetailView_Model::getInstance($moduleName, $recordId);
$recordModel = $detailViewModel->getRecord();
$detailViewLinkParams = array('MODULE' => $moduleName, 'RECORD' => $recordId);
$detailViewLinks = $detailViewModel->getDetailViewLinks($detailViewLinkParams);
$viewer->assign('RECORD', $recordModel);
$viewer->assign('MODULE_MODEL', $detailViewModel->getModule());
$viewer->assign('DETAILVIEW_LINKS', $detailViewLinks);
$viewer->assign('IS_EDITABLE', $detailViewModel->getRecord()->isEditable($moduleName));
$viewer->assign('IS_DELETABLE', $detailViewModel->getRecord()->isDeletable($moduleName));
$linkParams = array('MODULE' => $moduleName, 'ACTION' => $request->get('view'));
$linkModels = $detailViewModel->getSideBarLinks($linkParams);
$viewer->assign('QUICK_LINKS', $linkModels);
$viewer->assign('PAGETITLE', $this->getPageTitle($request));
$viewer->assign('SCRIPTS', $this->getHeaderScripts($request));
$viewer->assign('STYLES', $this->getHeaderCss($request));
$viewer->assign('LANGUAGE_STRINGS', $this->getJSLanguageStrings($request));
$viewer->assign('CURRENT_VIEW', $request->get('view'));
$viewer->assign('SKIN_PATH', Vtiger_Theme::getCurrentUserThemePath());
$viewer->assign('HTMLLANG', Vtiger_Language_Handler::getShortLanguageName());
$viewer->assign('LANGUAGE', $currentUser->get('language'));
if ($display) {
$this->preProcessDisplay($request);
}
}
}
开发者ID:rcrrich,项目名称:UpdatePackages,代码行数:52,代码来源:PreferenceDetail.php
示例9: getListViewLinks
/**
* Function to get the list of listview links for the module
* @param <Array> $linkParams
* @return <Array> - Associate array of Link Type to List of Vtiger_Link_Model instances
*/
public function getListViewLinks($linkParams)
{
$links = parent::getListViewLinks($linkParams);
$currentUserModel = Users_Record_Model::getCurrentUserModel();
$moduleModel = $this->getModule();
unset($links['LISTVIEW']);
unset($links['LISTVIEWSETTING']);
if ($currentUserModel->isAdminUser()) {
$settingsLink = array('linktype' => 'LISTVIEWSETTING', 'linklabel' => 'LBL_EDIT_WORKFLOWS', 'linkurl' => 'index.php?parent=Settings&module=Workflow&sourceModule=' . $this->getName(), 'linkicon' => Vtiger_Theme::getImagePath('EditWorkflows.png'));
$links['LISTVIEWSETTING'][] = Vtiger_Link_Model::getInstanceFromValues($settingsLink);
}
return $links;
}
开发者ID:Bergdahls,项目名称:YetiForceCRM,代码行数:18,代码来源:ListView.php
示例10: preProcess
public function preProcess(Vtiger_Request $request, $display = true)
{
if ($this->checkPermission($request)) {
$currentUser = Users_Record_Model::getCurrentUserModel();
$viewer = $this->getViewer($request);
$selectedModule = $request->getModule();
$companyDetails = Vtiger_CompanyDetails_Model::getInstanceById();
$companyLogo = $companyDetails->getLogo();
$currentDate = Vtiger_Date_UIType::getDisplayDateValue(date('Y-n-j'));
$viewer->assign('CURRENTDATE', $currentDate);
$viewer->assign('MODULE', $selectedModule);
$viewer->assign('MODULE_NAME', $selectedModule);
$viewer->assign('QUALIFIED_MODULE', $selectedModule);
$viewer->assign('PARENT_MODULE', $request->get('parent'));
$viewer->assign('MENUS', Vtiger_Menu_Model::getAll(true));
$viewer->assign('VIEW', $request->get('view'));
$viewer->assign('COMPANY_LOGO', $companyLogo);
$viewer->assign('USER_MODEL', $currentUser);
$homeModuleModel = Vtiger_Module_Model::getInstance('Home');
$viewer->assign('HOME_MODULE_MODEL', $homeModuleModel);
$viewer->assign('HEADER_LINKS', $this->getHeaderLinks());
$viewer->assign('ANNOUNCEMENT', $this->getAnnouncement());
$viewer->assign('SEARCHABLE_MODULES', Vtiger_Module_Model::getSearchableModules());
$viewer->assign('CHAT_ACTIVE', vtlib_isModuleActive('AJAXChat'));
//Additional parameters
$viewer->assign('CURRENT_VIEW', $request->get('view'));
$viewer->assign('PAGETITLE', $this->getPageTitle($request));
$viewer->assign('FOOTER_SCRIPTS', $this->getFooterScripts($request));
$viewer->assign('STYLES', $this->getHeaderCss($request));
$viewer->assign('LANGUAGE_STRINGS', $this->getJSLanguageStrings($request));
$viewer->assign('SKIN_PATH', Vtiger_Theme::getCurrentUserThemePath());
$viewer->assign('IS_PREFERENCE', true);
$viewer->assign('HTMLLANG', Vtiger_Language_Handler::getShortLanguageName());
$viewer->assign('LANGUAGE', $currentUser->get('language'));
$allUsers = Users_Record_Model::getAll(true);
$sharedUsers = Calendar_Module_Model::getCaledarSharedUsers($currentUser->id);
$sharedType = Calendar_Module_Model::getSharedType($currentUser->id);
$viewer->assign('ALL_USERS', $allUsers);
$viewer->assign('SHAREDUSERS', $sharedUsers);
$viewer->assign('SHARED_TYPE', $sharedType);
$viewer->assign('HEADER_SCRIPTS', $this->getHeaderScripts($request));
if ($display) {
$this->preProcessDisplay($request);
}
}
}
开发者ID:rubichcube,项目名称:YetiForceCRM,代码行数:50,代码来源:PreferenceEdit.php
示例11: preProcess
public function preProcess(Vtiger_Request $request, $display = true)
{
if ($this->checkPermission($request)) {
$currentUser = Users_Record_Model::getCurrentUserModel();
$viewer = $this->getViewer($request);
$menuModelsList = Vtiger_Menu_Model::getAll(true);
$selectedModule = $request->getModule();
$menuStructure = Vtiger_MenuStructure_Model::getInstanceFromMenuList($menuModelsList, $selectedModule);
// Order by pre-defined automation process for QuickCreate.
uksort($menuModelsList, array('Vtiger_MenuStructure_Model', 'sortMenuItemsByProcess'));
$companyDetails = Vtiger_CompanyDetails_Model::getInstanceById();
$companyLogo = $companyDetails->getLogo();
$viewer->assign('CURRENTDATE', date('Y-n-j'));
$viewer->assign('MODULE', $selectedModule);
$viewer->assign('PARENT_MODULE', $request->get('parent'));
$viewer->assign('VIEW', $request->get('view'));
$viewer->assign('MENUS', $menuModelsList);
$viewer->assign('MENU_STRUCTURE', $menuStructure);
$viewer->assign('MENU_SELECTED_MODULENAME', $selectedModule);
$viewer->assign('MENU_TOPITEMS_LIMIT', $menuStructure->getLimit());
$viewer->assign('COMPANY_LOGO', $companyLogo);
$viewer->assign('USER_MODEL', $currentUser);
$viewer->assign('SEARCHABLE_MODULES', Vtiger_Module_Model::getSearchableModules());
$homeModuleModel = Vtiger_Module_Model::getInstance('Home');
$viewer->assign('HOME_MODULE_MODEL', $homeModuleModel);
$viewer->assign('HEADER_LINKS', $this->getHeaderLinks());
$viewer->assign('ANNOUNCEMENT', $this->getAnnouncement());
$viewer->assign('CURRENT_VIEW', $request->get('view'));
$viewer->assign('PAGETITLE', $this->getPageTitle($request));
$viewer->assign('SCRIPTS', $this->getHeaderScripts($request));
$viewer->assign('STYLES', $this->getHeaderCss($request));
$viewer->assign('LANGUAGE_STRINGS', $this->getJSLanguageStrings($request));
$viewer->assign('SKIN_PATH', Vtiger_Theme::getCurrentUserThemePath());
$viewer->assign('IS_PREFERENCE', true);
$viewer->assign('LANGUAGE', $currentUser->get('language'));
$allUsers = Users_Record_Model::getAll(true);
$sharedUsers = Calendar_Module_Model::getCaledarSharedUsers($currentUser->id);
$sharedType = Calendar_Module_Model::getSharedType($currentUser->id);
$viewer->assign('ALL_USERS', $allUsers);
$viewer->assign('SHAREDUSERS', $sharedUsers);
$viewer->assign('SHARED_TYPE', $sharedType);
// OpenSaaS
$OSSMenu = OSSMenuManager_Record_Model::getMenu();
$viewer->assign('MENU_STRUCTURE', $OSSMenu);
// OpenSaaS
if ($display) {
$this->preProcessDisplay($request);
}
}
}
开发者ID:rcrrich,项目名称:UpdatePackages,代码行数:50,代码来源:PreferenceEdit.php
示例12: getSettingLinks
/**
* Function to get Settings links
* @return <Array>
*/
public function getSettingLinks()
{
if (!$this->isEntityModule()) {
return array();
}
vimport('~~modules/com_vtiger_workflow/VTWorkflowUtils.php');
$layoutEditorImagePath = Vtiger_Theme::getImagePath('LayoutEditor.gif');
$editWorkflowsImagePath = Vtiger_Theme::getImagePath('EditWorkflows.png');
$settingsLinks = array();
if (VTWorkflowUtils::checkModuleWorkflow($this->getName())) {
$settingsLinks[] = array('linktype' => 'LISTVIEWSETTING', 'linklabel' => 'LBL_EDIT_WORKFLOWS', 'linkurl' => 'index.php?parent=Settings&module=Workflows&view=List&sourceModule=' . $this->getName(), 'linkicon' => $editWorkflowsImagePath);
}
$settingsLinks[] = array('linktype' => 'LISTVIEWSETTINGS', 'linklabel' => 'LBL_SERVER_CONFIGURATION', 'linkurl' => 'index.php?parent=Settings&module=PBXManager&view=Index', 'linkicon' => '');
return $settingsLinks;
}
开发者ID:Bergdahls,项目名称:YetiForceCRM,代码行数:19,代码来源:Module.php
示例13: getSettingLinks
public function getSettingLinks()
{
vimport('~~modules/com_vtiger_workflow/VTWorkflowUtils.php');
$layoutEditorImagePath = Vtiger_Theme::getImagePath('LayoutEditor.gif');
$editWorkflowsImagePath = Vtiger_Theme::getImagePath('EditWorkflows.png');
$settingsLinks = array();
$settingsLinks[] = array('linktype' => 'LISTVIEWSETTING', 'linklabel' => 'LBL_EDIT_FIELDS', 'linkurl' => 'index.php?parent=Settings&module=LayoutEditor&sourceModule=' . $this->getName(), 'linkicon' => $layoutEditorImagePath);
if (VTWorkflowUtils::checkModuleWorkflow($this->getName())) {
$settingsLinks[] = array('linktype' => 'LISTVIEWSETTING', 'linklabel' => 'LBL_EDIT_WORKFLOWS', 'linkurl' => 'index.php?parent=Settings&module=Workflow&sourceModule=' . $this->getName(), 'linkicon' => $editWorkflowsImagePath);
}
$settingsLinks[] = array('linktype' => 'LISTVIEWSETTING', 'linklabel' => 'LBL_EDIT_PICKLIST_VALUES', 'linkurl' => 'index.php?parent=Settings&module=Picklist&source_module=' . $this->getName(), 'linkicon' => '');
if ($this->hasSequenceNumberField()) {
$settingsLinks[] = array('linktype' => 'LISTVIEWSETTING', 'linklabel' => 'LBL_MODULE_SEQUENCE_NUMBERING', 'linkurl' => 'index.php?parent=Settings&module=Vtiger&view=CustomRecordNumbering&sourceModule=' . $this->getName(), 'linkicon' => '');
}
return $settingsLinks;
}
开发者ID:nouphet,项目名称:vtigercrm-6.0.0-ja,代码行数:16,代码来源:Module.php
示例14: GetAvailableSettings
public function GetAvailableSettings()
{
$menu_array = array();
$menu_array["ITS4YouReportsLicense"]["location"] = "index.php?module=ITS4YouReports&view=License";
$menu_array["ITS4YouReportsLicense"]["image_src"] = Vtiger_Theme::getImagePath('proxy.gif');
$menu_array["ITS4YouReportsLicense"]["desc"] = "LBL_LICENSE_DESC";
$menu_array["ITS4YouReportsLicense"]["label"] = "LBL_LICENSE";
/*
$menu_array["ITS4YouReportsUninstall"]["location"] = "index.php?module=ITS4YouReports&view=Uninstall";
$menu_array["ITS4YouReportsUninstall"]["desc"] = "LBL_UNINSTALL_DESC";
$menu_array["ITS4YouReportsUninstall"]["label"] = "LBL_UNINSTALL";
*/
$menu_array["ITS4YouReportsUpgrade"]["location"] = "index.php?module=ModuleManager&parent=Settings&view=ModuleImport&mode=importUserModuleStep1";
$menu_array["ITS4YouReportsUpgrade"]["desc"] = "LBL_UPGRADE";
$menu_array["ITS4YouReportsUpgrade"]["label"] = "LBL_UPGRADE";
return $menu_array;
}
开发者ID:cin-system,项目名称:cinrepo,代码行数:17,代码来源:ITS4YouReports.php
示例15: getSettingLinks
/**
* Function to get Settings links
* @return <Array>
*/
public function getSettingLinks()
{
if (!$this->isEntityModule()) {
return array();
}
vimport('~~modules/com_vtiger_workflow/VTWorkflowUtils.php');
$layoutEditorImagePath = Vtiger_Theme::getImagePath('LayoutEditor.gif');
$editWorkflowsImagePath = Vtiger_Theme::getImagePath('EditWorkflows.png');
$settingsLinks = array();
$settingsLinks[] = array('linktype' => 'LISTVIEWSETTING', 'linklabel' => 'LBL_EDIT_FIELDS', 'linkurl' => 'index.php?parent=Settings&module=LayoutEditor&sourceModule=' . $this->getName(), 'linkicon' => $layoutEditorImagePath);
if (VTWorkflowUtils::checkModuleWorkflow($this->getName())) {
$settingsLinks[] = array('linktype' => 'LISTVIEWSETTING', 'linklabel' => 'LBL_EDIT_WORKFLOWS', 'linkurl' => 'index.php?parent=Settings&module=Workflows&view=List&sourceModule=' . $this->getName(), 'linkicon' => $editWorkflowsImagePath);
}
$settingsLinks[] = array('linktype' => 'LISTVIEWSETTING', 'linklabel' => 'LBL_EDIT_PICKLIST_VALUES', 'linkurl' => 'index.php?parent=Settings&module=Picklist&view=Index&source_module=' . $this->getName(), 'linkicon' => '');
if ($this->hasSequenceNumberField()) {
$settingsLinks[] = array('linktype' => 'LISTVIEWSETTING', 'linklabel' => 'LBL_MODULE_SEQUENCE_NUMBERING', 'linkurl' => 'index.php?parent=Settings&module=Vtiger&view=CustomRecordNumbering&sourceModule=' . $this->getName(), 'linkicon' => '');
}
$webformSupportedModule = Settings_Webforms_Module_Model::getSupportedModulesList();
if (array_key_exists($this->getName(), $webformSupportedModule)) {
$settingsLinks[] = array('linktype' => 'LISTVIEWSETTING', 'linklabel' => 'LBL_SETUP_WEBFORMS', 'linkurl' => 'index.php?module=Webforms&parent=Settings&view=Edit&sourceModule=' . $this->getName(), 'linkicon' => '');
}
return $settingsLinks;
}
开发者ID:cannking,项目名称:vtigercrm-debug,代码行数:27,代码来源:Module.php
示例16: get_themes
/**
* Return an array of directory names.
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): ______________________________________..
*/
function get_themes()
{
return Vtiger_Theme::getAllSkins();
}
开发者ID:yunter,项目名称:crm,代码行数:10,代码来源:utils.php
示例17: getSettingLinks
/**
* Function returns Settings Links
* @return Array
*/
public function getSettingLinks()
{
$currentUserModel = Users_Record_Model::getCurrentUserModel();
$settingLinks = array();
if ($currentUserModel->isAdminUser()) {
$settingLinks[] = array('linktype' => 'LISTVIEWSETTING', 'linklabel' => 'LBL_EDIT_FIELDS', 'linkurl' => 'index.php?parent=Settings&module=LayoutEditor&sourceModule=' . $this->getName(), 'linkicon' => Vtiger_Theme::getImagePath('LayoutEditor.gif'));
$settingLinks[] = array('linktype' => 'LISTVIEWSETTING', 'linklabel' => 'LBL_EDIT_PICKLIST_VALUES', 'linkurl' => 'index.php?parent=Settings&module=Picklist&view=Index&source_module=' . $this->getName(), 'linkicon' => '');
}
return $settingLinks;
}
开发者ID:JeRRimix,项目名称:YetiForceCRM,代码行数:14,代码来源:Module.php
示例18: preProcess
function preProcess(Vtiger_Request $request, $display = true)
{
$moduleName = $request->getModule();
$viewer = $this->getViewer($request);
$viewer->assign('PAGETITLE', $this->getPageTitle($request));
$viewer->assign('BREADCRUMB_TITLE', $this->getBreadcrumbTitle($request));
$viewer->assign('HEADER_SCRIPTS', $this->getHeaderScripts($request));
$viewer->assign('STYLES', $this->getHeaderCss($request));
$viewer->assign('SKIN_PATH', Vtiger_Theme::getCurrentUserThemePath());
$viewer->assign('LAYOUT_PATH', 'layouts' . '/' . Yeti_Layout::getActiveLayout());
$viewer->assign('LANGUAGE_STRINGS', $this->getJSLanguageStrings($request));
$viewer->assign('HTMLLANG', Vtiger_Language_Handler::getShortLanguageName());
$viewer->assign('LANGUAGE', Vtiger_Language_Handler::getLanguage());
$viewer->assign('SHOW_BODY_HEADER', $this->showBodyHeader());
$viewer->assign('USER_MODEL', Users_Record_Model::getCurrentUserModel());
$viewer->assign('MODULE', $moduleName);
$viewer->assign('VIEW', $request->get('view'));
$viewer->assign('MODULE_NAME', $moduleName);
$viewer->assign('PARENT_MODULE', $request->get('parent'));
if ($display) {
$this->preProcessDisplay($request);
}
}
开发者ID:reeid,项目名称:YetiForceCRM,代码行数:23,代码来源:Controller.php
示例19: content_5674dd282e457
//.........这里部分代码省略.........
echo $_smarty_tpl->tpl_vars['moduleName']->value;
?>
" href="<?php
echo $_smarty_tpl->tpl_vars['moduleModel']->value->getDefaultUrl();
?>
"><?php
echo $_smarty_tpl->tpl_vars['translatedModuleLabel']->value;
?>
</a></label><?php
}
?>
</span><?php
if ($_smarty_tpl->getVariable('smarty')->value['foreach']['more']['last'] || ($_smarty_tpl->getVariable('smarty')->value['foreach']['more']['index'] + 1) % 4 == 0) {
?>
</div><?php
}
}
if ($_smarty_tpl->tpl_vars['USER_MODEL']->value->isAdminUser()) {
?>
<div class="row-fluid"><a id="menubar_item_moduleManager" href="index.php?module=MenuEditor&parent=Settings&view=Index" class="pull-right"><?php
echo vtranslate('LBL_CUSTOMIZE_MAIN_MENU', $_smarty_tpl->tpl_vars['MODULE']->value);
?>
</a></div><div class="row-fluid"><a id="menubar_item_moduleManager" href="index.php?module=ModuleManager&parent=Settings&view=List" class="pull-right"><?php
echo vtranslate('LBL_ADD_MANAGE_MODULES', $_smarty_tpl->tpl_vars['MODULE']->value);
?>
</a></div><?php
}
?>
</div></li></ul></div><div class="span3 marginLeftZero pull-right" id="headerLinks"><span id="headerLinksBig" class="pull-right headerLinksContainer"><span class="dropdown span settingIcons"><a class="dropdown-toggle" data-toggle="dropdown" href="#"><img src="<?php
echo vimage_path('theme_brush.png');
?>
" alt="theme roller" title="Theme Roller" /></a><ul class="dropdown-menu themeMenuContainer"><div id="themeContainer"><?php
$_smarty_tpl->tpl_vars['COUNTER'] = new Smarty_variable(0, null, 0);
$_smarty_tpl->tpl_vars['THEMES_LIST'] = new Smarty_variable(Vtiger_Theme::getAllSkins(), null, 0);
?>
<div class="row-fluid themeMenu"><?php
$_smarty_tpl->tpl_vars['SKIN_COLOR'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['SKIN_COLOR']->_loop = false;
$_smarty_tpl->tpl_vars['SKIN_NAME'] = new Smarty_Variable();
$_from = $_smarty_tpl->tpl_vars['THEMES_LIST']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['SKIN_COLOR']->key => $_smarty_tpl->tpl_vars['SKIN_COLOR']->value) {
$_smarty_tpl->tpl_vars['SKIN_COLOR']->_loop = true;
$_smarty_tpl->tpl_vars['SKIN_NAME']->value = $_smarty_tpl->tpl_vars['SKIN_COLOR']->key;
if ($_smarty_tpl->tpl_vars['COUNTER']->value == 3) {
?>
</div><div class="row-fluid themeMenu"><?php
$_smarty_tpl->tpl_vars['COUNTER'] = new Smarty_variable(1, null, 0);
} else {
$_smarty_tpl->tpl_vars['COUNTER'] = new Smarty_variable($_smarty_tpl->tpl_vars['COUNTER']->value + 1, null, 0);
}
?>
<div class="span4 themeElement <?php
if ($_smarty_tpl->tpl_vars['USER_MODEL']->value->get('theme') == $_smarty_tpl->tpl_vars['SKIN_NAME']->value) {
?>
themeSelected<?php
}
?>
" data-skin-name="<?php
echo $_smarty_tpl->tpl_vars['SKIN_NAME']->value;
?>
" title="<?php
echo ucfirst($_smarty_tpl->tpl_vars['SKIN_NAME']->value);
?>
开发者ID:wsLapshin,项目名称:charter_crm,代码行数:67,代码来源:a44c8b80a46730cdae7ca15392c353bd95d5eed1.file.MenuBar.tpl.php
示例20: getAllSkins
/**
* Function to returns all skins(themes)
* @return <Array>
*/
public function getAllSkins()
{
return Vtiger_Theme::getAllSkins();
}
开发者ID:cin-system,项目名称:cinrepo,代码行数:8,代码来源:Field.php
注:本文中的Vtiger_Theme类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论