/** * Returns Yandex-Market settings * @param bool $cached Return cached or ont value * @return array|bool */ public static function getSettings($cached = true) { static $settings = null; if ($settings === null || !$cached) { $settingsRes = Bitrix\Sale\TradingPlatformTable::getList(array('filter' => array('=CODE' => static::TRADING_PLATFORM_CODE))); $settings = $settingsRes->fetch(); if (!$settings) { $settings = array(); } } return $settings; }
<tr> <td><?php echo Loc::getMessage('SOA_TRACKING_NUMBER'); ?> :</td> <td> <input type="text" name="filter_tracking_number" value="<?php echo htmlspecialcharsbx($filter_tracking_number); ?> " size="40"> </td> </tr> <?php $tPlatformList = array(0 => Loc::getMessage("SALE_F_ALL"), -1 => Loc::getMessage("SALE_F_NONE")); $dbRes = Bitrix\Sale\TradingPlatformTable::getList(array('select' => array('ID', 'NAME'))); while ($tPlatform = $dbRes->fetch()) { $tPlatformList[$tPlatform['ID']] = $tPlatform['NAME']; } ?> <tr> <td><?php echo Loc::getMessage("SALE_F_SOURCE"); ?> :</td> <td> <select name="filter_source"> <?php foreach ($tPlatformList as $id => $name) { ?> <option value="<?php