<?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 staff 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 colspan="2">
    <h4>ROMBO STAR PROFORMA INVOICE</h4>              
      
    </td>
</tr>
  <tr>
    <td valign="top">
        <h6>
            <p/><p/><p/>
        Address: Olympic Mabatini-Mwanza<br/>
        Tel:  +255 758087092<br/>
        Email: rombostarco.ltd@gmail.com<br/>         
      <h6>
    </td>
    <td>
          <h6>
            Proforma No:<small id="orno"></small>   
      <?php 

      //echo "".$nr;
      ?>
      <br/>
      Date:  <small id="dt"></small></h6>
    </td>
  </tr>
  <tr>
    <tr>
    <td colspan="2">
      <img src="assets/logo.png" style="width:100%;height:70px;" >
    </td>

  </tr>

  </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('profPrevList.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>
 