
<?php 

    require_once("connection.php");
    $UserID = $_GET['GetID'];
    $query = " select * from orit where User_ID='".$UserID."'";
    $result = mysqli_query($con,$query);

    while($row=mysqli_fetch_assoc($result))
    {
        $UserID = $row['User_ID'];
		$UserDate = $row['User_Date'];
        $UserTime = $row['User_Time'];
        $UserLastlocation = $row['User_Lastlocation'];
        $UserStatus = $row['User_Status'];
		$UserRemarks = $row['User_Remarks'];
    }

?>


<!DOCTYPE html>
<html lang="en">
  <head>
  
  <link rel="shortcut icon" href="images/favicon.ico" >
    <title></title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nunito+Sans:200,300,400,700,900|Roboto+Mono:300,400,500"> 
    <link rel="stylesheet" href="fonts/icomoon/style.css">

    <link rel="stylesheet" href="css/bootstrap.min.css">
    <link rel="stylesheet" href="css/magnific-popup.css">
    <link rel="stylesheet" href="css/jquery-ui.css">
    <link rel="stylesheet" href="css/owl.carousel.min.css">
    <link rel="stylesheet" href="css/owl.theme.default.min.css">
    <link rel="stylesheet" href="css/bootstrap-datepicker.css">
    
    
    <link rel="stylesheet" href="fonts/flaticon/font/flaticon.css">
  
    <link rel="stylesheet" href="css/aos.css">

    <link rel="stylesheet" href="css/style.css">
    <style type="text/css">
    .aab {
	font-size: 36px;
	color: #FF0000;
}
    </style>
  </head>
  <body>
  
  <div class="site-wrap">

    <div class="site-mobile-menu">
      <div class="site-mobile-menu-header">
        <div class="site-mobile-menu-close mt-3">
          <span class="icon-close2 js-menu-toggle"></span>
        </div>
      </div>
      <div class="site-mobile-menu-body"></div>
    </div> <!-- .site-mobile-menu -->
    
    
    <div class="site-navbar-wrap bg-white">
      <div class="site-navbar-top">
        <div class="container py-2">
          <div class="row align-items-center">
            <div class="col-6">
              <div id="google_translate_element"></div><script type="text/javascript">
function googleTranslateElementInit() {
  new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element');
}
</script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
            </div>
            <div class="col-6">
              <div class="d-flex ml-auto">
                <a href="#" class="d-flex align-items-center ml-auto mr-4">
                  <span class="icon-phone mr-2"></span>
                  <span class="d-none d-md-inline-block"></span>
                </a>
                <a href="#" class="d-flex align-items-center">
                  <span class="icon-envelope mr-2"></span>
                  <span class="d-none d-md-inline-block"></span>
                </a>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="site-navbar bg-light">
        <div class="container py-1">
          <div class="row align-items-center">
            <div class="col-2">
              <h2 class="mb-0 site-logo">&nbsp;</h2>
            </div>
            <div class="col-10">
              <nav class="site-navigation text-right" role="navigation">
                <div class="container">
                  <div class="d-inline-block d-lg-none ml-md-0 mr-auto py-3"><a href="#" class="site-menu-toggle js-menu-toggle text-black"><span class="icon-menu h3"></span></a></div>

                  <ul class="site-menu js-clone-nav d-none d-lg-block">
                    <li>
                    <a href="track1.php">Track1</a>
                    <a href="track2.php">Track2</a>
                    <a href="track3.php">Track3</a>
                    <a href="track4.php">Track4</a>
                    <a href="track5.php">Track5</a>
                    <a href="track6.php">Track6</a>
                    <a href="track7.php">Track7</a>
                    <a href="track8.php">Track8</a>
                    <a href="track9.php">Track9</a>
                    <a href="track10.php">Track10</a>
                    <a href="track11.php">Track11</a>
                    <a href="track12.php">Track12</a>
                    <a href="track13.php">Track13</a>
                    <a href="track14.php">Track14</a>
                    <a href="track15.php">Track15</a>
                    <a href="track16.php">Track16</a>
                    <a href="track17.php">Track17</a>
                    <a href="track18.php">Track18</a>
                    <a href="track19.php">Track19</a>
                    <a href="track20.php">Track20</a>
                    <a href="change.php">Set Tracking</a>
                    <a href="add_client.php">U and P</a>
                      <a href="logout.php">LOGOUT</a>
                      
                    </li>
                    
                  </ul>
                </div>
              </nav>
            </div>
          </div>
        </div>
      </div>
    </div>

      

    <div class="site-section bg-light">
      <div class="container">
        <div class="row">
       
          <div class="col-md-12 col-lg-8 mb-5">
            <p class="aab">Tracking Information            </p>
            <p><div class="card-title">
                            <h3 class="bg-success text-white text-center py-3"> Update Form in PHP</h3>
                        </div>
                        <div class="card-body">

                            <form action="update_orit.php?ID=<?php echo $UserID ?>" method="post">
								<input type="text" class="form-control mb-2" placeholder=" Date " name="date" value="<?php echo $UserDate ?>">
                                <input type="text" class="form-control mb-2" placeholder=" Time # " name="time" value="<?php echo $UserTime ?>">
                                <input type="text" class="form-control mb-2" placeholder=" Last location " name="lastlocation" value="<?php echo $UserLastlocation ?>">
                                <input type="text" class="form-control mb-2" placeholder=" Status  " name="status" value="<?php echo $UserStatus ?>">
								<input type="text" class="form-control mb-2" placeholder=" Remarks   " name="remarks" value="<?php echo $UserRemarks ?>">
								
                                <button class="btn btn-primary" name="update">Update</button>
                            </form>

                        </div>
</p>
            </p>         </p>
          </div>
          
            
          </div>
        </div>
      </div>
    </div>

    
    <div class="promo py-5 bg-primary" data-aos="fade">
      <div class="container text-center">
        <h2 class="d-block mb-0 font-weight-light text-white"><a href="#" class="text-white d-block"></a></h2>
      </div>
    </div>
    
    <footer class="site-footer">
      <div class="container">
        

        <div class="row"></div>
        <div class="row pt-5 mt-5 text-center">
          <div class="col-md-12">
            <p>
            <!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. -->
            Copyright &copy;  All Rights Reserved | 
            <!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. -->
            </p>
          </div>
          
        </div>
      </div>
    </footer>
  </div>

  <script src="js/jquery-3.3.1.min.js"></script>
  <script src="js/jquery-migrate-3.0.1.min.js"></script>
  <script src="js/jquery-ui.js"></script>
  <script src="js/popper.min.js"></script>
  <script src="js/bootstrap.min.js"></script>
  <script src="js/owl.carousel.min.js"></script>
  <script src="js/jquery.stellar.min.js"></script>
  <script src="js/jquery.countdown.min.js"></script>
  <script src="js/jquery.magnific-popup.min.js"></script>
  <script src="js/bootstrap-datepicker.min.js"></script>
  <script src="js/aos.js"></script>

  <script src="js/main.js"></script>
    
  </body>
</html>