<?php
function draw_navigation_map() { }
function draw_header()
{
    global $cfg;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<?php draw_header_tag(); ?>
<body>
<table width="100%" border="0" cellspacing="2" cellpadding="0">
<tr><td colspan=3>

<table border=0 cellspacing="0" cellpadding="0" width="100%">
<tr><td width=250><img src="themes/business/img/wtlogo.gif" alt="" border="0"></td>
<td align=center><?php if( check_module("banners")) draw_banner(); ?></td>
</tr>
<tr><td colspan=2><?php if( $cfg["core"]["show_map"] ) draw_navigation_map(); ?></td></tr>
</table>

</td></tr>
<tr><td width=150 valign=top><?php draw_sideboxes("left"); ?></td>
<td width=1000 valign=top>
<?php
}

function draw_footer()
{
?></td><td width=150 valign=top>
<?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>
<tr><td colspan=3 align="right"><?php draw_copyright(); ?></td></tr>
</table>
</body>
</html>
<?php
}

function theme_draw_leftbox_open( $title )
{
?>
<table width="170" border=0 cellspacing=0 cellpadding=0>
<tr>
	<td width=25 height=22><img src="themes/business/img/topleft.gif" width=25 height=22 alt="" border=0></td>
	<td background="themes/business/img/top.gif" align="center" valign="middle" height=22 class="sideboxtitle"><?php print $title; ?></td>
	<td width=1 height=22><img src="themes/business/img/topright.gif" width=1 height=22 alt="" border=0></td>
</tr>
<tr>
	<td background="themes/business/img/left.gif"> </td>
	<td class="sideboxtext"><table width="100%" border=0 cellpadding=0 cellspacing=0>
		<tr>
		<td class="sideboxtext">
<?php
}

function theme_draw_leftbox_close()
{
?></td>
		</tr>
	</table></td>
	<td background="themes/business/img/bottomright.gif"> </td>
</tr>
<tr>
	<td width=25 height=1><img src="themes/business/img/bottom.gif" width=25 height=1 alt="" border=0></td>
	<td background="themes/business/img/bottom.gif"> </td>
	<td width=1 height=1><img src="themes/business/img/bottomright.gif" width=1 height=1 alt="" border=0></td>
</tr><tr><img alt="dot (1K)" src="img/dot.gif" height="1" width="1" /><BR><img alt="dot (1K)" src="img/dot.gif" height="1" width="1" /></tr>
</table>
<?php
}

function theme_draw_rightbox_open( $title )
{
?>
<table width="170" border=0 cellspacing=0 cellpadding=0>
<tr>
	<td width=25 height=22><img src="themes/business/img/topleft.gif" width=25 height=22 alt="" border=0></td>
	<td background="themes/business/img/top.gif" align="center" valign="middle" height=22 class="sideboxtitle"><?php print $title; ?></td>
	<td width=1 height=22><img src="themes/business/img/topright.gif" width=1 height=22 alt="" border=0></td>
</tr>
<tr>
	<td background="themes/business/img/left.gif"> </td>
	<td class="sideboxtext"><table width="100%" border=0 cellpadding=0 cellspacing=0>
		<tr>
		<td class="sideboxtext">
<?php
}

function theme_draw_rightbox_close()
{
?></td>
		</tr>
	</table></td>
	<td background="themes/business/img/bottomright.gif"> </td>
</tr>
<tr>
	<td width=25 height=1><img src="themes/business/img/bottom.gif" width=25 height=1 alt="" border=0></td>
	<td background="themes/business/img/bottom.gif"> </td>
	<td width=1 height=1><img src="themes/business/img/bottomright.gif" width=1 height=1 alt="" border=0></td>
</tr><tr><img alt="dot (1K)" src="img/dot.gif" height="1" width="1" /><BR><img alt="dot (1K)" src="img/dot.gif" height="1" width="1" /></tr>

</table>
<?php
}

function theme_draw_centerbox_open( $title )
{
?>
<table width="100%" border=0 cellspacing=0 cellpadding=0>
<tr>
	<td width=25 height=22><img src="themes/business/img/topleft.gif" width=25 height=22 alt="" border=0></td>
	<td background="themes/business/img/top.gif" align="center" valign="middle" height=22 class="centerboxtitle"><?php print $title; ?></td>
	<td width=1 height=22><img src="themes/business/img/topright.gif" width=1 height=22 alt="" border=0></td>
</tr>
<tr>
	<td background="themes/business/img/left.gif"> </td>
	<td class="centerboxtext"><table width="100%" border=0 cellpadding=0 cellspacing=0>
		<tr>
		<td class="centerboxtext">
<?php
}

function theme_draw_centerbox_close()
{
?></td>
		</tr>
	</table></td>
	<td background="themes/business/img/bottomright.gif"> </td>
</tr>
<tr>
	<td width=25 height=1><img src="themes/business/img/bottom.gif" width=25 height=1 alt="" border=0></td>
	<td background="themes/business/img/bottom.gif"> </td>
	<td width=1 height=1><img src="themes/business/img/bottomright.gif" width=1 height=1 alt="" border=0></td>
</tr><tr><img alt="dot (1K)" src="img/dot.gif" height="1" width="1" /><BR><img alt="dot (1K)" src="img/dot.gif" height="1" width="1" /><img alt="dot (1K)" src="img/dot.gif" height="1" width="1" /><BR><img alt="dot (1K)" src="img/dot.gif" height="1" width="1" /></tr>

</table>
<?php
}

function theme_draw_menu_item( $text, $link, $newwindow )
{
	$target = ($newwindow == "Y")?"target=\"_blank\"":"";
    return "<a href=\"$link\" $target>$text</a><br>\n";
}
?>