не могу установить сюда
// Определяем режим просмотра заголовка - текста
$news .= '<div class="list1">';'<div class="list2">';
switch ($this->settings['view']) {
case 2 :
$news .= '<span class="time">' . date('d.m.o / H:i', $res['time'] + $sdvigclock * 3600) . '</span> <a href="news/index.php?act=view&id=' . $res['id'] . '">' . htmlentities($res['name'], ENT_QUOTES, 'UTF-8') . '</a></div>';
if ($total > $kmess) {
echo '<div class="topmenu">' . functions::display_pagination('index.php?',$start, $total, $kmess) . '</div>';
}
break;
case 3 :
$news .= $text;
break;
default :
$news .= '<b>' . htmlentities($res['name'], ENT_QUOTES, 'UTF-8') . '</b> (' . date('d.m.o / H:i', $res['time'] + $sdvigclock * 3600) . ')<br />' . $text;
}
вот этого
defined('_IN_JOHNCMS') or die('Error: restricted access');
$req = mysql_query("SELECT COUNT(*) FROM `cms_news`");
$total = mysql_result($req, 0);
echo '<div class="phdr">News</div>';
$req = mysql_query("SELECT * FROM `cms_news` ORDER BY `time` DESC LIMIT $start, $kmess");
$i = 1;