Просмотр файла uncos/topnews.php

Размер файла: 948B
<?
/*
=============================================
Движок:  SHCMS Engine
=============================================
Название файла: Популярные новости
=============================================
Official website: http://shcms.ru
=============================================
*/

define('SHCMS', true);
include_once'../system/inc/basic_settings.php';
$shcmsengine['title'] = 'Популярные новости';
include_once'../template/head.php';

$top_list = mysql_query("SELECT * FROM `uncos` ORDER BY `prosm` DESC");
while($top_news = mysql_fetch_array($top_list)) {
echo '<div class="maintitle"><img src="/template/icon/news.png"> <a href="categories.php?act=more&id='.$top_news['id'].'"><b>'.$top_news['title'].' </b></a>
  <div class="maintime">'.$timedate->times($top_news['time']).'</div>
</div>
<div class="maintext">
'.$top_news['text2'].'
</div>
';
}




include_once'../template/foot.php';
?>