📄 admin_mb_add.asp
字号:
}
if (theForm.pich.value.length > 3)
{
alert("在 图片高度 域中,请最多输入 3 个字符。");
theForm.pich.focus();
return (false);
}
var checkOK = "0123456789-";
var checkStr = theForm.pich.value;
var allValid = true;
var validGroups = true;
var decPoints = 0;
var allNum = "";
for (i = 0; i < checkStr.length; i++)
{
ch = checkStr.charAt(i);
for (j = 0; j < checkOK.length; j++)
if (ch == checkOK.charAt(j))
break;
if (j == checkOK.length)
{
allValid = false;
break;
}
allNum += ch;
}
if (!allValid)
{
alert("在 图片高度 域中,只能输入 数字 字符。");
theForm.pich.focus();
return (false);
}
if (theForm.picx.value == "")
{
alert("请在 x横排显示数 域中输入值。");
theForm.picx.focus();
return (false);
}
if (theForm.picx.value.length < 1)
{
alert("在 x横排显示数 域中,请至少输入 1 个字符。");
theForm.picx.focus();
return (false);
}
if (theForm.picx.value.length > 3)
{
alert("在 x横排显示数 域中,请最多输入 3 个字符。");
theForm.picx.focus();
return (false);
}
var checkOK = "0123456789-";
var checkStr = theForm.picx.value;
var allValid = true;
var validGroups = true;
var decPoints = 0;
var allNum = "";
for (i = 0; i < checkStr.length; i++)
{
ch = checkStr.charAt(i);
for (j = 0; j < checkOK.length; j++)
if (ch == checkOK.charAt(j))
break;
if (j == checkOK.length)
{
allValid = false;
break;
}
allNum += ch;
}
if (!allValid)
{
alert("在 x横排显示数 域中,只能输入 数字 字符。");
theForm.picx.focus();
return (false);
}
if (theForm.picy.value == "")
{
alert("请在 x竖排显示数 域中输入值。");
theForm.picy.focus();
return (false);
}
if (theForm.picy.value.length < 1)
{
alert("在 x竖排显示数 域中,请至少输入 1 个字符。");
theForm.picy.focus();
return (false);
}
if (theForm.picy.value.length > 3)
{
alert("在 x竖排显示数 域中,请最多输入 3 个字符。");
theForm.picy.focus();
return (false);
}
var checkOK = "0123456789-";
var checkStr = theForm.picy.value;
var allValid = true;
var validGroups = true;
var decPoints = 0;
var allNum = "";
for (i = 0; i < checkStr.length; i++)
{
ch = checkStr.charAt(i);
for (j = 0; j < checkOK.length; j++)
if (ch == checkOK.charAt(j))
break;
if (j == checkOK.length)
{
allValid = false;
break;
}
allNum += ch;
}
if (!allValid)
{
alert("在 x竖排显示数 域中,只能输入 数字 字符。");
theForm.picy.focus();
return (false);
}
if (theForm.pictitle.value == "")
{
alert("请在 图片标题显示字数 域中输入值。");
theForm.pictitle.focus();
return (false);
}
if (theForm.pictitle.value.length < 1)
{
alert("在 图片标题显示字数 域中,请至少输入 1 个字符。");
theForm.pictitle.focus();
return (false);
}
if (theForm.pictitle.value.length > 3)
{
alert("在 图片标题显示字数 域中,请最多输入 3 个字符。");
theForm.pictitle.focus();
return (false);
}
var checkOK = "0123456789-";
var checkStr = theForm.pictitle.value;
var allValid = true;
var validGroups = true;
var decPoints = 0;
var allNum = "";
for (i = 0; i < checkStr.length; i++)
{
ch = checkStr.charAt(i);
for (j = 0; j < checkOK.length; j++)
if (ch == checkOK.charAt(j))
break;
if (j == checkOK.length)
{
allValid = false;
break;
}
allNum += ch;
}
if (!allValid)
{
alert("在 图片标题显示字数 域中,只能输入 数字 字符。");
theForm.pictitle.focus();
return (false);
}
if (theForm.pictitlecolor.value == "")
{
alert("请在 图片标题颜色 域中输入值。");
theForm.pictitlecolor.focus();
return (false);
}
if (theForm.pictitlecolor.value.length < 7)
{
alert("在 图片标题颜色 域中,请至少输入 7 个字符。");
theForm.pictitlecolor.focus();
return (false);
}
if (theForm.pictitlecolor.value.length > 7)
{
alert("在 图片标题颜色 域中,请最多输入 7 个字符。");
theForm.pictitlecolor.focus();
return (false);
}
var checkOK = "#ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-";
var checkStr = theForm.pictitlecolor.value;
var allValid = true;
var validGroups = true;
for (i = 0; i < checkStr.length; i++)
{
ch = checkStr.charAt(i);
for (j = 0; j < checkOK.length; j++)
if (ch == checkOK.charAt(j))
break;
if (j == checkOK.length)
{
allValid = false;
break;
}
}
if (!allValid)
{
alert("在 图片标题颜色 域中,只能输入 字母与数字 字符。");
theForm.pictitlecolor.focus();
return (false);
}
if (theForm.pictitlesize.value == "")
{
alert("请在 图片标题字号 域中输入值。");
theForm.pictitlesize.focus();
return (false);
}
if (theForm.pictitlesize.value.length < 1)
{
alert("在 图片标题字号 域中,请至少输入 1 个字符。");
theForm.pictitlesize.focus();
return (false);
}
if (theForm.pictitlesize.value.length > 5)
{
alert("在 图片标题字号 域中,请最多输入 5 个字符。");
theForm.pictitlesize.focus();
return (false);
}
if (theForm.listshu.value == "")
{
alert("请在 新闻显示条数 域中输入值。");
theForm.listshu.focus();
return (false);
}
if (theForm.listshu.value.length < 1)
{
alert("在 新闻显示条数 域中,请至少输入 1 个字符。");
theForm.listshu.focus();
return (false);
}
if (theForm.listshu.value.length > 3)
{
alert("在 新闻显示条数 域中,请最多输入 3 个字符。");
theForm.listshu.focus();
return (false);
}
var checkOK = "0123456789-";
var checkStr = theForm.listshu.value;
var allValid = true;
var validGroups = true;
var decPoints = 0;
var allNum = "";
for (i = 0; i < checkStr.length; i++)
{
ch = checkStr.charAt(i);
for (j = 0; j < checkOK.length; j++)
if (ch == checkOK.charAt(j))
break;
if (j == checkOK.length)
{
allValid = false;
break;
}
allNum += ch;
}
if (!allValid)
{
alert("在 新闻显示条数 域中,只能输入 数字 字符。");
theForm.listshu.focus();
return (false);
}
if (theForm.tb.value == "")
{
alert("请在 标题字数 域中输入值。");
theForm.tb.focus();
return (false);
}
if (theForm.tb.value.length < 1)
{
alert("在 标题字数 域中,请至少输入 1 个字符。");
theForm.tb.focus();
return (false);
}
if (theForm.tb.value.length > 2)
{
alert("在 标题字数 域中,请最多输入 2 个字符。");
theForm.tb.focus();
return (false);
}
var checkOK = "0123456789-";
var checkStr = theForm.tb.value;
var allValid = true;
var validGroups = true;
for (i = 0; i < checkStr.length; i++)
{
ch = checkStr.charAt(i);
for (j = 0; j < checkOK.length; j++)
if (ch == checkOK.charAt(j))
break;
if (j == checkOK.length)
{
allValid = false;
break;
}
}
if (!allValid)
{
alert("在 标题字数 域中,只能输入 数字 字符。");
theForm.tb.focus();
return (false);
}
return (true);
}
//--></script>
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" class="table">
<tr><td colspan="3" class="bg_tr" align="center"><strong>添加/编辑文章频道模版</strong></td></tr>
<form method="POST" action="?action=savemb&lx=<%=lx%><%if id<>"" then response.write "&id="&id%>" onSubmit="return FrontPage_Form1_Validator(this)" language="JavaScript" name="FrontPage_Form1">
<tr>
<td width=19% bgcolor="#FFFFFF" align="center"><b>标题</b></td>
<td bgcolor="#FFFFFF" colspan="2">
<input type="text" name="title" size="58" maxlength="20" value="<%if id<>"" then response.write title%>" <%if lx=2 then response.write "readonly"%>></td>
</tr>
<tr>
<td width=19% class="forumRowHighlight" align="center">
<b>新闻显示页面</b><br>
(news_view.asp)<br>
<font color="#993300">
可以使用<br>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -