-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmail.php
More file actions
60 lines (56 loc) · 1.83 KB
/
mail.php
File metadata and controls
60 lines (56 loc) · 1.83 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
<?php $show_title="Mail - $OJ_NAME"; ?>
<?php include("template/$OJ_TEMPLATE/header.php");?>
<div class="ui icon message">
<i class="mail icon"></i>
<div class="content">
<?php
if($view_content)
echo "<center>
<table>
<tr>
<td class=blue>$from_user -> $to_user [".htmlentities(str_replace("\n\r","\n",$view_title),ENT_QUOTES,"UTF-8")." ]</td>
</tr>
<tr><td><pre>". htmlentities(str_replace("\n\r","\n",$view_content),ENT_QUOTES,"UTF-8")."</pre>
</td></tr>
</table></center>";
?>
<table><form method=post action=mail.php>
<tr><td>From:<?php echo htmlentities($from_user,ENT_QUOTES,"UTF-8")?>
To:<input name=to_user size=10 value="<?php if ($from_user==$_SESSION[$OJ_NAME.'_user_id']||$from_user=="") echo $to_user ;else echo $from_user;?>">
Title:<input name=title size=20 value="<?php echo $title?>">
<input type=submit value=<?php echo $MSG_SUBMIT?>></td>
</tr>
<tr><td>
<textarea name=content rows=10 cols=80 class="input input-xxlarge"></textarea>
</td></tr>
</form>
</table>
<table border=1>
<tr><td>Mail ID<td>From:Title<td>Date</tr>
<tbody>
<?php
$cnt=0;
foreach($view_mail as $row){
if ($cnt)
echo "<tr class='oddrow'>";
else
echo "<tr class='evenrow'>";
foreach($row as $table_cell){
echo "<td>";
echo "\t".$table_cell;
echo "</td>";
}
echo "</tr>";
$cnt=1-$cnt;
}
?>
</tbody>
</table>
</center>
</div>
</div> <!-- /container -->
<a href="#" onclick="history.go(-1);"><?php echo $MSG_BACK?></a>
</p>
</div>
</div>
<?php include("template/$OJ_TEMPLATE/footer.php");?>