Subversion Repositories cheapmusic

Rev

Rev 47 | Rev 65 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
25 - 1
<?php
31 - 2
// Include Session Handling
3
require_once('includes/session.php');
4
 
25 - 5
// Include config & login validate file
6
require_once 'includes/validateUser.php';
7
?>
8
<!DOCTYPE html>
9
<html lang="en-US">
10
<head>
11
	<!--head-->
12
	<?php include_once 'elements/head.php'; ?>
13
	<!--//head-->
14
</head>
15
<body>
43 - 16
<div class="main">
25 - 17
    <!--header-->
18
    <?php include_once 'elements/header.php'; ?>
19
    <!--//header-->
20
 
21
    <!--main-->
22
	<div class="main-content">
57 - 23
          <div class="wrapper-frm bg-light text-dark border shadow text-center">
24
            <div class="head-menu bg-primary menu-tle">
25
                <h2>Change Password</h2>
25 - 26
            </div>
27
            <div class="ucontent">
31 - 28
                <div class="left-pnl">
47 - 29
                    <img class="img-fluid upicture" src="<?php echo $userPicture; ?>" alt="<?php echo $userName; ?>">
25 - 30
                    <h2><?php echo $userName; ?></h2>
31
                </div>
31 - 32
                <div class="right-pnl">
25 - 33
					<?php echo !empty($statusMsg)?'<p class="status-msg '.$statusMsgType.'">'.$statusMsg.'</p>':''; ?>
34
                    <form action="<?php echo BASE_URL; ?>userAccount.php" method="post">
36 - 35
                        <input type="hidden" name="sessionTab" value="<?php if (isset($_POST['sessionTab'])) echo $_POST['sessionTab']; ?>">
36
                   	    <input type="hidden" name="searchTerm" value="<?php if (isset($_POST['searchTerm'])) echo $_POST['searchTerm']; ?>">
37
                       	<input type="hidden" name="buyerZip" value="<?php if (isset($_POST['buyerZip'])) echo $_POST['buyerZip']; ?>">
25 - 38
						<?php if(!empty($userData['password'])){ ?>
39
                        <div class="frm-input">
40
							<input type="password" name="old_password" class="pass-in" placeholder="Current Password" required="">
41
						</div>
42
						<?php } ?>
43
                        <div class="frm-input">
44
							<input type="password" name="password" class="pass-in" placeholder="New Password" required="">
45
						</div>
46
                        <div class="frm-input">
47
							<input type="password" name="confirm_password" class="pass-in" placeholder="Confirm Password" required="">
48
						</div>
49
                        <div class="frm-btn">
57 - 50
                            <button type="submit" class="btn btn-success" name="updatePassword" value="Update">Update</button>
25 - 51
                        </div>
52
                    </form>
53
            </div>
54
		</div>
57 - 55
           </div>
25 - 56
	</div>
57
	<!--//main-->
58
 
59
	<!--footer-->
60
	<?php include_once 'elements/footer.php'; ?>
61
	<!--//footer-->
62
</div>
63
</body>
31 - 64
</html>