Location: PHPKode > scripts > Encaps Gallery > encaps-2.3.22s/pagination.html
<?php 
$prefix = '?categ_id='.@$html['categ']['id'];

if(isset($_GET['search']))
	$prefix .= '&amp;search='.$_GET['search'];


if($html["pagination"]["pages"]>1)
{
	$i = $html["pagination"]["page"]-1;
	if($i > 0)
	{
		?> <a href="<?php echo $prefix?>&amp;page=<?php echo $i?>" title="<?php echo $i?>" class="pagination">&laquo;</a><?php
	}
	else
	{
		?> &laquo;<?php
	}
	for($i=1;$i<=$html["pagination"]["pages"];$i++)
	{
		if($i != $html["pagination"]["page"])
		{
			?> <a href="<?php echo $prefix?>&amp;page=<?php echo $i?>" title="<?php echo $i?>" class="pagination"><?php echo $i?></a><?php
		}
		else
		{
			?> [<?php echo $i?>]<?php
		}
	}

	$i = $html["pagination"]["page"]+1;
	if($i <= $html["pagination"]["pages"])
	{
		?> <a href="<?php echo $prefix?>&amp;page=<?php echo $i?>" title="<?php echo $i?>" class="pagination">&raquo;</a><?php
	}
	else
	{
		?> &raquo;<?php
	}
}
?>
Return current item: Encaps Gallery