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');