| 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_TimeTrackingModule_View extends Settings_Vtiger_Index_View {
function __construct() {
parent::__construct();
}
public function preProcess(Vtiger_Request $request) {
parent::preProcess($request);
}
public function process(Vtiger_Request $request) {
$module = $request->getModule();
$adb = PearDatabase::getInstance();
$mode = $request->getMode();
$viewer = $this->getViewer($request);
$allModules = Settings_Workflows_Module_Model::getSupportedModules();
$timeTrackerModules = CTMobileSettings_Module_Model::getTimeTrackerModules();
$viewer->assign('ALL_MODULE', $allModules);
$viewer->assign('TIMETRACKEMODULES', $timeTrackerModules);
echo $viewer->view('TimeTrackingSettings.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.TimeTrackingModule",
);
$jsScriptInstances = $this->checkAndConvertJsScripts($jsFileNames);
$headerScriptInstances = array_merge($headerScriptInstances, $jsScriptInstances);
return $headerScriptInstances;
}
}