<?php
function draw_navigation_map() { }
function draw_header()
{
    global $cfg;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<?php draw_header_tag(); ?>
<body>
<table width="760" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#CC0000">
<tr><td height="134"><img src="themes/ppg/img/ppgbg_top.jpg" width="760" height="134" alt="" border="0"></td></tr>
<tr><td height="23"><img src="themes/ppg/img/ppgbg_bar.jpg" width="760" height="23" alt="" border="0"></td></tr>
<?php if( $cfg["core"]["show_map"] ) { ?>
<tr><td><?php draw_navigation_map(); ?></td></tr>
<?php } ?>
<tr><td width="100%" height="400" valign="top" background="themes/ppg/img/ppgbackground.jpg" bgproperties="fixed">
<table width="100%" cellpadding=2 cellspacing=0>
<tr><td width="156" valign="top"><?php draw_sideboxes("left"); ?></td>
<td width="448" valign=top>
<?php
//	if( check_module("banners"))
//	{
//		echo "<div align=\"center\">";
//		draw_banner();
//		echo "</div><br>";
//	}
}

function draw_footer()
{
?></td>
<td width="156" 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!
?>
<?php 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>
</td></tr>
<tr><td height="30" colspan="3" align="center" valign="bottom" style="border-top : 1px solid #333333;" bgcolor="#FFFFFF"><?php draw_copyright(); ?></td></tr>
</table>
</td></tr></table>
</body>
</html>
<?php
}
// functions that draw the boxes

function theme_draw_leftbox_open( $title )
{
?>
<table width=154 border=0 cellspacing=0 cellpadding=0 align="center">
<tr>
    <td class="sideboxtitle" align="center">&nbsp;<?php echo $title; ?></td>
	<td width="3"><img src="themes/ppg/img/ppgbg_box_top_left.jpg" width="3" height="21" alt="" border="0"></td>
</tr>
<tr>
    <td class="sideboxtext"><table width="100%" border="0" cellspacing=0 cellpadding=3 align="center"><tr>
	<td class="sideboxtext">
<?php
}

function theme_draw_leftbox_close()
{
?>
</td></tr></table></td>
<td width="3" background="themes/ppg/img/ppgbg_box_left.jpg"><img src="img/shim.gif" width="3" height="1" alt="" border="0"></td></tr>
<tr>
	<td width="154"><img src="themes/ppg/img/ppgbg_box_bottom.jpg" width="154" height="5" alt="" border="0"></td>
</tr>
</table><br>
<?php
}

function theme_draw_rightbox_open( $title )
{
?>
<table width=154 border=0 cellspacing=0 cellpadding=0 align="center">
<tr>
    <td class="sideboxtitle" align="center">&nbsp;<?php echo $title; ?></td>
	<td width="3"><img src="themes/ppg/img/ppgbg_box_top_left.jpg" width="3" height="21" alt="" border="0"></td>
</tr>
<tr>
    <td class="sideboxtext"><table width="100%" border="0" cellspacing=0 cellpadding=3 align="center"><tr>
	<td class="sideboxtext">
<?php
}

function theme_draw_rightbox_close()
{
?>
</td></tr></table></td>
<td width="3" background="themes/ppg/img/ppgbg_box_left.jpg"><img src="img/shim.gif" width="3" height="1" alt="" border="0"></td></tr>
<tr>
	<td width="154"><img src="themes/ppg/img/ppgbg_box_bottom.jpg" width="154" height="5" alt="" border="0"></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 "<a href=\"$link\" $target class=\"a_menu\">$text</a><br>\n";
}
?>
