function menuItemLink ($name, $url, $desc)
{
global $currPage;
if ($name == $currPage) {
echo "$desc
";
} else {
echo '
';
}
}
function menuSectionHeader ($name, $fgColor , $bgColor, $intBgColor)
{
echo "\n' .
'
' .
' ' .
' ' .
' ' .
' ' . $name . '' .
' | ' .
'
' .
' ' .
' ';
}
function menuSectionFooter ()
{
echo ' | ' .
'
' .
'
';
}
function qfMenu ()
{
menuSectionHeader ("Project", 'white', menuHeadColor, menuBgColor);
menuItemLink ("about", "/about.php", "About");
menuItemLink ("home", "/", "Latest News");
menuItemLink ("news", "/news.php", "Old News");
menuItemLink ("docs", "/documentation.php", "Documentation");
menuItemLink ("shots", "/screenshots.php", "Screenshots");
menuItemLink ("files", "/files.php", "Downloads");
menuItemLink ("bugs", "/bugs/", "Bug Tracker");
menuItemLink ("lists", "/lists.php", "Mailing Lists");
// menuItemLink ("board", "/board/", "Web Forum");
menuSectionFooter ();
}
function develMenu ()
{
menuSectionHeader ("Developers", 'white', menuHeadColor, menuBgColor);
menuItemLink ("cvs", "/cgi-bin/viewcvs.cgi/", "Browse CVS");
menuItemLink ("devtools", "/devtools.php", "Developer Tools");
menuItemLink ("plans", "/plans.php", "Developer Plans");
menuItemLink ("progress", "/progress.php", "Progress");
// menuItemLink ("sotc", "/sotc/", "State of the Code");
// menuItemLink ("research", "/research/", "Research Center");
// menuItemLink ("patches", "http://sourceforge.net/patch/?group_id=882", "Patch Manager");
// menuItemLink ("support", "http://sourceforge.net/support/?group_id=882", "Support Manager");
// menuItemLink ("tasks", "http://sourceforge.net/pm/?group_id=882", "Task Manager");
menuSectionFooter ();
}
function searchMenu ()
{
menuSectionHeader ("Search", 'white', menuHeadColor, menuBgColor);
echo '' .
'' .
'';
menuSectionFooter ();
}
qfMenu ();
develMenu ();
searchMenu ();
?>