cvs: pearweb /include/pepr pepr.php

From: Date: Sun, 05 Sep 2004 00:16:00 +0000
Subject: cvs: pearweb /include/pepr pepr.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-23642@lists.php.net to get a copy of this message
toby Sat Sep 4 20:16:00 2004 EDT Modified files: /pearweb/include/pepr pepr.php Log: * Added display_overview_nav() function to display a navigation on the overview page. http://cvs.php.net/diff.php/pearweb/include/pepr/pepr.php?r1=1.48&r2=1.49&ty=u Index: pearweb/include/pepr/pepr.php diff -u pearweb/include/pepr/pepr.php:1.48 pearweb/include/pepr/pepr.php:1.49 --- pearweb/include/pepr/pepr.php:1.48 Sat Sep 4 20:02:03 2004 +++ pearweb/include/pepr/pepr.php Sat Sep 4 20:16:00 2004 @@ -22,7 +22,7 @@ * @author Daniel Convissor <danielc@php.net> * @copyright Copyright (c) 1997-2004 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License - * @version $Id: pepr.php,v 1.48 2004/09/05 00:02:03 toby Exp $ + * @version $Id: pepr.php,v 1.49 2004/09/05 00:16:00 toby Exp $ */ /**#@+ @@ -78,6 +78,25 @@ print_tabbed_navigation($items); } +function display_overview_nav () +{ + global $proposalStatiMap; + $items = array( + 'All' => array('url' => 'pepr-overview.php?filter=', + 'title' => 'All' + ) + ); + foreach ($proposalStatiMap as $status => $name) { + $items[$name] = array('url' => 'pepr-overview.php?filter='.$status, + 'title' => $name + ); + } + + print_tabbed_navigation($items); +} + + + function shorten_string($string) { if (strlen($string) < 80) {

« previous php.pear.cvs (#23642) next »