Размер файла: 1.23Kb
<?php
////////////////////////////////////////
///// Kyber ApiCMS 2013 apicms.ru //////
///// Запрещается продажа данной CMS ///
///// Автор Евгений Медянкин Kyber /////
///// ICQ 626-000-895 или 37-22-47 /////
////////////////////////////////////////
$query = mysql_query("SELECT * FROM `news` ORDER BY time DESC LIMIT 1");
while ($newsone = mysql_fetch_assoc($query)){
$koms = mysql_result(mysql_query("SELECT COUNT(*) FROM `news_comm` WHERE `id_news` = '$newsone[id]'"),0);
if ($koms==0)$koms=NULL;
else $koms = ' +'.$koms.'';
echo '<div class="content"><div class="descr">';
echo '<a href="/modules/all_news.php"><strong><font color=#ffffff>'.apicms_smiles(apicms_bb_code(apicms_br($newsone['name']))).'</font></strong></a> <span style="float:right"><small> '.apicms_data($newsone['time']).' </small></span> </br> '.apicms_smiles(apicms_bb_code(apicms_br($newsone['txt']))).'';
echo '<hr> <img src="/design/menu/all_comms.png"/> <a href="/modules/news_comm.php?id='.$newsone['id'].'"><small><font color=#ffffff>Комментарии '.$koms.'</font></small></a> <span style="float:right"><img src="/design/menu/rsnews.png"/></span> </div></div>';
}
///////////////////////////////////
?>