mirror of
https://github.com/scummvm/scummvm-web.git
synced 2026-06-20 05:45:49 +00:00
54 lines
1.3 KiB
PHP
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> $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> ";
|
|
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";
|
|
}
|
|
}
|
|
?>
|