<?php 
require 'lock.php'; 
?>

<!DOCTYPE html>
<html lang="en">
<?php require 'head.php'; ?>
<body>
    <!-- Loader starts-->
    <div class="loader-wrapper">
      <div class="theme-loader">    
        <div class="loader-p"></div>
      </div>
    </div>
    <!-- Loader ends-->
    <!-- page-wrapper Start-->
    <div class="page-wrapper" id="pageWrapper">
      <?php include 'top.php'; ?>
      <!-- Page Header Ends                              -->
      <!-- Page Body Start-->
      <div class="page-body-wrapper horizontal-menu">
        <?php include 'header.php'; ?>
        <!-- Page Sidebar Ends-->
        <div class="page-body">
          <div class="container-fluid">
            <div class="page-header">
              <div class="row">
                <div class="col-6">
                  <h3>Role Change</h3>
                  <ol class="breadcrumb">
                    <li class="breadcrumb-item"><a href="index">Home</a></li>
                    <li class="breadcrumb-item active">Role Change</li>
                  </ol>
                </div>
                <div class="col-6">
                    <a href="index" class="btn btn-secondary me-3">Back</a> 
                </div>
              </div>
            </div>
          </div>
          <!-- Container-fluid starts-->
           <div class="container-fluid">
            <div class="row">
              <div class="col-sm-12">
                <div class="card">
                  <div class="card-body">
				    <form action="role-status-db.php" method="post">
	                 <div class="form theme-form">
        
                      <div class="row">
                        <div class="col-sm-4">
                          <div class="mb-3">
                            <label>Role Type <sup class="text-danger">*</sup></label>
                            <select class="form-control btn-square" name="roll_type" required>
                              <?php
                              if($user_type=='Manager')
                              {
                              ?>
                              <option value="User">User</option>
                              <?php
                              }
                              else
                              {
                              ?>
                              <option value="Manager">Manager</option>
                              <?php
                              }
                              ?>
                            </select>
                          </div>
                        </div>
						
						
                      </div>
                     
                      
                      <div class="row">
                        <div class="col">
                          <div class="text-end">
						  <button class="btn btn-secondary me-3" name="taskadd" type="submit"> Update </button>
                        </div>
                      </div>
                    </div>
                  </div>
				  </form>	
                </div>
              </div>
            </div>
          </div>
          <!-- Container-fluid Ends-->
        </div>
        
		<?php include 'footer.php'; ?>
  </body>
</html>