<?php require_once ("includes/start.php"); require_once ("includes/functions.php"); require_once ("includes/header.php"); if (isset($_GET['start'])) { $start = abs(intval($_GET['start'])); } else { $start = 0; } $array = array("art-Block-bc", "art-Block-lc", и т.д.); $total = count($array); if ($start < 0 || $start >= $total) { $start = 0; } if ($total < $start + 10) { $end = $total; } else { $end = $start + 10; } for ($i = $start; $i < $end; $i++) { echo '<div class="'.$array[$i].'"></div>'; } page_strnavigation("red.php?", 10, $start, $total); ?>
ZipeR (29 Декабря 2010 / 14:28) это плохо