
 <div class="container mt-3">
  <h6>MANAGEMENT DASHBOARD:</h6> 
  <!--<form action="https://www.w3schools.com/action_page.php" id="pr" name="pr" class="was-validated">-->
     
<div class="row">
    <div class="col">
     PHARMACY
    </div>
</div>
<div class="row">
<div class="col">
   

 <div class="form-floating mb-3 mt-3"> 
       <button type="submit" class="btn btn-primary" style="width:100%; height:43px;" onclick=" var pID=234;$.post('pharItemRf.php',{pID:pID},function(data){$('#disp').html(data).show();});">New item</button>
    </div>
   </div>
   <div class="col">
    <div class="form-floating mb-3 mt-3"> 
        <button type="submit" class="btn btn-primary" style="width:100%; height:43px;" onclick="var sdate=$('#sdate').val(); var patientID=$('#pID').val();if (patientID!=''&& sdate!='') {$.post('pharmDispensableQ.php',{sdate:sdate,patientID:patientID},function(data){$('#disp').html(data).show();});} else{document.getElementById('disp').innerHTML='Enter valid patient ID!..';}">Dispense medicine</button>
    </div>
    </div>

 
 
 <div class="col">
    <div class="form-floating mb-3 mt-3"> 
     <button type="submit" class="btn btn-primary" style="width:100%; height:43px;" onclick="var sdate=$('#sdate').val(); if (sdate!='') {$.post('pharmPurchaseR.php',{sdate:sdate},function(data){$('#disp').html(data).show();});} else{document.getElementById('disp').innerHTML='System date required!..';}">Purchase report</button>
    </div>      


 </div>
 <div class="col">
 <div class="form-floating mb-3 mt-3">   
      <button type="submit" class="btn btn-primary" style="width:100%; height:43px;" onclick="var sdate=$('#sdate').val(); if (sdate!='') {$.post('pharmDispenseRpt.php',{sdate:sdate},function(data){$('#disp').html(data).show();});} else{document.getElementById('disp').innerHTML='System date required!..';}">Dispenses report</button>
    </div>
</div>
  


</div>


 
 
 
 
 <div class="row">
<div class="col">
    
 <div class="form-floating mb-3 mt-3"> 
       
        <button type="submit" class="btn btn-primary" style="width:100%; height:40px;" onclick=" var patientID=$('#pID').val();if (patientID!='') {$.post('pharmCrrStock.php',{patientID:patientID},function(data){$('#disp').html(data).show();});} else{document.getElementById('disp').innerHTML='Enter valid patient ID!..';}"><small>Current Stock</small></button>
    </div>
   </div>
   <div class="col">
    <div class="form-floating mb-3 mt-3"> 
       
    </div>
    </div>

 
 
 <div class="col">
    <div class="form-floating mb-3 mt-3"> 
      
    </div>      


 </div>
 <div class="col">
 <div class="form-floating mb-3 mt-3">   
       
    </div>
</div>
  


</div>
 
 

</div>
</div>







    