xinwentongzhi_updt.php
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
$id=$_GET["id"];
include_once 'conn.php';
include_once 'sinaEditor.class.php';
extract($_POST);
extract($_GET);
//unset($_POST,$_GET);
$editor=new sinaEditor('gently_editor');
//$editor->Value='';
$editor->BasePath='.';
$editor->Height=500;
$editor->Width=650;
$editor->AutoSave=false;
$ndate =date("Y-m-d");
$addnew=$_POST["addnew"];
if ($addnew=="1" )
{
$biaoti=$_POST["biaoti"];$leibie=$_POST["leibie"];$neirong=$_POST["neirong"];$tianjiaren=$_POST["tianjiaren"];
$sql="update xinwentongzhi set biaoti='$biaoti',leibie='$leibie',neirong='".$gently_editor."',tianjiaren='$tianjiaren' where id= ".$id;
mysql_query($sql);
echo "<script>javascript:alert('修改成功!');location.href='xinwentongzhi_list.php';</script>";
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>修改新闻通知</title><link rel="stylesheet" href="css.css" type="text/css"><script language="javascript" src="js/Calendar.js"></script>
</head>
<body>
<p>修改新闻通知: 当前日期: <?php echo $ndate; ?></p>
<?php
$sql="select * from xinwentongzhi where id=".$id;
$query=mysql_query($sql);
$rowscount=mysql_num_rows($query);
if($rowscount>0)
{
$editor->Value=mysql_result($query,$i,neirong);
?>
<form id="form1" name="form1" method="post" action="">
<table width="100%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="#00FFFF" style="border-collapse:collapse">
<tr><td>标题:</td><td><input name='biaoti' type='text' id='biaoti' size='50' value='<?php echo mysql_result($query,$i,biaoti);?>' /></td></tr><tr><td>类别:</td><td><select name='leibie' id='leibie'>
<?php getoption("kechengleibie","mingcheng")?><option value="站内新闻">站内新闻</option></select>
</select><script language="javascript">document.form1.leibie.value='<?php echo mysql_result($query,$i,leibie);?>';</script>
</td></tr><tr><td>内容:</td><td><?php
$editor->Create();
?></td>
</tr><tr><td>添加人:</td><td><input name='tianjiaren' type='text' id='tianjiaren' value='<?php echo mysql_result($query,$i,tianjiaren);?>' /></td></tr>
<tr>
<td> </td>
<td><input name="addnew" type="hidden" id="addnew" value="1" />
<input type="submit" name="Submit" value="修改" />
<input type="reset" name="Submit2" value="重置" /></td>
</tr>
后面还有 10 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。