Subversion Repositories cheapmusic

Rev

Rev 116 | 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-->
57 - 20
 
25 - 21
    <!--main-->
22
	<div class="main-content">
57 - 23
	  <div class="wrapper-frm border bg-light text-dark shadow">
24
            <div class="head-menu bg-primary menu-tle">
107 - 25
                <h1>My Account</h1>
25 - 26
            </div>
27
            <div class="ucontent">
31 - 28
                <div class="left-pnl">
116 - 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
                    <div class="ac-info">
34
                        <p><b>E-MAIL </b>: <?php echo $userData['email']; ?></p>
26 - 35
                        <p><b>ZIP </b>: <?php echo $userData['zip']; ?></p>
25 - 36
                    </div>
65 - 37
                    <?php if (!empty($userData['link'])) { ?>
25 - 38
                    <div class="button">
57 - 39
                        <a role="button" href="<?php echo $userData['link']; ?>" class="view-btn btn btn-success" target="_blank">Click to view profile</a>
25 - 40
                    </div>
65 - 41
					<?php
42
} ?>
57 - 43
        		</div>
25 - 44
            </div>
57 - 45
 
46
            <div class="clearfix"></div>
47
 
58 - 48
            <div class="bg-dark text-light menu-tle my-3">
59 - 49
                <h5>Layout</h5>
57 - 50
            </div>
51
            <div class="text-center m-2">
59 - 52
                <p>Color Theme: <?php echo (!empty($userData['theme']) ? ucwords($userData['theme']) : "Default"); ?></p>
53
                <p>Result View: <?php echo ($userData['cardView'] ? 'Cards' : 'Table'); ?></p>
57 - 54
            </div>
55
 
58 - 56
            <div class="bg-dark text-light menu-tle my-3">
57 - 57
                <h5>Search Filter Preferences</h5>
58
            </div>
59
            <div class="card-group">
60
                 <div class="card m-2">
61
                     <div class="card-header font-weight-bold">Condition</div>
62
                     <div class="card-body ac-info">
63
                         <div class="form-check">
64
                             <label class="form-check-label">
120 - 65
                                 <input id="conditionNew" name="filterConditionNew" type="checkbox" class="form-check-input" value="New" <?php echo ($userData["conditionNew"] ? "checked" : ""); ?> />New
57 - 66
                             </label>
120 - 67
                            <script nonce="<?php echo base64_encode($_SESSION["nonce"]) ?>">
68
                            document.addEventListener("DOMContentLoaded", function() {
69
                               	document.getElementById("conditionNew").addEventListener("change", function(e) {
70
                                    $(this).prop('checked', !$(this).prop('checked'));
71
                               	});
72
                            });
73
                            </script>
57 - 74
                         </div>
75
                         <div class="form-check">
76
                             <label class="form-check-label">
120 - 77
                                 <input id="conditionUsed" name="filterConditionUsed" type="checkbox" class="form-check-input" value="Used" <?php echo ($userData["conditionUsed"] ? "checked" : ""); ?> />Used
57 - 78
                             </label>
120 - 79
                            <script nonce="<?php echo base64_encode($_SESSION["nonce"]) ?>">
80
                            document.addEventListener("DOMContentLoaded", function() {
81
                               	document.getElementById("conditionUsed").addEventListener("change", function(e) {
82
                                    $(this).prop('checked', !$(this).prop('checked'));
83
                               	});
84
                            });
85
                            </script>
57 - 86
                         </div>
87
                     </div>
88
                 </div>
89
 
90
                 <div class="card m-2">
91
                     <div class="card-header font-weight-bold">Media Type</div>
92
                     <div class="card-body ac-info">
93
                         <div class="form-check">
94
                             <label class="form-check-label">
120 - 95
                                 <input id="mediaCD" name="filterMediaTypeCD" type="checkbox" class="form-check-input" value="CD" <?php echo ($userData["mediaCD"] ? "checked" : ""); ?> /><i class="<?php echo getMediaIconClass("CD", "material-text"); ?>"><?php echo getMediaIconAlias("CD"); ?></i> <?php echo getMediaIconText("CD"); ?>
57 - 96
                             </label>
120 - 97
                            <script nonce="<?php echo base64_encode($_SESSION["nonce"]) ?>">
98
                            document.addEventListener("DOMContentLoaded", function() {
99
                               	document.getElementById("mediaCD").addEventListener("change", function(e) {
100
                                    $(this).prop('checked', !$(this).prop('checked'));
101
                               	});
102
                            });
103
                            </script>
57 - 104
                         </div>
105
                         <div class="form-check">
106
                             <label class="form-check-label">
120 - 107
                                 <input id="mediaRecord" name="filterMediaTypeRecord" type="checkbox" class="form-check-input" value="Record" <?php echo ($userData["mediaRecord"] ? "checked" : ""); ?> /><i class="<?php echo getMediaIconClass("Record", "material-text"); ?>"><?php echo getMediaIconAlias("Record"); ?></i> <?php echo getMediaIconText("Record"); ?>
57 - 108
                             </label>
120 - 109
                            <script nonce="<?php echo base64_encode($_SESSION["nonce"]) ?>">
110
                            document.addEventListener("DOMContentLoaded", function() {
111
                               	document.getElementById("mediaRecord").addEventListener("change", function(e) {
112
                                    $(this).prop('checked', !$(this).prop('checked'));
113
                               	});
114
                            });
115
                            </script>
57 - 116
                         </div>
117
                         <div class="form-check">
118
                             <label class="form-check-label">
120 - 119
                                 <input id="mediaDigital" name="filterMediaTypeDigital" type="checkbox" class="form-check-input" value="Digital" <?php echo ($userData["mediaDigital"] ? "checked" : ""); ?> /><i class="<?php echo getMediaIconClass("Digital", "material-text"); ?>"><?php echo getMediaIconAlias("Digital"); ?></i> <?php echo getMediaIconText("Digital"); ?>
57 - 120
                             </label>
120 - 121
                            <script nonce="<?php echo base64_encode($_SESSION["nonce"]) ?>">
122
                            document.addEventListener("DOMContentLoaded", function() {
123
                               	document.getElementById("mediaDigital").addEventListener("change", function(e) {
124
                                    $(this).prop('checked', !$(this).prop('checked'));
125
                               	});
126
                            });
127
                            </script>
57 - 128
                         </div>
129
                         <div class="form-check">
130
                             <label class="form-check-label">
120 - 131
                                 <input id="mediaBook" name="filterMediaTypeBook" type="checkbox" class="form-check-input" value="Books" <?php echo ($userData["mediaBook"] ? "checked" : ""); ?> /><i class="<?php echo getMediaIconClass("Book", "material-text"); ?>"><?php echo getMediaIconAlias("Book"); ?></i> <?php echo getMediaIconText("Book"); ?>
57 - 132
                             </label>
120 - 133
                            <script nonce="<?php echo base64_encode($_SESSION["nonce"]) ?>">
134
                            document.addEventListener("DOMContentLoaded", function() {
135
                               	document.getElementById("mediaBook").addEventListener("change", function(e) {
136
                                    $(this).prop('checked', !$(this).prop('checked'));
137
                               	});
138
                            });
139
                            </script>
57 - 140
                         </div>
141
                     </div>
142
                 </div>
143
             </div>
71 - 144
 
145
            <div class="bg-dark text-light menu-tle my-3">
146
                <h5>Wishlist</h5>
147
            </div>
148
            <div class="text-center m-2">
149
                <p>Email Price Checks: <?php echo ($userData['wlEmailFlag'] ? "Yes" : "No"); ?></p>
150
                <p>Email Price Check Frequency: <?php echo $wlFreqArr[$userData['wlFreq']]; ?></p>
151
            </div>
152
 
25 - 153
		</div>
154
	</div>
155
	<!--//main-->
57 - 156
 
25 - 157
	<!--footer-->
158
	<?php include_once 'elements/footer.php'; ?>
159
	<!--//footer-->
160
</div>
161
</body>
26 - 162
</html>