📄 setup.asp
字号:
<!--#include file = include.asp-->
<!--#include file = CheckPurview.asp-->
<%
'==========================================
'
'
'
'
'
'==========================================
'
'此程序作用:修改参数设置
'程序创建时间:2002-10-22
'程序完成时间:2002-10-22
'最后修改时间:2002-10-22
'==========================================
set rs=Server.CreateObject("Adodb.Recordset")
sql="select Email,Domain,FileSize,RecommendNews,HotNews,HNTitle,RNTitle,ConfineFile,ReviewTemplet,ShowPic,WordNumber,LastNews,LNTitle from Config"
rs.open sql,conn,3,3
if request.form("operation")="Modify" then
rs("Email")=request.form("Email")
rs("Domain")=request.form("Domain")
rs("FileSize")=request.form("FileSize")
rs("RecommendNews")=request.form("RecommendNews")
rs("HotNews")=request.form("HotNews")
rs("HNTitle")=request.form("HNTitle")
rs("RNTitle")=request.form("RNTitle")
rs("ConfineFile")=request.form("ConfineFile")
rs("ReviewTemplet")=request.form("ReviewTemplet")
rs("ShowPic")=request.form("ShowPic")
rs("WordNumber")=request.form("WordNumber")
rs("LastNews")=request.form("LastNews")
rs("LNTitle")=request.form("LNTitle")
rs.update
end if
%>
<body background="images/BLogo.gif">
<form name=form method=post action="" onsubmit="return CheckSetup()">
<table width="500" border="0" cellspacing="1" cellpadding="0" align="center" bgcolor="#4397c5">
<tr>
<td colspan=4><!--#include file = topMenu.htm--></td>
</tr>
<tr bgcolor="#FFFFFF" valign="middle">
<td width="39%" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor=''; >设定您的信箱:</td>
<td colspan="3" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor=''; width="61%">
<input type="text" name="Email" value=<%=rs("email")%>>
</td>
</tr>
<tr bgcolor="#FFFFFF" valign="middle">
<td width="39%" height="19" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';>设定您的域名:
</td>
<td colspan="3" height="19" width="61%" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';>
<input type="text" name="Domain" value=<%=rs("Domain")%>>
</td>
</tr>
<tr bgcolor="#FFFFFF" valign="middle">
<td width="39%" height="19" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';>设定限制上传文件大小:
</td>
<td colspan="3" height="19" width="61%" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';>
<input type="text" size=5 name="FileSize" value=<%=rs("FileSize")%> onblur="Isvalidity(FileSize,'限制上传文件大小')">(KB)
</td>
</tr>
<tr bgcolor="#FFFFFF" valign="middle">
<td width="39%" height="19" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';>设定上传文件类型:
</td>
<td colspan="3" height="19" width="61%" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';>
<input type="text" size=20 name="ConfineFile" value=<%=rs("ConfineFile")%>>(请用“,”逗号隔开)
</td>
</tr>
<tr bgcolor="#FFFFFF" valign="middle">
<td width="39%" height="19" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';>设定每页商务信息文字数量:
</td>
<td colspan="3" height="19" width="61%" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';>
<input type="text" size=5 name="WordNumber" value="<%=rs("WordNumber")%>" onblur="Isvalidity(WordNumber,'每页商务信息文字数量')">(默认3000、<font color=red>用于商务信息分页</font>)
</td>
</tr>
<tr bgcolor="#FFFFFF" valign="middle">
<td width="39%" height="19" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';>设定推荐商务信息显示数量:
</td>
<td colspan="3" height="19" width="61%" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';>
<input type="text" size=5 name="RecommendNews" value=<%=rs("RecommendNews")%> onblur="Isvalidity(RecommendNews,'推荐商务信息显示数量')">
</td>
</tr>
<tr bgcolor="#FFFFFF" valign="middle">
<td width="39%" height="19" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';>设定热点商务信息显示数量:
</td>
<td colspan="3" height="19" width="61%" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';>
<input type="text" size=5 name="HotNews" value=<%=rs("HotNews")%> onblur="Isvalidity(HotNews,'热点商务信息显示数量')">
</td>
</tr>
<tr bgcolor="#FFFFFF" valign="middle">
<td width="39%" height="19" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';>设定最新新闻显示数量:
</td>
<td colspan="3" height="19" width="61%" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';>
<input type="text" size=5 name="LastNews" value="<%=rs("LastNews")%>" onblur="Isvalidity(LastNews,'最新新闻显示数量')">
</td>
</tr>
<tr bgcolor="#FFFFFF" valign="middle">
<td width="39%" height="19" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';>热点商务信息标题导航图标:
</td>
<td colspan="3" height="19" width="61%" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';>
<input type="text" size=30 name="HNTitle" value="<%=rs("HNTitle")%>">
</td>
</tr>
<tr bgcolor="#FFFFFF" valign="middle">
<td width="39%" height="19" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';>推荐商务信息标题导航图标:
</td>
<td colspan="3" height="19" width="61%" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';>
<input type="text" size=30 name="RNTitle" value="<%=rs("RNTitle")%>">
</td>
</tr>
<tr bgcolor="#FFFFFF" valign="middle">
<td width="39%" height="19" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';>最新新闻标题导航图标:
</td>
<td colspan="3" height="19" width="61%" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';>
<input type="text" size=30 name="LNTitle" value="<%=rs("LNTitle")%>">
</td>
</tr>
<tr bgcolor="#FFFFFF" valign="middle">
<td width="39%" height="19" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';>图片商务信息标志:
</td>
<td colspan="3" height="19" width="61%" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';>
<input type="text" size=30 name="ShowPic" value="<%=rs("ShowPic")%>">
</td>
</tr>
<tr bgcolor="#FFFFFF" valign="middle">
<td width="39%" height="19" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor=''; valign="top">
评论模板:<br>
<div align="center">
评论内容:<font color="#0000FF">[ReviewContent]<br>
</font>关于评论:<font color="#0000FF">[AboutReview]</font><br>
<br>
</div>
</td>
<td colspan="3" height="19" width="61%" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';>
<textarea name="ReviewTemplet" cols="50" rows="10"><%=rs("ReviewTemplet")%></textarea>
</td>
</tr>
<tr bgcolor="#FFFFFF" valign="middle" align="center">
<input type=hidden name=operation value=Modify>
<td height="62" colspan="4" background="images/BLogo.gif">
<input type="submit" value=" 修 改 " onclick="return modify()">
<input type="reset" value=" 还 原 " onclick="return reset1()">
</td>
</tr>
</table>
</form>
</body>
</html>
<%
rs.close
set rs=nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -