-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprofile.php
More file actions
115 lines (85 loc) · 2.59 KB
/
Copy pathprofile.php
File metadata and controls
115 lines (85 loc) · 2.59 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
<?php
//Define Page Title
$page_title = "Profile - LetsMeet";
include('includes/header.php');
$checkUser = $user_obj->find_user_by_id($_SESSION['user_id']);
if(
empty($checkUser->user_fullname) ||
empty($checkUser->user_phone) ||
empty($checkUser->user_address) ||
empty($checkUser->user_gender) ||
empty($checkUser->user_age)
){
header("Location: ./update_info.php");
}
?>
<div class="home-banner">
<div class="home-banner-overlay">
<div class="home-banner-content ">
<div>
<h3></h3>
</div>
</div>
</div>
</div>
<div class="container">
<div class="jumbotron jumbotron-fluid">
<div class="container text-center">
<img src="storage/profiles/<?php echo $user_data->user_image; ?>" width="130px" class="img-circle" alt="Profile image">
<div class="p-1"><a href="./update_avatar.php" class="btn btn-light">Change Display Picture</a></div>
<h6 class="mt-4"><b><?php echo $user_data->username;?></b></h1>
<h3 class=""><b><?php echo $user_data->user_fullname;?></b></h1>
</div>
</div>
<ul class="nav justify-content-center box-bg">
<li class="nav-item">
<a class="nav-link active" href="./friends.php">Friends <span class="badge badge-dark"> <?php echo $get_frnd_num ?></span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="./requests.php">Request <span class="badge badge-danger"><?php if($get_req_num > 0){echo $get_req_num;}?></span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="./update_info.php">Edit Profile</a>
</li>
</ul>
<div class="box-bg mt-4">
<div class="row">
<div class="col-md-6">
<table class="table">
<tbody>
<tr>
<th scope="row">Full Name</th>
<td><?php echo $user_data->user_fullname;?></td>
</tr>
<tr>
<th scope="row">Phone</th>
<td><?php echo $user_data->user_phone;?></td>
</tr>
<tr>
<th scope="row">Email</th>
<td><?php echo $user_data->user_email;?></td>
</tr>
<tr>
<th scope="row">Gender</th>
<td><?php echo $user_data->user_gender;?></td>
</tr>
</tbody>
</table>
</div>
<div class="col-md-6">
<table class="table">
<tbody>
<tr>
<th scope="row">Address</th>
<td><?php echo $user_data->user_address;?></td>
</tr>
<tr>
<th scope="row">Age</th>
<td><?php echo $user_data->user_age;?></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>