📄 memo_read.php
字号:
<?
include "connect.php";
include "lib.php";
include "header.inc";
echo"<script language=javascript>document.title='阅读便条'</script>\n";
////////////////////////////// 會員登入後才可閱讀便條
if(!$HTTP_COOKIE_VARS[$member_cookie]){echo"<script>window.close()</script>";exit;}
////////////////////////////// 從資料表中讀取新的便條 :l
edit("$memo_table","na3_check='1'","to_id='$HTTP_COOKIE_VARS[$member_cookie]' and no=$no");
////////////////////////////// 讀取便條內容
$query="select * from $memo_table where no='$no'";
$memo=@mysql_fetch_array(@mysql_query($query,$connect));
$memo[title]=stripslashes($memo[title]);
$memo[memo]=nl2br(stripslashes($memo[memo]));
////////////////////////////// 寄便條者的資料
$from=member_info("$memo[from_id]");
$from[name]=stripslashes($from[name]);//kx021208i
// MSN 表情符號語法轉換 (開始)
include"msnem_convert.inc";
$memo[memo]=convert_msnemoticons($memo[memo],"../msnemoticons/");
// MSN 表情符號語法轉換 (結束)
?>
<body>
<script language=javascript>
function chk_del(){
if(!confirm('<?=$warning?>你确定要删除这张便条吗?')){return false;}
}
function use_mail(address){
if(!confirm('<?=$message?>你想使用社区的发信程序撰写电子邮件吗?')){return true;}
else{mailing(address);return false;}
}
function mailing(to){
if(to){window.open('mailing.php?to='+to,'','scrollbars=yes,resizable=yes,width=500,height=440,top=40,left=200')}
else{window.open('mailing.php','root_mailing','scrollbars=yes,resizable=yes,width=500,height=440,top=40,left=200')}
}
</script>
<link rel=stylesheet type=text/css href=style.css title=style>
<table width=100% height=100%>
<tr><td height=5></td></tr>
<tr><td valign=top>
<table align=center width=95% cellpadding=2 cellspacing=0 border=0 bgcolor=#F1F9FD>
<tr><td colspan=2 bgcolor=white><img src=image/logo.gif><br><br></td></tr>
<tr><td colspan=2 bgcolor=white>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td><font color=#008CD6 size=3> <b><a href=memo_write.php>传送便条</a></b>.<b><a href=memo_list.php>阅览便条</a></b>.<b><a href=member_list.php>会员列表</a></b></font></td>
<td align=right valign=bottom><?=$help?></td>
</tr></table>
</td></tr>
<tr><td colspan=2 height=3 bgcolor=#2CBBFF></td></tr>
<tr><td colspan=2 bgcolor=#F1F9FD>
<table width=100% cellpadding=2 cellspacing=2>
<form method=post action=memo_delete.php onsubmit="return chk_del()" name=chk>
<tr>
<td colspan=2>
<table align=center width=98% cellpadding=2 cellspacing=0 border=1 bordercolor=white>
<tr>
<td bgcolor=#C9F0FF width=1% nowrap> 寄便条者 </td>
<td bgcolor=#ffffff width=99%><b><a onclick=window.open('member_view.php?id=<?=$from[id]?>','member_view','scrollbars=yes,resizable=yes,width=500,height=440,top=40,left=200') title='查看 <?=$from[name]?> (<?=$from[id]?>)的个人资料' style='cursor:hand'><?=$from[id]?></a></b> (<a href=mailto:<?=$from[mail]?> onclick="return use_mail('<?=$from[mail]?>')" title='给<?=$from[name]?> 传送电子邮件'><?=$from[name]?></a>)</td>
</tr>
<tr>
<td bgcolor=#C9F0FF width=1% nowrap> 传送时间 </td>
<td bgcolor=#ffffff width=99%><?=date('Y年n月j日 H:i',$memo[date])?></td>
</tr>
<tr>
<td bgcolor=#C9F0FF width=1% nowrap> 标题 </td>
<td bgcolor=#ffffff width=99%><?=$memo[title]?></td>
</tr>
<tr>
<td bgcolor=#C9F0FF width=1% nowrap> 内容 </td>
<td bgcolor=#ffffff width=99%><?=$memo[memo]?></td>
</tr>
<?
////////////////////////////// 傳送各項設定值
$send="&page=$page&";
?>
</table>
</td></tr>
<tr><td colspan=2>
<table align=center width=98% cellpadding=2 cellspacing=0 border=0 bordercolor=white bgcolor=#C9F0FF>
<tr><td colspan=2>
<input type=hidden name=ok value=on>
<input type=hidden name=no value=<?=$no?>>
<input type=hidden name=pagenum value=<?=$pagenum?>>
<input type=button value='便条列表' class=button onclick="location='memo_list.php?pagenum=<?=$pagenum?>'">
<input type=button value='回复便条' class=button onclick="location='memo_write.php?no=<?=$no?>&pagenum=<?=$pagenum?>'">
<input type=submit value='删除便条' class=button>
</td></tr></table>
</td></tr>
</form>
</table>
</td></tr>
<tr><td colspan=2 height=3 bgcolor=#2CBBFF></td></tr>
<tr><td bgcolor=white><a onclick=window.close() title='关闭视窗' style='cursor:hand'><span lang=zh-cn class=minichi>关闭</span></a></td><td bgcolor=white><?=$copyright?></td></tr>
</table>
</td></tr></table>
<?mysql_close($connect);?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -