📄 admin_set.asp
字号:
<%
'ON ERROR RESUME NEXT
if Request.Cookies("admindj")<>"1" then
Response.Write "<BR><BR><BR><BR><center>权限不足,你没有此功能的管理权限"
Response.end
end if
set conndb=server.CreateObject("adodb.connection")
DBPath = Server.MapPath("../edit/db/#ewebeditor.asp")
conndb.open "provider=microsoft.jet.oledb.4.0; data source="&DBpath
%>
<!--#include file = admin_chk.asp -->
<!--#include file = admin_conn.asp -->
<!--#include file = titleb.asp -->
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<!--#include file = language.asp -->
<STYLE type="text/css">
<!--
a:link {text-decoration: none; font-family: AdobeSm; color: #000000 }
a:visited {text-decoration: none; color: #000000 }
A:hover {COLOR: green; FONT-FAMILY: "宋体,MingLiU"; TEXT-DECORATION: underline}
body {font-size: 9pt; font-family: 宋体,MingLiU, Arial;color: #000000}
TD {FONT-SIZE: 9pt; FONT-FAMILY: "宋体,MingLiU, Arial";color: #000000;line-height: 120%;table-layout:fixed;word-break:break-all}
p {FONT-SIZE: 9pt; FONT-FAMILY: "宋体,MingLiU, Arial";color: #000000}
input {FONT-SIZE: 9pt; FONT-FAMILY: "宋体,MingLiU, Arial";color: #000000}
body {margin-top: 0; margin-bottom: 0;margin-left:0;margin-right:0; color: #000000}
select {FONT-SIZE: 9PT;font-family: 宋体}
option {FONT-SIZE: 9pt;font-family: 宋体}
textarea {FONT-SIZE: 9pt;font-family: 宋体}
-->
</STYLE>
<p align="center"><br>
<b>新闻系统设置中心</b></p>
<div align="center">
<table border="1" cellpadding="3" width="750" id="table1" style="border-collapse: collapse" bordercolor="#C0C0C0">
<tr>
<td bgcolor="#F8F8F8" width="136" align="center" background="../images/bj3.jpg" height="25">
栏目模版</td>
<td bgcolor="#F8F8F8" width="240" background="../images/bj3.jpg" height="25">
[<a href="admin_mb.asp">进入栏目模版设置</a>]</td>
<td bgcolor="#F8F8F8" width="353" background="../images/bj3.jpg" height="25"> </td>
</tr>
<tr>
<td width="136" align="center" bgcolor="#F8F8F8" background="../images/bj3.jpg" height="25">
搜索模版</td>
<td width="240" bgcolor="#F8F8F8" background="../images/bj3.jpg" height="25">
[<a href="admin_mb_so.asp">进入搜索页面模版设置</a>]
<a target="_blank" href="../so.asp">so.asp</a></td>
<td width="353" bgcolor="#F8F8F8" background="../images/bj3.jpg" height="25"> </td>
</tr>
<tr>
<td bgcolor="#F8F8F8" width="136" align="center" background="../images/bj3.jpg" height="25">
投稿模版</td>
<td bgcolor="#F8F8F8" width="240" background="../images/bj3.jpg" height="25">
[<a href="admin_mb_tg.asp">进入投稿页面模版设置</a>]
<a target="_blank" href="../utg.asp">utg.asp</a></td>
<td bgcolor="#F8F8F8" width="353" background="../images/bj3.jpg" height="25">
<a href="admin_set_tglm.asp">投稿栏目设置</a></td>
</tr>
</table>
</div>
<BR><center>
<table border="1" cellpadding="3" width="750" id="table2" style="border-collapse: collapse" bordercolor="#C0C0C0">
<%
set rs = Server.CreateObject("ADODB.RecordSet")
rs.Open "select * from [eWebEditor_Style]",conndb,1,1
%>
<form method="POST" action="admin_set_edit.asp"><tr>
<td bgcolor="#F8F8F8" width="736" align="center" background="../images/bj5.jpg" height="25" colspan="3">
<p align="justify"><font color="#FFFFFF"><b>上传文件设置</b></font></td>
</tr>
<tr>
<td bgcolor="#F8F8F8" width="136" align="center" background="../images/bj3.jpg" height="25">
图片上传类型</td>
<td bgcolor="#F8F8F8" width="350" background="../images/bj3.jpg" height="25">
<input type="text" name="S_ImageExt" size="49" value="<%=ucase(rs("S_ImageExt"))%>"></td>
<td bgcolor="#F8F8F8" width="250" background="../images/bj3.jpg" height="25">
用 | 分开</td>
</tr>
<tr>
<td bgcolor="#F8F8F8" width="136" align="center" background="../images/bj3.jpg" height="25">
图片上传大小</td>
<td bgcolor="#F8F8F8" width="350" background="../images/bj3.jpg" height="25">
<input type="text" name="S_ImageSize" size="23" value="<%=rs("S_ImageSize")%>">
KB</td>
<td bgcolor="#F8F8F8" width="250" background="../images/bj3.jpg" height="25">
0 为无限制</td>
</tr>
<tr>
<td bgcolor="#F8F8F8" width="136" align="center" background="../images/bj3.jpg" height="25">
媒体上传类型</td>
<td bgcolor="#F8F8F8" width="350" background="../images/bj3.jpg" height="25">
<input type="text" name="S_MediaExt" size="49" value="<%=ucase(rs("S_MediaExt"))%>"></td>
<td bgcolor="#F8F8F8" width="250" background="../images/bj3.jpg" height="25">
用 | 分开</td>
</tr>
<tr>
<td bgcolor="#F8F8F8" width="136" align="center" background="../images/bj3.jpg" height="25">
媒体上传大小</td>
<td bgcolor="#F8F8F8" width="350" background="../images/bj3.jpg" height="25">
<input type="text" name="S_MediaSize" size="23" value="<%=rs("S_MediaSize")%>">
KB</td>
<td bgcolor="#F8F8F8" width="250" background="../images/bj3.jpg" height="25">0 为无限制</td>
</tr>
<tr>
<td bgcolor="#F8F8F8" width="136" align="center" background="../images/bj3.jpg" height="25">
FLASH上传类型</td>
<td bgcolor="#F8F8F8" width="350" background="../images/bj3.jpg" height="25">
<input type="text" name="S_FlashExt" size="49" value="<%=ucase(rs("S_FlashExt"))%>"></td>
<td bgcolor="#F8F8F8" width="250" background="../images/bj3.jpg" height="25">
用 | 分开</td>
</tr>
<tr>
<td bgcolor="#F8F8F8" width="136" align="center" background="../images/bj3.jpg" height="25">
FLASH上传大小</td>
<td bgcolor="#F8F8F8" width="350" background="../images/bj3.jpg" height="25">
<input type="text" name="S_FlashSize" size="23" value="<%=rs("S_FlashSize")%>">
KB</td>
<td bgcolor="#F8F8F8" width="250" background="../images/bj3.jpg" height="25">0 为无限制</td>
</tr>
<tr>
<td bgcolor="#F8F8F8" width="136" align="center" background="../images/bj3.jpg" height="25">
其它文件类型</td>
<td bgcolor="#F8F8F8" width="350" background="../images/bj3.jpg" height="25">
<input type="text" name="S_FileExt" size="49" value="<%=ucase(rs("S_FileExt"))%>"></td>
<td bgcolor="#F8F8F8" width="250" background="../images/bj3.jpg" height="25">
用 | 分开</td>
</tr>
<tr>
<td bgcolor="#F8F8F8" width="136" align="center" background="../images/bj3.jpg" height="25">
其它文件大小</td>
<td bgcolor="#F8F8F8" width="350" background="../images/bj3.jpg" height="25">
<input type="text" name="S_FileSize" size="23" value="<%=rs("S_FileSize")%>">
KB</td>
<td bgcolor="#F8F8F8" width="250" background="../images/bj3.jpg" height="25">0 为无限制</td>
</tr>
<tr>
<td bgcolor="#F8F8F8" width="136" align="center" background="../images/bj3.jpg" height="25">
远程上传图片类型</td>
<td bgcolor="#F8F8F8" width="350" background="../images/bj3.jpg" height="25">
<input type="text" name="S_RemoteExt" size="49" value="<%=ucase(rs("S_RemoteExt"))%>"></td>
<td bgcolor="#F8F8F8" width="250" background="../images/bj3.jpg" height="25">
用 | 分开</td>
</tr>
<tr>
<td bgcolor="#F8F8F8" width="136" align="center" background="../images/bj3.jpg" height="25">
远程上传图片大小</td>
<td bgcolor="#F8F8F8" width="350" background="../images/bj3.jpg" height="25">
<input type="text" name="S_RemoteSize" size="23" value="<%=rs("S_RemoteSize")%>">
KB</td>
<td bgcolor="#F8F8F8" width="250" background="../images/bj3.jpg" height="25">0 为无限制</td>
</tr>
<tr>
<td bgcolor="#F8F8F8" width="736" align="center" background="../images/bj3.jpg" height="25" colspan="3" align=center>
<input type="submit" value="提交" name="B1"> <input type="reset" value="重置" name="B2"></td>
</tr></form>
</table>
<br>
<table align=center border="1" cellpadding="3" width="750" id="table3" style="border-collapse: collapse" bordercolor="#C0C0C0">
<!--webbot BOT="GeneratedScript" PREVIEW=" " startspan --><script Language="JavaScript" Type="text/javascript"><!--
function FrontPage_Form2_Validator(theForm)
{
if (theForm.Newsx.value == "")
{
alert("请在 New时效 域中输入值。");
theForm.Newsx.focus();
return (false);
}
if (theForm.Newsx.value.length < 1)
{
alert("在 New时效 域中,请至少输入 1 个字符。");
theForm.Newsx.focus();
return (false);
}
if (theForm.Newsx.value.length > 3)
{
alert("在 New时效 域中,请最多输入 3 个字符。");
theForm.Newsx.focus();
return (false);
}
var checkOK = "0123456789-";
var checkStr = theForm.Newsx.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("在 New时效 域中,只能输入 数字 字符。");
theForm.Newsx.focus();
return (false);
}
if (theForm.moreline.value == "")
{
alert("请在 列表行距 域中输入值。");
theForm.moreline.focus();
return (false);
}
if (theForm.moreline.value.length < 1)
{
alert("在 列表行距 域中,请至少输入 1 个字符。");
theForm.moreline.focus();
return (false);
}
if (theForm.moreline.value.length > 3)
{
alert("在 列表行距 域中,请最多输入 3 个字符。");
theForm.moreline.focus();
return (false);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -