<?php
function draw_header()
{
    global $cfg;
?>
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<?php draw_header_tag(); ?>
<body>
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" background="themes/rocket/img/bgmidright.gif">
<tr>
	<td height="121" align="left" valign="top">
		<table width="100%" height="121" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td height="99" align="left" valign="top" background="themes/rocket/img/footer_bkgnd.gif" bgcolor="#000000">
				<table width="774" height="99" border="0" cellspacing="0" cellpadding="0" cols="4">
				<tr>
					<td><img alt="" src="themes/rocket/img/logo.gif"></td>
					<td width="350" align="center" valign="middle" background="themes/rocket/img/shim.gif"><TD width="300"></TD></td>
				</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td bgcolor="#FFFFFF" background="themes/rocket/img/footer_bkgnd.gif" class="topbarsep"><font color="#ffffff"><?php theme_draw_simple_menu(); ?></font><!-- here comes the navbar --></td>
		</tr>
		</table>
	</td>
</tr><!-- end toppanel -->

<tr>
	<td height="100%" align="left" valign="top">
		<table width="774" height="100%" border="0" cellspacing="0" cellpadding="0" cols="3">
		<tr><td width="164" height="100%" align="left" valign="top">
			<table width="164" height="100%" border="0" cellspacing="0" cellpadding="0" cols="2">
			<tr>
				<td width="150" height="100%" align="center" valign="top" bgcolor="#000000"><br><?php draw_sideboxes("left"); ?></td>
					<td width="14" height="100%" align="left" valign="top"><img src="themes/rocket/img/corner_white.gif" alt="" width="14" height="16" border="0"></td>
				</tr>
				<tr>
					<td width="150" height="100%" align="left" valign="top" bgcolor="#000000"></td>
					<td width="14" height="100%" align="right" valign="bottom"><img src="themes/rocket/img/corner_whiteb.gif" height="14" width="16"></td>
				</tr>
				</table>
			</td><!--starts middle panel --><td width="460" align="left" valign="top"><br>
<?php
}

function draw_footer()
{
?></td>
	<td width="150" align="center" valign="top"><br><?php
draw_sideboxes("right");
// please don't remove the link below and help phpWebThings!
// por favor não remova o link abaixo e ajude o phpWebThings!
theme_draw_rightbox_open( "Powered by" );
?>
<div align="center"><a href="http://www.phpdbform.com" target="_blank"><img src="images/webthings_button.png" border=0 alt="phpWebThings powered"></a></div>
<?php
theme_draw_rightbox_close();
?></td>
</tr>
</table></td>
</tr>
<tr>
	<td background="themes/rocket/img/footer_bkgnd.gif" height="20" align="center" bgcolor="#4A94E3"><?php draw_copyright(); ?></td>
</tr>
</table>
</body>
</html>
<?php
}
// functions that draw the boxes

function theme_draw_leftbox_open( $title )
{
?>
<table width="140" cellspacing="1" cellpadding="1" bgcolor="#000000">
<tr>
	<td align="center" class="sideboxtitle"><?php echo $title; ?></td>
</tr>
<tr>
	<td align="center" bgcolor="#000000" onMouseOver="this.bgColor='#CDCDCD'" onMouseOut="this.bgColor='#000000'">
<?php
}

function theme_draw_leftbox_close()
{
?>
</td>
</tr>
</table><br>
<?php
}

function theme_draw_rightbox_open( $title )
{
?>
<table width="140" cellspacing="1" cellpadding="1" bgcolor="#000000">
<tr>
	<td align="center" class="sideboxtitle"><?php echo $title; ?></td>
</tr>
<tr>
	<td align="center" bgcolor="#999999" onMouseOver="this.bgColor='#CDCDCD'" onMouseOut="this.bgColor='#999999'">
<?php
}

function theme_draw_rightbox_close()
{
?>
</td>
</tr>
</table><br>
<?php
}

function theme_draw_centerbox_open( $title )
{
?>
<table width="95%" border="0" cellspacing="0" cellpadding="2" align="center">
<tr>
    <td class="centerboxtitle" align=center><?php echo $title; ?></td>
</tr>
<tr>
    <td class="centerboxtext">
<?php
}

function theme_draw_centerbox_close()
{
?>
</td>
</tr>
</table><br>
<?php
}

function theme_draw_menu_item( $text, $link, $newwindow )
{
	$target = ($newwindow == "Y")?"target=\"_blank\"":"";
	return "<tr><td align=\"center\" bgcolor=\"#000000\" onMouseOver=\"this.bgColor='#CDCDCD'\" onMouseOut=\"this.bgColor='#000000'\"><a href=\"$link\" $target>$text</a></td></tr>\n";
}
?>
