-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfriends.php
85 lines (66 loc) · 2.88 KB
/
friends.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
<?php include('header.php'); ?>
<?php include('session.php'); ?>
<body>
<?php include('navbar.php'); ?>
<div id="masthead">
<div class="container">
<?php include('heading.php'); ?>
</div><!-- /cont -->
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="top-spacer"> </div>
</div>
</div>
</div><!-- /cont -->
</div>
<div class="container">
<div class="row" >
<div class="col-md-12">
<div class="panel">
<div class="panel-body">
<!--/stories-->
<div class="row">
<br>
<?php
$query = $conn->query("select members.member_id , members.firstname , members.lastname , members.image , friends.friends_id from members , friends
where friends.my_friend_id = '$session_id' and members.member_id = friends.my_id
OR friends.my_id = '$session_id' and members.member_id = friends.my_friend_id
");
while($row = $query->fetch()){
$friend_name = $row['firstname']." ".$row['lastname'];
$friend_image = $row['image'];
$id = $row['friends_id'];
?><div class="row">
<div class="col-md-2 text-center">
<img src="<?php echo $friend_image; ?>" style="width:100px;height:100px" class="img-circle"></a>
</div>
<div class="col-md-10">
<div class="pull-right"><a href="delete_friend.php<?php echo '?id='.$id; ?>" class="btn btn-danger"><i class="icon-remove"></i></a></div>
<div type="button" class="pull-right btn btn-info"><a href="delete_friend.php<?php echo '?id='.$id; ?>" ><i class="icon-eye-open"></i></a></div>
<div type="button" class="pull-right btn btn-success"><a href="delete_friend.php<?php echo '?id='.$id; ?>" ><i class="icon-ok-circle"></i></a></div>
<div class="alert"><?php echo $friend_name; ?></div>
</div>
</div>
<hr>
<br><br>
<?php } ?>
</div>
<hr>
</div>
</div>
<div>
</div>
</div><!--/col-12-->
<div class="col text-center">
<img src="images/viaje2.jpg" class="rounded float-left" alt="..." width="200" height="150">
<img src="images/viaje3.jpg" class="rounded float-right" alt="..." width="200" height="150">
<img src="images/viaje1.jpg" class="rounded float-right" alt="..." width="200" height="150">
<img src="images/viaje.jpg" class="rounded float-right" alt="..." width="200" height="150">
<img src="images/viaje4.jpg" class="rounded float-right" alt="..." width="200" height="150">
</div>
</div>
</div>
<?php include('footer.php'); ?>
</body>
</html>