2000-05-08 02:39:55 +00:00
|
|
|
<?
|
2000-05-10 22:38:21 +00:00
|
|
|
need ('table');
|
|
|
|
|
2007-03-09 17:16:17 +00:00
|
|
|
function isFocused ($name)
|
2000-03-19 06:15:10 +00:00
|
|
|
{
|
2007-03-09 17:16:17 +00:00
|
|
|
global $currPage;
|
2000-03-19 06:15:10 +00:00
|
|
|
|
2007-03-09 17:16:17 +00:00
|
|
|
return (strToLower ($name) == strToLower ($currPage)) ? TRUE : FALSE;
|
2000-03-19 06:15:10 +00:00
|
|
|
}
|
2007-03-09 17:16:17 +00:00
|
|
|
|
|
|
|
function iconLink ($img, $desc, $name, $url)
|
2000-05-10 22:38:21 +00:00
|
|
|
{
|
2007-03-09 17:16:17 +00:00
|
|
|
$cls = 'class="icon" ';
|
|
|
|
if (isFocused ($name)) {
|
|
|
|
$cls = 'class="focusedIcon" ';
|
|
|
|
}
|
|
|
|
echo '<A class="tabs" href="' . $url . '">'
|
|
|
|
.'<IMG ' . $cls . 'src="/img/icons/' . $img . '" alt="' . $desc . '">'
|
|
|
|
.'</A>';
|
2000-03-06 08:12:43 +00:00
|
|
|
}
|
2007-03-09 17:16:17 +00:00
|
|
|
|
|
|
|
function iconBar ()
|
2000-05-08 02:39:55 +00:00
|
|
|
{
|
2007-03-09 17:16:17 +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
|
|
|
}
|
2007-03-09 17:16:17 +00:00
|
|
|
|
2000-03-06 08:12:43 +00:00
|
|
|
?>
|
2007-03-09 21:24:02 +00:00
|
|
|
<DIV id="topMain">
|
2007-03-09 17:16:17 +00:00
|
|
|
<H2 class="pageTitle"><?=$pageName?></H2>
|
|
|
|
</DIV>
|