b2evolution

Multilingual multiuser multiblog engine

b2evolution Technical Documentation (0.9.x) [ class tree: admin ] [ index: admin ] [ all elements ]

Source for file _edit_navbar.php

Documentation is available at _edit_navbar.php

  1. <?php
  2. /**
  3.  * Displays the post browsing navigation bar
  4.  *
  5.  * b2evolution - {@link http://b2evolution.net/}
  6.  * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
  7.  * @copyright (c)2003-2005 by Francois PLANQUE - {@link http://fplanque.net/}
  8.  *
  9.  * @package admin
  10.  *
  11.  *  TODO: make it a method of ItemList, usable in real blogs, too
  12.  *  TODO: links to result's pages, not only stoopid 'forward'/'backward'
  13.  *  ...FP: change buttons into parameter-links
  14.  */
  15. if!defined('DB_USER') ) die'Please, do not access this page directly.' );
  16. ?>
  17. <table cellpadding="0" cellspacing="0" border="0">
  18.     <tr>
  19.         <td>
  20.         <table cellpadding="0" cellspacing="0" border="0"><tr>
  21.         <?php    if($previousXend 0?>
  22.         <td>
  23.             <form name="nextXposts" method="post" action="<?php echo regenerate_urlarray('poststart','postend')array('poststart='.$previousXstart,'postend='.$previousXend)$pagenow )?>">
  24.                 <input type="submit" name="submitprevious" class="search" value="&lt; <?php 
  25.                 if$MainList->what_to_show == 'days' )
  26.                     printfT_('Next %d days')$posts );
  27.                 else printfT_('Previous %d')$posts )
  28.                 ?>" />
  29.             </form>
  30.         </td>
  31.         <?php    }
  32.         if($nextXstart <= $MainList->get_total_num_posts()) ?>
  33.         <td>
  34.             <form name="nextXposts" method="post" action="<?php echo regenerate_urlarray('poststart','postend')array('poststart='.$nextXstart,'postend='.$nextXend)$pagenow )?>">
  35.                 <input type="submit" name="submitnext" class="search" value="<?php
  36.                     if$MainList->what_to_show == 'days' )
  37.                         printfT_('Previous %d days')$posts );
  38.                     else printfT_('Next %d')$posts );
  39.                     ?> &gt;" />
  40.             </form>
  41.         </td>
  42.         <?php    }    ?>
  43.     <td></td>
  44.         </tr></table>
  45.         </td>
  46.         <td>&nbsp;</td>
  47.  
  48.         <td align="right">
  49.             <form action="b2browse.php" name="showXfirstlastposts" method="get">
  50.                 <input type="hidden" name="blog" value="<?php echo $blog ?>" />
  51.                 <?php
  52.                 if$what_to_show == 'days' )
  53.                 {
  54.                     // TODO: dropdown / Javascript calendar?
  55.                     echo date_i18nlocale_datefmt()$MainList->limitdate_end )
  56.                     .' './* TRANS: x TO y OF z */ T_(' to ').' '
  57.                     .date_i18nlocale_datefmt()$MainList->limitdate_start );
  58.                 }
  59.                 else
  60.                 ?>
  61.                 <input type="text" name="poststart" value="<?php echo $poststart ?>" size="4" maxlength="10" />
  62.                 <?php /* TRANS: x TO y OF z */ echo T_(' to '?>
  63.                 <input type="text" name="postend" value="<?php echo $postend ?>" size="4" maxlength="10" />
  64.                 <?php /* TRANS: x TO y OF z */ echo T_(' of '?> <?php echo $MainList->get_total_num_posts(?>
  65.                 <?php ?>
  66.                 
  67.                 <select name="order">
  68.                     <option value="DESC" <?php
  69.                     $i $order;
  70.                     if ($i == "DESC")
  71.                     echo ' selected="selected"';
  72.                     ?>><?php echo T_('from the end'?></option>
  73.                     <option value="ASC" <?php
  74.                     if ($i == "ASC")
  75.                     echo ' selected="selected"';
  76.                     ?>><?php echo T_('from the start'?></option>
  77.                 </select>
  78.                 <input type="submit" name="submitXtoX" class="search" value="<?php echo T_('OK'?>" />
  79.             </form>
  80.         </td>
  81.     </tr>
  82. </table>

Documentation generated on Tue, 20 May 2008 01:53:50 +0200 by phpDocumentor 1.4.2