📄 newsedit.asp
字号:
case 6: form1.title.style.color = "#808000";
break;
case 7: form1.title.style.color = "#000080";
break;
case 8: form1.title.style.color = "#800080";
break;
case 9: form1.title.style.color = "#808080";
break;
case 10:form1.title.style.color = "#FFFF00";
break;
case 11:form1.title.style.color = "#00FF00";
break;
case 12:form1.title.style.color = "#00FFFF";
break;
case 13:form1.title.style.color = "#FF00FF";
break;
case 14:form1.title.style.color = "#FF0000";
break;
case 15:form1.title.style.color = "#0000FF";
break;
case 16:form1.title.style.color = "#008080";
break;
}
form1.title.focus ();
}
function title_size_onchange() {
var title_sizeIndex;
title_sizeIndex = form1.title_size.selectedIndex;
form1.title.select ();
switch (title_sizeIndex)
{
case 1: form1.title.style.fontSize = "9pt";
break;
}
form1.title.focus ();
}
function title_type_onchange() {
var title_typeIndex;
title_typeIndex = form1.title_type.selectedIndex;
form1.title.select ();
switch (title_typeIndex)
{
case 1: form1.title.style.removeAttribute ("fontWeight");
form1.title.style.removeAttribute ("fontStyle");
form1.title.style.removeAttribute ("textDecoration");
break;
case 2: form1.title.style.removeAttribute ("fontStyle");
form1.title.style.removeAttribute ("textDecoration");
form1.title.style.fontWeight = "bolder";
break;
case 3: form1.title.style.removeAttribute ("fontWeight");
form1.title.style.removeAttribute ("textDecoration");
form1.title.style.fontStyle = "italic";
break;
case 4: form1.title.style.removeAttribute ("fontStyle");
form1.title.style.removeAttribute ("fontWeight");
form1.title.style.textDecoration = "underline";
break;
case 5: form1.title.style.removeAttribute ("textDecoration");
form1.title.style.fontWeight = "bolder";
form1.title.style.fontStyle = "italic";
break;
case 6: form1.title.style.removeAttribute ("fontStyle");
form1.title.style.removeAttribute ("fontWeight");
form1.title.style.textDecoration = "strikethrough";
break;
}
form1.title.focus ();
}
function title_face_onchange() {
var title_faceIndex;
title_faceIndex = form1.title_face.selectedIndex;
form1.title.select ();
switch (title_faceIndex)
{
case 1: form1.title.style.family = "宋体";
break;
case 2: form1.title.style.family = "楷体_GB2312";
break;
case 3: form1.title.style.family = "新宋体";
break;
case 4: form1.title.style.family = "黑体";
break;
case 5: form1.title.style.family = "隶书";
break;
case 6: form1.title.style.family = "幼圆";
break;
}
form1.title.focus ();
}
function IsDigit()
{
return ((event.keyCode >= 48) && (event.keyCode <= 57));
}
</script><script language=javascript>
function fnPreHandle()
{if (!validateModea()) return;
var iCount;
var strData;
var iMaxChars = 50000;
var iBottleNeck = 2000000;
var strHTML;
strData = frames.message.document.body.innerHTML;
if (strData.length > iBottleNeck)
{
if (confirm("您要发布的文章太长,建议您拆分为几部分分别发布。\n如果您坚持提交,注意需要较长时间才能提交成功。\n\n是否坚持提交?") == false)
return false;
}
iCount = parseInt(strData.length / iMaxChars) + 1;
//hdnCount
strHTML = "<input type=hidden name=hdnCount value=" + iCount + ">";
for (var i = 1; i <= iCount; i++)
{
strHTML = strHTML + "\n" + "<input type=hidden name=hdnBigField" + i + ">";
}
document.all.divHidden.innerHTML = strHTML;
for (var i = 1; i <= iCount; i++)
{
form1.elements["hdnBigField" + i].value = strData.substring((i - 1) * iMaxChars, i * iMaxChars);
}
}
</script>
<link rel="stylesheet" type="text/css" href="site.css">
<link rel="STYLESHEET" type="text/css" href="editor.css">
</head>
<body topmargin="0">
<!--#include file=Admin_Top.asp-->
<div id=menuDiv style='Z-INDEX: 1000; VISIBILITY: hidden; WIDTH: 1px; POSITION: absolute; HEIGHT: 1px; BACKGROUND-COLOR: #9cc5f8'></div>
<%set rs5=server.CreateObject("ADODB.RecordSet")
rs5.Source="select * from "& db_System_Table &""
rs5.Open rs5.source,conn,1,1
dim typename
set rs6=server.CreateObject("ADODB.RecordSet")
rs6.Source="select * from "& db_Type_Table &" where typeid="&rs("typeid")
rs6.Open rs6.source,conn,1,1
typename=rs6("typename")
rs6.close
set rs6=nothing
%>
<div align="center">
<center>
<table border="1" width="100%" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="<%=border%>">
<tr>
<td colspan="4" height="25" width="100%" class="TDtop">
<div align="center">┊ <B>在<b>[<a href="E_BigClassManage.asp?TypeID=<%=rs("typeid")%>"><%=typename%></a>]<%if rs("bigclassid")<>"" then%>-[<a href="E_SmallClassManage.asp?BigClassID=<%=rs("bigclassid")%>"><%=rs2("E_BigClassName")%></a>]<%if rs("smallclassid")<>"" then%>-[<a href="ListNews.asp?SmallClassID=<%=rs("smallclassid")%>"><%=rs3("E_smallclassname")%></a>]<%end if%><%end if%></b>中修改文章,ID号为<%=newsid%></B> ┊</div>
</td>
</tr>
<%if request.cookies(eChuang)("key")="super" or request.cookies(eChuang)("key")="typemaster" or request.cookies(eChuang)("key")="selfreg" then%>
<form action=NewsClassEdit1.asp?NewsID=<%=NewsID%> method=post>
<tr>
<td width="10%" bgcolor="#FFFFFF"></td>
<td width="90%" bgcolor="#FFFFFF" colspan="3" align=right>
<input name=btn_Modi_class type=submit value="修改文章类别" onMouseOver="window.status='按这个按钮修改文章类别';return true;" onMouseOut="window.status='';return true;" title="按这个按钮修改文章类别" style="font-size: 9pt; color: #000000; background-color: #EAEAF4; solid #EAEAF4" onMouseOver ="this.style.backgroundColor='#ffffff'" onMouseOut ="this.style.backgroundColor='#EAEAF4'">
</td>
</tr>
</form><%end if%>
<form method="POST" OnSubmit="return checkdata()" onReset="return ResetForm();" name="form1" action="NewsEditOK.asp?NewsID=<%=NewsID%>">
<tr>
<td align="right" bgcolor="#FFFFFF">所属专题:</td>
<td bgcolor="#FFFFFF" colspan="3">
<select size="1" name="SpecialID" onMouseOver="window.status='点这里选择文章专题';return true;" onMouseOut="window.status='';return true;">
<% set rs4=server.CreateObject ("ADODB.RecordSet")
rs4.Source="select * from "& db_Special_Table &""
rs4.Open rs4.source,conn,1,1%>
<option value=0 <%if rs("SpecialID")=0 then Response.Write "selected"%>>-----------------</option>
<%if rs4.EOF then %>
<option value=0>暂无任何专题</option>
<%else
while not rs4.EOF
SpecialID=rs4("SpecialID")
%>
<option value=<%=SpecialID%> <%if rs("SpecialID")=SpecialID then Response.Write " selected"%>><%=trim(rs4("E_SpecialName"))%></option>
<%
rs4.MoveNext
wend
end if
rs4.close
set rs4=nothing
%>
</select>
第二专题
<select size="1" name="SpecialID2" onMouseOver="window.status='点这里选择文章专题';return true;" onMouseOut="window.status='';return true;">
<% set rs4=server.CreateObject ("ADODB.RecordSet")
rs4.Source="select * from "& db_Special_Table &""
rs4.Open rs4.source,conn,1,1%>
<option value=0 <%if rs("SpecialID2")=0 then Response.Write "selected"%>>-----------------</option>
<%if rs4.EOF then %>
<option value=0>暂无任何专题</option>
<%else
while not rs4.EOF
SpecialID2=rs4("SpecialID")
%>
<option value=<%=SpecialID2%> <%if rs("SpecialID2")=SpecialID2 then Response.Write " selected"%>><%=trim(rs4("E_SpecialName"))%></option>
<%
rs4.MoveNext
wend
end if
rs4.close
set rs4=nothing
%>
</select>
</td>
</tr>
<tr>
<td align="right" class="unnamed2" valign="middle" bgcolor="#FFFFFF">文章标题:</td>
<td bgcolor="#FFFFFF" colspan="3"> <span style='cursor:hand' title='缩短对话框' onClick='if (me.size>10)me.size=me.size-2'>-</span>
<input name="title" id=me type="TEXT" size=60 maxlength=100 style="background-color:ffffff;border: 1 double" value="<%=trim(rs("Title"))%>" onMouseOver="window.status='在这里修改文章标题';return true;" onMouseOut="window.status='';return true;" title="在这里修改文章标题">
<span style='cursor:hand' title='加长对话框' onClick='if (me.size<102)me.size=me.size+2'>+</span>
<SELECT size=1 id=title_color name=title_color LANGUAGE=javascript onchange="return title_color_onchange()" style="width:55">
<OPTION value="">颜色</OPTION>
<OPTION <%if rs("titlecolor")="0" then%>selected<%end if%> value="0">缺省</OPTION>
<OPTION <%if rs("titlecolor")="#000000" then%>selected<%end if%> value="#000000" style="background-color:#000000"></OPTION>
<OPTION <%if rs("titlecolor")="#FFFFFF" then%>selected<%end if%> value="#FFFFFF" style="background-color:#FFFFFF"></OPTION>
<OPTION <%if rs("titlecolor")="#008000" then%>selected<%end if%> value="#008000" style="background-color:#008000"></OPTION>
<OPTION <%if rs("titlecolor")="#800000" then%>selected<%end if%> value="#800000" style="background-color:#800000"></OPTION>
<OPTION <%if rs("titlecolor")="#808000" then%>selected<%end if%> value="#808000" style="background-color:#808000"></OPTION>
<OPTION <%if rs("titlecolor")="#000080" then%>selected<%end if%> value="#000080" style="background-color:#000080"></OPTION>
<OPTION <%if rs("titlecolor")="#800080" then%>selected<%end if%> value="#800080" style="background-color:#800080"></OPTION>
<OPTION <%if rs("titlecolor")="#808080" then%>selected<%end if%> value="#808080" style="background-color:#808080"></OPTION>
<OPTION <%if rs("titlecolor")="#FFFF00" then%>selected<%end if%> value="#FFFF00" style="background-color:#FFFF00"></OPTION>
<OPTION <%if rs("titlecolor")="#00FF00" then%>selected<%end if%> value="#00FF00" style="background-color:#00FF00"></OPTION>
<OPTION <%if rs("titlecolor")="#00FFFF" then%>selected<%end if%> value="#00FFFF" style="background-color:#00FFFF"></OPTION>
<OPTION <%if rs("titlecolor")="#FF00FF" then%>selected<%end if%> value="#FF00FF" style="background-color:#FF00FF"></OPTION>
<OPTION <%if rs("titlecolor")="#FF0000" then%>selected<%end if%> value="#FF0000" style="background-color:#FF0000"></OPTION>
<OPTION <%if rs("titlecolor")="#0000FF" then%>selected<%end if%> value="#0000FF" style="background-color:#0000FF"></OPTION>
<OPTION <%if rs("titlecolor")="#008080" then%>selected<%end if%> value="#008080" style="background-color:#008080"></OPTION>
</SELECT>
<SELECT size=1 id=title_type name=title_type LANGUAGE=javascript onchange="return title_type_onchange()" style="width:55">
<OPTION value="0">类型</OPTION>
<OPTION <%if rs("titletype")="0" then%>selected<%end if%> value="0">普通</OPTION>
<OPTION <%if rs("titletype")="b" then%>selected<%end if%> value="b">加粗</OPTION>
<OPTION <%if rs("titletype")="i" then%>selected<%end if%> value="i">倾斜</OPTION>
<OPTION <%if rs("titletype")="u" then%>selected<%end if%> value="u">下划线</OPTION>
</SELECT>
</SELECT>
<SELECT size=1 id=title_size name=title_size LANGUAGE=javascript onchange="return title_size_onchange()" style="width:55">
<OPTION value="0" selected>不评</OPTION>
<OPTION <%if rs("titlesize")="0" then%>selected<%end if%> value="0">不评</OPTION>
<OPTION <%if rs("titlesize")="1" then%>selected<%end if%> value="1">要评</OPTION>
</SELECT>
</td>
</tr>
<tr>
<td align="right" class="unnamed2" valign="middle" bgcolor="#FFFFFF">链接文章:</td>
<td bgcolor="#FFFFFF" colspan="3"> <span style='cursor:hand' title='缩短对话框' onClick='if (title_face.size>10)title_face.size=title_face.size-2'>-</span>
<input name="title_face" id=title_face type="TEXT" size=30 maxlength=100 style="background-color:ffffff;border: 1 double" value="<%=trim(rs("titleface"))%>" onMouseOver="window.status='文章为直接链接文章时,请填写网址';return true;" onMouseOut="window.status='';return true;" title="文章为直接链接文章时,请填写网址">
<span style='cursor:hand' title='加长对话框' onClick='if (title_face.size<102)title_face.size=title_face.size+2'>+</span>
(文章为直接链接文章时,请填写网址)</td>
</tr>
<tr>
<td align="right" class="unnamed2" valign="middle" bgcolor="#FFFFFF">文章来源:</td>
<td bgcolor="#FFFFFF" colspan="3"> <span style='cursor:hand' title='缩短对话框' onClick='if (message.size>10)message.size=message.size-2'>-</span>
<input name="Original" id=message type="TEXT" size=30 maxlength=100 style="background-color:ffffff;border: 1 double" value="<%=trim(rs("Original"))%>" onMouseOver="window.status='按这个按钮修改文章来源';return true;" onMouseOut="window.status='';return true;" title="按这个按钮修改文章来源">
<span style='cursor:hand' title='加长对话框' onClick='if (message.size<102)message.size=message.size+2'>+</span>
(网页模版时,请填写网址)</td>
</tr>
<tr>
<td align="right" class="unnamed2" valign="middle" bgcolor="#FFFFFF">文章作者:</td>
<td bgcolor="#FFFFFF" colspan="3"><span style='cursor:hand' title='缩短对话框' onClick='if (mess.size>10)mess.size=mess.size-2'>-</span>
<input name="Author" id=mess type="TEXT" size=30 maxlength=100 style="background-color:ffffff;border: 1 double" value="<%=trim(rs("Author"))%>" onMouseOver="window.status='按这个按钮修改文章作者';return true;" onMouseOut="window.status='';return true;" title="按这个按钮修改文章作者">
<span style='cursor:hand' title='加长对话框' onClick='if (mess.size<102)mess.size=mess.size+2'>+</span>
</td>
</tr>
<tr>
<td align="right" valign="top" class="unnamed2" bgcolor="#FFFFFF">文章内容:<br><font color="#FF0000">*</font><br><br><br><br><br><br><br><br><br><br>换行请按Shift+Enter <br><br>另起一段请按Enter</td>
<td colspan="3">
<select name="selectFont" onChange="FormatText('fontname', selectFont.options[selectFont.selectedIndex].value);document.form1.selectFont.options[0].selected = true;" style="font-family: 宋体; font-size: 9pt" onMouseOver="window.status='选择选定文字的字体。';return true;" onMouseOut="window.status='';return true;">
<option selected>选择字体</option>
<option value="宋体">宋体</option>
<option value="楷体_GB2312">楷体</option>
<option value="新宋体">新宋体</option>
<option value="黑体">黑体</option>
<option value="隶书">隶书</option>
<option value="幼圆">幼圆</option>
<OPTION value="Andale Mono">Andale Mono</OPTION>
<OPTION value=Arial>Arial</OPTION>
<OPTION value="Arial Black">Arial Black</OPTION>
<OPTION value="Book Antiqua">Book Antiqua</OPTION>
<OPTION value="Century Gothic">Century Gothic</OPTION>
<OPTION value="Comic Sans MS">Comic Sans MS</OPTION>
<OPTION value="Courier New">Courier New</OPTION>
<OPTION value=Georgia>Georgia</OPTION>
<OPTION value=Impact>Impact</OPTION>
<OPTION value=Tahoma>Tahoma</OPTION>
<OPTION value="Times New Roman" >Times New Roman</OPTION>
<OPTION value="Trebuchet MS">Trebuchet MS</OPTION>
<OPTION value="Script MT Bold">Script MT Bold</OPTION>
<OPTION value=Stencil>Stencil</OPTION>
<OPTION value=Verdana>Verdana</OPTION>
<OPTION value="Lucida Console">Lucida Console</OPTION>
</select>
<select name="selectColour" onChange="FormatText('ForeColor',selectColour.options[selectColour.selectedIndex].value);document.form1.selectColour.options[0].selected = true;" onMouseOver="window.status='选择选定文字的颜色。';return true;" onMouseOut="window.status='';return true;">
<option value="0" selected>选择文字颜色</option>
<option style="background-color:#F0F8FF;color: #F0F8FF" value="#F0F8FF">#F0F8FF</option>
<option style="background-color:#FAEBD7;color: #FAEBD7" value="#FAEBD7">#FAEBD7</option>
<option style="background-color:#00FFFF;color: #00FFFF" value="#00FFFF">#00FFFF</option>
<option style="background-color:#7FFFD4;color: #7FFFD4" value="#7FFFD4">#7FFFD4</option>
<option style="background-color:#F0FFFF;color: #F0FFFF" value="#F0FFFF">#F0FFFF</option>
<option style="background-color:#F5F5DC;color: #F5F5DC" value="#F5F5DC">#F5F5DC</option>
<option style="background-color:#FFE4C4;color: #FFE4C4" value="#FFE4C4">#FFE4C4</option>
<option style="background-color:#000000;color: #000000" value="#000000">#000000</option>
<option style="background-color:#FFEBCD;color: #FFEBCD" value="#FFEBCD">#FFEBCD</option>
<option style="backgr
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -