Рэйки-новости, семинары и круги, традиционный мастер Рэйки Дмитрий Окунев

Новости


$current_time ORDER BY $sort_by DESC LIMIT $news_start_num, $news_show"; $query = mysql_query($query); if(!$query) { echo "

Ошибка: ".mysql_error()."

"; exit(); } else { while($news = mysql_fetch_array($query)) { if(ereg(3, "".$news['category']."")) { $actual_before = "".$news['act_date'].""; $current_time = time(); if($actual_before < $current_time) { $line = "

АРХИВ


"; if(!isset($is_line)) { echo $line; $is_line = 1; } } $entry_date = getdate("".$news['date'].""); $entry_year = $entry_date['year']; $entry_month = $entry_date['mon']; $entry_day = $entry_date['mday']; $text = str_replace("\n", "
", "".$news['text'].""); echo "
".$news['title']."
$text
$entry_day.$entry_month.$entry_year"; $forum_view_link = "".$news['forum_view'].""; $forum_discuss_link = "".$news['forum_discuss'].""; if($forum_view_link != "" or $forum_discuss_link != "") { if($forum_view_link != "") { echo " ".$news_settings['forum_view_link']." "; } if($forum_discuss_link != "") { echo " ".$news_settings['forum_discuss_link']." "; }} echo "

"; } } ?>


$news_show) { $pages_count = $rows_count/$news_show; $pages_count = ceil($pages_count); } echo "
Страницы: "; for ($i=0, $j=1; $i<$pages_count; $i++, $j++) { if($page == $i) { echo " $j "; } else { echo " $j "; } } echo "
"; } mysql_close($dbconnect); ?>