<?php
function draw_header()
{
    global $cfg;
?>
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<?php draw_header_tag(); ?>
<body>
<center><table border="0" cellpadding="0" cellspacing="0" width="745">
      <tr>
        <td height="18" width="2" background="themes/jnet/images/top-border-left-part-1.jpg">&nbsp;</td>
        <td height="18" background="themes/jnet/images/top-border-center-part-1.jpg">&nbsp;</td>
        <td height="18" width="1" background="themes/jnet/images/top-border-left-part-1.jpg">&nbsp;</td>
      </tr>
    </table> <table border="0" cellpadding="0" cellspacing="0" width="745" style="border-left: 2 solid #4874A8; border-right: 2 solid #4874A8" bgcolor="#6098C8">
        <tr>
          <td>

<!-- Start top content -->

  <center><embed src="themes/jnet/images/top.swf" quality="high" vmode="transparent" swLiveConnect="true" width="595" height="67"></center>

<!-- end top content -->

</td>
        </tr>
      </table>
    <table border="0" cellpadding="0" cellspacing="0" width="745">
      <tr>
        <td height="18" width="2" background="themes/jnet/images/top-border-left-part-1.jpg">&nbsp;</td>
        <td height="18" background="themes/jnet/images/top-border-center-part-1.jpg"><b><center><font color="#FFFFFF" face="Verdana" size="1">
          PHPWebThings 1.0</font></b></center></td>
        <td height="18" width="2" background="themes/jnet/images/top-border-left-part-1.jpg">&nbsp;</td>
      </tr>
    </table>
  </center>
<br>
  <center>
  <table border="0" cellpadding="0" cellspacing="0" width="745">
    <tr>
      <td width="157" valign="top"> 
<?php draw_sideboxes("left"); ?>
</td>
      <td width="413" valign="top"> 
                   <center>
<?php
}

function draw_footer()
{
?> </center>
</td>
      <td width="150" valign="top" align="right">
<?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" );
?>
<center><a href="http://www.phpdbform.com" target="_blank"><img src="images/webthings_button.png" border=0 alt="phpWebThings powered"></a></center></div>
<?php
theme_draw_rightbox_close();
?>
</td>
    </tr>
  </table>
  </center>
<center><table border="0" cellpadding="0" cellspacing="0" width="745">
      <tr>
        <td height="18" width="2" background="themes/jnet/images/top-border-left-part-1.jpg">&nbsp;</td>
        <td height="18" background="themes/jnet/images/top-border-center-part-1.jpg">&nbsp;</td>
        <td  height="18" width="1" background="themes/jnet/images/top-border-left-part-1.jpg">&nbsp;</td>
      </tr>
    </table> <table border="0" cellpadding="0" cellspacing="0" width="745" heigth="70" style="border-left: 2 solid #4874A8; border-right: 2 solid #4874A8" bgcolor="#6098C8">
        <tr>
          <td>
  <center><?php if( check_module("banners")) draw_banner(); ?></center>
          </td>
        </tr>
      </table>
    <table border="0" cellpadding="0" cellspacing="0" width="745">
      <tr>
        <td height="18" width="2" background="themes/jnet/images/top-border-left-part-1.jpg">&nbsp;</td>
        <td height="18" background="themes/jnet/images/top-border-center-part-1.jpg">&nbsp;</td>
        <td height="18" width="2" background="themes/jnet/images/top-border-left-part-1.jpg">&nbsp;</td>
      </tr>
    </table>
  </center><center>
<?php draw_copyright(); ?></center>
<br>

</body>

</html>
<?php
}
// functions that draw the boxes

function theme_draw_leftbox_open( $title )
{
?>
<table border="0" cellpadding="0" cellspacing="0" width="150" bgcolor="#6098C8">
    <tr>
      <td width="1" height="18" background="themes/jnet/images/top-border-left-part-1.jpg">&nbsp;</td>
      <td height="18" background="themes/jnet/images/top-border-center-part-1.jpg" width="139" class="sideboxtitle"><?php echo $title; ?></td>
<td height="18" background="themes/jnet/images/top-border-center-part-1.jpg" width="3">&nbsp;</td>
      <td height="18" background="themes/jnet/images/top-border-left-part-1.jpg" width="1">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="2" style="border-left: 2 solid #4874A8" width="142">
<?php
}

function theme_draw_leftbox_close()
{
?>
</td>
      <td style="border-right: 2 solid #4874A8" width="4" colspan="2">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="2" height="19" style="border-left: 2 solid #4878A8; border-bottom: 2 solid #4878A8" width="142">&nbsp;</td>
      <td height="19" background="themes/jnet/images/corner2.jpg" width="4" colspan="2">&nbsp;</td>
    </tr>
  </table><br>
<?php
}

function theme_draw_rightbox_open( $title )
{
?>
<table border="0" cellpadding="0" cellspacing="0" width="150" bgcolor="#6098C8">
    <tr>
      <td width="1" height="18" background="themes/jnet/images/top-border-left-part-1.jpg">&nbsp;</td>
      <td height="18" background="themes/jnet/images/top-border-center-part-1.jpg" width="139" class="sideboxtitle"><?php echo $title; ?></td>
<td height="18" background="themes/jnet/images/top-border-center-part-1.jpg" width="3">&nbsp;</td>
      <td height="18" background="themes/jnet/images/top-border-left-part-1.jpg" width="1">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="2" style="border-left: 2 solid #4874A8" width="142">
<?php
}

function theme_draw_rightbox_close()
{
?>
</td>
      <td style="border-right: 2 solid #4874A8" width="4" colspan="2">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="2" height="19" style="border-left: 2 solid #4878A8; border-bottom: 2 solid #4878A8" width="142">&nbsp;</td>
      <td height="19" background="themes/jnet/images/corner2.jpg" width="4" colspan="2">&nbsp;</td>
    </tr>
  </table><br>
<?php
}

function theme_draw_centerbox_open( $title )
{
?>
<table border="0" cellpadding="0" cellspacing="0" width="415" bgcolor="#6098C8" height="70">
    <tr>
      <td width="1" height="18" background="themes/jnet/images/top-border-left-part-1.jpg">&nbsp;</td>
      <td height="18" background="themes/jnet/images/top-border-center-part-1.jpg" width="406" class="sideboxtitle"><center><?php echo $title; ?></center></td>
 <td height="18" background="themes/jnet/images/top-border-center-part-1.jpg" width="3">&nbsp;</td>
      <td height="18" background="themes/jnet/images/top-border-left-part-1.jpg" width="3">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="2" height="33" style="border-left: 2 solid #4874A8" width="405">
<?php
}

function theme_draw_centerbox_close()
{
?>
</td>
      <td height="33" style="border-right: 2 solid #4874A8" width="6" colspan="2">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="2" height="19" style="border-left: 2 solid #4878A8; border-bottom: 2 solid #4878A8" width="400">
        &nbsp;
      </td>
      <td height="19" background="themes/jnet/images/corner2.jpg" width="5" colspan="2">&nbsp;</td>
    </tr>
  </table>
<br>
<?php
}

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