PHP Code:
function OpenTable($title = "title", $tablewidth = "") {
global $tableopen, $siteurl;
if ($tableopen) return;
if($tablewidth !="") $stylewidth = "style=\"width: ".$tablewidth."px;\"";
else $stylewidth = '';
echo "<span class=\"mainbox-title\">".$title."</span><div style=\"margin: 0 auto;\">";
?>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td height="37" colspan="2" valign="top"><img src="themes/theme/pics/ttl.jpg" width="22" height="37"></td>
<td width="100%" valign="top" background="themes/theme/pics/tt.jpg"><img name="tm" src="themes/theme/pics/spacer.gif" width="1" height="1" border="0" alt=""></td>
<td colspan="2" valign="top"><img src="themes/theme/pics/ttr.jpg" width="22" height="37"></td>
</tr>
<tr>
<td width="13" height="42" valign="top" background="themes/theme/pics/tl.jpg"><img name="left" src="themes/theme/pics/spacer.gif" width="1" height="1" border="0" alt=""></td>
<td colspan="3" valign="top" bgcolor="#2F2F2F">
<?
$tableopen = true;
}
function CloseTable() {
global $tableopen, $siteurl;
if (!$tableopen) return;
?>
</td>
<td width="13" valign="top" background="themes/theme/pics/tr.jpg"><img name="right" src="themes/theme/pics/spacer.gif" width="1" height="1" border="0" alt=""></td>
</tr>
<tr>
<td height="61" colspan="2" valign="top"><img src="themes/theme/pics/tbl.jpg" width="22" height="61"></td>
<td valign="top" background="themes/theme/pics/tb.jpg"><img name="btm" src="themes/theme/pics/spacer.gif" width="1" height="1" border="0" alt=""></td>
<td colspan="2" valign="top"><img src="themes/theme/pics/tbr.jpg" width="22" height="61"></td>
</tr>
<tr>
<td height="0"></td>
<td width="9"></td>
<td></td>
<td width="9"></td>
<td></td>
</tr>
<tr>
<td height="1"><img src="spacer.gif" alt="" width="13" height="1"></td>
<td><img src="spacer.gif" alt="" width="9" height="1"></td>
<td></td>
<td><img src="spacer.gif" alt="" width="9" height="1"></td>
<td><img src="spacer.gif" alt="" width="13" height="1"></td>
</tr>
</table>
<?
echo "</div>";
$tableopen = false;
}