Location: PHPKode > scripts > EncapsGallery > encapsgallery/admin/html/pagination.html
<?php 
$prefix = '?categ_id='.@$postget['categ_id'];

if(count($html["pagination"]["pages"]))
{
	$i = $html["pagination"]["page"]-1;
	if($i > 0)
	{
		?> <a href="<?php echo $prefix?>&amp;page=<?php echo $i?>" title="<?php echo $i?>">&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?>"><?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?>">&raquo;</a><?php
	}
	else
	{
		?> &raquo;<?php
	}
}
?>
Return current item: EncapsGallery