<?php
require_once"labClass.php";
$con=new labClass();
 
?>
<table>
  <tr>
  <td width="40%" valign="top"> 
 <!--<input type="number" id="orderID" value="<?php echo $nr;?>" name="orderID" required>-->
 
   <div class="row">
    <div class="col">
      <h6>Search customer here:</h6>  
      <input type="text" onkeyup ="submision()" class="form-control" id="tname" style="width:100%; height:40px; border-radius:12px;" placeholder="Test name" name="tname" required>  
    </div>
</div> 
 

<!-- SEARCH BOX END-->

 

 
 <div id="dispR">
   
 <?php
   //require_once "labToolkitListOp.php";
   ?>
   
 </div>
     </td>

     <td valign="top">
     <table><tr><td></td><td></td><td></td><td></td></tr></table>
     <div id="co">  
<!--INVOICE  DEVELOPMENT CODE-->
    <table width="100%" border="0">
     <tr>
     <td>
     KWIZERA INVESTMENT COMPANY SALES INVOICE               
      
    </td>
    <td>
          ORDER NO:<small id="orno"></small>  
      <?php 

      //echo "".$nr;
      ?>
    </td>
  </tr>
  <tr>
   <td colspan="2">
<p/>
<b style="color:blue;">Location:  Katoro-Geita<br/>Tel:  +255 788253958/796318675<br/>Email:  speciosylver@gmail.com <br/>
Date: <small id="dt"></small>   

    </td>
   

  </tr>
   <tr>
    <td colspan="2">
      <img src="assets/logo.png" style="width:100%;height:70px;" >
    </td>

  </tr>
   <tr>
    <td colspan="2">
M/S:   
     

<small id="ms"></small>
 
    </td>
  </tr>
</table>


<!--CODE END YEAR-->

<div id="dR">
<?php
//require_once "pharmSinvPrevListLPO.php";
?></div>
</div>
</td>
</tr>
</table>
<div>
   <button type="submit" class="btn btn-primary" value="Print" style="width:13%; height:40px;" onclick="printPageArea();">Print </button>
    </div>
 
 <script>
   function submision(){
    
    var searchValue=$('#tname').val();
    $('#dispR').empty();
    $.post('pharmorderPrevListLPO.php',{searchValue:searchValue},function(data){
      $('#dispR').html(data);

    });
  }
 
  function printPageArea(){
    var printContent = document.getElementById('co').innerHTML;
    var originalContent = document.body.innerHTML;
    document.body.innerHTML = printContent;
    window.print();
    document.body.innerHTML = originalContent;
}
 
 
</script>
 