Файл: pages/_news.php
Строк: 23
<?PHP
$_OPTIMIZATION["title"] = "Новости";
$_OPTIMIZATION["description"] = "Новости проекта";
$_OPTIMIZATION["keywords"] = "Новости нашего проекта";
?>
<div class="s-bk-lf">
<div class="acc-title">Новости</div>
</div>
<div class="silver-bk"><div class="clr"></div>
<?PHP
$db->Query("SELECT * FROM db_news ORDER BY id DESC");
if($db->NumRows() > 0){
while($news = $db->FetchArray()){
?>
<table width="100%"align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="left"><h3><?=$news["title"]; ?></h3></td>
<td align="right" width="100" bgcolor="#bef574" ><strong><center><?=date("d.m.Y",$news["date_add"]); ?></center></strong></td>
</tr>
<tr>
<td colspan="2" bgcolor="#bef574"><center><?=$news["news"]; ?></center></td>
</tr>
</table>
<BR />
<?PHP
}
}else echo "<center>Новостей нет :(</center>";
?>
</div>
<div class="clr"></div>