getClass("category"); foreach($class->getListByArray() as $key=>$category) { } ?>

getClass("photo"); $maxItems=2; $iPP = 10; $qty=$class->getCount($id_category); echo " Aantal afbeeldingen: {$qty}
"; echo " Pagina's: "; $pages=ceil($qty/$iPP); for($i=1;$i<=$pages;$i++) echo "$i "; $i=0; echo "($iPP afbeeldingen per pagina)"; if(!$offset) $offset=0; $photoList = $class->getListByArray($id_category,"title","asc",$offset,$iPP); if($photoList) { echo "

"; foreach($photoList as $key=>$photo) { if($i++==0) echo "
"; include "templates/thumb.php"; if($i==$maxItems) { $i=0; } } echo "
"; $previous = ($offset-$iPP); if($previous>-1) echo ""; $next = ($offset+$iPP); if($next<$qty) echo ""; echo ''; echo "
 
"; } else { echo "Er zijn geen werken in deze categorie"; } echo "

"; ?>