<!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=utf-8" />
<link rel="stylesheet" type="text/css" href="right.css" />
<title>无标题文档</title>
</head>
<body>
<div id="title1">
文章添加界面
</div>
<div id="content">
<form method="post" action="article_add_do.php" enctype="multipart/form-data">
标题:<input type="text" name="articleTitle" /><br />
副标题:<input type="text" name="articleTitle2" /><br />
作者:<input type="text" name="articleAuthor" /><br />
选择文件:<input type="file" name="pic" /><br />
文章类型:
<select name="classId">
<?php
require_once("config.php");
$sql="select * from class_type order by classId desc";
$rows=mysql_query($sql);
while($rs=mysql_fetch_array($rows)){
?>
<option value="<?php echo $rs["classId"]?>"><?php echo $rs["className"]?></option>
<?php
}
?>
</select>
<br />
文章内容:<br />
<?php
require_once("fckeditor/fckeditor.php");
$a=new FCKeditor("articleContent");
$a->BasePath="fckeditor/";//设置工作路径一定要加/
$a->Width="500";//设置宽
$a->Height="400";//设置高度
$a->Value="";//设置显示值
$a->Create();//生成编辑器
?>
<br />
<input type="submit" value="添加"/>
</form>
</div>
</body>
</html>