<html>
<head>
<title>Assets</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style>
body {
    font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif;
font-size: 14px;
}
h1 {
font-size: 20px;
vertical-align: top;
}

table{
      border-collapse: collapse;
}
table.pagehead {
  width: 100%;

}

table.pagehead td.bborder, th.bborder{

  border-bottom: 1px solid black;
   vertical-align: baseline;
}

table.pagehead th.bborder{
  border-bottom: 1px solid black;
  border-right: 1px solid black;
  border-left: 1px solid black;
  vertical-align: baseline;

  }

table.pagehead td.rborder{
  border-right: 1px solid black;
  border-left: 1px solid black;
  vertical-align: middle;
  width:100%;
}


</style>

</head>
<body>
  <div align="center"><img src="images/shared/printimage.jpg"  align="center" valign="top" alt="Posics Technologies" width="" height=""/><br>
                <?php echo $companyinfo[0]->COMPANYNAME.', '.$companyinfo[0]->ADDRESS1.', '; ?><br>
               <?php echo $companyinfo[0]->ADDRESS2.', '.$companyinfo[0]->CITY.', '.$companyinfo[0]->REGION ; ?>
                    <br>
                    Phone: <?php echo $companyinfo[0]->PHONE1.', '.$companyinfo[0]->PHONE2.', Fax: '.$companyinfo[0]->FAX ?>
                    <br>
                     Email: <?php echo $companyinfo[0]->EMAIL.', Web: '.$companyinfo[0]->WEBSITE?>
                     <h3><u><big>Assets</big></u></h3>
</div>
<table class="pagehead">
<tbody>
<tr>
<!--    <td width="70%"  class="bborder">

            </td>-->
    <td width="30%" align="right" class="bborder">
<!--        <h1>Warehouse</h1><br>-->
               Date: <?php echo date('d-m-Y', time()); ?><br>
               <br>
        </td>
        </tr>

</tbody>
</table>

<?php
echo "<table class='pagehead' cellpadding='5px'>";
echo "<tbody>";
echo "<thead><tr>
 <th width='25%' align='center' class='bborder'>Reference</th><th width='30%' align='center' class='bborder'>Product</th><th width='30%' align='center' class='bborder'>Category</th></tr></thead>";
$totallines=0;
$LINETOTAL=0;
$LINETOTAL1=0;
foreach ($assets as $value) {
$totallines=$totallines+1;
echo "
<tr>
<td class='rborder' align='left'>".$value->REFERENCE."</td>
<td class='rborder' align='left'>".$value->PRODUCT."</td>
<td class='rborder' align='left'>".$value->CATEGORY."</td>
 </tr>";
//$LINETOTAL = $LINETOTAL+($value->COST);
//$LINETOTAL1 = $LINETOTAL1+($value->SELL);
}

while($totallines<24)
{
       $totallines=$totallines+1;
    echo "<tr>
    <td class='rborder'>&nbsp;</td>
    <td class='rborder'>&nbsp;</td>
    <td class='rborder'>&nbsp;</td>
       </tr>";
}
echo "<tr>
    <td class='bborder'></td>
    <td class='bborder'></td>
    <td class='bborder'></td>
         </tr>";
echo "</tbody>";
echo "</table>";

?>
        <br><br>
    <table class="pagehead" width="100%">
    <tr>
    <td width="50%">&nbsp;</td>
    <td width="40%">&nbsp;</td>
    <td width="10%">&nbsp;</td>
    </tr>
    <?php
//    echo "<table align='right'>";
//echo "<tbody>";
//echo "
//         <tr><td><big><b>Total Cost:".$LINETOTAL."</b></big></td>
//     </tr>
//         <tr><td><big><b>Total Sell:".$LINETOTAL1."</b></big></td>
//      <td></td></tr>
//
//
//    </tr>";
//  echo "</tbody>";
//echo "</table>";
?>
    </table>
</html>
