Source for file _edit_navbar.php
Documentation is available at _edit_navbar.php
* Displays the post browsing navigation bar
* b2evolution - {@link http://b2evolution.net/}
* Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
* @copyright (c)2003-2005 by Francois PLANQUE - {@link http://fplanque.net/}
* TODO: make it a method of ItemList, usable in real blogs, too
* TODO: links to result's pages, not only stoopid 'forward'/'backward'
* ...FP: change buttons into parameter-links
if( !defined('DB_USER') ) die( 'Please, do not access this page directly.' );
<table cellpadding="0" cellspacing="0" border="0">
<table cellpadding="0" cellspacing="0" border="0"><tr>
<?php if($previousXend >
0) { ?>
<form name="nextXposts" method="post" action="
<?php echo
regenerate_url( array('poststart','postend'), array('poststart='.
$previousXstart,'postend='.
$previousXend), $pagenow ); ?>">
<input type="submit" name="submitprevious" class="search" value="<
<?php
if( $MainList->what_to_show ==
'days' )
else printf( T_('Previous %d'), $posts )
if($nextXstart <=
$MainList->get_total_num_posts()) { ?>
<form name="nextXposts" method="post" action="
<?php echo
regenerate_url( array('poststart','postend'), array('poststart='.
$nextXstart,'postend='.
$nextXend), $pagenow ); ?>">
<input type="submit" name="submitnext" class="search" value="
<?php
if( $MainList->what_to_show ==
'days' )
printf( T_('Previous %d days'), $posts );
<form action="b2browse.php" name="showXfirstlastposts" method="get">
<input type="hidden" name="blog" value="
<?php echo
$blog ?>" />
if( $what_to_show ==
'days' )
// TODO: dropdown / Javascript calendar?
.
' '.
/* TRANS: x TO y OF z */ T_(' to ').
' '
<input type="text" name="poststart" value="
<?php echo
$poststart ?>" size="4" maxlength="10" />
<?php /* TRANS: x TO y OF z */ echo
T_(' to ') ?>
<input type="text" name="postend" value="
<?php echo
$postend ?>" size="4" maxlength="10" />
<?php /* TRANS: x TO y OF z */ echo
T_(' of ') ?> <?php echo
$MainList->get_total_num_posts() ?>
<option value="DESC"
<?php
echo
' selected="selected"';
?>>
<?php echo
T_('from the end') ?></option>
<option value="ASC"
<?php
echo
' selected="selected"';
?>>
<?php echo
T_('from the start') ?></option>
<input type="submit" name="submitXtoX" class="search" value="
<?php echo
T_('OK') ?>" />