📄 memo_write.php
字号:
<?
//////////////////////////////////ready
include "connect.php";
include "lib.php";
include "header.inc";
//////////////////////////////////member check
if(!$HTTP_COOKIE_VARS[$member_cookie]){echo"<script>window.close()</script>";exit;}
//////////////////////////////////as reply writing
if($no){
$query="select * from $memo_table where no='$no'";
$memo=@mysql_fetch_array(@mysql_query($query,$connect));
$to=$memo[from_id];
$title="[re] ".stripslashes($memo[title]);
}
//////////////////////////////////as not reply writing
if($to){$readonly="";}
?>
<script language=javascript>
function chk(){
if(!memo.to.value){alert('<?=$error?>错误的ID记录');memo.to.focus();return false;}
//if(memo.to.value=="<?=$HTTP_COOKIE_VARS[$member_cookie]?>"){alert('<?=$error?>不允许给自己发短语');memo.to.select();return false;}
if(!memo.title.value){alert('<?=$error?>请输入短语标题');memo.title.focus();return false;}
if(!memo.memo.value){alert('<?=$error?>请输入短语内容');memo.memo.focus();return false;}
}
function chk_id(){
if(!memo.to.value){alert('<?=$error?>错误的ID记录');memo.to.focus();return false;}
//if(memo.to.value=="<?=$HTTP_COOKIE_VARS[$member_cookie]?>"){alert('<?=$error?>不允许给自己发短语');memo.to.select();return false;}
window.open('memo_check_id.php?id='+memo.to.value,'chk_id','scrollbars=no,width=300,height=50,top=200,left=200')
}
</script>
<link rel=StyleSheet HREF=style.css type=text/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><b> 书写私人短信><a href=memo_list.php>查看私人短信</a>><a href=member_list.php>查看会员列表</a></b></font></td>
<td align=right><?=$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_write_ing.php onsubmit="return chk()" name=memo>
<input type=hidden name=no value=<?=$no?>>
<input type=hidden name=pagenum value=<?=$pagenum?>>
<tr>
<td bgcolor=#C9F0FF width=1% nowrap> 接收人 </td>
<td width=99%> <input type=text name=to class=input size=25 value='<?=$to?>' <?=$readonly?>>
<input type=button class=button value="check ID" onclick=chk_id()></td>
</tr>
<tr>
<td bgcolor=#C9F0FF width=1% nowrap> 标题 </td>
<td width=99%> <input type=text name=title class=input size=50 value='<?=$title?>'></td>
</tr>
<tr>
<td bgcolor=#C9F0FF width=1% nowrap> 内容 </td>
<td width=99%> <textarea name=memo class=input style="overflow:auto;word-break:break-all" cols=50 rows=9></textarea></td>
</tr>
<tr>
<td width=1% nowrap></td>
<td width=99%> <input type=submit value=发送 class=button> <input type=reset value=重写 class=button></td>
</tr>
</form>
</table>
</td></tr>
<tr><td colspan=2 height=3 bgcolor=#2CBBFF></td></tr>
<tr><td bgcolor=white><a href=# onclick=window.close()>关闭</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 + -