<?PHP
$_OPTIMIZATION["title"] = "Новости";
$_OPTIMIZATION["description"] = "Новости проекта";
$_OPTIMIZATION["keywords"] = "Новости нашего проекта";
?>
<div class="cl-right"><div class="s-bk-lf">
	<div class="acc-title">Новости</div>
</div>
<div class="silver-bk">
<p></p>
<style>
.block {
background: linear-gradient(to top, #F5FFF0 0%, #F5FFF0 100%) repeat scroll 0% 0% transparent;
background: -webkit-linear-gradient(top, #F5FFF0 0%, #F5FFF0 100%)
background: -moz-linear-gradient(top, #F5FFF0 0%, #F5FFF0 100%);
background: -webkit-gradient(left top, left bottom, color-stop(0%, #F5FFF0), color-stop(100%, #F5FFF0));
background: -o-linear-gradient(top, #F5FFF0 0%, #F5FFF0 100%);
background: -ms-linear-gradient(top, #F5FFF0 0%, #F5FFF0 100%);

border-radius: 0.6em;
font-size: 1.125rem;
position: relative;
width: 93%;
margin: 1em 0px 1em 15px;
border: 1px solid #DDDEDC;
padding: 0px 10px 0px 10px;
}
.block_name {
background: linear-gradient(to top, #6ECE92 0%, #6ECE92 100%) repeat scroll 0% 0% transparent;
background: -webkit-linear-gradient(top, #6ECE92 0%, #6ECE92 100%);
background: -moz-linear-gradient(top, #6ECE92 0%, #6ECE92 100%);
background: -webkit-gradient(left top, left bottom, color-stop(0%, #6ECE92), color-stop(100%, #6ECE92));
background: -o-linear-gradient(top, #6ECE92 0%, #6ECE92 100%);
background: -ms-linear-gradient(top, #6ECE92 0%, #6ECE92 100%);

border-radius: 0.2em 0 0 0.2em;
font-size: 1.125rem;
position: relative;
margin: 1em -11px 0em -15px;
padding: 5px 15px;
    border: 1px solid #70A71A;
}
</style>




<div class="clr"></div>	
<?PHP
$db->Query("SELECT * FROM db_news ORDER BY id DESC");

if($db->NumRows() > 0){

	while($news = $db->FetchArray()){
	
	?>

   <div class="block">
	<div class="block_name">
	<span style="float: right;position:relative;font-size: 14px;top: 3px;"><b><?=date("d.m.Y",$news["date_add"]); ?></b></span>
	<b><?=$news["title"]; ?>

	
	
	</b></div>
<p style="padding-left: 20px;padding-right: 20px;">
<?=$news["news"]; ?>
</div>
         

	<?PHP
	
	}

}else echo "<center>Новостей нет :(</center>";

?>
</div>
<div class="clr"></div>								<div class="clr"></div>	
							<br>
							<br>
							</div>
						<div class="clr"></div>
						
						<style>
						
.logo12 {
    background-image: url('/img/logo12.jpg');
    color: #5d3d1d;
    margin: 10px 0px 0px -10px;
    opacity: 0.9;
    height: 202px;
    background-size: 105%;
}
</style>