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

📄 modify.php

📁 极限网络智能办公系统—MYOA26—100%—源程序。
💻 PHP
字号:
<?php

include_once( "inc/auth.php" );
include_once( "inc/utility_all.php" );
echo "\r\n<html>\r\n<head>\r\n<title>编辑新闻</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n\r\n";
echo "<s";
echo "cript Language=\"JavaScript\">\r\nfunction CheckForm()\r\n{\r\n   if(document.form1.SUBJECT.value==\"\")\r\n   { alert(\"新闻的标题不能为空!\");\r\n     return (false);\r\n   }\r\n\r\n   if(document.form1.CONTENT.value==\"\")\r\n   { alert(\"新闻的内容不能为空!\");\r\n     return (false);\r\n   }\r\n   \r\n   return (true);\r\n}\r\n\r\nfunction sendForm()\r\n{\r\n document.form1.CONTENT.value=EDIT_HTML.get_docHtml();\r\n if(CheckForm())\r\n   d";
echo "ocument.form1.submit();\r\n}\r\n\r\n\r\nfunction Load_Do()\r\n{\r\n  EDIT_HTML.insertHtml(document.form1.CONTENT.value);\r\n}\r\n</script>\r\n</head>\r\n";
$connection = openconnection( );
$query = "select * from NEWS where NEWS_ID={$NEWS_ID}";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
	$SUBJECT = $ROW['SUBJECT'];
	$CONTENT = $ROW['CONTENT'];
}
$CONTENT = str_replace( "\"", "'", $CONTENT );
$CONTENT = str_replace( chr( 10 ), "", $CONTENT );
$CONTENT = str_replace( chr( 13 ), "", $CONTENT );
echo "<body class=\"bodycolor\" topmargin=\"5\" onload=\"Load_Do();\">\r\n\r\n<table border=\"0\" width=\"90%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n  <tr>\r\n    <td class=\"Big\"><img src=\"/images/notify_new.gif\" align=\"absmiddle\">";
echo "<s";
echo "pan class=\"big3\"> 编辑新闻</span>\r\n    </td>\r\n  </tr>\r\n</table>\r\n\r\n<table border=\"0\" width=\"85%\" cellpadding=\"2\" cellspacing=\"1\" align=\"center\" bgcolor=\"#000000\" class=\"small\">\r\n  <form enctype=\"multipart/form-data\" action=\"update.php\"  method=\"post\" name=\"form1\">\r\n    <tr>\r\n      <td nowrap class=\"TableData\"> 标题:</td>\r\n      <td class=\"TableData\">\r\n        <input type=\"text\" name=\"SUBJECT\" size=\"40\" maxl";
echo "ength=\"40\" class=\"BigInput\" value=\"";
echo $SUBJECT;
echo "\">\r\n      </td>\r\n    </tr>\r\n    <tr>\r\n      <td class=\"TableData\" colspan=\"2\">\r\n          <iframe name=\"EDIT_HTML\" style=\"BACKGROUND-COLOR: buttonface\" src=\"/module/rte\" width=\"100%\" height=\"450\" type=\"text/x-scriptlet\" VIEWASTEXT></iframe>\r\n          <input type=\"hidden\" name=\"CONTENT\"  value=\"";
echo $CONTENT;
echo "\">\r\n      </td>\r\n    </tr>\r\n    <tr align=\"center\" class=\"TableControl\">\r\n      <td colspan=\"2\" nowrap>\r\n        <input type=\"hidden\" value=\"";
echo $NEWS_ID;
echo "\" name=\"NEWS_ID\">\r\n        <input type=\"button\" value=\"发布\" class=\"BigButton\" onclick=\"sendForm();\">&nbsp;&nbsp;\r\n        <input type=\"button\" value=\"返回\" class=\"BigButton\" onClick=\"location='index.php'\">\r\n      </td>\r\n    </tr>\r\n  </table>\r\n</form>\r\n\r\n</body>\r\n</html>";
?>

⌨️ 快捷键说明

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