<!DOCTYPE html>
<html lang="en">
<head>
  <title>AUTO SPARE</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
 
  <link href="css/bootstrap.min.css" rel="stylesheet">
  <script src="js/bootstrap.bundle.min.js"></script>
  <script src="jsj/JQuery.js"></script>
</head>
<body>
<nav class="navbar navbar-expand-xxl bg-dark navbar-dark">
  <div class="container-fluid">
   <!-- <a class="navbar-brand" href="#">
       <img src="assets/optimismlogo.png" alt="OPTIMISM LOGO" style="width:100px; height:80px;" class="rounded-pill">
    </a>-->
    <span class="navbar-text text-white">INVENTORY MANAGEMENT SYSTEM</span>

      <ul class="navbar-nav">
     
      <li class="nav-item">
        <a class="nav-link" href="index.php">Logout</a>
      </li>
    </ul>
  </div>
</nav>

 <?php
 ini_set('display_errors', 1);
error_reporting(E_ALL);
 require_once"labClass.php";
  $con=new labClass();

  //$row=$con->getRowCount();                                                                //FUNCTION FOR VISITORS OF HOTEL HERE
  //$nr=$row->rowCount()+1;
   $nm=$_GET['id'];
///
?>

<!--/////////////-->
<table class="table table-bordered" >
   
    <tbody>
      <tr>
       <td align="left"><input type="text" disabled="true" style="width:140px; " class="form-control bg-white borderless" id="user" name="user" value="<?php echo $nm;?>">
       </td>

        <td align="right"> 
   
       <small><h6 id="ds"></h6></small>
      <input type="date" style="width:200px;" class="form-control" id="sdate" name="sdate" value="<?php echo Date("Y-m-d");?>">
        
    </div>
    </div>
     </div>


      </td></tr>
      <tr>
        <td style="width:10%; height:auto;">
            <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 pID=234;$.post('drH.php',{pID:pID},function(data){$('#disp').html(data).show();});"><small>HOME</small></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:40px;" onclick="var pID=234;$.post('storeH.php',{pID:pID},function(data){$('#disp').html(data).show();});"><small>STORE</small></button>

          </div>
         
          </div>
        </td>
        <td>
          <div id="outp" class="container-sm"></div>
          <div class="container mt-3" id="disp">
            <?php
               require_once "drH.php";
              //require_once "stffH.php";
            ?>

 

           </div> 
        </td> 
      </tr>
      
    </tbody>
  </table>
 
<!--///////////////--->
</body>
<div class="footer" style="width:100%;  position:absolute;">
  
<nav class="navbar navbar-expand-sm bg-secondary">
  <div class="container-fluid justify-content-center">
     
    <span class="navbar-text text-white"><small>Power by BUDA. Developed by Hassan Jeremiah-(+255 758912113/689749960)<small></span>

     
  </div>
</nav>
</div> 
</html>
