📄 ad1.asp
字号:
<!--#include file="check.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>分类</title>
<link href="css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style4 {font-weight: bold}
-->
</style>
</head>
<body>
<%
dim action,adid
action=request.QueryString("action")
adid=request.QueryString("adid")
call ConnectionDatabase
select case action
case "list"
%>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" class="tablegg">
<tr>
<td><table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#F1F1F1">
<tr bgcolor="#E3E2C3">
<td height="23"><div align="center" class="style4">广告管理</div></td>
</tr>
<tr>
<td height="111" valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
<tr bgcolor="#EDEDE1">
<td height="26" colspan="3"><span class="forumRow"> <strong> : : <span class="style4">广告列表</span> : :</strong></span></td>
</tr>
<%
set Rs=GrateRs("select * from IFS_ad1",1)
do while not Rs.eof
%>
<tr bgcolor="#F1F1F1">
<td width="13%" height="32" align="left"> </td>
<td width="39%" height="32" align="left"><%=Rs("title")%></td>
<td width="48%" align="left"><input name="Submit" type="submit" class="inputbutton" value=" 编辑广告 " onclick="window.location='ad1.asp?action=edit&adid=<%=Rs("adid")%>'">
<input name="Submit" type="submit" class="inputbutton" value=" 运行广告 " onclick="window.location='ad1.asp?action=show&adid=<%=Rs("adid")%>'"></td>
</tr>
<%
Rs.movenext
loop
%>
</table>
</td>
</tr>
<tr align="center" bgcolor="#EDEDE1">
<td height="35" align="right"> <span class="style1">Copyright 2003 - 2005 IFBEST Inc. AllRights Reserved Design By <a href="http://www.ifbest.net" target="_blank">IFStudio</a></span> </td>
</tr>
</table></td>
</tr>
</table>
<%
case "edit"
set Rs=GrateRs("select * from IFS_ad1 where adid="&adid,1)
%>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" class="tablegg">
<tr>
<td><table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#F1F1F1">
<tr bgcolor="#E3E2C3">
<td height="23"><div align="center" class="style4">广告管理</div></td>
</tr>
<tr>
<td height="111" valign="top"><form name="form1" method="post" action="ad1.asp?action=update&adid=<%=Rs("adid")%>">
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
<tr bgcolor="#EDEDE1">
<td height="26" colspan="3"><span class="forumRow"> <strong> : : <span class="style4">广告设置</span> : : </strong></span> </td>
</tr>
<tr bgcolor="#F1F1F1">
<td width="13%" height="80" rowspan="2" align="left"> <%=Rs("title")%></td>
<td width="5%" height="80" rowspan="2" align="center" title="选中复选框该广告便打开,取消复选框广告则关闭!"><input name="checkbox1" type="checkbox" class="inputbox" id="checkbox1" value="1"<%if Rs("ctrl")=1 then response.write(" checked")%>></td>
<td width="82%" height="39" align="left"> [ 支持Html代码 ]
<input name="titleimg" type="text" class="inputbox" id="titleimg" value=".gif,.jpg,.swf,.mp3,.rm" size="30">
<input name="Submit" type="button" class="inputbutton" value="上传文件" onclick="window.open('PIC_upload.asp?Obj=form1.titleimg','PIC_uplooad','height=150,width=350,status=no,location=no,toolbar=no,directories=no,menubar=no,scrollbars=no,resizable=no,top=200,left=200');">
[ 请复制文件路径 ] </td>
</tr>
<tr bgcolor="#F1F1F1">
<td height="40" align="left"><textarea name="text1" cols="80" rows="20" class="inputbox" id="text1"><%=Rs("ad")%></textarea></td>
</tr>
<tr bgcolor="#F1F1F1">
<td height="26" align="center"> </td>
<td height="26" colspan="2" align="left"><input name="Submit" type="submit" class="inputbutton" value=" 提交修改 ">
</td>
</tr>
</table>
</form></td>
</tr>
<tr align="center" bgcolor="#EDEDE1">
<td height="35" align="right"> <span class="style1">Copyright 2003 - 2005 IFBEST Inc. AllRights Reserved Design By <a href="http://www.ifbest.net" target="_blank">IFStudio</a></span> </td>
</tr>
</table></td>
</tr>
</table>
<%
case "show"
set Rs=GrateRs("select * from IFS_ad1 where adid="&adid,1)
%>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" class="tablegg">
<tr>
<td><table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#F1F1F1">
<tr bgcolor="#E3E2C3">
<td height="23"><div align="center" class="style4"> 广告管理</div></td>
</tr>
<tr>
<td height="111" valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
<tr bgcolor="#EDEDE1">
<td height="26" colspan="2"><span class="forumRow"> <strong> : : <span class="style4">广告演示</span> : :</strong></span></td>
</tr>
<tr align="center" bgcolor="#F1F1F1">
<td height="22" colspan="2"> <%=Rs("title")%></td>
</tr>
<tr align="center" bgcolor="#F1F1F1">
<td height="194" colspan="2"><iframe name="hnbcs_left" src="../AdOpen.asp?Action=popWindow&adid=<%=Rs("adid")%>" height="100%" width="100%" scrolling="auto" border="0" frameborder="0">
</iframe></td>
</tr>
<tr bgcolor="#F1F1F1">
<td width="13%" height="26" align="center"> </td>
<td height="26" align="left"><input name="Submit" type="submit" class="inputbutton" value=" 编辑广告 " onclick="window.location='ad1.asp?action=edit&adid=<%=Rs("adid")%>'">
<input name="Submit" type="submit" class="inputbutton" value=" 广告列表 " onclick="window.location='ad1.asp?action=list'"></td>
</tr>
</table>
</td>
</tr>
<tr align="center" bgcolor="#EDEDE1">
<td height="35" align="right"> <span class="style1">Copyright 2003 - 2005 IFBEST Inc. AllRights Reserved Design By <a href="http://www.ifbest.net" target="_blank">IFStudio</a></span> </td>
</tr>
</table></td>
</tr>
</table>
<%
case "update"
set Rs=GrateRs("select * from IFS_ad1 where adid="&adid,3)
Rs("ad")=request.form("text1")
if request("checkbox1")=1 then
Rs("ctrl")=1
else
Rs("ctrl")=0
end if
Rs.update
response.write "<script language='JavaScript'>{window.alert('修改成功!');window.location='ad1.asp?action=list';}</script>"
case else
%>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" class="tablegg">
<tr>
<td><table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#F1F1F1">
<tr bgcolor="#E3E2C3">
<td height="23"><div align="center" class="style4">
<div align="center" class="style4">广告管理 </div>
</div></td>
</tr>
<tr>
<td height="84" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
<tr bgcolor="#EDEDE1">
<td height="26" colspan="2"><span class="forumRow"> <strong> : : 系统错误 : :</strong></span></td>
</tr>
<tr bgcolor="#F1F1F1">
<td width="10%" height="26" align="center">□</td>
<td width="90%" height="26">您没有管理的权限或者您的登录已经超时,请重新<a href="index.asp" target="_parent">登录</a>!</td>
</tr>
<tr bgcolor="#F1F1F1">
<td height="26" align="center">□</td>
<td height="26">调用参数非法导致错误,请不要越权使用!</td>
</tr>
</table></td>
</tr>
<tr align="center" bgcolor="#EDEDE1">
<td height="35" align="right"><span class="style1">Copyright 2003 - 2005 IFBEST Inc. AllRights Reserved Design By <a href="http://www.258sp.com" target="_blank">258sp商务平台</a></span> </td>
</tr>
</table></td>
</tr>
</table>
<%
end select
call DBConnEnd
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -