|
@@ 706-710 (lines=5) @@
|
| 703 |
|
// render "Previous" link |
| 704 |
|
if ($this->start > 0) { |
| 705 |
|
// handle secure URLs |
| 706 |
|
if ($this->request->getParam('token', null) != null) { |
| 707 |
|
$body .= '<li><a href="'.FrontController::generateSecureURL('act=Alpha\Controller\ActiveRecordController&ActiveRecordType='.$this->request->getParam('ActiveRecordType').'&start='.($this->start - $this->limit).'&limit='.$this->limit).'"><<-Previous</a></li>'; |
| 708 |
|
} else { |
| 709 |
|
$body .= '<li><a href="/records/'.urlencode($this->request->getParam('ActiveRecordType')).'/'.($this->start - $this->limit).'/'.$this->limit.'"><<-Previous</a></li>'; |
| 710 |
|
} |
| 711 |
|
} elseif ($this->recordCount > $this->limit) { |
| 712 |
|
$body .= '<li class="disabled"><a href="#"><<-Previous</a></li>'; |
| 713 |
|
} |
|
@@ 738-743 (lines=6) @@
|
| 735 |
|
// render "Next" link |
| 736 |
|
if ($this->recordCount > $last) { |
| 737 |
|
// handle secure URLs |
| 738 |
|
if ($this->request->getParam('token', null) != null) { |
| 739 |
|
$body .= '<li><a href="'.FrontController::generateSecureURL('act=Alpha\Controller\ActiveRecordController&ActiveRecordType='.$this->request->getParam('ActiveRecordType').'&start='.($this->start + $this->limit).'&limit='.$this->limit).'">Next->></a></li>'; |
| 740 |
|
} else { |
| 741 |
|
$body .= '<li><a href="/records/'.urlencode($this->request->getParam('ActiveRecordType')).'/'.($this->start + $this->limit.'/'.$this->limit). |
| 742 |
|
'">Next->></a></li>'; |
| 743 |
|
} |
| 744 |
|
} elseif ($this->recordCount > $this->limit) { |
| 745 |
|
$body .= '<li class="disabled"><a href="#">Next->></a></li>'; |
| 746 |
|
} |