function menuSectionHeader ($name)
{
echo "' .
'' .
' [ ';
}
function menuSectionFooter ()
{
echo "\n";
}
function menuItemLink ($name, $url, $desc, $last)
{
global $currPage;
if ($last) {
$chr = ' ]';
$final = '
';
} else {
$chr = ' | ';
}
if ($name == $currPage) {
echo '';
} else {
echo '';
}
echo "$chr$final";
}
function searchMenu ()
{
menuSectionHeader ("Search");
echo '';
menuSectionFooter ();
}
// Project
menuSectionHeader ("Project");
menuItemLink ("home", "/", "Home", FALSE);
menuItemLink ("shots", "/screenshots.php", "Screen Shots", FALSE);
menuItemLink ("files", "/files.php", "Downloads", FALSE);
menuItemLink ("docs", "/documentation.php", "Documentation", FALSE);
menuItemLink ("lists", "/lists.php", "Mailing Lists", FALSE);
menuItemLink ("news", "/old_news.php", "News Archive", TRUE);
menuSectionFooter ();
// Developers
menuSectionHeader ("Developers");
menuItemLink ("devtools", "/devtools.php", "Developer Tools", FALSE);
menuItemLink ("bugs", "/bugs/", "Bug Tracker", FALSE);
menuItemLink ("cvs", "http://quake.svn.sourceforge.net/viewvc/quake/", "Subversion", FALSE);
// menuItemLink ("plans", "/plans.php", "Developer Plans", FALSE);
// menuItemLink ("patches", "http://sourceforge.net/patch/?group_id=882", "Patch Manager", FALSE);
// menuItemLink ("support", "http://sourceforge.net/support/?group_id=882", "Support Manager", FALSE);
// menuItemLink ("tasks", "http://sourceforge.net/pm/?group_id=882", "Task Manager", FALSE);
menuItemLink ("progress", "/progress.php", "Progress", TRUE);
menuSectionFooter ();
// searchMenu ();
?>