<?php if ($this->pageCount > 1): ?>

	<!-- First page link -->
	
	<?php
	$order = '';
	if ($this->order && $this->sort) {
		$order = '/order/' . $this->order . '/sort/' . $this->sort; 
	}
	$search = '';
    if ($this->search) {
    	$search = '/search/' . $this->search;
    }
	?>
	
	<?php if (isset($this->first) && $this->first != $this->current): ?>
		<a href="<?=$this->baseUrl()?>/admin/users/index/page/<?=$this->first?><?=$order?><?=$search?>">|&lt;&lt;</a>
	<?php else: ?>
	  	<span class="inactive">|&lt;&lt;</span>
	<?php endif; ?>

	<!-- Previous page link -->
	<?php if (isset($this->previous)): ?>
	  	<a href="<?=$this->baseUrl()?>/admin/users/index/page/<?=$this->previous?><?=$order?><?=$search?>">&lt;&lt;</a>
	<?php else: ?>
	  	<span class="inactive">&lt;&lt;</span>
	<?php endif; ?>
	
	<?php foreach ($this->pagesInRange as $page): ?>
	  	<?php if ($page != $this->current): ?>
	    	<a href="<?=$this->baseUrl()?>/admin/users/index/page/<?=$page?><?=$order?><?=$search?>"><?=$page;?></a>
	  	<?php else: ?>
	    	<a href="<?=$this->baseUrl()?>/admin/users/index/page/<?=$this->current?><?=$order?><?=$search?>" class="active"><?=$page;?></a>
	  	<?php endif; ?>
	<?php endforeach; ?>
	
	<!-- Next page link -->
	<?php if (isset($this->next)): ?>
		<a href="<?=$this->baseUrl()?>/admin/users/index/page/<?=$this->next?><?=$order?><?=$search?>">&gt;&gt;</a>
	<?php else: ?>
	  	<span class="inactive">&gt;&gt;</span>
	<?php endif; ?>
	
	<!-- Last page link -->
	<?php if (isset($this->last) && $this->last != $this->current) : ?>
 		<a href="<?=$this->baseUrl()?>/admin/users/index/page/<?=$this->last?><?=$order?><?=$search?>">&gt;&gt;|</a>
	<?php else: ?>
	  <span class="inactive">&gt;&gt;|</span> 
	<?php endif; ?>
	
<?php endif; ?>