<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>添加文章</title>
<link rel="stylesheet" type="text/css" href="style.css">
<script language = "JavaScript">
var onecount;
subcat = new Array();
subcat[0] = new Array("市场动态","南京家具市场","市场动态");
subcat[1] = new Array("装修必读","装修必读","装修必读");
subcat[2] = new Array("行业新闻","热点行业新闻","行业新闻");
subcat[3] = new Array("房屋出租","南京房屋出租","房屋出租");
subcat[4] = new Array("市场","市场指南","市场");
subcat[5] = new Array("城市快报","京沪穗家具","城市快报");
subcat[6] = new Array("沪上风情","京沪穗家具","沪上风情");
subcat[7] = new Array("我爱厨房","百姓生活","我爱厨房");
subcat[8] = new Array("温馨卧室","百姓生活","温馨卧室");
subcat[9] = new Array("吃在餐厅","百姓生活","吃在餐厅");
onecount=10;
function changelocation(locationid)
{
document.myform.SmallClassName.length = 0;
var locationid=locationid;
var i;
for (i=0;i < onecount; i++)
{
if (subcat[i][1] == locationid)
{
document.myform.SmallClassName.options[document.myform.SmallClassName.length] = new Option(subcat[i][0], subcat[i][2]);
}
}
}
function CheckForm()
{
if (editor.EditMode.checked==true)
document.myform.Content.value=editor.HtmlEdit.document.body.innerText;
else
document.myform.Content.value=editor.HtmlEdit.document.body.innerHTML;
if (document.myform.Title.value=="")
{
alert("文章标题不能为空!");
document.myform.Title.focus();
return false;
}
if (document.myform.Key.value=="")
{
alert("关键字不能为空!");
document.myform.Key.focus();
return false;
}
if (document.myform.Content.value=="")
{
alert("文章内容不能为空!");
editor.HtmlEdit.focus();
return false;
}
return true;
}
function loadForm()
{
editor.HtmlEdit.document.body.innerHTML=document.myform.Content.value;
return true
}
</script>
</head>
<body leftmargin="5" topmargin="10" onLoad="javascipt:setTimeout('loadForm()',1000);">
<form method="POST" name="myform" onSubmit="return CheckForm();" action="ArticleSave.asp?action=add">
<table width="615" border="0" align="center" cellpadding="0" cellspacing="0" class="border">
<tr>
<td height="25" align="center" class="title"><b>添 加 文 章</b></td>
</tr>
<tr align="center">
<td class="tdbg">
<table width="100%" border="0" cellpadding="2" cellspacing="0">
<tr>
<td width="90" align="right">所属栏目:</td>
<td width="250"> <select name="BigClassName" onChange="changelocation(document.myform.BigClassName.options[document.myform.BigClassName.selectedIndex].value)" size="1">
<option selected value="南京家具市场">南京家具市场</option>
<option value="装修必读">装修必读</option>
<option value="京沪穗家具">京沪穗家具</option>
<option value="热点行业新闻">热点行业新闻</option>
<option value="南京房屋出租">南京房屋出租</option>
<option value="市场指南">市场指南</option>
<option value="百姓生活">百姓生活</option>
</select> <select name="SmallClassName">
<option selected value="市场动态">市场动态</option>
</select> </td>
<td width="100" align="right"><strong>所属专题:</strong></td>
<td width="150"><select name="SpecialName">
<option selected value="">不属于任何专题</option>
<option value="装修必读">装修必读</option>
<option value="我爱我家">我爱我家</option>
</select></td>
</tr>
<tr>
<td width="90" align="right">文章标题:</td>
<td colspan="3"><input class=button name="Title" type="text"
id="Title" size="80" maxlength="255"> <font color="#FF0000">*</font></td>
</tr>
<tr>
<td width="90" align="right">关键字:</td>
<td colspan="3"><input class=button name="Key" type="text"
id="Key" size="50" maxlength="255"> <font color="#FF0000">*</font> 用来查找相关文章
</td>
</tr>
<tr>
<td width="90" align="right">作者:</td>
<td colspan="3"><input class=button name="Author" type="text"
id="Author" size="50" maxlength="30"> </td>
</tr>
<tr>
<td width="90" align="right">原出处:</td>
<td colspan="3"><input class=button name="CopyFrom" type="text"
id="CopyFrom" size="80" maxlength="255"></td>
</tr>
<tr>
<td width="90" align="right" valign="middle">文章内容:</td>
<td colspan="3"><input class=button name="Content" type="hidden" value=""> <iframe class=button ID="editor" src="editor.htm" frameborder=0 scrolling=no width="530" height="405"></iframe>
</td>
</tr>
<tr>
<td width="90" align="right">包含图片:</td>
<td colspan="3"><input name="IncludePic" type="checkbox" id="IncludePic" value="yes">
是<font color="#0000FF">(如果选中的话会在标题前面显示[图文])</font></td>
</tr>
</table>
</td>
</tr>
</table>
<div align="center"><p>
<input
name="Add" type="submit" id="Add" value=" 添 加 ">
<input
name="ResetForm" type="reset" id="ResetForm" value=" 清 除 ">
</p></div>
</form>
</body>
</html>