2024-10-10
This commit is contained in:
60
web/template/sidebar/mail.php
Normal file
60
web/template/sidebar/mail.php
Normal file
@@ -0,0 +1,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");?>
|
||||
Reference in New Issue
Block a user