0 Пользователей и 1 Гость просматривают эту тему.
if (!$icons_in_separate_column&&!$tmp_data[$rn][14]=="on") {echo "$icons";} else if (!$icons_in_separate_column) echo "$icons";/*** 7-18-2002 ***/ if ($icons_in_separate_column AND $tmp_data[$rn][14]=="on") echo " "; echo ""; }\'; eval($legend_row1); if ($use_themes_languages_header) eval($legend_row2); eval($legend_row3); eval($legend_row4); echo "\\n\\n";if ($total_rows_in_gb) { $trn = $rn; if (!isset($start)) $start=$rn; $rn = $start; $rows_per_page = ($rows_per_page>0)?$rows_per_page:99999; $cnt = 0; for ($c=$rn;$c>0;$c--) { if ($cnt==0 OR $cnt%$rows_per_page!=0) { eval($display_code);echo "\\n\\n"; $cnt++; } $rn--; if ($cnt > 0 AND $cnt%$rows_per_page==0) { $next = $rn; break; } } if ($next < 1) $prev = $cnt + $rows_per_page; else $prev = $next + 2*($rows_per_page); if ($prev > $trn) $prev = $trn; if ($prev <= $rows_per_page) $prev = 0; if ($next>0 OR $next>$rows_per_page) $show_next=true; else $show_next=false; if ($prev>0 && ($start!=$trn OR $show_next==false)) $show_prev=true; else $show_prev=false; if ($next<$rows_per_page) $nrpp = $next; else $nrpp = $rows_per_page; if ($prev<$rows_per_page) $prpp = $prev; else $prpp = $rows_per_page; echo "\\n\\n"; $data = array(); $tmp_data = array(); if ($entries>0) { eval($legend_row1); if ($use_themes_languages_footer) eval($legend_row2); eval($legend_row3); } $pages = ceil($trn/$rows_per_page); $st = $trn; if ($show_prev) $arrow_p = ""; else $arrow_p = ""; if ($show_next) $arrow_n = ""; else $arrow_n = ""; $page_legend = $arrow_p; $carry = $HTTP_GET_VARS[carry]; if (empty($carry)) $carry=1; for ($p=$carry;$p<=$pages;$p++) { if ($st==$start) $link=false; else $link=true; if ($carry>1&&$p==$carry) { $h_c = $carry; $carry = $carry-1; $st = $st - ($carry*$rows_per_page); $st1 = $st+$rows_per_page; $page_legend = "<< | "; $carry = $h_c; } if ($link) $page_legend .= "$p | "; else $page_legend .= "$p | "; $st = $st-$rows_per_page; if ($p+1>$carry+19) { $carry = $carry+1; $page_legend .= ">> | "; break 1; } } if ($show_next||$show_prev); else $page_legend = ""; $page_legend .= $arrow_n; echo "".$page_legend; eval($legend_row4); if ($use_intro) {if ($page_alignment_center) echo ""; eval($intro);if ($page_alignment_center) echo ""; }} //ends total_rows_in_gb logic}#end action=view Записан CGVictor теперь местный Глобальный модератор Ветеран Сообщений: 2511 +0/-0 2 Постраницный вывод цикла « Ответ #2 : 03 Августа 2004, 12:15:21 » StyleWarrior Где ж вас таких находят?В любом ФАКе на любом форуме - сотню раз обсуждали.http://forums.webscript.ru/showthread.php&threadid=3931&msgnum=0или в поиск "*страничн* вывод" - куча обсуждений... « Последнее редактирование: 03 Августа 2004, 12:28:28 от CGVictor » Записан LJ: Backslashed life (rss) Печать Страницы: [1] Вверх « предыдущая тема следующая тема » Forum Webscript.Ru » Программирование » PHP » Постраницный вывод цикла Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28