Subversion Repositories cheapmusic

Rev

Rev 57 | Rev 107 | 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
65 - 3
require_once ('includes/session.php');
31 - 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">
65 - 33
					<?php echo !empty($statusMsg) ? '<p class="status-msg ' . $statusMsgType . '">' . $statusMsg . '</p>' : ''; ?>
25 - 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']; ?>">
65 - 38
						<?php if (!empty($userData['password'])) { ?>
25 - 39
                        <div class="frm-input">
40
							<input type="password" name="old_password" class="pass-in" placeholder="Current Password" required="">
41
						</div>
65 - 42
						<?php
43
} ?>
25 - 44
                        <div class="frm-input">
45
							<input type="password" name="password" class="pass-in" placeholder="New Password" required="">
46
						</div>
47
                        <div class="frm-input">
48
							<input type="password" name="confirm_password" class="pass-in" placeholder="Confirm Password" required="">
49
						</div>
50
                        <div class="frm-btn">
57 - 51
                            <button type="submit" class="btn btn-success" name="updatePassword" value="Update">Update</button>
25 - 52
                        </div>
53
                    </form>
54
            </div>
55
		</div>
57 - 56
           </div>
25 - 57
	</div>
58
	<!--//main-->
59
 
60
	<!--footer-->
61
	<?php include_once 'elements/footer.php'; ?>
62
	<!--//footer-->
63
</div>
64
</body>
31 - 65
</html>