<?php
session_start();
$activePage = 'User';
$activeSubPage = 'Createuser';
include("../elements/master.php");
if(isset($_SESSION['token'] ))
{
//include("../elements/login_function.php");

}  
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Create User</title>
    <link rel="stylesheet" href="../css/style.css" type="text/css">
    <link rel="stylesheet" href="../css/create_password.css" type="text/css">
</head>
<body>
<div class="user_container">
  <maincontent>
    <div class="usertable">
      <h3>Create Password</h3>
      <div class="userdetails">
        <form action="password_function.php" class="form" id="createUserForm" method="POST">
          <div>
            <div class="col-10">
              <label>USER ID</label>
            </div>
            <div class="col-40">
              <input type="text" name="pid" placeholder="Enter User PID" value="<?php echo $_SESSION['pid'] ?>" required disabled />
            </div>
            <div class="col-10 hidden">
              <label>cust_field4</label>
            </div>
            <div class="col-40 hidden">
              <input type="text" name="cust_field4" placeholder="Enter cust_field4" />
            </div>
          </div>
          <div>
            <div class="col-10">
              <label>PASSWORD</label>
            </div>
            <div class="col-40">
              <input type="text" name="password" placeholder="Enter Password" required />
            </div>
            <div class="col-10 hidden">
              <label>cust_field4</label>
            </div>
            <div class="col-40 hidden">
              <input type="text" name="cust_field4" placeholder="Enter cust_field4" />
            </div>
          </div>

          <div class="col-10-submit">
            <input type="submit" name="submit" id="submit1" value="submit" />
          </div>
        </form>
      </div>
    </div>
  </maincontent>
</div>
<?php
if(!isset($_SESSION['token'])) {
    include('token_exp.php');
}
?>


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