0) $currentpage = $_GET['page']; else $currentpage = 1; // get number of items $numberofitems = NewsItem::getCount("AND active=1"); // calculate number of pages $itemsperpage = 5; $numberofpages = ceil($numberofitems/$itemsperpage); // check if we are beyond the last page if ($currentpage > $numberofpages) HTTP_404(); // selection for current page $itemstart = ($currentpage - 1) * $itemsperpage; $newsitems = NewsItem::getSelection("AND active=1", "dateadd DESC", $itemsperpage, $itemstart); // pagenumbers $baselink = "nieuws.php?"; $pagelinks = Results_PageNumberLinksHTML($baselink, 'page', $currentpage, $numberofitems, $itemsperpage); ?> Nieuws van Global Recovery Systems Holland - De specialist voor hoogwaardige bergingsvoertuigen - Nederland
[T] +31 0 161 225012     [E] info@grsholland.com
GRS - Global Recovery Systems Holland

Nieuws

$newsitem): $photos = $newsitem->getPhotos(); ?>