Find these extraordinary products in our
category:
";
// calculate which products to display on this page
$start = ($page - 1) * PRODUCTS_PER_PAGE;
$end = min ($start + PRODUCTS_PER_PAGE, count($products));
// display the products for the current page
for ($i = $start; $i < $end; $i++ )
{
$url = make_category_product_url($category_name, $category_id,
$products[$i]['name'], $products[$i]['id']);
echo '' .
'' . $products[$i]['name'] . '' .
'';
}
echo "";
// use the SimplePager library to display the pager
$simple_pager = new SimplePager($products, PRODUCTS_PER_PAGE, 'make_category_url');
echo $simple_pager->display($page, $products, array($category_name, $category_id));
?>