aboutsummaryrefslogtreecommitdiff
path: root/mod/file
diff options
context:
space:
mode:
Diffstat (limited to 'mod/file')
-rw-r--r--mod/file/views/default/file/footer.php28
1 files changed, 27 insertions, 1 deletions
diff --git a/mod/file/views/default/file/footer.php b/mod/file/views/default/file/footer.php
index 15c5adc7f..149c87e5a 100644
--- a/mod/file/views/default/file/footer.php
+++ b/mod/file/views/default/file/footer.php
@@ -1,3 +1,29 @@
<?php
+ /**
+ * Elgg file browser footer
+ *
+ * @package ElggFile
+ * @author Marcus Povey
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.com/
+ */
-?> \ No newline at end of file
+ $limit = $vars['limit'];
+ $offset = $vars['offset'];
+ $url = $_SERVER['request_uri'];
+?>
+<div id="navbar">
+ <table width="100%">
+ <tr>
+ <td>
+ <div id="prev"><?php if ($offset>0) { ?><a href="<?php echo "$url?offset=" . ($offset-$limit); ?>">Prev</a><?php } ?>
+ </div>
+ </td>
+ <td align="right">
+ <div id="next">
+ <a href="<?php echo "$url?offset=" . ($offset+$limit); ?>">Next</a>
+ </div>
+ </td>
+ </tr>
+ </table>
+</div> \ No newline at end of file