4use Bitrix\Main\Localization\Loc;
5use Bitrix\Main\Config\Option;
7Loc::loadMessages(__FILE__);
18 private static $colors = Array(
22 'LIGHT_BLUE' =>
'#4ba5c3',
23 'DARK_BLUE' =>
'#3e99ce',
24 'PURPLE' =>
'#8474c8',
32 'ORANGE' =>
'#e8a441',
33 'MARENGO' =>
'#556574',
35 'GRAPHITE' =>
'#5e5f5e',
36 'COPILOT' =>
'#8d51eb',
39 private static $replaceColors = Array(
40 'LIGHT_BLUE' =>
'AZURE',
45 private static $unsafeColors = Array(
'ORANGE' =>
'#e8a441');
52 return (
bool)Option::get(
'im',
'color_enable');
69 foreach (self::$colors as
$code => $color)
82 return array_diff(self::$colors, self::$unsafeColors);
91 foreach (self::getSafeColors() as
$code => $color)
105 $colors = array_flip(self::$colors);
106 return isset($colors[$color])? $colors[$color]:
null;
114 return self::$replaceColors;
123 if (!self::isEnabled())
128 return isset(self::$colors[
$code])? self::$colors[
$code]:
null;
137 return isset(self::$colors[
$code])? Loc::getMessage(
'IM_COLOR_'.
$code):
null;
146 $code = self::getCodeByNumber($number);
148 return self::getColor(
$code);
157 $code = self::getCodeByNumber($number);
159 return self::getName(
$code);
168 $colors = array_keys(self::getColors());
170 $number = intval($number);
173 $code = $colors[mt_rand(0, 9)];
177 $number = intval(mb_substr($number.
'', -1));
178 $number = $number == 0? 9: $number - 1;
180 $code = $colors[$number];
190 return isset($colors[
$code]);
195 $colors = array_values(self::getColors());
197 return $colors[mt_rand(0,
count($colors)-1)];
202 $colors = array_keys(self::getColors());
204 return $colors[mt_rand(0,
count($colors)-1)];
static getNameByNumber($number)
static getColorByNumber($number)
static isSafeColor($code)
static getReplaceColors()
static getSafeColorNames()
static getCodeByNumber($number)
if(!is_null($config))($config as $configItem)(! $configItem->isVisible()) $code
</p ></td >< td valign=top style='border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 2.0pt 0cm 2.0pt;height:9.0pt'>< p class=Normal align=center style='margin:0cm;margin-bottom:.0001pt;text-align:center;line-height:normal'>< a name=ТекстовоеПоле54 ></a ><?=($taxRate > count( $arTaxList) > 0) ? $taxRate."%"