mirror of
https://git.code.sf.net/p/quake/website
synced 2024-12-11 13:02:16 +00:00
fc3ce061c3
Fix plans, from too much over- and under-quoting.
40 lines
1.4 KiB
PHP
40 lines
1.4 KiB
PHP
<?
|
|
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 ()
|
|
{
|
|
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');
|
|
}
|
|
|
|
?>
|
|
<DIV id="topMain">
|
|
<H2 class="pageTitle"><?=$pageName?></H2>
|
|
</DIV>
|