website/parts/topmain.inc

41 lines
1.4 KiB
PHP
Raw Normal View History

2000-05-08 02:39:55 +00:00
<?
need ('table');
function isFocused ($name)
{
global $currPage;
return (strToLower ($name) == strToLower ($currPage)) ? TRUE : FALSE;
}
function iconLink ($img, $desc, $name, $url)
{
$cls = 'class="icon" ';
if (isFocused ($name)) {
$cls = 'class="focusedIcon" ';
}
echo '<A class="tabs" href="' . $url . '">'
.'<IMG ' . $cls . 'src="/img/icons/' . $img . '" alt="' . $desc . '">'
.'</A>';
}
function iconBar ()
2000-05-08 02:39:55 +00:00
{
iconLink ('anvil.png', 'SourceForge', 'nil', 'http://sourceforge.net/projects/quake/');
iconLink ('home.png', 'Home Page', 'home', '/');
iconLink ('bugs.png', 'Bug Tracker', 'bugs', '/bugs/');
// iconLink ('support.png','Support', 'support', 'http://sourceforge.net/support/?group_id=882');
// iconLink ('patch.png', 'Patches', 'patches', 'http://sourceforge.net/patch/?group_id=882');
iconLink ('mail.png', 'Mailing Lists','lists', '/lists.php');
// iconLink ('tasks.png', 'Tasks', 'tasks', 'http://sourceforge.net/pm/?group_id=882');
// iconLink ('survey.png', 'Surveys', 'surveys', 'http://sourceforge.net/survey/?group_id=882');
iconLink ('news.png', 'News Archives','news', '/old_news.php');
iconLink ('cvs.png', 'Subversion', 'cvs', 'http://quake.svn.sourceforge.net/viewvc/quake/');
iconLink ('download.png','Downloads', 'files', '/files.php');
2000-05-08 02:39:55 +00:00
}
?>
<DIV id="topMain">
<H2 class="pageTitle"><?=$pageName?></H2>
</DIV>