aboutsummaryrefslogtreecommitdiff
path: root/classes/helpers
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2010-08-16 16:18:37 -0300
committerSilvio <silvio@devlet.com.br>2010-08-16 16:18:37 -0300
commita8f51f030179974bfeace50d9523a50e059affd1 (patch)
tree8c45aa338cec53fcabed76e2e23491be5eba1eef /classes/helpers
parente7e7ea4467452f6e08cf79ca0a8e6b9e216407c6 (diff)
downloadcinisis-a8f51f030179974bfeace50d9523a50e059affd1.tar.gz
cinisis-a8f51f030179974bfeace50d9523a50e059affd1.tar.bz2
Adding navbar for repetition finder
Diffstat (limited to 'classes/helpers')
-rw-r--r--classes/helpers/CinisisDisplayHelper.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/classes/helpers/CinisisDisplayHelper.php b/classes/helpers/CinisisDisplayHelper.php
index cf095ac..8a795e8 100644
--- a/classes/helpers/CinisisDisplayHelper.php
+++ b/classes/helpers/CinisisDisplayHelper.php
@@ -89,19 +89,19 @@ class CinisisDisplayHelper {
* @param $action
* Page action.
*/
- function navbar($entry, $entries, $action = 'index.php') {
+ function navbar($entry, $entries, $action = 'index.php', $extra = NULL) {
// First / prev links.
if ($entry != 1) {
$prev = $entry - 1;
- echo '<a href="'. $action .'?entry=1">first</a> ';
- echo '<a href="'. $action .'?entry='. $prev .'">&lt; prev</a> ';
+ echo '<a href="'. $action .'?entry=1"'. $extra .'>first</a> ';
+ echo '<a href="'. $action .'?entry='. $prev . $extra .'">&lt; prev</a> ';
}
// Next / last links.
if ($entry < $entries) {
$next = $entry + 1;
- echo '<a href="'. $action .'?entry='. $next .'">next &gt;</a> ';
- echo '<a href="'. $action .'?entry='. $entries .'">last</a>';
+ echo '<a href="'. $action .'?entry='. $next . $extra .'">next &gt;</a> ';
+ echo '<a href="'. $action .'?entry='. $entries . $extra .'">last</a>';
}
}
}