For example:
<< 1 2 - 3 - 4 5 7 9 >>
Apply this to zm_html_view_events.php. If you have trouble due to formatting, I've made it available at http://www.hunter13.com/zm_navigation.diff
Code: Select all
*** zm_html_view_events.php 2004-09-12 13:00:43.000000000 +0100
--- /root/software/extract/zm-1.19.3/web/zm_html_view_events.php 2004-04-21 10:20:28.000000000 +0100
***************
*** 193,201 ****
if ( $page > 1 )
{
- ?>
- <a href="<?= $PHP_SELF ?>?view=<?= $view ?>&page=<?= $page - 1 ?><?= $filter_query ?><?= $sort_query ?>&limit=<?= $limit ?>"><<</a>
- <?php
$new_pages = array();
$pages_used = array();
$lo_exp = max(2,log($page-1)/log($max_shortcuts));
--- 193,198 ----
***************
*** 218,224 ****
<a href="<?= $PHP_SELF ?>?view=<?= $view ?>&page=<?= $new_page ?><?= $filter_query ?><?= $sort_query ?>&limit=<?= $limit ?>"><?= $new_page ?></a>
<?php
}
-
}
?>
- <?= $page ?> -
--- 215,220 ----
***************
*** 247,255 ****
<a href="<?= $PHP_SELF ?>?view=<?= $view ?>&page=<?= $new_page ?><?= $filter_query ?><?= $sort_query ?>&limit=<?= $limit ?>"><?= $new_page ?></a>
<?php
}
- ?>
- <a href="<?= $PHP_SELF ?>?view=<?= $view ?>&page=<?= $page + 1 ?><?= $filter_query ?><?= $sort_query ?>&limit=<?= $limit ?>">>></a>
- <?php
}
?>
</td>
--- 243,248 ----