ad.asp
来自「非常有商业价值的软件」· ASP 代码 · 共 183 行
ASP
183 行
<!--#include file="chk.asp"-->
<!--#include file="db_conn.asp"-->
<!--#include file="../my_lib/my_request.asp"-->
<%
flag=my_request("flag",0)
select case flag
case "ad"
call savead()
case ""
case else
response.write "参数错误"
end select
response.write flag
sql="select * from adver where id=1"
set rs=conn.execute (sql)
ad=rs("ad")
ad1=rs("ad1")
ad2=rs("ad2")
ad3=rs("ad3")
ad4=rs("ad4")
ad5=rs("ad5")
ad6=rs("ad6")
ad7=rs("ad7")
url=rs("url")
url1=rs("url1")
url2=rs("url2")
url3=rs("url3")
url4=rs("url4")
url5=rs("url5")
url6=rs("url6")
url7=rs("url7")
rs.close
set rs=nothing
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>广告和友情连接管理</title>
<link href="style.css" rel=stylesheet type=text/css>
<script src="edit.js" type="text/javascript"></script>
<SCRIPT>
function view1(url){
var url; window.open(url,'_blank','status=no,scrollbars=yes,top=20,left=50,width=600,height=400');
}
</SCRIPT>
</head>
<body>
<div align="center">
<table border="0" width="760" id="table1" cellspacing="1">
<tr>
<td>
<form action="ad.asp?flag=ad" method=post>
<table border="0" width="756" id="table2" cellspacing="0" cellpadding="0">
<tr>
<td height="20" bgcolor="#EFEFEF" width="756" colspan="2">
<font color="#FF0000">>>>广告管理</font></td>
</tr>
<tr>
<td height="20" width="184" align="right" bgcolor="#FFFFFF">
顶端banner广告:</td>
<td height="20" width="572" bgcolor="#FFFFFF">
<input type="text" name="ad" size="33" readonly value="<%=ad%>"><font color="#330000" size="2"><a href="javascript:openWin('upload2.asp?action=0','upload','toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width=400,height=120')"><img src="image/upload.gif" alt="上传图片" width="60" height="18" border="0" align="middle" style="cursor: hand;" onMouseOver="window.status='使用系统自带的上传程序上传图片';return true;" onMouseOut="window.status='';return true;"></a>
地址:</font><input type="text" name="url" size="33" value="<%=url%>" maxlength="50"></td>
</tr>
<tr>
<td height="20" width="184" align="right" bgcolor="#FFFFFF">
横幅广告(771×176):</td>
<td height="20" width="572" bgcolor="#FFFFFF">
<input type="text" name="ad1" size="33" readonly value="<%=ad1%>"><font color="#330000" size="2"><a href="javascript:openWin('upload2.asp?action=1','upload','toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width=400,height=120')"><img src="image/upload.gif" alt="上传图片" width="60" height="18" border="0" align="middle" style="cursor: hand;" onMouseOver="window.status='使用系统自带的上传程序上传图片';return true;" onMouseOut="window.status='';return true;"></a>
地址:</font><input type="text" name="url1" size="33" value="<%=url1%>" maxlength="50"></td>
</tr>
<tr>
<td height="20" width="184" align="right">中间广告(460×120):</td>
<td height="20" width="572">
<input type="text" name="ad2" size="33" readonly value="<%=ad2%>"><font color="#330000" size="2"><a href="javascript:openWin('upload2.asp?action=2','upload','toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width=400,height=120')"><img src="image/upload.gif" alt="上传图片" width="60" height="18" border="0" align="middle" style="cursor: hand;" onMouseOver="window.status='使用系统自带的上传程序上传图片';return true;" onMouseOut="window.status='';return true;"></a>
地址:</font><input type="text" name="url2" size="33" value="<%=url2%>" maxlength="50"></td>
</tr>
<tr>
<td height="20" width="184" align="right" bgcolor="#FFFFFF">
右侧广告一(120×30):</td>
<td height="20" width="572" bgcolor="#FFFFFF">
<input type="text" name="ad3" size="33" readonly value="<%=ad3%>"><font color="#330000" size="2"><a href="javascript:openWin('upload2.asp?action=3','upload','toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width=400,height=120')"><img src="image/upload.gif" alt="上传图片" width="60" height="18" border="0" align="middle" style="cursor: hand;" onMouseOver="window.status='使用系统自带的上传程序上传图片';return true;" onMouseOut="window.status='';return true;"></a>
地址:</font><input type="text" name="url3" size="33" value="<%=url3%>" maxlength="50"></td>
</tr>
<tr>
<td height="20" width="184" align="right" bgcolor="#FFFFFF">
右侧广告二(120×30):</td>
<td height="20" width="572" bgcolor="#FFFFFF">
<input type="text" name="ad4" size="33" readonly value="<%=ad4%>"><font color="#330000" size="2"><a href="javascript:openWin('upload2.asp?action=4','upload','toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width=400,height=120')"><img src="image/upload.gif" alt="上传图片" width="60" height="18" border="0" align="middle" style="cursor: hand;" onMouseOver="window.status='使用系统自带的上传程序上传图片';return true;" onMouseOut="window.status='';return true;"></a>
地址:</font><input type="text" name="url4" size="33" value="<%=url4%>" maxlength="50"></td>
</tr>
<tr>
<td height="20" width="184" align="right" bgcolor="#FFFFFF">
右侧广告三(120×30):</td>
<td height="20" width="572" bgcolor="#FFFFFF">
<input type="text" name="ad5" size="33" readonly value="<%=ad5%>"><font color="#330000" size="2"><a href="javascript:openWin('upload2.asp?action=5','upload','toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width=400,height=120')"><img src="image/upload.gif" alt="上传图片" width="60" height="18" border="0" align="middle" style="cursor: hand;" onMouseOver="window.status='使用系统自带的上传程序上传图片';return true;" onMouseOut="window.status='';return true;"></a>
地址:</font><input type="text" name="url5" size="33" value="<%=url5%>" maxlength="50"></td>
</tr>
<tr>
<td height="20" width="184" align="right" bgcolor="#FFFFFF">
右侧广告四(120×30):</td>
<td height="20" width="572" bgcolor="#FFFFFF">
<input type="text" name="ad6" size="33" readonly value="<%=ad6%>"><font color="#330000" size="2"><a href="javascript:openWin('upload2.asp?action=6','upload','toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width=400,height=120')"><img src="image/upload.gif" alt="上传图片" width="60" height="18" border="0" align="middle" style="cursor: hand;" onMouseOver="window.status='使用系统自带的上传程序上传图片';return true;" onMouseOut="window.status='';return true;"></a>
地址:</font><input type="text" name="url6" size="33" value="<%=url6%>" maxlength="50"></td>
</tr>
<tr>
<td height="20" width="184" align="right" bgcolor="#FFFFFF">
右侧广告五(120×30):</td>
<td height="20" width="572" bgcolor="#FFFFFF">
<input type="text" name="ad7" size="33" readonly value="<%=ad7%>"><font color="#330000" size="2"><a href="javascript:openWin('upload2.asp?action=7','upload','toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width=400,height=120')"><img src="image/upload.gif" alt="上传图片" width="60" height="18" border="0" align="middle" style="cursor: hand;" onMouseOver="window.status='使用系统自带的上传程序上传图片';return true;" onMouseOut="window.status='';return true;"></a>
地址:</font><input type="text" name="url7" size="33" value="<%=url7%>" maxlength="50"></td>
</tr>
<tr>
<td height="20" width="756" align="right" bgcolor="#FFFFFF" colspan="2">
<p align="center">
<input type="submit" value="确定修改" name="B7"></td>
</tr>
</table></form>
</td>
</tr>
<tr>
<td>
</td>
</tr>
</table>
</div>
<br>
</body>
</html>
<%
sub savead()
ad=my_request("ad",0)
ad1=my_request("ad1",0)
ad2=my_request("ad2",0)
ad3=my_request("ad3",0)
ad4=my_request("ad4",0)
ad5=my_request("ad5",0)
ad6=my_request("ad6",0)
ad7=my_request("ad7",0)
url=my_request("url",0)
url1=my_request("url1",0)
url2=my_request("url2",0)
url3=my_request("url3",0)
url4=my_request("url4",0)
url5=my_request("url5",0)
url6=my_request("url6",0)
url7=my_request("url7",0)
sql="select * from adver where id=1"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,3
rs("ad")=ad
rs("ad1")=ad1
rs("ad2")=ad2
rs("ad3")=ad3
rs("ad4")=ad4
rs("ad5")=ad5
rs("ad6")=ad6
rs("ad7")=ad7
rs("url")=url
rs("url1")=url1
rs("url2")=url2
rs("url3")=url3
rs("url4")=url4
rs("url5")=url5
rs("url6")=url6
rs("url7")=url7
rs.update
rs.close
set rs=nothing
response.redirect "ad.asp"
end sub
conn.close
set conn=nothing
%>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?