48 lines
2.8 KiB
PHTML
48 lines
2.8 KiB
PHTML
<?php if ($this->pageCount > 1): ?>
|
|
<ul class="pagination pagination-sm float-right">
|
|
<!-- Link alla prima pagina -->
|
|
<?php if (isset($this->previous)): ?>
|
|
<li class="page-item"><a class="page-link" href="<?= $this -> url(array('page' => $this -> first,'count' => $this -> count,'action'=>$this->action, 'module'=>$this->moduleName),'filterpager',true); ?>"><i class="fa fa-angle-double-left"></i></a>
|
|
<?php else: ?>
|
|
<li class="page-item disabled"><a class="page-link" href="#"><i class="fa fa-angle-double-left"></i></a></li>
|
|
<?php endif; ?>
|
|
|
|
<!-- Link alla pagina precedente -->
|
|
<?php if (isset($this->previous)): ?>
|
|
<li class="page-item"><a class="page-link" href="<?= $this -> url(array('page' => $this -> previous,'count' => $this -> count,'action'=>$this->action, 'module'=>$this->moduleName),'filterpager',true); ?>"><i class="fa fa-angle-left"></i></a><li>
|
|
<?php else: ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
<!-- Link pagina numerata -->
|
|
<?php foreach ($this->pagesInRange as $page): ?>
|
|
<?php if ($page != $this->current): ?>
|
|
<li class="page-item" style="font-size: 10px;"><a class="page-link" href="<?php echo $this -> url(array('page' => $page,'count' => $this -> count,'action'=>$this->action, 'module'=>$this->moduleName),'filterpager',false); ?>">
|
|
<?php echo $page; ?>
|
|
</a></li>
|
|
<?php else: ?>
|
|
<li class="active page-item" style="font-size: 10px;"><a class="page-link" href="<?php echo $this -> url(array('page' => $page,'count' => $this -> count,'action'=>$this->action, 'module'=>$this->moduleName),'filterpager',false); ?>"><?php echo $page; ?></a></li>
|
|
<?php endif; ?>
|
|
<?php endforeach; ?>
|
|
|
|
<!-- Link alla pagina successiva -->
|
|
<?php if (isset($this->next)): ?>
|
|
<li class="page-item"><a class="page-link" href="<?= $this -> url(array('page' => $this -> next,'count' => $this -> count,'action'=>$this->action, 'module'=>$this->moduleName),'filterpager',false); ?>"><i class="fa fa-angle-right"></i></a></li>
|
|
<?php else: ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
<!-- Link all'ultima pagina -->
|
|
<?php if (isset($this->next)): ?>
|
|
<li class="page-item" style="margin-right:10px;"><a class="page-link" href="<?= $this -> url(array('page' => $this -> last,'count' => $this -> count,'action'=>$this->action),'filterpager',false); ?>"><i class="fa fa-angle-double-right"></i></a></li>
|
|
<?php else: ?>
|
|
<li class="page-item disabled"><a class="page-link" href="#"><i class="fa fa-angle-double-right"></i></a></li>
|
|
<?php endif; ?>
|
|
|
|
<div class="text-counter">
|
|
dal: <?php echo $this -> firstItemNumber; ?> - <?= $this -> lastItemNumber; ?> di <?= $this -> totalItemCount; ?>
|
|
</div>
|
|
|
|
</ul>
|
|
<?php endif; ?>
|