📄 admin_ad.asp
字号:
<!--#include file=setup.asp-->
<!--#include file=admin_cookie.asp-->
<!--#include file=conn.asp-->
<!--#include file=head.asp-->
<!--#include file=include.asp-->
<%
if request("submit")<>"" then
set conn=server.createobject("adodb.connection")
conn.open connstr
set rs=server.createobject("adodb.recordset")
rs.open "select * from config",conn,1,3
adtop1=trim(request("adtop1"))
adfloat1=trim(request("adfloat1"))
adbottom1=trim(request("adbottom1"))
if adtop1=adtop and adfloat1=adfloat and adbottom1=adbottom then err("你没有修改广告阿!返回")
if adtop1="" then adtop1=" "
if adfloat1="" then adfloat1=" "
if adbottom1="" then adbottom1=" "
rs("adtop")=adtop1
rs("adfloat")=adfloat1
rs("adbottom")=adbottom1
rs.update
conn.close
%>
<table width=90% cellpadding=3 cellspacing=1 align=center class=table1><tr><td height=120 valign=middle align=center class=td1 >修改成功!<br>
如果你要以前的文章也修改成这些代码,请重新写静态数据
<br>
<a class="SoftMeun" href=admin_rewrite.asp>重写数据</a>
<br>
<a class="SoftMeun" href=javascript:history.back(-1)>返回</a>
</table>
<%
response.end
end if
%>
<form method=post action=<%=self%>>
<table width=90% align=center cellpadding=3 cellspacing=1 class=table1>
<tr><td class=td1 colspan=2 align=center> 广告管理</a>
<tr> <td class=td1 valign=top>页顶广告:<td class=td1><textarea name=adtop1 class="input4" cols=55 rows=4><%=adtop%>
</textarea>
<tr> <td class=td1 valign=top>浮动广告:<td class=td1>
<textarea cols=55 class="input4" rows=4 name=adfloat1><%=adfloat%></textarea>
<tr> <td class=td1 valign=top>页尾广告:<td class=td1><textarea class="input4" cols=55 rows=4 name=adbottom1><%=adbottom%></textarea>
<tr><td colspan=2 align=center class=td1><input class="input1" type=submit name=submit value="提交"><input type=reset class="input1" value="取消"></table>
<br>
<table width=90% align=center cellpadding=3 cellspacing=1 class=table1>
<tr><td class=td1><font color=red>说明:</font><br>  1.修改广告代码后要重新写静态文件,随着你的数据库的增大可能需要花费很长一段时间!<br>
  2.支持HTML语言<br>
  3.页顶广告定义包括页顶logo及以下的内容,浮动广告将在所有生成的HTML页面中加浮动广告,页尾广告是更改页面最下的广告代码。
</table>
<br>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -