⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 member_notice_add.php

📁 学校网站源码http://您的网址/admin/admin_login.asp 默认登录用户:admin 默认登录密码:admin
💻 PHP
字号:
<?php


include( "../config.inc.php" );
include( "../includes/SysGlobal.php" );
include( "language/".$aLan."_".$charset.".php" );
include( "../includes/version.php" );
include( "../includes/pro.php" );
include( "func/adm.inc.php" );
include( "func/common.inc.php" );
include( "func/db.inc.php" );
include( "func/nocatch.php" );
needauth( 57 );
echo "<html>\r\n<head >\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=";
echo $charset;
echo "\">\r\n<link id=\"style_sheet\" href=\"css/commonstyle.css\" type=\"text/css\" rel=\"stylesheet\">\r\n<title>";
echo $strAdminTitle;
echo "</title>\r\n</head>\r\n\r\n<body  class=\"NormalPage\">\r\n<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" align=\"center\" background=\"images/mu8.gif\" height=\"30\" >\r\n  <tr> \r\n    <td width=\"250\" >&nbsp;&nbsp;<img src=\"images/bar.gif\">&nbsp;&nbsp;";
echo $strMemberNCPub;
echo " \r\n    </td>\r\n    <td >&nbsp;</td>    <td width=\"100\" >&nbsp;</td>\r\n  </tr>\r\n  </table>\r\n<br>\r\n";
$step = $_REQUEST['step'];
if ( $step == "add" )
{
	$body = $_POST['body'];
	$title = $_POST['title'];
	$dtime = $_POST['dtime'];
	$membertypeid = $_POST['membertypeid'];
	if ( 65000 < strlen( $body ) )
	{
		err( $strMemberNC3, "", "" );
	}
	if ( $title == "" )
	{
		err( $strMemberNC1, "", "" );
	}
	if ( 200 < strlen( $title ) )
	{
		err( $strMemberNC2, "", "" );
	}
	$title = htmlspecialchars( $title );
	$body = url2path( $body );
	$msql->query( "insert into {$tbl_member_notice} values(\r\n\t0,\r\n\t'{$membertypeid}',\r\n\t'{$title}',\r\n\t'{$body}',\r\n\t'{$dtime}',\r\n\t'0',\r\n\t'0',\r\n\t'0',\r\n\t'0'\r\n\r\n\t)" );
	sayok( $strMemberNCPubok, "member_notice.php", $strMemberNCList );
}
echo " \r\n<table width=625 border=0 cellspacing=0 cellpadding=0 align=center height=22>\r\n  <tr> \r\n    <td  align=center height=22 width=10 valign=top>&nbsp;</td>\r\n    <td  align=left height=22 width=3 class=con valign=top><img src=images/menubg10.gif width=3></td>\r\n    <td  align=center height=22 width=130 class=con><a href='member_notice.php' style=\"color:#333333\">";
echo $strMemberNCManage;
echo "</a></td>\r\n    <td  align=center height=22 width=1  class=con><img src=images/menubg11.gif width=3 height=22></td>\r\n    <td  align=left height=22 width=3 class=title valign=top><img src=images/menubg10.gif width=3></td>\r\n    <td  align=center height=22 width=130 class=title><a href='member_notice_add.php'  style=\"color:#ffffff\">";
echo $strMemberNCPub;
echo "</a></td>\r\n    <td  align=center height=22 width=1  class=title><img src=images/menubg11.gif width=3 height=22></td>\r\n    <td  align=center height=22>&nbsp;</td>\r\n  </tr>\r\n</table>\r\n<table id=\"Hedit\" width=\"625\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\r\n  <tr align=\"center\" valign=\"top\"> \r\n    <td height=\"10\"> \r\n      <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"cente";
echo "r\" height=\"22\">\r\n        <tr> \r\n          <td class=title align=\"left\" height=\"22\" valign=\"top\" width=\"3\"><img src=\"images/menubg16.gif\" width=\"3\" height=\"30\"></td>\r\n          <td class=title align=\"center\" height=\"22\" colspan=\"2\">";
echo $strMemberNCPub;
echo " \r\n            ";
echo "<s";
echo "cript>\r\nfunction checkform(theform)\r\n{\r\n  var letters = \"abcdefghijklmnopqrstuvwxyz_0123456789\" +\r\n                \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"\r\n  var letter =  \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\"\r\n\r\n  var allword = letters + \"~!@#\$%^&*()+|/?;:'[{]}`\"\r\n  var errletter = \"\"\r\n\r\n\r\n \r\n\r\n  if(theform.title.value.length < 1)\r\n  {\r\n    alert(\"";
echo $strMemberNC1;
echo "\")\r\n    theform.title.focus()\r\n    return false\r\n  }  \r\n\r\n\r\n  return true\r\n}  \r\n</script>\r\n          </td>\r\n          <td class=title align=\"right\" height=\"22\" width=\"3\" valign=\"top\"><img src=\"images/menubg17.gif\" width=\"3\" height=\"30\"></td>\r\n        </tr>\r\n      </table>\r\n       \r\n      <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\r\n        <form><tr>\r\n          <td>";
$dtime = time( );
$ntime = date( "Y-n-j H:i:s", $dtime );
$oldbody = "";
echo "</td>\r\n        </tr></form>\r\n      </table>\r\n      \r\n        \r\n     \r\n      <table width=\"100%\" cellpadding=\"0\" align=\"center\"  style=\"border-collapse: collapse\" border=\"0\" cellspacing=\"1\">\r\n        \r\n        <form name=\"form\" action=\"member_notice_add.php\" method=\"post\" enctype=\"multipart/form-data\" onSubmit=\"return checkform(this)\">\r\n<tr>\r\n          <td height=\"30\" width=\"20%\" align=\"center\" class=\"titl";
echo "e\">";
echo $strMemberNCTo;
echo "</td>\r\n          <td height=\"30\" width=\"80%\" class=con>\r\n            ";
echo "<s";
echo "elect name=\"membertypeid\" >\r\n              ";
$fsql->query( "select * from {$tbl_member_type}" );
echo "<option value='0'>".$strMemberAll."</option>";
while ( $fsql->next_record( ) )
{
	$membertypeid = $fsql->f( "membertypeid" );
	$membertype = $fsql->f( "membertype" );
	echo "<option value='{$membertypeid}'>{$membertype}</option>";
}
echo " \r\n            </select>\r\n          </td>\r\n        </tr>\r\n          <tr> \r\n            <td height=\"30\" width=\"20%\" align=\"center\" class=\"title\">";
echo $strMemberNCTitle;
echo "</td>\r\n            <td height=\"30\" width=\"80%\" class=con> \r\n              <input type=\"text\" name=\"title\" size=\"58\" maxlength=\"200\" class=input>\r\n              <font color=\"#FF0000\">*</font> </td>\r\n          </tr>\r\n          <tr> \r\n            <td height=\"18\" colspan=\"2\"> \r\n              <input  name=body type=hidden>\r\n              <input type=\"hidden\" name=\"step\" value=\"add\">\r\n              <input type=\"hid";
echo "den\" name=\"menuid\" value=\"";
echo "{$menuid}";
echo "\">\r\n              ";
include( "edithtml/index1.php" );
echo " \r\n              <input type=\"hidden\" name=\"dtime\" value=\"";
echo "{$dtime}";
echo "\">\r\n            </td>\r\n          </tr>\r\n          <tr> \r\n            <td align=\"center\"  colspan=\"3\" height=\"40\" class=title> \r\n              <input type=\"submit\" name=\"submit\"  onClick=\"save();\" value=\"";
echo $strSubmit;
echo "\" class=button>\r\n            </td>\r\n          </tr>\r\n        </form>\r\n      </table>\r\n      \r\n    </td>\r\n  </tr>\r\n</table>\r\n</body>\r\n</html>\r\n";
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -