Location: PHPKode > scripts > Servlet > servlet/servlet_example.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<?
//Include class files
include( "./class.servlet.php");


//Create instances of needed classes
$tester = new Servlet();


?>
<html>
<head>
<title>Servlet Class Test Page</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<?
//Display Banner
$tester->SiteBanner("<font color='white'>Cell One</font>","<font color='white'>You can have up to 4 cells in the banner</font>");
?>
<table summary="Main formatting table" cols="3" width='100%'>
<tr>
 <td width="25%" valign="top">
  <!-- left column -->
  <table cellpadding="0" cellspacing="0" width="100%">
  <tr>
    <td valign="top">
    <?
		   //Create a SimpleBox
	    $tester->SimpleBox("Left Box One","","Body Content");
    ?>
		<br>
		<?
		   //Create a SimpleBox
	    $tester->SimpleBox("Left Box Two","","Body Content");
    ?>
		<br>
		<?
		   //Create a SimpleBox
	    $tester->SimpleBox("Left Box Three","A SubTitle","This is the body", "100%");
    ?>
    </td>
  </tr>
  </table>
 </td>
 <td width="50%" valign="top">
   <!-- Middle column -->
   <table cellpadding="0" cellspacing="0" width="100%">
   <tr>
    <td valign="top">
    <?
		  //Create a DeluxeBox
      $tester->DeluxeBox("DeluxeBox One","This is the place to display contents<br><br><br><br><br><br><br><br><br><br><br>","#e0e0e0",'','',"auto","auto","auto");
    ?>
		<br>
		<?
		   //Create a DeluxeBox
      $tester->DeluxeBox("DeleuxeBox Two","This is the place to display contents<br><br><br><br><br><br><br><br><br><br><br>","#e0e0e0",'','',"auto","auto","auto");
    ?>
	  </td>
   </tr>
   </table>
	</td>
  <td width="25%" valign="top">
   <!-- right column -->
   <table cellpadding="0" cellspacing="0" width="100%">
   <tr>
     <td valign="top">
     <?
		     //Create a SimpleBox
	      $tester->SimpleBox("Right Box Two","A SubTitle","This is the body", "100%");
     ?>
		 <br>
		 <?
		     //Create a SimpleBox
	      $tester->SimpleBox("Right Box Two","A SubTitle","This is the body", "100%");
     ?>
     </td>
   </tr>
   </table>
	</td>
</tr>
</table>

<?
//Display footer
$tester->SiteFooter();

?>	
</body>
</html>
Return current item: Servlet