<?php $links = $paginator->getLinks(); ?>

<?php if (count($links) > 1): ?>
<div id="paginator">
	<span class="borderRight"></span>
	<div class="paginatorBlock">
	<?php if ($paginator->getFirstLink()): ?><a href="<?php echo $paginator->getFirstLink(); ?>" class="first" title="in&iacute;cio">&laquo;</a><?php endif; ?>
    <?php if ($paginator->getPrevLink()): ?><a href="<?php echo $paginator->getPrevLink(); ?>" class="prev">&lsaquo;&nbsp;<?php echo translate('anterior'); ?></a><?php endif; ?>
    <?php foreach ($links as $link): ?>
    <?php if ($paginator->getPage() == $link['page']): ?>
    <span class="current"><?php echo $link['page']; ?></span>
    <?php else: ?>
    <a href="<?php echo $link['link']; ?>"><?php echo $link['page']; ?></a>
    <?php endif; ?>
    <?php endforeach; ?>
    <?php if ($paginator->getNextLink()): ?><a href="<?php echo $paginator->getNextLink(); ?>" class="next"><?php echo translate('pr&oacute;ximo'); ?>&nbsp;&rsaquo;</a><?php endif; ?>
    <?php if ($paginator->getLastLink()): ?><a href="<?php echo $paginator->getLastLink(); ?>" class="last" title="fim">&raquo;</a><?php endif; ?>	
    </div>
    <span class="borderLeft"></span>
    
    <div style="float:left;"><?php echo $this->img('/admin/media/images/borderLeft_pag.gif', array('alt' => '', 'title' => '', 'width' => 5, 'height' => 24, 'border' => 0,));?></div>
	<div class="total_rows_pages"><strong><?php echo $paginator->getTotalRows(); ?></strong> <?php echo translate('itens'); ?>&nbsp;&nbsp;/&nbsp;&nbsp;<?php echo translateAdmin('P&aacute;gina'); ?> <strong><?php echo $paginator->getPage(); ?> </strong> <?php echo translateAdmin('de'); ?> <?php echo $paginator->getTotalPages(); ?></div>
    <div style="float:left;"><?php echo $this->img('/admin/media/images/borderRight_pag.gif', array('alt' => '', 'title' => '', 'width' => 5, 'height' => 24, 'border' => 0,));?></div>
</div>
<?php endif; ?>