后台文章添加

<!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>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值