Rev 59 | Rev 66 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<?php
// Include Session Handling
require_once ('includes/session.php');
// Include config & login validate file
require_once 'includes/validateUser.php';
?>
<!DOCTYPE html>
<html lang="en-US">
<head>
<!--head-->
<?php include_once 'elements/head.php'; ?>
<!--//head-->
</head>
<body>
<div class="main">
<!--header-->
<?php include_once 'elements/header.php'; ?>
<!--//header-->
<!--main-->
<div class="main-content">
<div class="wrapper-frm border bg-light text-dark shadow">
<div class="head-menu bg-primary menu-tle">
<h2>My Account</h2>
</div>
<div class="ucontent">
<div class="left-pnl">
<img class="img-fluid upicture" src="<?php echo $userPicture; ?>" alt="<?php echo $userName; ?>">
<h2><?php echo $userName; ?></h2>
</div>
<div class="right-pnl">
<div class="ac-info">
<p><b>E-MAIL </b>: <?php echo $userData['email']; ?></p>
<p><b>ZIP </b>: <?php echo $userData['zip']; ?></p>
</div>
<?php if (!empty($userData['link'])) { ?>
<div class="button">
<a role="button" href="<?php echo $userData['link']; ?>" class="view-btn btn btn-success" target="_blank">Click to view profile</a>
</div>
<?php
} ?>
</div>
</div>
<div class="clearfix"></div>
<div class="bg-dark text-light menu-tle my-3">
<h5>Layout</h5>
</div>
<div class="text-center m-2">
<p>Color Theme: <?php echo (!empty($userData['theme']) ? ucwords($userData['theme']) : "Default"); ?></p>
<p>Result View: <?php echo ($userData['cardView'] ? 'Cards' : 'Table'); ?></p>
</div>
<div class="bg-dark text-light menu-tle my-3">
<h5>Search Filter Preferences</h5>
</div>
<div class="card-group">
<div class="card m-2">
<div class="card-header font-weight-bold">Condition</div>
<div class="card-body ac-info">
<div class="form-check">
<label class="form-check-label">
<input name="filterConditionNew" type="checkbox" class="form-check-input" value="New" <?php echo ($userData["conditionNew"] ? "checked" : ""); ?> onchange="$(this).prop('checked', !$(this).prop('checked'));">New
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input name="filterConditionUsed" type="checkbox" class="form-check-input" value="Used" <?php echo ($userData["conditionUsed"] ? "checked" : ""); ?> onchange="$(this).prop('checked', !$(this).prop('checked'));">Used
</label>
</div>
</div>
</div>
<div class="card m-2">
<div class="card-header font-weight-bold">Media Type</div>
<div class="card-body ac-info">
<div class="form-check">
<label class="form-check-label">
<input name="filterMediaTypeCD" type="checkbox" class="form-check-input" value="CD" <?php echo ($userData["mediaCD"] ? "checked" : ""); ?> onchange="$(this).prop('checked', !$(this).prop('checked'));"><i class="fas fa-compact-disc category-icon-silver"></i> Compact Disc
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input name="filterMediaTypeRecord" type="checkbox" class="form-check-input" value="Record" <?php echo ($userData["mediaRecord"] ? "checked" : ""); ?> onchange="$(this).prop('checked', !$(this).prop('checked'));"><i class="fas fa-dot-circle"></i> Vinyl Record
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input name="filterMediaTypeDigital" type="checkbox" class="form-check-input" value="Digital" <?php echo ($userData["mediaDigital"] ? "checked" : ""); ?> onchange="$(this).prop('checked', !$(this).prop('checked'));"><i class="fas fa-download"></i> Digital
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input name="filterMediaTypeBook" type="checkbox" class="form-check-input" value="Books" <?php echo ($userData["mediaBook"] ? "checked" : ""); ?> onchange="$(this).prop('checked', !$(this).prop('checked'));"><i class="fas fa-book-open"></i> Books / Sheet Music
</label>
</div>
</div>
</div>
</div>
</div>
</div>
<!--//main-->
<!--footer-->
<?php include_once 'elements/footer.php'; ?>
<!--//footer-->
</div>
</body>
</html>