-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathCustomer_user_profile.php
More file actions
171 lines (145 loc) · 6.42 KB
/
Customer_user_profile.php
File metadata and controls
171 lines (145 loc) · 6.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<?php
declare(strict_types=1);
session_start();
ob_start();
include "includes/connect.php";
include "includes/functions.php";
?>
<!DOCTYPE html>
<html lang="zxx">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="description" content="html 5 template">
<meta name="author" content="">
<title>Find Houses - HTML5 Template</title>
<!-- FAVICON -->
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" href="css/jquery-ui.css">
<!-- GOOGLE FONTS -->
<link href="https://fonts.googleapis.com/css?family=Lato:300,300i,400,400i%7CMontserrat:600,800" rel="stylesheet">
<!-- FONT AWESOME -->
<link rel="stylesheet" href="css/fontawesome-all.min.css">
<link rel="stylesheet" href="css/font-awesome.min.css">
<!-- ARCHIVES CSS -->
<link rel="stylesheet" href="css/search.css">
<link rel="stylesheet" href="css/dashbord-mobile-menu.css">
<link rel="stylesheet" href="css/animate.css">
<link rel="stylesheet" href="css/swiper.min.css">
<link rel="stylesheet" href="css/magnific-popup.css">
<link rel="stylesheet" href="css/lightcase.css">
<link rel="stylesheet" href="css/owl-carousel.css">
<link rel="stylesheet" href="css/owl.carousel.min.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/menu.css">
<link rel="stylesheet" href="css/slick.css">
<link rel="stylesheet" href="css/styles.css">
<link rel="stylesheet" id="color" href="css/default.css">
</head>
<body class="maxw1600 m0a dashboard-bd">
<!-- Wrapper -->
<div id="wrapper" class="int_main_wraapper">
<!-- START SECTION HEADINGS -->
<!-- Header Container
================================================== -->
<header id="header-container">
<!-- Header -->
<div id="header">
<div class="container container-header">
<?php include "main-nav-buy-rent.php" ?>
</div>
</div>
<!-- Header / End -->
</header>
<?php
if (isset($_SESSION['user_id'])) {
$user_id = $_SESSION['user_id'];
$customer_id = $_SESSION['customer_id'];
$username = $_SESSION['username'];
$name = $_SESSION['name'];
$stmt = query("SELECT user_email, user_image FROM users WHERE user_id={$user_id}");
$row = $stmt->fetch(PDO::FETCH_ASSOC);
$user_email = $row['user_email'];
$user_image = $row['user_image'];
}
?>
<!-- START SECTION USER PROFILE -->
<section class="user-page section-padding pt-5">
<div class="container-fluid">
<div class="row">
<div class="col-lg-6 col-md-6 col-xs-6 widget-boxed mt-33 mt-0 offset-lg-2 offset-md-3">
<div class="widget-boxed-header">
<h4>Profile Details</h4>
</div>
<div class="sidebar-widget author-widget2">
<div class="author-box clearfix">
<img src="<?php echo $user_image; ?>" alt="author-image" class="author__img">
<h4 class="author__title"><?php echo $name; ?></h4>
</div>
<ul class="author__contact">
<li><span class="la la-map-marker"><i class="fa fa-user"></i></span>Username: <?php echo $username; ?></li>
<li><span class="la la-phone"><i class="fa fa-circle" aria-hidden="true"></i></span>Customer ID: <?php echo $customer_id; ?></li>
<li><span class="la la-envelope-o"><i class="fa fa-envelope" aria-hidden="true"></i></span><a href="#"><?php echo $user_email; ?></a></li>
</ul>
</div>
</div>
</div>
</div>
</section>
<!-- END SECTION USER PROFILE -->
<!-- START PRELOADER -->
<div id="preloader">
<div id="status">
<div class="status-mes"></div>
</div>
</div>
<!-- END PRELOADER -->
<!-- ARCHIVES JS -->
<script src="js/jquery-3.5.1.min.js"></script>
<script src="js/jquery-ui.js"></script>
<script src="js/tether.min.js"></script>
<script src="js/moment.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/mmenu.min.js"></script>
<script src="js/mmenu.js"></script>
<script src="js/swiper.min.js"></script>
<script src="js/swiper.js"></script>
<script src="js/slick.min.js"></script>
<script src="js/slick2.js"></script>
<script src="js/fitvids.js"></script>
<script src="js/jquery.waypoints.min.js"></script>
<script src="js/jquery.counterup.min.js"></script>
<script src="js/imagesloaded.pkgd.min.js"></script>
<script src="js/isotope.pkgd.min.js"></script>
<script src="js/smooth-scroll.min.js"></script>
<script src="js/lightcase.js"></script>
<script src="js/search.js"></script>
<script src="js/owl.carousel.js"></script>
<script src="js/jquery.magnific-popup.min.js"></script>
<script src="js/ajaxchimp.min.js"></script>
<script src="js/newsletter.js"></script>
<script src="js/jquery.form.js"></script>
<script src="js/jquery.validate.min.js"></script>
<script src="js/searched.js"></script>
<script src="js/dashbord-mobile-menu.js"></script>
<script src="js/forms-2.js"></script>
<script src="js/color-switcher.js"></script>
<!-- MAIN JS -->
<script src="js/script.js"></script>
<script>
$(".header-user-name").on("click", function() {
$(".header-user-menu ul").toggleClass("hu-menu-vis");
$(this).toggleClass("hu-menu-visdec");
});
</script>
</div>
<!-- Wrapper / End -->
</body>
<!-- Mirrored from code-theme.com/html/findhouses/user-profile.html by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 13 Dec 2021 10:32:32 GMT -->
</html>
<?php
//close database connection - initialize object to null
$pdo = null;
ob_end_flush();
?>