Just configured from Wine's GIT
svn path=/; revision=1
This commit is contained in:
46
include/menu.php
Normal file
46
include/menu.php
Normal file
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
class htmlmenu {
|
||||
|
||||
function htmlmenu($name, $form = null)
|
||||
{
|
||||
|
||||
if ($form)
|
||||
echo "<form action=\"$form\" method=\"post\">\n";
|
||||
|
||||
echo '
|
||||
<li class="top"><p>'.$name.'</p></li>
|
||||
';
|
||||
|
||||
}
|
||||
|
||||
/* add a table row */
|
||||
function add($sName, $shUrl = null, $sAlign = "left")
|
||||
{
|
||||
$oTableRow = new TableRow();
|
||||
|
||||
if($shUrl)
|
||||
{
|
||||
echo " <li><p><a href=\"{$shUrl}\">{$sName}</a></p></li>\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo " <li><p>{$sName}</a></li>\n";
|
||||
}
|
||||
}
|
||||
|
||||
function addmisc($sStuff, $sAlign = "left")
|
||||
{
|
||||
echo "<li><p style=\"text-align: $sAlign\">$sStuff</p></li>\n";
|
||||
}
|
||||
|
||||
function done($form = null)
|
||||
{
|
||||
echo '
|
||||
<li class="bot"></li>
|
||||
';
|
||||
|
||||
if ($form)
|
||||
echo "</form>\n";
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user