📄 ad_infoadd2.asp
字号:
<%@language=vbscript codepage=936 %>
<%
option explicit
response.buffer=true
Const PurviewLevel=2
Const CheckChannelID=2
Const PurviewLevel_Article=3
%>
<!--#include file="inc/conn.asp"-->
<!--#include file="inc/config.asp"-->
<!--#include file="Ad_ChkPurview.asp"-->
<!--#include file="inc/func.asp"-->
<!--#include file="inc/ad_code_info.asp"-->
<%
dim ClassID,SpecialID
dim SkinID,LayoutID,SkinCount,LayoutCount,ClassMaster,BrowsePurview,AddPurview
ClassID=session("ClassID_Article")
SpecialID=session("SpecialID_Article")
if ClassID="" then
ClassID=0
else
ClassID=Clng(ClassID)
end if
if SpecialID="" then
SpecialID=0
else
SpecialID=Clng(SpecialID)
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<title>添加文章(高级模式)</title>
<link rel="stylesheet" type="text/css" href="Ad_Style.css">
<script language = "JavaScript">
function AddItem(strFileName){
document.myform.IncludePic.checked=true;
document.myform.DefaultPicUrl.value=strFileName;
document.myform.DefaultPicList.options[document.myform.DefaultPicList.length]=new Option(strFileName,strFileName);
document.myform.DefaultPicList.selectedIndex+=1;
if(document.myform.UploadFiles.value==''){
document.myform.UploadFiles.value=strFileName;
}
else{
document.myform.UploadFiles.value=document.myform.UploadFiles.value+"|"+strFileName;
}
}
function selectPaginationType()
{
document.myform.PaginationType.selectedIndex=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.ClassID.value=="")
{
alert("文章所属栏目不能指定为含有子栏目的栏目!");
document.myform.ClassID.focus();
return false;
}
if (document.myform.ClassID.value==0)
{
alert("文章所属栏目不能指定为外部栏目!");
document.myform.ClassID.focus();
return false;
}
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;
}
if (document.myform.Content.value.length>6553600)
{
alert("文章内容太长,超出了ACCESS数据库的限制(6400K)!建议将文章分成几部分录入。");
editor.HtmlEdit.focus();
return false;
}
return true;
}
</script>
</head>
<body>
<form method="POST" name="myform" onSubmit="return CheckForm();" action="ad_infoSave.asp" target="_self">
<table border="0" align="center" cellpadding="0" cellspacing="0" class="border">
<tr class="title">
<td height="22" align="center"><b>添 加 文 章(高级模式)</b></td>
</tr>
<tr align="center">
<td>
<table width="100%" border="0" cellpadding="2" cellspacing="1">
<tr class="tdbg">
<td width="100" align="right"><strong>所属栏目:</strong></td>
<td><select name='ClassID'>
<%call Admin_ShowClass_Option(3,ClassID)%>
</select>
</td>
<td><%response.write "<font color='#FF0000'><strong>注意:</strong></font><font color='#0000FF'>1、不能指定为含有子栏目的栏目,或者外部栏目"
if AdminPurview=2 and AdminPurview_Article=3 then
response.write "<br> 2、你只能在<font color='#FF0000'>红色栏目</font>及其子栏目中发表文章</font>"
end if%>
</td>
</tr>
<tr class="tdbg">
<td width="100" align="right"><strong>所属专题:</strong></td>
<td colspan="2"><%call Admin_ShowSpecial_Option(1,SpecialID)%></td>
</tr>
<tr class="tdbg">
<td width="100" align="right"><strong>文章标题:</strong></td>
<td colspan="2"><input name="Title" type="text" id="Title" value="" size="50" maxlength="255">
<font color="#FF0000">*</font> <select name="TitleFontColor" id="TitleFontColor">
<option value="" selected>颜色</option>
<OPTION value="">默认</OPTION>
<OPTION value="#000000" style="background-color:#000000"></OPTION>
<OPTION value="#FFFFFF" style="background-color:#FFFFFF"></OPTION>
<OPTION value="#008000" style="background-color:#008000"></OPTION>
<OPTION value="#800000" style="background-color:#800000"></OPTION>
<OPTION value="#808000" style="background-color:#808000"></OPTION>
<OPTION value="#000080" style="background-color:#000080"></OPTION>
<OPTION value="#800080" style="background-color:#800080"></OPTION>
<OPTION value="#808080" style="background-color:#808080"></OPTION>
<OPTION value="#FFFF00" style="background-color:#FFFF00"></OPTION>
<OPTION value="#00FF00" style="background-color:#00FF00"></OPTION>
<OPTION value="#00FFFF" style="background-color:#00FFFF"></OPTION>
<OPTION value="#FF00FF" style="background-color:#FF00FF"></OPTION>
<OPTION value="#FF0000" style="background-color:#FF0000"></OPTION>
<OPTION value="#0000FF" style="background-color:#0000FF"></OPTION>
<OPTION value="#008080" style="background-color:#008080"></OPTION>
</select> <select name="TitleFontType" id="TitleFontType">
<option value="0" selected>字形</option>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -