Files
scummvm-web/include/menu.php
T
Max Horn 29a0c7c0eb Use CSS to fatten the first letter in our menus
svn path=/web/trunk/; revision=23683
2006-08-05 23:08:52 +00:00

33 lines
610 B
PHP

<?php
class htmlmenu {
function htmlmenu($name, $style, $extra = "") {
global $file_root;
?>
<table class="menu" cellspacing="0">
<tfoot>
<tr>
<td><img src="<?=$file_root?>/images/menu-bottom.gif" alt="" width="145" height="13" /></td>
</tr>
<?php
if ($extra) {
echo "<tr><td>$extra</td></tr>";
}
?>
</tfoot>
<tr class="<?=$style?>"><th><?=$name?></th></tr>
<tbody><tr><td><ul>
<?php
}
/* add a table row */
function add($name, $url) {
echo "<li><a href='$url'>$name</a></li>";
}
function done() {
echo "</ul></td></tr></tbody></table>";
}
}
?>