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