admin/add_news.php

(完整代码) 1KB

<?php 
include("admin.php");
include("fckeditor.php");
$sBasePath=$_SERVER['PHP_SELF'];
$sBasePath=dirname($sBasepath);
$ed= new FCKeditor('content');
$ed->BasePath=$sBasePath;
if($_POST['fenlei']&&$_POST['content']){
mysql_query("INSERT INTO `".$ad."news` (`id` ,`title` ,`fenlei` ,`fenlei1` ,`text` ,`content` ,`laiyuan` ,`yuedu` ,`time` )
VALUES (NULL , '{$_POST['title']}', '{$_POST['fenlei']}', '{$_POST['fenlei1']}', '', '{$_POST['content']}', '{$_POST['laiyuan']}', '', NOW( ) );");
  echo"<script language=javascript>  
alert( \"添加信息成功!\"  );
location.href = \"add_news.php\"
</script>";
}
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>科目管理</title>
<link href="main.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.STYLE1 {color: #FF0000}
-->
</style>
</head>

<body>
<p>&nbsp;</p>
<form name="PosForm" method="post" action="" style="margin:0">
	<table width="100%" border="0" cellspacing="1" cellpadding="5">
		<tr>
			<td height="25" class="td_title">&nbsp; <a href="add_news.php">新闻资讯</a>添加</td>
		</tr>
		<tr>
			<td height="23" class="td_content"><p>资讯分类:
			    <select name="fenlei1" id="fenlei1">
			      <option value="高考资讯">高考资讯</option>
			      <option value="中考资讯">中考资讯</option>
			      <option value="早教资讯">早教资讯</option>
			      <option value="就业指导">就业指导</option>
                </select> 
			    &nbsp;&nbsp;
			    <input name="fenlei" type="hidden" id="fenlei" value="新闻资讯">
			    <br><br>资讯标题:
			    <input name="title" type="text" id="title" size="50">
			  <br>
              <br>
资讯内容:<?php $ed->Create(); ?>
			
<br><br>
			    <input name="Submit" type="submit" class="input_1" value="确定添加">          
          </p></td>
		</tr>
	</table>
	<br>
</form>
</body>
</html>

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。