📄 wbmsg.php
字号:
<?php
include("pwdsuper.php");
include("connect.inc.php");
include("char.inc.php");
?>
<html>
<head>
<SCRIPT LANGUAGE="JavaScript">
<!--
function ok_onclick(){
var text=""
if(form1.title.value!="" && form1.memo.value!="") form1.submit()
else text="你没有填写"
if (form1.title.value=="") text=text+" 标题 "
if (form1.memo.value=="") text=text+" 内容 "
if(form1.title.value=="" || form1.memo.value=="") alert(text)
}
function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)",50)
}
function low(which2){
clearInterval(highlighting)
which2.filters.alpha.opacity=60
}
function highlightit(cur2){
if (cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=10
else if (window.highlighting)
clearInterval(highlighting)
}
//-->
</script>
<style type="text/css">
<!--
td{font-size:12px;line-height:17px;}
a:active {text-decoration: none;}
a:link {text-decoration: none;}
a:hover{text-decoration: underline;}
a:visited {text-decoration: none;}
BODY{font-size:12px;line-height:17px;SCROLLBAR-FACE-COLOR: #83d160; SCROLLBAR-HIGHLIGHT-COLOR: #CCFF00; SCROLLBAR-SHADOW-COLOR: #CCFF00; SCROLLBAR-3DLIGHT-COLOR: #009900; SCROLLBAR-ARROW-COLOR: #006600; SCROLLBAR-TRACK-COLOR: ##99FF00; SCROLLBAR-DARKSHADOW-COLOR: #009900; }
-->
</style>
<title>回复消息</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#dcf6ce" text="#666600" link="#009900" alink="#00FF00" vlink="#006600">
<?php
if (isset($flag)){
$fromquery=@mysql_query("select name,nickname from zmis41197 where studentnumber=".$userid,$conn)or die(mysql_error());
$fromarray=mysql_fetch_array($fromquery);
$msgfrom=$fromarray["name"];
//$wbman="nobody";
$query="insert into message (title,form,msgto,wbman,userid,senddt,memo,msgtoid,writeback) values ('$title','$msgfrom','$msgto','$wbman',$userid,NOW(),'$memo',$msgtoid,1)";
if(mysql_query($query))
echo "<center>给:".$msgto." 发送消息,已成功完成!</center>";
else
echo "<br>".mysql_error()."<br>";
echo '<br><p align="center"><a href="javascript:window.close()">关闭窗口</a></p></body></html>';
exit();
}
$query=mysql_query('select * from message where id='.$id,$conn);
$array=mysql_fetch_array($query);
if(!$array){
?>
<script language=vbscript>
alert ("对不起!你要的消息没有找到")
window.history.back()
</script>
<?php
exit();
}
?>
<div align="center">
<?php
$text="回复 ".$array["form"]." 给我的消息";
echo $text."<br>";
?>
</div>
<br>
<form name="form1" method="post" action="wbmsg.php">
<table border="1" cellspacing="2" cellpadding="0" align="center" bordercolorlight="#009900" bordercolordark="#009900">
<tr>
<td bgcolor="#83d160">标题:</td>
<td colspan="3">
<input type="text" name="title" size="40" maxlength="20">
</td>
</tr>
<tr>
<td valign="top" bgcolor="#83d160">内容:</td>
<td colspan="3" valign="top">
<textarea name="memo" cols="39" rows="15"></textarea>
</td>
</tr>
<tr>
<td colspan="4">
<div align="center">
<input type="submit" name="Submit" value="写好了,提交!" onClick="ok_onclick();return false">
<input type="reset" name="Submit2" value="写错了,重来!">
</div>
</td>
</tr>
</table>
<input type=hidden name="userid" value="<?php echo $userid;?>">
<input type=hidden name="flag" value="on">
<input type=hidden name="msgto" value="<?php echo $array["form"]; ?>">
<input type=hidden name="wbman" value="<?php echo $array["msgto"]; ?>">
<input type=hidden name="msgtoid" value="<?php echo $array["userid"]; ?>">
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -