%PDF- %PDF-
Server IP : 37.220.80.31 / Your IP : 18.189.182.211 Web Server : Apache/2.4.52 (Ubuntu) System : Linux 3051455-guretool.twc1.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64 User : www-root ( 1010) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/modules/sale/admin/ |
Upload File : |
<? namespace Bitrix\Sale\Cashbox\AdminPage\OfdSettings { use Bitrix\Main\Localization\Loc; use Bitrix\Sale\Internals\Input; use Bitrix\Sale\Cashbox; if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die(); require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/sale/lib/delivery/inputs.php"); global $APPLICATION; $saleModulePermissions = $APPLICATION->GetGroupRight("sale"); if ($saleModulePermissions < "W") $APPLICATION->AuthForm(Loc::getMessage("SALE_ACCESS_DENIED")); Loc::loadMessages(__FILE__); $result = ''; // variable $cashbox must be defined in file, where this file is included if (isset($cashbox)) { /** @var Cashbox\Ofd $handler */ $handler = $cashbox['OFD']; $cashboxSettings = $cashbox['OFD_SETTINGS']; if (class_exists($handler)) { $settings = $handler::getSettings(); if ($settings) { foreach ($settings as $group => $block) { $result .= '<tr class="heading"><td colspan="2">'.$block['LABEL'].'</td></tr>'; foreach ($block['ITEMS'] as $code => $item) { $value = null; if (isset($cashboxSettings[$group][$code])) $value = $cashboxSettings[$group][$code]; $className = 'adm-detail-content-cell-l'; if (isset($item['REQUIRED']) && $item['REQUIRED'] === 'Y') { $className .= ' adm-required-field'; } $result .= '<td width="45%" class="'.$className.'">'.$item['LABEL'].':</td><td width="55%" valign="top" class="adm-detail-content-cell-r">'.Input\Manager::getEditHtml('OFD_SETTINGS['.$group.']['.$code.']', $item, $value).'</td></tr>'; } } } } } if ($result === '') $result = '<tr><td colspan="2">'.Loc::getMessage('SALE_CASHBOX_NO_OFD').'</td></tr>'; echo $result; }