Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/cvetdv.ru/bitrix/modules/wbs24.ozonapinew/options/ |
Upload File : |
<? use Bitrix\Main\Loader; use Bitrix\Main\Web\Uri; use Bitrix\Main\Application; use Bitrix\Main\Localization\Loc; use Wbs24\Ozonapinew\{ Settings, }; if (!$USER->IsAdmin()) return; $moduleId = basename(dirname(__DIR__, 1)); $suffix = strtoupper($moduleId); Loc::loadMessages(__FILE__); Loader::includeModule($moduleId); $request = Application::getInstance()->getContext()->getRequest(); $uriString = $request->getRequestUri(); $uri = new Uri($uriString); $redirect = $uri->getUri(); $Settings = new Settings(); $accounts = $Settings->getAccounts(); $aTabs = [ [ "DIV" => str_replace(".", "_", $moduleId), "TAB" => Loc::getMessage($suffix.".SETTINGS"), "ICON" => "settings", "TITLE" => Loc::getMessage($suffix.".TITLE"), ], ]; $arAllOptions = [ "main" => [ ['note' => Loc::getMessage($suffix.".NOTE")], ], ]; if ((isset($_REQUEST["save"]) || isset($_REQUEST["apply"])) && check_bitrix_sessid()) { __AdmSettingsSaveOptions($moduleId, $arAllOptions["main"]); LocalRedirect($redirect); } $tabControl = new CAdminTabControl("tabControl", $aTabs); ?> <form method="post" action="<?=$redirect?>" name="<?=str_replace(".", "_", $moduleId)?>"> <? echo bitrix_sessid_post(); $tabControl->Begin(); $tabControl->BeginNextTab(); ?> <tr> <td colspan="2"> <div style="background:#615EFF;padding:10px;color:white;font-weight:700;text-align:center;border-radius:3px;"> <?=Loc::getMessage($suffix.".NEW_SETTINGS_VIEW")?> <a href="/bitrix/admin/wbs24_ozonapinew_profile_main.php?profile_id=<?=$accounts[0]?>&mid=wbs24.ozonapinew&options_type=base"> <span style="color:white;text-decoration:underline;"> <?=Loc::getMessage($suffix.".NEW_SETTINGS_BTN")?> </span> </a> </div> </td> </tr> <? //$tabControl->Buttons([]); // отключено, т.к. пока нет свойств $tabControl->End(); ?> </form>