Subversion Repositories cheapmusic

Rev

Rev 65 | Rev 112 | 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'; ?>
107 - 13
    <style>
14
        #emailfield { display: none; }
15
    </style>
25 - 16
	<!--//head-->
17
</head>
18
<body>
43 - 19
<div class="main">
25 - 20
    <!--header-->
21
    <?php include_once 'elements/header.php'; ?>
22
    <!--//header-->
23
 
24
    <!--main-->
25
	<div class="main-content">
57 - 26
          <div class="wrapper-frm bg-light text-dark border shadow text-center">
27
            <div class="head-menu bg-primary menu-tle">
107 - 28
                <h1>Change Password</h1>
25 - 29
            </div>
30
            <div class="ucontent">
31 - 31
                <div class="left-pnl">
47 - 32
                    <img class="img-fluid upicture" src="<?php echo $userPicture; ?>" alt="<?php echo $userName; ?>">
25 - 33
                    <h2><?php echo $userName; ?></h2>
34
                </div>
31 - 35
                <div class="right-pnl">
65 - 36
					<?php echo !empty($statusMsg) ? '<p class="status-msg ' . $statusMsgType . '">' . $statusMsg . '</p>' : ''; ?>
25 - 37
                    <form action="<?php echo BASE_URL; ?>userAccount.php" method="post">
36 - 38
                        <input type="hidden" name="sessionTab" value="<?php if (isset($_POST['sessionTab'])) echo $_POST['sessionTab']; ?>">
39
                   	    <input type="hidden" name="searchTerm" value="<?php if (isset($_POST['searchTerm'])) echo $_POST['searchTerm']; ?>">
40
                       	<input type="hidden" name="buyerZip" value="<?php if (isset($_POST['buyerZip'])) echo $_POST['buyerZip']; ?>">
65 - 41
						<?php if (!empty($userData['password'])) { ?>
107 - 42
                        <input id="emailfield" type="text" value="<?php echo $userData['email'] ?>" autocomplete="username">
25 - 43
                        <div class="frm-input">
107 - 44
							<input type="password" name="old_password" class="pass-in" placeholder="Current Password" aria-label="Current Password" required="" autocomplete="current-password">
25 - 45
						</div>
65 - 46
						<?php
47
} ?>
25 - 48
                        <div class="frm-input">
107 - 49
							<input type="password" name="password" class="pass-in" placeholder="New Password" aria-label="New Password" required="" autocomplete="new-password">
25 - 50
						</div>
51
                        <div class="frm-input">
107 - 52
							<input type="password" name="confirm_password" class="pass-in" placeholder="Confirm Password" aria-label="Confirm New Password" required="" autocomplete="new-password">
25 - 53
						</div>
54
                        <div class="frm-btn">
57 - 55
                            <button type="submit" class="btn btn-success" name="updatePassword" value="Update">Update</button>
25 - 56
                        </div>
57
                    </form>
58
            </div>
59
		</div>
57 - 60
           </div>
25 - 61
	</div>
62
	<!--//main-->
63
 
64
	<!--footer-->
65
	<?php include_once 'elements/footer.php'; ?>
66
	<!--//footer-->
67
</div>
68
</body>
31 - 69
</html>