This repository has been archived on 2025-05-24. You can view files and clone it, but cannot push or open issues or pull requests.
Files
qemudb/include/menu.php

94 lines
2.6 KiB
PHP
Raw Normal View History

<?php
2004-03-15 16:22:00 +00:00
class htmlmenu {
function htmlmenu($name, $form = null)
{
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
echo '
2004-03-15 16:22:00 +00:00
<div align=left>
<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">&nbsp; '.$name.'</span></td>
<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>
<td><img src="'.BASE.'images/blank.gif" width="1" height="1" alt=""></td>
2004-03-15 16:22:00 +00:00
</tr>
<tr>
<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>
<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">
';
2004-03-15 16:22:00 +00:00
}
/* add a table row */
function add($sName, $shUrl = null, $sAlign = "left")
2004-03-15 16:22:00 +00:00
{
$oTableRow = new TableRow();
if($shUrl)
{
$oTableCell = new TableCell("<span class=MenuItem>&nbsp;<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);
} else
{
$oTableCell = new TableCell("<span class=menuItem>&nbsp;$sName</span></td></tr>");
}
$oTableCell->SetAlign($sAlign);
$oTableCell->SetWidth("100%");
$oTableRow->SetClass("sidemenu");
$oTableRow->AddCell($oTableCell);
echo $oTableRow->GetString();
2004-03-15 16:22:00 +00:00
}
function addmisc($sStuff, $sAlign = "left")
2004-03-15 16:22:00 +00:00
{
echo " <tr class=sideMenu><td width='100%' align=$sAlign><span class=menuItem>&nbsp;$sStuff</span></td></tr>\n";
2004-03-15 16:22:00 +00:00
}
function done($form = null)
{
echo '
</table>
</td></tr>
</table>
</td>
<td><img src="'.BASE.'images/blank.gif" width=5 height=1 alt="-"></td>
</tr>
</table>
</div>
<br>
';
2004-03-15 16:22:00 +00:00
if ($form)
echo "</form>\n";
2004-03-15 16:22:00 +00:00
}
}
?>