-
Notifications
You must be signed in to change notification settings - Fork 2
/
bbsmsg.php
40 lines (37 loc) · 998 Bytes
/
bbsmsg.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
<?php
require("www2-funcs.php");
login_init();
bbs_session_modify_user_mode(BBS_MODE_LOOKMSGS);
page_header("察看所有讯息");
assert_login();
$msgs = bbs_getwebmsgs();
if( $msgs <= 0 ) html_error_quit("系统错误");
$i=0;
?>
<script type="text/javascript"><!--
var ta = new tabWriter(1,'main wide fixed',0,[['序号','6%','center'],['时间','20%',0],['类型','6%','center'],['对象','10%',0],['内容',0,0]]);
<?php
foreach( $msgs as $msg ){
?>
ta.r('<?php echo date("Y/m/j H:i:s", $msg["TIME"]);?>','<?php
if($msg["SENT"]) {
if($msg["MODE"] == 3)
echo '收';
else
echo '<a href="bbssendmsg.php?destid='.$msg["ID"].'">收</a>';
}
else
echo '发';?>','<?php echo ($msg["MODE"]==3)?"站长广播":$msg["ID"];?>','<?php
echo htmljsformat($msg["content"],true);?> ');
<?php
}
?>
ta.t();
//-->
</script>
<div class="oper">
<a onclick="return confirm('你真的要清除所有讯息吗?')" href="bbsdelmsg.php">清除所有讯息</a> <a href="bbsmailmsg.php">寄回所有信息</a>
</div>
<?php
page_footer();
?>