Location: PHPKode > scripts > MyBox > mybox/mybox.php
<?php
class mybox{
function calc_mybox($heigth,$legth,$width)
	{
	$calc = ($heigth*$legth*$width)/6000;
	$total = number_format($calc, 2, '.', '');
	$poun = number_format($total*2.20462262, 2, '.', '');
	echo "<div style='width:400px; height:600px;'><strong>Calculating Volumetric Weight 
          in Kg and Pounds</strong><br /><br />
<div style='width:250px; text-align:center; float:left; '><img src='box.png'  width='250'height='220'/></div>
<div style='width:100px; float:left; padding:5px; height:30px;'> Results: <strong>".$total." Kg</strong> or <strong>".$poun." Pounds</strong></div>
<div style='width:100px; float:left; padding:5px; height:110px;margin-left:-10px;'><br/><br/> Height : <strong>".$heigth." Cm</strong></div>
<div style='width:100px;float:left;  padding:5px; height:15px;'></div>
<div style='width:100px;float:left;  padding:5px; height:30px; margin-left:-30px;'> Length : <strong>".$legth." Cm</strong></div>
<div style='width:350px; float:left;  padding:5px;clear:both; margin-top:-30px;margin-left:-10px;'> Width : <strong>".$width." Cm</strong></div>
<div style='width:370px; float:left; height:180px;  padding:5px;clear:both;'><strong>Calculating Volumetric Weight in Kg and Pounds</strong><br /><br />";
	return;
	}
}
?>
Return current item: MyBox