📄 miscell_edit.asp.bak
字号:
</tr>
<input type="hidden" name=keyword2 value="<%=keyword2%>">
<%
else
if mid(qxflag,8,1)="1" then
%>
<tr>
<td width=70 align=right>关键字:</td>
<td><input type="text" value="<%=keyword%>" name=keyword maxlength=60 size=40>请用“/”隔开,最多填三个关键词</td>
</tr>
<%if enflag="1" then%>
<tr>
<td width=70 align=right>(英文):</td>
<td><input type="text" value="<%=keyword2%>" name=keyword2 maxlength=60 size=40></td>
</tr>
<%end if%>
<%
else
%>
<input type="hidden" name=keyword value="<%=keyword%>">
<input type="hidden" name=keyword2 value="<%=keyword2%>">
<%
end if
end if
%>
<%if mid(qxflag,10,1)="1" then%>
<tr>
<td width=70 align=right>作者:</td>
<td>
<input type="text" value="<%=author%>" name=author maxlength=20 size=20>
出处:<input type="text" value="<%=newsfrom%>" name=newsfrom maxlength=50 size=30>
</td>
</tr>
<tr>
<td width=70 align=right>发布日期:</td>
<td><input type="text" value="<%=pubdate%>" name=pubdate maxlength=20 size=20></td>
</tr>
<%end if%>
<%if mid(qxflag,5,1)="1" then%>
<tr>
<td width=70 align=right>链接网址:</td>
<td><input type="text" value="<%=website%>" name=website maxlength=60 size=48>网址前需要加(http://)</td>
</tr>
<input type="hidden" name=content value="<%=content%>">
<input type="hidden" name=content2 value="<%=content2%>">
<%
else
if classcode="912" then
%>
<tr>
<td width=70 align=right>直接转向:</td>
<td><input type="text" value="<%=website%>" name=website maxlength=60 size=40>若填写内容后将直接转向指定地址</td>
</tr>
<%end if%>
<tr>
<td colspan=2>
<img src="../admin/images/bold.gif" onclick="format('bold')" style="cursor:hand;" title="粗体">
<img src="../admin/images/italicize.gif" onclick="format('italic')" style="cursor:hand;" title="斜体">
<img src="../admin/images/underline.gif" onclick="format('underline')" style="cursor:hand;" title="下划线">
<img src="../admin/images/center.gif" onclick="format('center')" style="cursor:hand;" title="居中">
<img src="../admin/images/right.gif" onclick="format('right')" style="cursor:hand;" title="右对齐">
<img src="../admin/images/space.gif" onclick="format('space')" style="cursor:hand;" title="空格">
<img src="../admin/images/url.gif" onclick="format('url')" style="cursor:hand;" title="超链接。如<a href='http://www.ibw.com.cn' target=_blank>网新科技</a>">
<img src="../admin/images/email.gif" onclick="format('email')" style="cursor:hand;" title="邮件。如<a href='mailto:xu256@sina.com'>xu256@sina.com</a>">
<img src="../admin/images/image.gif" onclick="format('image')" style="cursor:hand;" title="图片。如<img src='http://www.ourgo.com/815.jpg'>">
<select name=font onchange="formatfont(this.options[this.selectedIndex].value)">
<option value="宋体" selected>宋体
<option value="楷体_gb2312">楷体GB2312
<option value="黑体">黑体
<option value="隶书">隶书
<option value="Arial">Arial
<option value="Arial Black">Arial Black
<option value="Impact">Impact
<option value="Tahoma">Tahoma
<option value="Times New Roman">Times New Roman
<option value="Verdana">Verdana
</select>
<select name=fontsize style="width:50px" onchange="formatsize(this.options[this.selectedIndex].value)">
<option value="6" >一号
<option value="5">二号
<option value="4">三号
<option value="3">四号
<option value="2"selected>五号
</select>
<select name=color style="width:70px" onchange="formatcolor(this.options[this.selectedIndex].value)">
<option style="background-color:000000;color=000000" value="000000">000000
<option style="background-color:ffffff;color=ffffff" value="ffffff">ffffff
<option style="background-color:808080;color=808080" value="808080">808080
<option style="background-color:c0c0c0;color=c0c0c0" value="c0c0c0">c0c0c0
<option style="background-color:ff0000;color=ff0000" value="ff0000">ff0000
<option style="background-color:008000;color=008000" value="008000">008000
<option style="background-color:0000ff;color=0000ff" value="0000ff">0000ff
<option style="background-color:ffff00;color=ffff00" value="ffff00">ffff00
<option style="background-color:800080;color=800080" value="800080">800080
<option style="background-color:808000;color=808000" value="808000">808000
<option style="background-color:00ffff;color=00ffff" value="00ffff">00ffff
<option style="background-color:00ff00;color=00ff00" value="00ff00">00ff00
<option style="background-color:800000;color=800000" value="800000">800000
<option style="background-color:008080;color=008080" value="008080">008080
<option style="background-color:ff00ff;color=ff00ff" value="ff00ff">ff00ff
<option style="background-color:006400;color=006400" value="006400">006400
<option style="background-color:1e90ff;color=1e90ff" value="1e90ff">1e90ff
<option style="background-color:20b2aa;color=20b2aa" value="20b2aa">20b2aa
<option style="background-color:2e8b57;color=2e8b57" value="2e8b57">2e8b57
<option style="background-color:48d1cc;color=48d1cc" value="48d1cc">48d1cc
<option style="background-color:4169e1;color=4169e1" value="4169e1">4169e1
<option style="background-color:4682b4;color=4682b4" value="4682b4">4682b4
<option style="background-color:483d8b;color=483d8b" value="483d8b">483d8b
<option style="background-color:8b008b;color=8b008b" value="8b008b">8b008b
<option style="background-color:8b4513;color=8b4513" value="8b4513">8b4513
<option style="background-color:d3d3d3;color=d3d3d3" value="d3d3d3">d3d3d3
<option style="background-color:d8bfd8;color=d8bfd8" value="d8bfd8">d8bfd8
<option style="background-color:deb887;color=deb887" value="deb887">deb887
<option style="background-color:e6e6fa;color=e6e6fa" value="e6e6fa">e6e6fa
<option style="background-color:e9967a;color=e9967a" value="e9967a">e9967a
<option style="background-color:eee8aa;color=eee8aa" value="eee8aa">eee8aa
<option style="background-color:f08080;color=f08080" value="f08080">f08080
<option style="background-color:f5deb3;color=f5deb3" value="f5deb3">f5deb3
<option style="background-color:ff1493;color=ff1493" value="ff1493">ff1493
<option style="background-color:ff4500;color=ff4500" value="ff4500">ff4500
<option style="background-color:ffd700;color=ffd700" value="ffd700">ffd700
<option style="background-color:fffacd;color=fffacd" value="fffacd">fffacd
<option style="background-color:ffebcd;color=ffebcd" value="ffebcd">ffebcd
</select>
</td>
</tr>
<%if baseclass="100" then%>
<tr>
<td width=70 align=right></td>
<td><font color=800000>注:若内容以“http://”开头则直接链接到相关网址</font></td>
</tr>
<%end if%>
<tr>
<td width=70 align=right>详细内容:</td>
<td><textarea rows=12 cols=66 name=content style="font-family:宋体" ><%=content%></textarea></td>
</tr>
<%if enflag="1" then%>
<tr>
<td width=70 align=right>内容(英):</td>
<td><textarea rows=12 cols=66 name=content2 style="font-family:宋体" ><%=content2%></textarea></td>
</tr>
<%end if%>
<%end if%>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr height=40>
<td></td>
<td>
<input type="submit" name="submit" value="确认提交" style="width:80px;height:26px">
<input type=button value='预览' name=Button onclick=gopreview() style="width:60px;height:26px">
</td>
</tr>
</table>
</form>
<form name=preview method=post action="content_view.asp" target=winview>
<input type=hidden name=viewtitle value=""><input type=hidden name=viewbody value="">
</form>
<script language=Javascript>
function format(flag)
{
switch(flag){
case "bold":
begintxt="<b>";
endtxt="</b>";
break;
case "italic":
begintxt="<i>";
endtxt="</i>";
break;
case "underline":
begintxt="<u>";
endtxt="</u>";
break;
case "center":
begintxt="<center>";
endtxt="</center>";
break;
case "right":
begintxt="<div align=right>";
endtxt="</div>";
break;
case "space":
begintxt=" ";
endtxt="";
break;
case "url":
begintxt="<a href='http://' target=_blank>";
endtxt="</a>";
break;
case "email":
begintxt="<a href='mailto:'>";
endtxt="</a>";
break;
case "image":
begintxt="<img src=''>";
endtxt="";
break;
}
dealcontent()
}
function formatcolor(newvalue)
{
begintxt="<font color="+newvalue+">"
endtxt="</font>";
dealcontent()
}
function formatfont(newvalue)
{
begintxt="<font face="+newvalue+">"
endtxt="</font>";
dealcontent()
}
function formatsize(newvalue)
{
begintxt="<font size="+newvalue+">"
endtxt="</font>";
dealcontent()
}
function dealcontent()
{
if ((document.selection)&&(document.selection.type == "Text"))
{
var range = document.selection.createRange();
var ch_text=range.text;
range.text = begintxt + ch_text + endtxt;
}
else
{
document.editform.content.value=begintxt+document.editform.content.value+endtxt;
document.editform.content.focus();
}
}
function gopreview()
{
document.preview.viewtitle.value=document.editform.title.value;
document.preview.viewbody.value=document.editform.content.value;
window.open('content_view.asp', 'winview', 'scrollbars=yes,width=500,height=400');
document.preview.submit()
}
function checkform(form)
{
if(form("title").value==""){alert("请填入标题名称!");form("title").focus();return false;}
return true;
}
</script>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -