Esempio n. 1
0
/** @global \CUser $USER */
if (!$USER->IsAdmin()) {
    return;
}
if (!CModule::IncludeModule('obx.core')) {
    return;
}
IncludeModuleLangFile(__FILE__);
?>
	<style type="text/css" rel="stylesheet">
		#obx_core_settings_lesscss_edit_table td.adm-detail-content-cell-l {
			width: 50%;
		}
	</style>
<?php 
$ModuleSettings = new SettingsAdminPage('OpenBXCoreModuleOptions');
$arOptions = array();
/** @noinspection PhpDynamicAsStaticMethodCallInspection */
$rsSiteList = CSite::GetList($by = 'SORT', $order = 'ASC');
$iLessCssSitesSort = 110;
while ($arSite = $rsSiteList->Fetch()) {
    $arOptions['PROD_READY_' . $arSite['ID']] = array('NAME' => GetMessage('OBX_CORE_SETTINGS_LESSCSS__FOR_') . ' "' . $arSite['NAME'] . '" [' . $arSite['ID'] . ']', 'TYPE' => 'CHECKBOX', 'VALUE' => 'N', 'INPUT_ATTR' => array(), 'SORT' => $iLessCssSitesSort++, 'GROUP' => 'LESS_CSS_4_SITES');
}
$ModuleSettings->addTab(new SettingsTab('obx.core', 'LESSCSS', array('DIV' => 'obx_core_settings_lesscss', 'TAB' => GetMessage('OBX_CORE_SETTINGS_TAB_LESSCSS'), 'ICON' => 'settings_currency', 'TITLE' => GetMessage('OBX_MARKET_SETTINGS_TITLE_LESSCSS'), 'GROUPS' => array('LESS_CSS_4_SITES' => GetMessage('OBX_CORE_SETTINGS_LESSCSS_PROD_READY'))), $arOptions));
if ($ModuleSettings->checkSaveRequest()) {
    $ModuleSettings->save();
}
if ($ModuleSettings->checkRestoreRequest()) {
    $ModuleSettings->restoreDefaults();
}
$ModuleSettings->show();
Esempio n. 2
0
    return;
}
if (!CModule::IncludeModule('obx.core')) {
    return;
}
if (!CModule::IncludeModule('obx.sms')) {
    return;
}
$arProvidersList = Provider::getProvidersList();
$arProvidersSimpleList = array();
foreach ($arProvidersList as $Provider) {
    /** @var Provider $Provider */
    $arProvidersSimpleList[$Provider->PROVIDER_ID()] = $Provider->PROVIDER_NAME();
}
$ModuleSettings = new SettingsAdminPage('OpenBXSmsModuleOptions');
$ModuleSettings->addTab(new SettingsTab('obx.sms', 'COMMON_SETTINGS', array('TAB' => 'Основные', 'TITLE' => GetMessage('OBX_SMS_SETT_MAIN_TITLE'), 'DESCRIPTION' => GetMessage('OBX_SMS_SETT_MAIN_TAB_DESCRIPTION')), array('PROVIDER_SELECTED' => array('NAME' => GetMessage('OBX_SMS_SETT_SELECTED_PROVIDER'), 'TYPE' => 'LIST', 'VALUES' => $arProvidersSimpleList, 'VALUE' => 'EMAIL'), 'DEFAULT_MSG_SYM_LIMIT' => array('NAME' => GetMessage('OBX_SMS_SETT_DEF_MSG_SYM_LIMIT'), 'TYPE' => 'STRING', 'VALUE' => '70'))));
foreach ($arProvidersList as $Provider) {
    /** @var Provider $Provider */
    $ModuleSettings->addTab(new SettingsTab('obx.sms', 'PROV_' . $Provider->PROVIDER_ID(), array('TAB' => $Provider->PROVIDER_NAME(), 'TITLE' => $Provider->PROVIDER_NAME(), 'DESCRIPTION' => $Provider->PROVIDER_DESCRIPTION()), $Provider->getSettings()));
}
?>
<style type="text/css" rel="stylesheet">
	#obx_sms_opt_page td.adm-detail-content-cell-l {
		width: 40%;
	}
</style>
<div id="obx_sms_opt_page">
<?

$ModuleSettings->show();