2004-12-12 03:51:51 +00:00
|
|
|
<?php
|
2004-03-15 16:22:00 +00:00
|
|
|
class htmlmenu {
|
|
|
|
|
|
|
|
|
|
function htmlmenu($name, $form = null)
|
|
|
|
|
{
|
|
|
|
|
|
2004-12-12 03:51:51 +00:00
|
|
|
if ($form)
|
2005-02-26 16:36:52 +00:00
|
|
|
echo "<form action=\"$form\" method=\"post\">\n";
|
2004-03-15 16:22:00 +00:00
|
|
|
|
2004-12-12 03:51:51 +00:00
|
|
|
echo '
|
2004-03-15 16:22:00 +00:00
|
|
|
<div align=left>
|
2004-11-09 22:41:18 +00:00
|
|
|
<table width="160" border="0" cellspacing="0" cellpadding="0">
|
2004-03-15 16:22:00 +00:00
|
|
|
<tr>
|
|
|
|
|
<td colspan=2>
|
|
|
|
|
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="topMenu">
|
|
|
|
|
<tr>
|
|
|
|
|
<td width="100%" rowspan="3" align="left"><span class="menuTitle"> '.$name.'</span></td>
|
2004-12-23 01:12:03 +00:00
|
|
|
<td rowspan="3" valign="middle" align="right"><img src="'.BASE.'images/winehq_border_dot_right.gif" alt=""></td>
|
|
|
|
|
<td valign="top" align="left"><img src="'.BASE.'images/winehq_border_top_right.gif" alt=""></td>
|
2004-03-15 16:22:00 +00:00
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2004-12-23 01:12:03 +00:00
|
|
|
<td><img src="'.BASE.'images/blank.gif" width="1" height="1" alt=""></td>
|
2004-03-15 16:22:00 +00:00
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2004-12-23 01:12:03 +00:00
|
|
|
<td valign="bottom" align="right"><img src="'.BASE.'images/winehq_border_bottom_right.gif" alt=""></td>
|
2004-03-15 16:22:00 +00:00
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
2004-11-09 22:41:18 +00:00
|
|
|
<table width="155" border="0" cellspacing="0" cellpadding="1">
|
2004-03-15 16:22:00 +00:00
|
|
|
<tr class="topMenu"><td>
|
|
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="5">
|
|
|
|
|
';
|
2007-04-21 16:54:17 +00:00
|
|
|
|
2004-03-15 16:22:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* add a table row */
|
2007-04-19 01:20:55 +00:00
|
|
|
function add($sName, $shUrl = null, $sAlign = "left")
|
2004-03-15 16:22:00 +00:00
|
|
|
{
|
2007-07-23 19:56:43 +00:00
|
|
|
$oTableRow = new TableRow();
|
|
|
|
|
|
2007-04-19 01:20:55 +00:00
|
|
|
if($shUrl)
|
2004-12-12 03:51:51 +00:00
|
|
|
{
|
2007-07-23 19:56:43 +00:00
|
|
|
$oTableCell = new TableCell("<span class=MenuItem> <u>".
|
|
|
|
|
"<a href=\"$shUrl\">$sName</a></u></span>");
|
|
|
|
|
|
|
|
|
|
$oHighlightColor = new Color(0xe0, 0xe6, 0xff);
|
|
|
|
|
$oInactiveColor = new Color(0xff, 0xff, 0xff);
|
|
|
|
|
$oTableRowHighlight = new TableRowHighlight($oHighlightColor, $oInactiveColor);
|
|
|
|
|
|
|
|
|
|
$oTableRowClick = new TableRowClick($shUrl);
|
|
|
|
|
$oTableRowClick->SetHighlight($oTableRowHighlight);
|
|
|
|
|
|
|
|
|
|
$oTableRow->SetRowClick($oTableRowClick);
|
2007-04-19 01:20:55 +00:00
|
|
|
} else
|
2004-12-12 03:51:51 +00:00
|
|
|
{
|
2007-07-23 19:56:43 +00:00
|
|
|
$oTableCell = new TableCell("<span class=menuItem> $sName</span></td></tr>");
|
2004-12-12 03:51:51 +00:00
|
|
|
}
|
2007-07-23 19:56:43 +00:00
|
|
|
$oTableCell->SetAlign($sAlign);
|
|
|
|
|
$oTableCell->SetWidth("100%");
|
|
|
|
|
|
|
|
|
|
$oTableRow->SetClass("sidemenu");
|
|
|
|
|
$oTableRow->AddCell($oTableCell);
|
|
|
|
|
|
|
|
|
|
echo $oTableRow->GetString();
|
2004-03-15 16:22:00 +00:00
|
|
|
}
|
|
|
|
|
|
2007-04-19 01:20:55 +00:00
|
|
|
function addmisc($sStuff, $sAlign = "left")
|
2004-03-15 16:22:00 +00:00
|
|
|
{
|
2007-04-19 01:20:55 +00:00
|
|
|
echo " <tr class=sideMenu><td width='100%' align=$sAlign><span class=menuItem> $sStuff</span></td></tr>\n";
|
2004-03-15 16:22:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function done($form = null)
|
|
|
|
|
{
|
2004-12-12 03:51:51 +00:00
|
|
|
echo '
|
|
|
|
|
</table>
|
|
|
|
|
</td></tr>
|
|
|
|
|
</table>
|
|
|
|
|
</td>
|
2004-12-23 01:12:03 +00:00
|
|
|
<td><img src="'.BASE.'images/blank.gif" width=5 height=1 alt="-"></td>
|
2004-12-12 03:51:51 +00:00
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
<br>
|
|
|
|
|
';
|
2004-03-15 16:22:00 +00:00
|
|
|
|
2004-12-12 03:51:51 +00:00
|
|
|
if ($form)
|
|
|
|
|
echo "</form>\n";
|
2004-03-15 16:22:00 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
?>
|