<?php include_once('header.php'); 
if(!empty($_POST['newpassword']))
$pass=change_password();
?>
<main class="admin-content form-page">
        <section class="form-shell">
           <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" enctype="multipart/form-data" name="form1" onsubmit="return validate_change_password();">
          <div class="mb-3 row">
            <div id="formFeedback" class="alert d-none mb-3" role="alert"></div>
            <div class="form-block">
              <h3>Change Password</h3>
              <div class="row g-3 g-lg-4">
              		<?php
					  if(!empty($_GET['fail']))
					  {
					  ?>
						<div class="alert alert-danger" align="center"><strong style="color:black"> <centrer> Invalid Old Password </centrer> </strong></div>
						<?php
						}
						if(!empty($_GET['succ']))
					  {
					  ?>
						<div class="alert alert-success" align="center"><strong style="color:black"> <centrer> Password Changed Successfully </centrer> </strong></div>
						<?php
						}
						?>
              
                <div class="mb-3">
                  <label class="form-label" for="firstName">Old Password</label>
                  <input type="text" class="form-control" id="oldpassword" name="oldpassword" >
                  <div class="invalid-feedback">Enter Old Password</div>
                </div>

                <div class="col-12 col-md-12">
                  <label class="form-label" for="lastName">New Password</label>
                  <input class="form-control" id="newpassword" name="newpassword" >
                  <div class="invalid-feedback">Enter New Password</div>
                </div>

                <div class="col-12 col-md-12">
                  <label class="form-label" for="email">Conform Password</label>
                  <input type="text" class="form-control" id="cnfpassword" name="cnfpassword" >
                  <div class="invalid-feedback">Enter Confirm Your Password.</div>
                </div>
            </div>
			 
             <div class="password-invalid-feedback text-danger d-none"> Your Password And Confirm Password Not Matching</div>

            
            <div class="form-actions-mobile ">
              <button type="submit" class="btn btn-primary rounded-pill px-3 w-100">Save Changes</button>
            </div>
          </form>
        </section>
      </main>

      
<?php include_once('footer.php'); ?>