📄 zhuantiadd.asp
字号:
<!--#include file="conn.asp"-->
<%if session("admin")="" then
response.Write "<script language='javascript'>alert('网络超时或您还没有登录!');window.location.href='login.asp';</script>"
response.End
else
if session("flag")>1 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限!</b></font></div>"
response.End
end if
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=redcaff%> 添加专题文章</title>
<script language="javascript">
<!--
function checkdata()
{
if (document.form1.title.value=="")
{
alert("对不起,请输入文章标题!")
document.form1.title.focus()
return false
}
if (document.form1.viewhtml.checked == true)
{
alert("对不起,请取消“查看HTML源代码”后再添加!")
document.form1.viewhtml.focus()
return false
}
if (document.form1.Content.value.length==0)
{
alert("对不起,请输入文章内容!")
//document.form1.content.focus()
return false
}
}
function MM_goToURL() { //v3.0
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
<script language="JavaScript">
<!-- Hide from older browsers...
//Function to format text in the text box
function FormatText(command, option){
frames.message.document.execCommand(command, true, option);
frames.message.focus();
}
//Function to add image
function AddImage(){
imagePath = prompt('请输入图片地址', 'http://');
if ((imagePath != null) && (imagePath != "")){
frames.message.document.execCommand('InsertImage', false, imagePath);
frames.message.focus();
}
frames.message.focus();
}
//Function to clear form
function ResetForm(){
if (window.confirm('确认要清空对话框内容?')){
frames.message.document.body.innerHTML = '';
return true;
}
return false;
}
//Function to open pop up window
function openWin(theURL,winName,features) {
window.open(theURL,winName,features);
}
function setMode(newMode)
{
bTextMode = newMode;
var cont;
if (bTextMode) {
cleanHtml();
cleanHtml();
cont=message.document.body.innerHTML;
message.document.body.innerText=cont;
} else {
cont=message.document.body.innerText;
message.document.body.innerHTML=cont;
}
message.focus();
}
function cleanHtml()
{
var fonts = message.document.body.all.tags("FONT");
var curr;
for (var i = fonts.length - 1; i >= 0; i--) {
curr = fonts[i];
if (curr.style.backgroundColor == "#ffffff") curr.outerHTML = curr.innerHTML;
}
}
// -->
</script>
<script language="JavaScript">
function help()
{
var helpmess;
helpmess="---------------填写帮助---------------\r\n\r\n"+
"1.请不要发表有危险性的脚本。\r\n\r\n"+
"2.如果要书写源代码,请选中\r\n\r\n"+
" 查看HTML源代码书写.\r\n\r\n"+
"3.需要你自己运行,才能看效果.\r\n\r\n"+
"4.如果书写js,尽量不要在这儿书写.\r\n\r\n";
alert(helpmess);
}
</script>
<script src="edit.js" type="text/javascript"></script>
<link href="../css.css" rel="stylesheet" type="text/css">
</head>
<body rightmargin="0" >
<form name="form1" method="post" action="zhuantiadd2.asp" OnSubmit="return checkdata()" onReset="return ResetForm();">
<center>
<table border="0" cellpadding="0" cellspacing="5" >
<tr align="center">
<td colspan="4" height="30" valign="middle"> <b class="unnamed2">添
加 专 题 文 章</b></td>
</tr>
<tr>
<td width="67" align="right" valign="middle">文章标题:</td>
<td width="422" 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=35 maxlength=100 class="wenbenkuang" onMouseOver="window.status='在这里输入要添加的文章标题,必填';return true;" onMouseOut="window.status='';return true;" title='在这里输入要添加的文章标题,必填'> <br>
</td>
</tr>
<tr>
<td width="67" align="right" valign="top" >文章内容:<br>
<font color="#FF0000">*</font></td>
<td width="422" colspan="3" valign="top" > <br>
<script language="javascript">
document.write ('<iframe src="../textbox.asp?action=new" id="message" width="400" height="400" align=center></iframe>')
frames.message.document.designMode = "On";
</script> </td>
</tr>
<tr align="center">
<td colspan="4" height="30" >
<input type="button" value=" 返 回 " onclick="javascript:history.go(-1)" class="go-wenbenkuang">
<input type="submit" value=" 添 加 " name="Submit" class="go-wenbenkuang" OnClick="document.form1.Content.value = frames.message.document.body.innerHTML;">
<input type="reset" value=" 清 除 " name="Reset" class="go-wenbenkuang">
<input type="hidden" name="Content" value="">
</td>
</tr>
</table>
</center>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -