21,886
社区成员
发帖
与我相关
我的任务
分享
<div class="editor">
<textarea name="art_cnn" id="art_cnn" style="display:none" ><?php echo $row[4] ?></textarea>
<?php
include_once("fckeditor/fckeditor.php");
$oFCKeditor=new fckeditor('art_cnn');
$oFCKeditor->BasePath='fckeditor/';
$oFCKeditor->value='';
$oFCKeditor->Width='850px';
$oFCKeditor->Height='500px';
$oFCKeditor->create();
//$fck=$oFCKeditor->CreateHtml();
?>
</div>
<!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>
<!-- CSS -->
<link href="style/css/transdmin.css" rel="stylesheet" type="text/css" media="screen" />
<!--[if IE 6]><link rel="stylesheet" type="text/css" media="screen" href="style/css/ie6.css" /><![endif]-->
<!--[if IE 7]><link rel="stylesheet" type="text/css" media="screen" href="style/css/ie7.css" /><![endif]-->
<!-- JavaScripts-->
<script type="text/javascript" src="style/js/jquery.js"></script>
<script type="text/javascript" src="style/js/jNice.js"></script>
<script type="text/javascript" src="/FCKeditor/fckeditor.js"></script>
<script language="javascript">
function act(){
if (art.art_nmt.value==""){
alert("文章标题不能为空!")
art.art_nmt.focus;
return false;
}
if (art.art_aut.value==""){
alert("作者不能为空!")
art.art_aut.focus;
return false;
}
}
</script>
</head>
<body>
<div id="wrapper">
<!-- h1 tag stays for the logo, you can use the a tag for linking the index page -->
<h1> </h1>
<!-- You can name the links with lowercase, they will be transformed to uppercase by CSS, we prefered to name them with uppercase to have the same effect with disabled stylesheet -->
<ul id="mainNav">
<li><a href="index.php" >文章管理首页</a></li> <!-- Use the "active" class for the active menu item -->
<li><a href="write.php">写新文章</a></li>
<li><a href="artical_list.php">文章列表</a></li>
<li><a href="#">更多>></a></li>
<li class="logout"><a href="#">退出</a></li>
</ul>
<!-- // #end mainNav -->
<div id="containerHolder">
<div id="container">
<!-- // #sidebar -->
<!-- h2 stays for breadcrumbs -->
<h2><a href="index.php">文章管理首页</a> » <a href="#" class="active">写新文章</a></h2>
<div id="main">
<h3>文章列表</h3>
<?php
$id=$_GET['id'];
$link=@mysql_connect("localhost","root","root") or die ("数据库链接失败".mysql_error());
mysql_select_db("art",$link);
header("Content-type: text/html;charset=gb2312");
mysql_query("set names 'gb2312'");
$sql="select * from art_bse where id=".$id;
$row=mysql_fetch_row(mysql_query($sql));
?>
<form action="art_edit_chk.php?id=<?php echo $row['$id'];?>" method="post" enctype="multipart/form-data" onSubmit="return act();" name="art">
<table width="100%" height="30" cellpadding="0" cellspacing="0">
<tr>
<td width="675" height="20" class="pp">文章标题:
<input type="text" name="art_nmt" value="<?php echo $row[1];?>" />
作者:
<input name="art_aut" type="text" id="art_aut" size="10" value="<?php echo $row[2];?>" />
<input type="hidden" name="art_dtc" value="<?php echo date("Y-m-d");?> "/>
</td>
<td width="173" align="left" class="action">
<h5>
<input type="submit" name="Submit" value="保存" />
<input type="reset" name="Submit2" value="取消" />
</h5> </td>
</tr>
<tr>
</table>
<div class="editor">
<?php
include_once("fckeditor/fckeditor.php");
$oFCKeditor=new fckeditor('art_cnn');
$oFCKeditor->BasePath='fckeditor/';
$oFCKeditor->Value='';
$oFCKeditor->Width='850px';
$oFCKeditor->Height='500px';
$oFCKeditor->create();
//$fck=$oFCKeditor->CreateHtml();
?>
</div>
</form>
<textarea name="art_cnn" id="art_cnn" style="display:none" ><?php echo $row[4] ?></textarea>
<fieldset><h3>中华邮宝宝,非集邮的集邮平台!</h3></fieldset>
</div>
<!-- // #main -->
<div class="clear"></div>
</div>
<!-- // #container -->
</div>
<!-- // #containerHolder -->
<p id="footer">版权所有:中华邮宝宝. <a href="http://www.china-ybb.com">China-ybb.</a></p>
</div>
<!-- // #wrapper -->
</body>
</html>
<?php
$id=$_GET['id'];
$link=@mysql_connect("localhost","root","root") or die ("数据库链接失败".mysql_error());
mysql_select_db("art",$link);
header("Content-type: text/html;charset=gb2312");
mysql_query("set names 'gb2312'");
$sql="select * from art_bse where id=".$id;
$row=mysql_fetch_row(mysql_query($sql));
?>
<div class="editor">
<?php
include_once("fckeditor/fckeditor.php");
$oFCKeditor=new fckeditor('art_cnn');
$oFCKeditor->BasePath='fckeditor/';
$oFCKeditor->value='';
$oFCKeditor->Width='850px';
$oFCKeditor->Height='500px';
$oFCKeditor->create();
//$fck=$oFCKeditor->CreateHtml();
?>
</div>
</form>
<textarea name="art_cnn" id="art_cnn" style="display:none" ><?php echo $row[4] ?></textarea>