-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmy-profile.php
130 lines (129 loc) · 6.63 KB
/
my-profile.php
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
<?php include 'components/authentication.php' ?>
<?php include 'components/session-check.php' ?>
<?php include 'controllers/base/head.php' ?>
<?php include 'controllers/navigation/first-navigation.php' ?>
<?php include 'controllers/base/style.php' ?>
<?php
//session_start();
$current_user = $_SESSION['user_username'];
//$user_username = mysqli_real_escape_string($database,$_REQUEST['user_username']);
$profile_username=$rws['user_username'];
?>
<?php
$url = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];
?>
<div class="profile">
<div class="row clearfix">
<div class="col-md-12 column">
<div>
<center>
<img src="userfiles/avatars/<?php echo $rws['user_avatar'];?>" class="img-responsive profile-avatar">
<br>
<div class="btn-group">
<a href="http://www.facebook.com/sharer.php?u=<?php echo $url ?> &t=<?php echo $rws['user_firstname'];?> <?php echo $rws['user_lastname'];?> " alt="Share this profile on Facebook" title="Share on Facebook" target="_blank" ><button type="button" class="btn btn-default"><i class="fa fa-facebook"></i></button></a>
<a href="http://twitter.com/share?text=<?php echo $rws['user_firstname'];?> <?php echo $rws['user_lastname'];?>&url=<?php echo $url ?>" alt="Tweet This Post" title="Tweet about the profile" target="_blank"><button type="button" class="btn btn-default"><i class="fa fa-twitter"></i></button></a>
<a href="https://plusone.google.com/_/+1/confirm?hl=en-US&url=<?php echo $url ?>" alt="Share this profile on Google+" title="Share on Google+" target="_blank" ><button type="button" class="btn btn-default"><i class="fa fa-google-plus"></i></button></a>
</div>
</center>
<h1 class="text-center profile-text profile-name"><?php echo $rws['user_firstname'];?> <?php echo $rws['user_lastname'];?></h1>
<h2 class="text-center profile-text profile-profession"><?php echo $rws['user_profession'];?></h2>
<br>
<div class="panel-group white" id="panel-profile">
<div class="panel panel-default white">
<div class="panel-heading white">
<center>
<a class="panel-title" data-toggle="collapse" data-parent="#panel-profile" href="#panel-element-info">Details</a>
</center>
</div>
<div id="panel-element-info" class="panel-collapse collapse in">
<div class="panel-body">
<div class="col-md-4 column">
<p class="text-center profile-title"><i class="fa fa-info"></i> Basic</p>
<hr>
<?php
if ($rws['user_shortbio']){
?>
<div class="col-md-4">
<p class="profile-details"><i class="fa fa-info"></i> Bio</p>
</div>
<div class="col-md-8">
<p><?php echo $rws['user_shortbio'];?></p>
</div>
<?php } ?>
<?php
if ($rws['user_address']){
?>
<div class="col-md-4">
<p class="profile-details"><i class="fa fa-info"></i> Location</p>
</div>
<div class="col-md-8">
<p><?php echo $rws['user_address'];?></p>
</div>
<?php } ?>
<?php
if ($rws['user_email']){
?>
<div class="col-md-4">
<p class="profile-details"><i class="fa fa-envelope"></i> Email</p>
</div>
<div class="col-md-8">
<p><?php echo $rws['user_email'];?></p>
</div>
<?php } ?>
<?php
if ($rws['user_country']){
?>
<div class="col-md-4">
<p class="profile-details"><i class="fa fa-info"></i> Country</p>
</div>
<div class="col-md-8">
<p><?php echo $rws['user_country'];?></p>
</div>
<?php } ?>
</div>
<div class="col-md-4 column">
<p class="text-center profile-title"><i class="fa fa-info"></i> Personal</p>
<hr>
<?php
if ($rws['user_gender']){
?>
<div class="col-md-4">
<p class="profile-details"><i class="fa fa-user"></i> Gender</p>
</div>
<div class="col-md-8">
<p><?php echo $rws['user_gender'];?></p>
</div>
<?php } ?>
<?php
if ($rws['user_dob']){
?>
<div class="col-md-4">
<p class="profile-details"><i class="fa fa-calendar"></i> Date of Birth</p>
</div>
<div class="col-md-8">
<p><?php echo $rws['user_dob'];?></p>
</div>
<?php } ?>
</div>
<div class="col-md-4 column">
<p class="text-center profile-title"><i class="fa fa-info"></i> Feedback</p>
<hr>
<?php
if ($rws['user_feedback']){
?>
<div class="col-md-4">
<p class="profile-details"><i class="fa fa-calendar"></i> Feedback</p>
</div>
<div class="col-md-8">
<p><?php echo $rws['user_feedback'];?></p>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>