getPro($pro); //print_r($proj);exit(); $category = array(); $categories=$core->getupCategories3($category);//print_r($categories);exit(); $perpage = 2; $start = 0; $index = 0; if(is_numeric(@$_GET["index"])) { if($_GET["index"] >= 0 && $_GET["index"] < count($categories)) $index = $_GET["index"]; } $start = $index * $perpage; $end = $start + $perpage - 1; if($end > count($categories) - 1) $end = count($categories) - 1; $pages = ceil(count($categories) / $perpage); $imagss=array(); for($i=$start;$i<=$end;$i++) { array_push($imagss,$categories["$i"]); } $categories=$imagss; ?>



Our Products

"; $key = $index - 1; if($key >= 0 && $key < $pages){ print ""; print " Previous ";} if($key >= 0 && $key < $pages){print "";} for($i=0; $i<$pages; $i++) {?>  "; print $_index+1;} else{ print "";print ""; print $_index+1;print " ";}?>  = 0 && $key < $pages){ print ""; print " Next ";} if($key >= 0 && $key < $pages){ print "";} print "

"; ?>