B2evolution 1.6 2005 11 25 > B2evolution / Blogs / Admin / Edit Navbar.php

Questions? Need Help? Want to share? » PHP Forum
Script Name:
B2evolution 1.6 2005 11 25

Download:
b2evolution-1.6-2005-11-25.zip

Category:
Blog

Archive Content:

B2evolution > Blogs

B2evolution > Blogs > Admin

B2evolution > Blogs > Admin > Img

B2evolution > Blogs > Admin

B2evolution > Blogs > Admin > Skins

B2evolution > Blogs > Admin > Skins > Evo

B2evolution > Blogs > Admin > Skins > Evo > Rsc

B2evolution > Blogs > Admin > Skins > Evo > Rsc > Css

B2evolution > Blogs > Admin > Skins > Evo > Rsc

B2evolution > Blogs > Admin > Skins > Legacy

B2evolution > Blogs > Admin > Skins > Legacy > Rsc

B2evolution > Blogs > Admin > Skins > Legacy > Rsc > Css

B2evolution > Blogs > Admin

B2evolution > Blogs > Conf

B2evolution > Blogs

B2evolution > Blogs > Evocore

B2evolution > Blogs > Htsrv

B2evolution > Blogs > Htsrv > Rsc

B2evolution > Blogs > Htsrv > Rsc > Css

B2evolution > Blogs > Htsrv > Rsc > Icons

B2evolution > Blogs > Htsrv

B2evolution > Blogs > Img

B2evolution > Blogs > Img > Flags

B2evolution > Blogs > Img > Flags > H10px

B2evolution > Blogs > Img > Flags > W16px

B2evolution > Blogs > Img

B2evolution > Blogs > Img > Smilies

B2evolution > Blogs > Img

B2evolution > Blogs

B2evolution > Blogs > Install

B2evolution > Blogs > Lib

B2evolution > Blogs > Locales

B2evolution > Blogs > Locales > De DE

B2evolution > Blogs > Locales > De DE > LC MESSAGES

B2evolution > Blogs > Locales > Fr FR

B2evolution > Blogs > Locales > Fr FR > LC MESSAGES

B2evolution > Blogs > Locales > Ja JP

B2evolution > Blogs > Locales > Ja JP > LC MESSAGES

B2evolution > Blogs > Locales

B2evolution > Blogs > Media

B2evolution > Blogs > Media > Blogs

B2evolution > Blogs > Media

B2evolution > Blogs > Media > Users

B2evolution > Blogs

B2evolution > Blogs > Plugins

B2evolution > Blogs > Rsc

B2evolution > Blogs > Rsc > Css

B2evolution > Blogs > Rsc > Icons

B2evolution > Blogs > Rsc > Icons > Fileicons

B2evolution > Blogs > Rsc > Icons

B2evolution > Blogs > Rsc > Js

B2evolution > Blogs

B2evolution > Blogs > Skins

B2evolution > Blogs > Skins > Atom

B2evolution > Blogs > Skins

B2evolution > Blogs > Skins > Rdf

B2evolution > Blogs > Skins > Rss

B2evolution > Blogs > Skins > Rss2

B2evolution > Blogs > Skins

B2evolution > Blogs > Skins > Basic

B2evolution > Blogs > Skins > Basic > Img

B2evolution > Blogs > Skins > Bluesky

B2evolution > Blogs > Skins > Bluesky > Img

B2evolution > Blogs > Skins > Custom

B2evolution > Blogs > Skins > Custom > Img

B2evolution > Blogs > Skins > Guadeloupe

B2evolution > Blogs > Skins > Guadeloupe > Img

B2evolution > Blogs > Skins > Natural Pink

B2evolution > Blogs > Skins > Natural Pink > Rsc

B2evolution > Blogs > Skins > Natural Pink > Rsc > Img

B2evolution > Blogs > Skins > Natural Pink > Rsc

B2evolution > Blogs > Skins > Nifty Corners

B2evolution > Blogs > Skins > Nifty Corners > Rsc

B2evolution > Blogs > Skins > Nifty Corners > Rsc > Img

B2evolution > Blogs > Skins > Nifty Corners > Rsc

B2evolution > Blogs > Skins > Originalb2

B2evolution > Blogs > Skins > Wpc Aubmach

B2evolution > Blogs > Skins > Wpc Default

B2evolution > Blogs

B2evolution > Blogs > Xmlsrv

B2evolution > Doc

B2evolution > Extras

B2evolution > Extras > Geeklog

B2evolution > Gettext

B2evolution > Gettext > Langfiles

B2evolution > Gettext

B2evolution

Edit Navbar.php:


<?php
/**
 * This file 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/}
 *
 * @package admin
 *
 * 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('EVO_MAIN_INIT') ) die( 'Please,  do not access this page directly.' );
?>
<table cellpadding="0" cellspacing="0" border="0">
    <tr>
        <td>
        <table cellpadding="0" cellspacing="0" border="0"><tr>
        <?php    if($previousXend 0)
        { 
// TODO: get rid of tsk_ID here (fplanque). ?>
        <td>
            <form name="nextXposts" method="post" action="<?php echo regenerate_url( array('poststart', 'postend', 'tsk_ID'),  array('poststart='.$previousXstart, 'postend='.$previousXend) ); ?>">
                <input type="submit" name="submitprevious" class="search" value="&lt; <?php
                
if( $MainList->unit == 'days' )
                    
printfT_('Next %d days'),  $posts );
                else 
printfT_('Previous %d'),  $posts )
                
?>" />
            </form>
        </td>
        <?php    }
        if(
$nextXstart <= $MainList->get_total_num_posts()) { ?>
        <td>
            <form name="nextXposts" method="post" action="<?php echo regenerate_url( array('poststart', 'postend', 'tsk_ID'),  array('poststart='.$nextXstart, 'postend='.$nextXend) ); ?>">
                <input type="submit" name="submitnext" class="search" value="<?php
                    
if( $MainList->unit == 'days' )
                        
printfT_('Previous %d days'),  $posts );
                    else 
printfT_('Next %d'),  $posts );
                    
?> &gt;" />
            </form>
        </td>
        <?php    }    ?>
    <td></td>
        </tr></table>
        </td>
        <td>&nbsp;</td>
        <td align="right">
            <?php
                $Form 
= & new Form$pagenow,  'showXfirstlastposts',  'get',  'none' );
                
$Form->begin_form'' );
                
$Form->hidden'tab',  $tab );
                
$Form->hidden'blog',  $blog );
                if( 
$MainList->unit == 'days' )
                {
                    
// TODO: dropdown / Javascript calendar?
                    
echo date_i18nlocale_datefmt(),  $MainList->limitdate_end )
                    .
' './* TRANS: x TO y OF z */ T_(' to ').' '
                    
.date_i18nlocale_datefmt(),  $MainList->limitdate_start );
                }
                else
                { 
?>
                <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() ?>
                <?php ?>

            <select name="order">
                <option value="DESC" <?php
                $i 
$order;
                if (
$i == "DESC")
                echo 
' selected="selected"';
                
?>><?php echo T_('from the end'?></option>
                <option value="ASC" <?php
                
if ($i == "ASC")
                echo 
' selected="selected"';
                
?>><?php echo T_('from the start'?></option>
            </select>
            <?php
                $Form
->submit( array( 'submitXtoX',  T_('OK'),  'search' ) );
                
$Form->end_form();
            
?>
        </td>
    </tr>
</table>


Other Blog Scripts:

WebMaster Resources Home

©RingsWorld.com