<?php
$us=intval($_GET['GHFxvsgHM']);

?>

<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <div class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-10">
            <h4 class="m-0">Send Invitation</h4>
          </div><!-- /.col -->
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item">Dashboard</li>
              <li class="breadcrumb-item ">Extra</li>
              <li class="breadcrumb-item">Manage Users</li>
              <li class="breadcrumb-item active">Send Invitation</li>
            </ol>
          </div><!-- /.col -->
        </div><!-- /.row -->
      </div><!-- /.container-fluid -->
    </div>
    
    <section class="content">
      <div class="row">
        <div class="col-md-12">
         <a href="index.php?page=users" class="badge bg-primary"> <i class="fa fa-arrow-left"></i> Back</a>
        <hr />
          <div class="card card-primary">
            <div class="card-body">
                
             <form class="row needs-validation" method="POST" action="" onsubmit="return false;">
             <div class="tableholder">
             <table class="table table-bordered">
               <thead>
                 <tr class="alert-success"> 
                   <th>Description</th>
                   <th>User Email</th>
                 </tr>
               </thead>
                <tbody>
               <?php
                   $item='';
                    $query=mysqli_query($con,"select * from users where userid='$us'");
                    while($row=mysqli_fetch_array($query))
                    {
                      $em=htmlentities($row['Email']);  
                    }
                  ?>
                  <tr class="table-primary">
                   <td><!--span class="badge alert-danger">Approve Rights</span -->
                      <ul class="list">
                          <li>Login credentials will be sent via email</li>
                          <li>The user/admin must change the login credentials on first login</li>
                      </ul>
                   </td>
                   <td>
                     <div class=" position-relative">
                          <select class="form-select" name="Righ" id="app_opt" required>
                               <option value="<?php echo $em;  ?>"><?php echo $em;  ?></option>
                          </select>                          
                      </div>
                   </td>
                 </tr>
               </tbody>
             </table>
           </div>
           <div class="col-12">
            <center><label id="rolesmsg"></label></center>
        
           </div>
            <div class="col-12">
              <button style="float-right" class="btn btn-success btn-sm btn-xs pull-right" type="submit" name="btnsend" id="btnsend"> <i class="fa fa-paper-plane"></i> Send
              </button>
            </div>
        </form><!-- End Custom Styled Validation with Tooltips -->
            </div>
            <!-- /.card-body -->
          </div>
          <!-- /.card -->
        </div>
      </div>
      
    </section>
</div>