website/parts/menu.php

113 lines
4.1 KiB
PHP
Raw Normal View History

2000-07-30 12:35:01 +00:00
<!-- menus -->
<?
2001-10-17 05:46:43 +00:00
function menuItemLink ($name, $url, $desc)
2000-07-30 12:35:01 +00:00
{
2001-10-17 05:46:43 +00:00
global $currPage;
if ($name == $currPage) {
echo "<STRONG>$desc</STRONG><BR>";
} else {
echo '<A class="menus" href="' . $url . '">' . $desc . '</A><BR>';
}
2000-07-30 12:35:01 +00:00
}
function menuSectionHeader ($name, $fgColor , $bgColor, $intBgColor)
{
echo "\n<!-- menuSectionHeader(" . $name . ') -->' .
'<TABLE cellSpacing="0" cellPadding="3" width="100%" border=0 bgColor="' . $bgColor . '">' .
' <TR bgColor="' . $bgColor . '">' .
' <TD align="center">' .
' <IMG src="/img/blank.gif" height="1" width="135" alt="" border="0"><BR>' .
2000-11-13 17:55:00 +00:00
' <SPAN class="titleBar">' . $name . '</SPAN>' .
2000-07-30 12:35:01 +00:00
' </TD>' .
' </TR>' .
' <TR align="right" bgColor="' . $intBgColor . '">' .
' <TD>';
}
function menuSectionFooter ()
{
echo ' </TD>' .
' </TR>' .
'</TABLE>';
}
function qfMenu ()
{
menuSectionHeader ("Project", 'white', menuHeadColor, menuBgColor);
2001-10-17 05:46:43 +00:00
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");
2001-10-17 05:46:43 +00:00
// menuItemLink ("board", "/board/", "Web Forum");
2000-07-30 12:35:01 +00:00
menuSectionFooter ();
}
function develMenu ()
{
menuSectionHeader ("Developers", 'white', menuHeadColor, menuBgColor);
2002-02-18 07:25:03 +00:00
menuItemLink ("cvs", "/cgi-bin/viewcvs.cgi/", "Browse CVS");
2001-10-17 05:46:43 +00:00
menuItemLink ("devtools", "/devtools.php", "Developer Tools");
menuItemLink ("plans", "/plans.php", "Developer Plans");
menuItemLink ("progress", "/progress.php", "Progress");
2002-02-17 11:03:26 +00:00
// menuItemLink ("sotc", "/sotc/", "State of the Code");
2001-10-17 05:46:43 +00:00
// 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");
2000-07-30 12:35:01 +00:00
menuSectionFooter ();
}
function sfMenu ()
{
menuSectionHeader ("SourceForge", 'white', menuHeadColor, menuBgColor);
2001-10-17 05:46:43 +00:00
menuItemLink ("sfhome", "http://sourceforge.net/", "Homepage");
menuItemLink ("sfsnip", "http://sourceforge.net/snippet/", "Code Snippet Library");
menuItemLink ("sfswmap", "http://sourceforge.net/softwaremap/", "Software Map");
menuItemLink ("sfreleases", "http://sourceforge.net/new/", "New Releases");
menuItemLink ("sfdocs", "http://sourceforge.net/docs/site/", "Site Documentation");
menuItemLink ("sftop", "http://sourceforge.net/top/", "Top Projects");
menuItemLink ("sfmirr", "http://sourceforge.net/mirrors/", "Other Site Mirrors");
2000-07-30 12:35:01 +00:00
menuSectionFooter ();
}
function searchMenu ()
{
menuSectionHeader ("Search", 'white', menuHeadColor, menuBgColor);
echo '<CENTER><FONT size="-2">' .
'<FORM action="search.php" method="POST">' .
' <SELECT name="type_of_search">' .
' <OPTION value="news">News</OPTION>' .
// ' <OPTION value="site">Site</OPTION>' .
// ' <OPTION value="bugs">Bug Tracking</OPTION>' .
' <OPTION value="-announce">Announcements</OPTION>' .
' <OPTION value="-bugs">Bug Discussions</OPTION>' .
2000-07-30 12:35:01 +00:00
' <OPTION value="-cvs">CVS Logs</OPTION>' .
' <OPTION value="-devel">Developer Talk</OPTION>' .
' <OPTION value="-user">User Discussions</OPTION>' .
2000-07-30 12:35:01 +00:00
// ' <OPTION value="patches">Patches</OPTION>' .
' </SELECT>' .
' <BR>' .
' <INPUT TYPE="CHECKBOX" NAME="exact" VALUE="1" CHECKED>&nbsp;Require Exact Match' .
' <BR>' .
' <INPUT TYPE="HIDDEN" NAME="forum_id" VALUE="">' .
' <INPUT TYPE="HIDDEN" NAME="is_bug_page" VALUE="">' .
' <INPUT TYPE="HIDDEN" NAME="group_id" VALUE="882">' .
' <INPUT TYPE="text" NAME="words" SIZE="15" VALUE="">' .
' <BR>' .
' <INPUT TYPE="submit" NAME="Search" VALUE="Search">' .
'</FORM></FONT>' .
'</CENTER>';
menuSectionFooter ();
}
qfMenu ();
develMenu ();
// sfMenu ();
searchMenu ();
?>