// // Last Modified..: 23/06/2004 // Version 1.00 //=============================================================// $curent_file = $HTTP_SERVER_VARS['PHP_SELF']; $all = $HTTP_GET_VARS['all']; $up_rubesh = $HTTP_GET_VARS['up_rubesh']; $showdetail = $HTTP_GET_VARS['showdetail']; include($dir_shift."../conf/news_conf.php"); //include($dir_shift."../admin/function.php"); //---------------------- new --------------------------------------------------------- ?>
Сегодня:
0) { //определение переменных $link_count = 0; $new_link_count = 0; $print_link = 1; $show_page = 0; define ("link_on_page", "4"); //количество линков на странице while ($row = mysql_fetch_row($res)) { //-------------------------------------------------- //$perm_publ = ch_news ($user_reed_target, $row["publ"]) ; //-------------------------------------------------- if ($row[4] != ""): $link_count++; if ($link_count > $up_rubesh): if ($print_link <= link_on_page): //блок ссылок ?>
"; while ($link_count1 <= $link_count) { $link_count1++; if ($link_count > $show_page): $new_link_count++; if ($show_page == 0): //сдвиг с первой ссылки $new_link = $curent_file."?all=$all"; else: $new_link = $curent_file."?all=$all&up_rubesh=$show_page&showdetail=".$showdetail."&curent_sub=".$curent_sub; endif; $show_page = $show_page + link_on_page; if ($link_count > link_on_page): //убрать если меньше print "$new_link_count "; endif; endif; }*/ //} print "
Всего новостей: $link_count
"; } ?>


">Новые  ">Архив

$up_rubesh): if ($print_link <= link_on_page): //блок ссылок ?>


"; while ($link_count1 <= $link_count) { $link_count1++; if ($link_count > $show_page): $new_link_count++; if ($show_page == 0): //сдвиг с первой ссылки $new_link = $curent_file."?all=$all"; else: $new_link = $curent_file."?all=$all&up_rubesh=$show_page&showdetail=".$showdetail."&curent_sub=".$curent_sub; endif; $show_page = $show_page + link_on_page; if ($link_count > link_on_page): //убрать если меньше print "$new_link_count "; endif; endif; } print "
Всего новостей: $link_count
"; } ?>