} if (isset($_GET["count"]) && ep6\InputValidator::isRangedInt((int) $_GET["count"], 10, 100)) { $resultsPerPage = (int) $_GET["count"]; } # get all products $productFilter = new ep6\ProductFilter(); if (isset($sort)) { $productFilter->setSort($sort); } if (isset($direction)) { $productFilter->setDirection($direction); } if (isset($resultsPerPage)) { $productFilter->setResultsPerPage($resultsPerPage); } $products = $productFilter->getProducts(); ?> <html> <head> <title>The Product overview</title> </head> <body> <h1>The Product overview</h1> <p> <strong>Number of Products: <a href="?count=10">10</a>, <a href="?count=50">50</a>, <a href="?count=100">100</a></strong> </p> <table> <thead> <tr> <th>Image</th> <th><nobr>Name <a href="?sort=nameu">⇑</a> / <a href="?sort=named">⇓</a></nobr></th>