Files
scummvm-web/include/menu.php
T
Max Horn 2a8af5d64e working on 'HTML 4.01 strict' compliance
svn path=/web/trunk/; revision=1474
2003-10-12 23:24:25 +00:00

54 lines
1.3 KiB
PHP

<?
/*
* Menu class for ScummVM
* by Jeremy Newman <jnewman@dracowulf.com>
*
*/
class htmlmenu {
function htmlmenu($name)
{
global $file_root;
echo "<table width=120 border=0 cellspacing=0 cellpadding=0>\n";
echo "<tr>\n";
echo " <td class=topMenu><span class=menuTitle>&nbsp;$name</span></td>\n";
echo " <td align=right valign=top class=topMenu><img src='".$file_root."/images/main_right_top.gif' alt='---'></td>\n";
echo " </tr>\n";
echo "</table>\n";
echo "<table width=120 border=0 cellspacing=0 cellpadding=2>\n";
echo "<tr>\n";
echo " <td class=sideMenu><img src='".$file_root."/images/blank.gif' height=5 width=1 alt='---'></td>\n";
echo "</tr>\n";
}
/* add a table row */
function add($name, $url = null)
{
echo "<tr><td class=sideMenu><span class=menuItem>&nbsp;";
if($url) {
echo "<a href='$url' class=menuItem>$name</a>";
} else {
echo "$name";
}
echo "</span></td></tr>\n";
}
function done($extra = "")
{
global $file_root;
echo "</table>\n";
echo "<table width=120 border=0 cellspacing=0 cellpadding=0>\n";
echo "<tr>\n";
echo " <td align=right class=sideMenu><img src='".$file_root."/images/main_right_bottom.gif' alt='---'></td>\n";
echo "</tr>\n";
echo "</table>";
echo $extra;
echo "<br>\n";
}
}
?>