Пример #1
0
<?php

use MSergeev\Core\Lib;
use MSergeev\Packages\Icar\Lib as CarLib;
$path = Lib\Tools::getSitePath(Lib\Loader::getPublic("icar"));
//Lib\Loc::setModuleMessages('icar');
$arAlerts = CarLib\MyCar::checkAlerts();
//msDebug($arAlerts);
foreach ($arAlerts as $alert) {
    ?>
	<div class="alert_<?php 
    echo $alert['COLOR'];
    ?>
"><?php 
    echo $alert['TEXT'];
    ?>
</div>
<?php 
}
?>
<style>
	.alert_green {
		width: 95%;
		margin: 5px;
		padding: 10px;
		border: 1px solid darkgreen;
		background: lightgreen;
		color: darkgreen;
		text-align: justify;
	}
	.alert_yellow {