Added first/last links to event navigation.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1550 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2005-11-05 16:24:52 +00:00
parent a55cbe32f8
commit edcb21fcfd
1 changed files with 4 additions and 2 deletions

View File

@ -269,7 +269,8 @@ function viewEvents( form, name )
if ( $page > 1 )
{
?>
<a href="<?= $PHP_SELF ?>?view=<?= $view ?>&page=<?= $page - 1 ?><?= $filter_query ?><?= $sort_query ?>&limit=<?= $limit ?>">&lt;&lt;</a>
<a href="<?= $PHP_SELF ?>?view=<?= $view ?>&page=1<?= $filter_query ?><?= $sort_query ?>&limit=<?= $limit ?>">&lt;&lt;</a>
<a href="<?= $PHP_SELF ?>?view=<?= $view ?>&page=<?= $page - 1 ?><?= $filter_query ?><?= $sort_query ?>&limit=<?= $limit ?>">&lt;</a>
<?php
$new_pages = array();
$pages_used = array();
@ -323,7 +324,8 @@ function viewEvents( form, name )
<?php
}
?>
<a href="<?= $PHP_SELF ?>?view=<?= $view ?>&page=<?= $page + 1 ?><?= $filter_query ?><?= $sort_query ?>&limit=<?= $limit ?>">&gt;&gt;</a>
<a href="<?= $PHP_SELF ?>?view=<?= $view ?>&page=<?= $page + 1 ?><?= $filter_query ?><?= $sort_query ?>&limit=<?= $limit ?>">&gt;</a>
<a href="<?= $PHP_SELF ?>?view=<?= $view ?>&page=<?= $pages ?><?= $filter_query ?><?= $sort_query ?>&limit=<?= $limit ?>">&gt;&gt;</a>
<?php
}
?>