55 lines
2.1 KiB
PHP
55 lines
2.1 KiB
PHP
|
|
<?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 https://crmtiger.com/
|
||
|
|
* Portions created by CRMTiger.com are Copyright(C) CRMTiger.com
|
||
|
|
* All Rights Reserved.
|
||
|
|
******************************************************************************/
|
||
|
|
|
||
|
|
class Settings_CTMultipleSMTP_CTMultipleSMTPList_View extends Settings_Vtiger_Index_View {
|
||
|
|
|
||
|
|
function __construct() {
|
||
|
|
parent::__construct();
|
||
|
|
}
|
||
|
|
|
||
|
|
function process (Vtiger_Request $request) {
|
||
|
|
$this->renderSettingsUI($request);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Function To retrive the view of List Page
|
||
|
|
**/
|
||
|
|
function renderSettingsUI(Vtiger_Request $request) {
|
||
|
|
$qualifiedModuleName = $request->getModule(false);
|
||
|
|
$smtpRecordModel = new Settings_CTMultipleSMTP_Record_Model();
|
||
|
|
$getEnableDisableValue=$smtpRecordModel->getSMTPEnableOrDisable();
|
||
|
|
$viewer = $this->getViewer($request);
|
||
|
|
$viewer->assign('ENABLE',$getEnableDisableValue);
|
||
|
|
$viewer->assign('MODULE',$qualifiedModuleName);
|
||
|
|
$licence = Settings_CTMultipleSMTP_License_View::LicenseStatus();
|
||
|
|
if($licence == 0){
|
||
|
|
echo $viewer->view('Licence.tpl',$qualifiedModuleName,true);
|
||
|
|
}else{
|
||
|
|
$viewer->view('CTMultipleSMTP.tpl',$qualifiedModuleName);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 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.Settings.$moduleName.resources.Settings",
|
||
|
|
);
|
||
|
|
|
||
|
|
$jsScriptInstances = $this->checkAndConvertJsScripts($jsFileNames);
|
||
|
|
$headerScriptInstances = array_merge($headerScriptInstances, $jsScriptInstances);
|
||
|
|
return $headerScriptInstances;
|
||
|
|
}
|
||
|
|
}
|