⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 admin_contentads.asp

📁 树形论坛
💻 ASP
字号:
<!-- #include file="function.asp" -->
<!-- #include file="admin_cookie.asp" -->
<%
myfilename="admin_contentads.asp"
thisttime=Now()
dim econtentads, outmsg
if action="contentads" and Request.ServerVariables("request_method") = "POST" then
econtentads=Request.form("econtentads")
econtentads=replace(econtentads,";","")
econtentads=replace(econtentads,"'","")
sql="update contentads set contentads='"&econtentads&"' where id=1"
conn.execute(sql)
outmsg=""
econtentads=replace(econtentads,vbCrlf,"")
outmsg="wmbbscontentads.innerHTML ='';"&vbCrlf&"wmbbscontentads.innerHTML +='"&econtentads&"';"&vbCrlf&"wmbbscontentads.innerHTML +='';"
set fileobject = Server.CreateObject("Scripting.FileSystemObject")
set addhtmlfile = fileobject.CreateTextFile(Server.MapPath(".")&"\images\contentads.js")
addhtmlfile.writeline outmsg



message="<li>帖子广告修改成功<li><a href=admin_main.asp>返回管理首页</a>"
succeed(""&message&"<meta http-equiv=refresh content=2;url="&myfilename&">")
Response.End
end if
Set Rs=Conn.Execute("contentads")

%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>DATALL 知识库asp版 v2.0</title>
<style type="text/css">
<!--
body {
	background: #FFFFFF;
	font-size: 12px;
	scrollbar-base-color: #0066CC;
	scrollbar-arrow-color: #FFFFFF;
	margin: 0px;
	padding: 0px;
	border: 0px;
}
td { font-size: 12px;}
.input1 {
	background: #EEEEEE;
}
-->
</style>
</head>

<body>
<!--
'┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓'
'┃                   DATALL 知识库asp版 v2.0                              ┃'
'┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫'
'┃                   homepage:http://www.datall.com                       ┃'
'┃                            http://www.datall.net                       ┃'
'┃                   Q Q  NO.:194088                                      ┃'
'┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫'
'┃                          DATALL出品                                    ┃'
'┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛'
-->

<form name="FORM" action="<%=myfilename%>" method="post"">
<input type="hidden" name="action" value="contentads">
<table width="98%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#0099FF">
  <tr>
    <td height="20">&nbsp;</td>
  </tr>
  <tr>
    <td height="20" bgcolor="#EEEEEE"><strong>帖子广告</strong></td>
  </tr>
  <tr>
    <td align="center" bgcolor="#FFFFFF"><textarea name="econtentads" cols="80" rows="20"><%=rs("contentads")%></textarea></td>
  </tr>
  <tr>
    <td height="20" align="center" bgcolor="#EEEEEE"><input type="submit" name="Submit" value="提交">&nbsp;&nbsp;<input type="reset" name="Submit" value="重置"></td>
  </tr>
  <tr>
    <td height="20">&nbsp;</td>
  </tr>
</table>
</form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -