?> </span> </a> <ul class="dropdown-menu"> <!-- User image --> <li class="user-header"> <img id="toprightdropdownimg" src="<?php echo $dp_name; ?> " class="img-circle" alt="User Image"> <p> <?php echo get_name($user_id); ?> <small>Registered since <?php echo getuserfield_settings('today_date', $user_id); ?> </small> </p> </li> <!-- Menu Body --> <!-- <li class="user-body"> <div class="col-xs-4 text-center"> <a href="#">Followers</a> </div> <div class="col-xs-4 text-center"> <a href="#">Sales</a> </div> <div class="col-xs-4 text-center"> <a href="#">Friends</a> </div>
<?php if (isset($_POST['cpassword'])) { $current_password = $_POST['cpassword']; } if (isset($_POST['newpass'])) { $new_password = $_POST['newpass']; } if (isset($_POST['confirmpass'])) { $confirm_pass = $_POST['confirmpass']; } if ($current_password === getuserfield_settings('password', $user_id)) { if (update_password($user_id, $new_password)) { $msg = "Your password changed successfully."; header("Location: student_homepage.php?pid=6st16yz9&settings_msg={$msg}"); } else { $msg = "Sorry, Your password could not be changed."; header("Location: student_homepage.php?pid=6st16yz9&settings_msg={$msg}"); } } else { $msg = "Your current password is invalid."; header("Location: student_homepage.php?pid=6st16yz9&settings_msg={$msg}"); }
</div> </form> </div> </div> <div class="tab-pane" id="changemobile"> <form class="form-horizontal box box-primary" action="student_homepage.php?pid=69qrt3lw" method="POST"> <br> <div class="box-header with-border"> <h3 class="box-title">Change Your Mobile Number</h3> </div> <br> <div class="form-group"> <label class="col-sm-2 control-label">Current Password</label> <div class="col-sm-10"> <input type="password" class="form-control" id="cpasswordmb" required name="cpasswordmb" placeholder="Current Password" pattern="(<?php echo getuserfield_settings('password', $user_id); ?> )" oninvalid="this.setCustomValidity('Incorrect Password')" oninput="setCustomValidity('')"> </div> </div> <br> <div class="form-group"> <label class="col-sm-2 control-label">New Mobile Number</label> <div class="col-sm-10"> <input type="text" class="form-control" id="newmobile" name="newmobile" required placeholder="New Mobile Number" pattern=".[0-9]{9}" oninvalid="this.setCustomValidity('Invalid Mobile No.')" oninput="setCustomValidity('')"> </div> </div> <div class="form-group"> <div class="col-sm-offset-2 col-sm-10"> <button type="submit" class="btn btn-primary">Submit</button> <button type="reset" class="btn btn-danger">Cancel</button>