📄 onpser_add.php
字号:
<?php
session_start( );
include( "../inc/conn.php" );
if ( !isset( $_SESSION['ps'] ) )
{
echo "<script language='javascript'>window.location='../';</script>";
}
include( "../inc/base_status.inc.php" );
$users = $_GET['user'];
if ( isset( $_POST['act'] ) )
{
$content = $_POST['content'];
$sqld = mysql_query( "update online set content='{$content}' where user_account='{$users}'", $conn );
if ( $sqld )
{
mysql_query( "update online set vmsg='1' where user_account='{$users}'", $conn );
echo "<font color='red'> ok....</font><meta http-equiv='refresh' content='1;URL=onpser.php'>";
}
else
{
echo "loser!";
}
}
echo "<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<link href=\"../styles/css_g/css.CSS\" rel=\"stylesheet\" type=\"text/css\">\r\n<title></title>\r\n";
echo "<s";
echo "tyle type=\"text/css\">\r\n<!--\r\nbody {\r\n\tmargin-left: 10px;\r\n}\r\n-->\r\n</style></head>\r\n\r\n<body><br>\r\n<table width=\"343\" height=\"152\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"tmove\">\r\n <tr>\r\n <td><table width=\"587\" height=\"171\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"t17\">\r\n <form name=\"form1\" method=\"post\" action=\"onpser_add.php?user=";
echo $users;
echo "\"><tr class=\"t11\">\r\n <td height=\"27\" colspan=\"2\">";
echo "<s";
echo "trong> ";
echo "<s";
echo "pan class=\"fw12\">公告";
echo $users;
echo "</span></strong></td>\r\n </tr>\r\n <tr>\r\n <td width=\"65\" height=\"144\"><div align=\"right\">公告内容:</div></td>\r\n \r\n <td width=\"522\" valign=\"middle\">\r\n <textarea name=\"content\" cols=\"60\" rows=\"8\" id=\"content\">\r\n</textarea> \r\n <input name=\"act\" type=\"hidden\" id=\"act\" value=\"yes\">\r\n <br>\r\n <input name=\"Submit\" type=\"submit\" class=\"buttongmin";
echo "\" value=\" 发出 \">\r\n <input name=\"Submit2\" type=\"button\" class=\"buttonrmin\" value=\" 取消 \" onClick=\"javascript:history.back();\">\r\n <br> </td>\r\n \r\n </tr></form> \r\n </table></td>\r\n </tr>\r\n</table>\r\n<p> </p>\r\n<p> </p>\r\n</body>\r\n\r\n\r\n";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -