-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmessage_right.php
82 lines (53 loc) · 1.97 KB
/
message_right.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
<!--<div id="message_right" style="background-color: #eee;">
<div style="width: 100%; text-align: right;">
<div style="font-weight: bold;color: rgb(51, 168, 255);width: 100%;">
<?php
echo "<a href='".ROOT."profile/$MESSAGE[msgid]'>";
echo htmlspecialchars($ROW_USER['first_name']) . " " . htmlspecialchars($ROW_USER['last_name']);
echo "</a>";
?>
</div>
<?php echo check_tags($MESSAGE['message']) ?>
<?php
if(file_exists($MESSAGE['file']))
{
$post_image = ROOT . $image_class->get_thumb_post($MESSAGE['file']);
echo "<img src='$post_image' style='width:80%;' />";
}
?>
<br/><br/>
<span style="color: #999;">
<?php // echo Time::get_time($MESSAGE['date']) ?>
</span>
<?php
if(file_exists($MESSAGE['file'])){
echo "<a href='".ROOT."image_view/msg/$MESSAGE[id]' >";
echo ". View Full Image . ";
echo "</a>";
}
?>
<span style="color: #999;float:left">
<?php
$post = new Post();
echo "<a href='".ROOT."delete/msg/$MESSAGE[id]' >";
echo '<svg fill="orange" width="24" height="24" viewBox="0 0 24 24"><path d="M12 0c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm4.151 17.943l-4.143-4.102-4.117 4.159-1.833-1.833 4.104-4.157-4.162-4.119 1.833-1.833 4.155 4.102 4.106-4.16 1.849 1.849-4.1 4.141 4.157 4.104-1.849 1.849z"/></svg>';
echo "</a>";
?>
</span>
</div>
<a label->
<div>
<?php
$image = "images/user_male.jpg";
if($ROW_USER['gender'] == "Female")
{
$image = "images/user_female.jpg";
}
if(file_exists($ROW_USER['profile_image']))
{
$image = $image_class->get_thumb_profile($ROW_USER['profile_image']);
}
?>
<img src="<?php echo ROOT . $image ?>" style="width: 75px;margin-right: 4px;border-radius: 50%;">
</div>
</div> -->