| Server IP : 138.197.176.125 / Your IP : 216.73.217.55 Web Server : Apache/2.4.41 (Ubuntu) System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/crm_easylife/modules/CTMobileSettings/views/ |
Upload File : |
<?php
/*+*******************************************************************************
* The content of this file is subject to the CRMTiger Pro license.
* ("License"); You may not use this file except in compliance with the License
* The Initial Developer of the Original Code is vTiger
* The Modified Code of the Original Code owned by https://crmtiger.com/
* Portions created by CRMTiger.com are Copyright(C) CRMTiger.com
* All Rights Reserved.
***************************************************************************** */
class CTMobileSettings_CTLanguage_View extends Settings_Vtiger_Index_View {
function __construct() {
parent::__construct();
}
public function preProcess(Vtiger_Request $request) {
parent::preProcess($request);
}
function getPageTitle(Vtiger_Request $request) {
$qualifiedModuleName = $request->getModule();
return vtranslate('CRMTiger Mobile Apps',$qualifiedModuleName).' > '.vtranslate('Language Settings',$qualifiedModuleName);
}
public function process(Vtiger_Request $request) {
$module = $request->getModule();
$adb = PearDatabase::getInstance();
$mode = $request->getMode();
$this->renderSettingsUI($request);
}
function renderSettingsUI(Vtiger_Request $request) {
$adb = PearDatabase::getInstance();
$module = $request->getModule();
$viewer = $this->getViewer($request);
$AllLanguage = Vtiger_Language::getAll();
$viewer->assign('ALL_LANGUAGES', $AllLanguage);
$AllSection = CTMobileSettings_Module_Model::getAllSection();
$viewer->assign('ALL_SECTIONS', $AllSection);
echo $viewer->view('CTLanguageSettings.tpl',$module,true);
}
/**
* Function to get the list of Script models to be included
* @param Vtiger_Request $request
* @return <Array> - List of Vtiger_JsScript_Model instances
*/
function getHeaderScripts(Vtiger_Request $request) {
$headerScriptInstances = parent::getHeaderScripts($request);
$moduleName = $request->getModule();
$jsFileNames = array(
"modules.CTMobileSettings.resources.CTLanguage",
);
$jsScriptInstances = $this->checkAndConvertJsScripts($jsFileNames);
$headerScriptInstances = array_merge($headerScriptInstances, $jsScriptInstances);
return $headerScriptInstances;
}
}