From a0093aefdbed63a2a3179305ff3bd55172b8b0d5 Mon Sep 17 00:00:00 2001 From: Repellent Date: Thu, 26 Mar 2026 00:25:19 +0500 Subject: [PATCH] =?UTF-8?q?=D0=90=D0=B4=D0=BC=D0=B8=D0=BD=D0=BA=D0=B0:=20?= =?UTF-8?q?=D0=A1=D0=B8=D1=81=D1=82=D0=B5=D0=BC=D0=BD=D1=8B=D0=B5=20=D0=BD?= =?UTF-8?q?=D0=B0=D1=81=D1=82=D1=80=D0=BE=D0=B9=D0=BA=D0=B8->=D0=94=D0=BE?= =?UTF-8?q?=D0=BF=D0=BE=D0=BB=D0=BD=D0=B8=D1=82=D0=B5=D0=BB=D1=8C=D0=BD?= =?UTF-8?q?=D1=8B=D0=B5=20=D0=BD=D0=B0=D1=81=D1=82=D1=80=D0=BE=D0=B9=D0=BA?= =?UTF-8?q?=D0=B8:=20=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20=D0=B2?= =?UTF-8?q?=D1=8B=D0=BF=D0=B0=D0=B4=D0=B0=D1=8E=D1=89=D0=B8=D0=B9=20=D1=81?= =?UTF-8?q?=D0=BF=D0=B8=D1=81=D0=BE=D0=BA=20=D1=81=20=D0=B2=D0=B0=D1=80?= =?UTF-8?q?=D0=B8=D0=B0=D0=BD=D1=82=D0=B0=D0=BC=D0=B8=20=D1=82=D0=B0=D0=B9?= =?UTF-8?q?=D0=BC=D0=B7=D0=BE=D0=BD=20=D0=B4=D0=BB=D1=8F=20=D1=81=D0=B0?= =?UTF-8?q?=D0=B9=D1=82=D0=B0,=20+=20=D1=81=D1=82=D0=B8=D0=BB=D0=B8=20?= =?UTF-8?q?=D0=B4=D0=BB=D1=8F=20=D0=B0=D0=B4=D0=BC=D0=B8=D0=BD=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/templates/css/main.css | 57 ++++++++++++++++++++++++++++++++++++ inc/config.php | 51 ++++++++++++++++++++++++++++---- inc/init.php | 2 -- 3 files changed, 102 insertions(+), 8 deletions(-) diff --git a/admin/templates/css/main.css b/admin/templates/css/main.css index 940ba09..6c416ec 100644 --- a/admin/templates/css/main.css +++ b/admin/templates/css/main.css @@ -260,6 +260,63 @@ ul.sub li a.numberRight:hover { background-position: 0px -42px; } .questions:hover { background-position: 0 -25px; } .questions:active { background-position: 0 -50px; } +.event-label-badge { + background-color: #e6f4ea; /* Очень светлый зеленый */ + color: #1e7e34; /* Темно-зеленый для читаемости */ + border: 1px solid #c3e6cb; /* Нежная рамка */ + padding: 4px 12px; + border-radius: 4px; + font-size: 11px; + font-weight: bold; + text-transform: uppercase; + display: inline-block; +} + +/* Индикаторы */ +.event-label-indicator { + padding: 4px 10px; + font-size: 11px; + font-weight: 600; + display: inline-block; + box-shadow: 0 1px 2px rgba(0,0,0,0.03); + border-radius: 0 4px 4px 0; + border-left-width: 4px; + border-left-style: solid; + line-height: 1.4; +} + +/* Индикаторы: только цвета */ +.event-label-green { + background: rgba(40, 167, 69, 0.05); + color: #155724; + border-left-color: #28a745; +} + +.event-label-blue { + background: rgba(23, 123, 187, 0.05); + color: #125a8a; + border-left-color: #177BBB; +} + +.event-label-orange { + background: rgba(255, 152, 0, 0.05); + color: #856404; + border-left-color: #ff9800; +} + +.event-label-red { + background: rgba(220, 53, 69, 0.05); + color: #721c24; + border-left-color: #dc3545; +} + +.status-green-row { + color: #155724 !important; +} + +.status-blue-row { + color: #125a8a !important; +} ul#doclinks {margin:0; padding: 25px 0pt 0px 0px;} ul#doclinks li {line-height:16px; padding:0 0 0 18px; list-style:none; margin-top:5px; text-align:left;} diff --git a/inc/config.php b/inc/config.php index 53b0cc7..dd1476c 100644 --- a/inc/config.php +++ b/inc/config.php @@ -74,15 +74,54 @@ 'zenburn' ]; + $timezones = [ + 'UTC', + 'Europe/Kaliningrad', + 'Europe/Moscow', + 'Europe/Simferopol', + 'Europe/Kirov', + 'Europe/Astrakhan', + 'Europe/Saratov', + 'Europe/Ulyanovsk', + 'Europe/Samara', + 'Asia/Yekaterinburg', + 'Asia/Omsk', + 'Asia/Novosibirsk', + 'Asia/Barnaul', + 'Asia/Tomsk', + 'Asia/Krasnoyarsk', + 'Asia/Irkutsk', + 'Asia/Chita', + 'Asia/Yakutsk', + 'Asia/Vladivostok', + 'Asia/Khabarovsk', + 'Asia/Sakhalin', + 'Asia/Magadan', + 'Asia/Srednekolymsk', + 'Asia/Kamchatka', + 'Asia/Anadyr', + 'Europe/Minsk', + 'Europe/Kyiv', + 'Europe/Sofia', + 'Europe/Warsaw', + 'Europe/Prague', + 'Europe/Berlin', + 'Europe/London', + 'Asia/Almaty', + 'Asia/Tbilisi', + 'Asia/Yerevan', + 'Asia/Baku' +]; + /* ======================================================================================================== */ //-- Часовой пояс сайта - $GLOBALS['CMS_CONFIG']['_CONST_UTC']['SITE_TIMEZONE'] = [ - 'DESCR' => 'Системное время (Timezone)', - 'DEFAULT' => 'Europe/Moscow', - 'TYPE' => 'string', - 'VARIANT' => '' - ]; + $GLOBALS['CMS_CONFIG']['_CONST_UTC']['SITE_TIMEZONE'] = [ + 'DESCR' => 'Системное время (Timezone)', + 'DEFAULT' => 'Europe/Moscow', + 'TYPE' => 'dropdown', + 'VARIANT' => $timezones +]; /* ======================================================================================================== */ diff --git a/inc/init.php b/inc/init.php index c7a2670..4169988 100644 --- a/inc/init.php +++ b/inc/init.php @@ -16,8 +16,6 @@ define ('DS', DIRECTORY_SEPARATOR); - @date_default_timezone_set('Europe/Moscow'); - //-- Подключаем файл настроек if (file_exists(BASE_DIR . '/inc/config.php')) { require_once (BASE_DIR . '/inc/config.php');