<!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
 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>
           <?php
  $today = date("Y-m-d");
  $tomorrow = date("Y-m-d", strtotime("1 day"));
?>
<input 
  type="date" 
  style="width:200px;" 
  class="form-control" 
  id="sdate" 
  name="sdate" 
  value="<?php echo $today; ?>" 
  min="<?php echo$today; ?>" 
  max="<?php echo $tomorrow; ?>"
>

    </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('stffH.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('storeHStff.php',{pID:pID},function(data){$('#disp').html(data).show();});"><small>STORE</small></button>

          </div>
         
          </div>
          <button type="submit" class="btn btn-primary" value="Print" style="width:100%; height:30px;" onclick="printPageArea();">Print </button>
        </td>
        <td>
          <div id="outp" class="container-sm"></div>
          <div class="container mt-3" id="disp">
            <?php
               //require_once "drctH.php";
               require_once "stffH.php";
            ?>

 

           </div> 
        </td> 
      </tr>
      
    </tbody>
  </table>
 
<!--///////////////--->
<script>
(function () {
    let idleTimer;
    const IDLE_LIMIT = 600000; // 10 minutes

    function resetTimer() {
        clearTimeout(idleTimer);
        idleTimer = setTimeout(expireSession, IDLE_LIMIT);
    }

    function expireSession() {
        window.location.replace("http://rombostar.co.tz/receiptionPage.php?suc=LOGIN%20SUCCESSFULLY&eqsgsfhuw8=qsgsfhuw8891o1pggywiuiwpwp8091hhwjmbbbnbsnusbbsggs98202iiahjhabbabbabba89299200gsgshsiisi00200hhshhsbbssbbsbbsk2002002002002&rsrqwes=srqwesgbsynnebbdyyeuueumnennenneeyyyoy3yy3uu33iii3o3oo3oo3i3iii3ii3uu3uu3uuu3uuu3uuu3uuu3uuuu3uuu3uu3uu3uuu3uu3ttyy3yy3yy3yy3yy3yyy3yy3yy3yy3yy3shshhshhwhhwhhwhhheh&id=MROSSO,%20ANTHONY");
    }
     
    
      history.pushState(null, null, location.href);
           window.onpopstate = function () {
           history.go(1);
         };
 

     
     
     
            
    window.onload = resetTimer;
    document.onmousemove = resetTimer;
    document.onkeydown = resetTimer;
    document.onclick = resetTimer;
    document.onscroll = resetTimer;
})();
</script>



</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>
<script type="text/javascript">
  function printPageArea(){
    var printContent = document.getElementById('disp').innerHTML;
    var originalContent = document.body.innerHTML;
    document.body.innerHTML = printContent;
    window.print();
    document.body.innerHTML = originalContent;
}

</script>
