Repository navigation
Expand file tree
/
Copy pathmessages.php
More file actions
52 lines (47 loc) · 1.53 KB
/
Copy pathmessages.php
File metadata and controls
52 lines (47 loc) · 1.53 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
<?php
require('inc/messages.inc.php');
?>
<!DOCTYPE html>
<html>
<head>
<?php
include('inc/head.inc.html');
?>
</head>
<body>
<?php
include('lang_manage/lang_menu.inc.html');
?>
<ul class="menu">
<li><a href="logout.php"><?php echo $lang_manager->get_word_translate('Logout') ?></a></li>
</ul>
<ul class="menu">
<li><a href="messages.php"><?php echo $lang_manager->get_word_translate('Messages') ?></a></li>
<li><a href="new_message.php"><?php echo $lang_manager->get_word_translate('New message') ?></a></li>
</ul>
<h3><?php echo $lang_manager->get_word_translate('Messages manage') ?></h3>
<div>
<h4><?php echo $lang_manager->get_word_translate('Inbox messages') ?></h4>
<table class="messagetable">
<tr>
<th><?php echo $lang_manager->get_word_translate('Sender') ?></th>
<th><?php echo $lang_manager->get_word_translate('Text') ?></th>
</tr>
<?
if (is_array($all_user_messages)){
foreach($all_user_messages as $message){
echo('<tr>');
echo('<td>'.$message->sender.'</td>');
echo('<td '.($message->new_message?' class="new_message" ':'').'><a href="view_message.php?id='.$message->id.'">'.substr($message->text,0,100).'</a></td>');
echo('</tr>');
}
} else {
echo('<tr>');
echo('<td colspan="2">'. $lang_manager->get_word_translate('No messages').'</td>');
echo('</tr>');
}
?>
</table>
</div>
</body>
</html>