📄 ad.asp
字号:
<!--#include file="conn.asp"-->
<%if session("china_admin")="" then
response.redirect "login.asp"
end if
%>
<%if request("id")<>"" then
sql="select * from china_ad where id="&request("id")&""
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,3
if request("picname")<>"" then
rs("picname")=request("picname")
end if
if request("piclink")<>"" then
rs("piclink")=request("piclink")
end if
if request("pass")<>"" then
rs("pass")=request("pass")
end if
rs.update
rs.close
set rs=nothing
end if%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>图片上传</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<%sql="select * from china_ad"
set rsgg=server.createObject("ADODB.recordset")
rsgg.open sql,conn,1,3
if not rsgg.eof then
dim picname(13)
dim piclink(13)
dim picpass(13)
for i = 1 to 13
picname(i) = rsgg("picname")
piclink(i) = rsgg("piclink")
picpass(i)= rsgg("pass")
rsgg.movenext
next
end if
rsgg.close
set rsgg=nothing
%>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#799AE1">
<tr>
<td height="20" bgcolor="#799AE1" align="center"><font color="#FFFFFF" style="font-size:14px">广 告 位 管 理(jpg|gif|swf|<100k) </font></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"> <br>
<table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#D6DFF7">
<tr align="center" bgcolor="#FFFFFF" height="20">
<td>编号</td>
<td>位置</td>
<td>文件名</td>
<td>要求尺寸</td>
<td>链接<font color="#FF0000">(图片有效)</font></td>
<td>修改</td>
<td>状态</td>
<td bgcolor="#FFFFFF">预览</td>
</tr>
<tr bgcolor="#FFFFFF" align="center">
<td align="center">1</td>
<td align="left"> 首页幻灯片1</td>
<td align="center"><%=picname(1)%></td>
<td align="center">468×60</td>
<form name="form1" method="post" action="?id=1">
<td align="center">
<input type="text" name="piclink" size=15 class="an" value="<%=piclink(1)%>">
<input type="submit" name="Submit" value="修改" class="an" style="font-size: 12px">
</td>
</form>
<form name="form1" method="post" action="../upfile_photo.asp?id=1" enctype="multipart/form-data">
<td align="center">
<input type="file" name="file1" size=15 class="an">
<input type="submit" name="Submit" value="上传" class="an" style="font-size: 12px">
<input name="PhotoUrlID" type="hidden" id="PhotoUrlID" value=1>
</td>
</form>
<td align="center">
<select name="pass" onChange="location=this.options[this.selectedIndex].value" disabled>
<option value="?pass=yes&id=1" <%if picpass(1)="yes" then%>selected<%end if%>>开启</option>
<option value="?pass=no&id=1" <%if picpass(1)="no" then%>selected<%end if%>>关闭</option>
</select>
</td>
<td align="center">
<script>
function adv1()
{
if (document.all.advshow1.checked == true) {
document.getElementById("adv1").style.display = "";
}else{
document.getElementById("adv1").style.display = "none";
}
}
</script>
<input name=advshow1 type=checkbox value=1 onclick="adv1();">
</td>
</tr>
<tr bgcolor="#FFFFFF" align="center" id="adv1" style="display:none">
<td colspan="8"><a href="<%=piclink(1)%>"><img src="../adpic/<%=picname(1)%>" width="468" height="60" border="0"></a></td>
</tr>
<tr bgcolor="#FFFFFF" align="center">
<td>2</td>
<td align="left"> 首页幻灯片2</td>
<td><%=picname(2)%></td>
<td>468×60</td>
<form name="form1" method="post" action="?id=2">
<td>
<input type="text" name="piclink" size=15 class="an" value="<%=piclink(2)%>">
<input type="submit" name="Submit" value="修改" class="an" style="font-size: 12px">
</td>
</form>
<form name="form1" method="post" action="../upfile_photo.asp?id=2" enctype="multipart/form-data">
<td>
<input type="file" name="file1" size=15 class="an">
<input type="submit" name="Submit" value="上传" class="an" style="font-size: 12px">
<input name="PhotoUrlID" type="hidden" id="PhotoUrlID" value=1>
</td>
</form>
<td>
<select name="pass" onChange="location=this.options[this.selectedIndex].value" disabled>
<option value="?pass=yes&id=2" <%if picpass(2)="yes" then%>selected<%end if%>>开启</option>
<option value="?pass=no&id=2" <%if picpass(2)="no" then%>selected<%end if%>>关闭</option>
</select>
</td>
<td>
<script>
function adv2()
{
if (document.all.advshow2.checked == true) {
document.getElementById("adv2").style.display = "";
}else{
document.getElementById("adv2").style.display = "none";
}
}
</script>
<input name=advshow2 type=checkbox value=1 onclick="adv2();">
</td>
</tr>
<tr bgcolor="#FFFFFF" align="center" id="adv2" style="display:none">
<td colspan="8"><a href="<%=piclink(2)%>"><img src="../adpic/<%=picname(2)%>" width="468" height="60" border="0"></a></td>
</tr>
<tr bgcolor="#FFFFFF" align="center">
<td>3</td>
<td align="left"> 首页幻灯片3</td>
<td><%=picname(3)%></td>
<td>468×60</td>
<form name="form1" method="post" action="?id=3">
<td>
<input type="text" name="piclink" size=15 class="an" value="<%=piclink(3)%>">
<input type="submit" name="Submit" value="修改" class="an" style="font-size: 12px">
</td>
</form>
<form name="form1" method="post" action="../upfile_photo.asp?id=3" enctype="multipart/form-data">
<td>
<input type="file" name="file1" size=15 class="an">
<input type="submit" name="Submit" value="上传" class="an" style="font-size: 12px">
<input name="PhotoUrlID" type="hidden" id="PhotoUrlID" value=1>
</td>
</form>
<td>
<select name="pass" onChange="location=this.options[this.selectedIndex].value" disabled>
<option value="?pass=yes&id=3" <%if picpass(3)="yes" then%>selected<%end if%>>开启</option>
<option value="?pass=no&id=3" <%if picpass(3)="no" then%>selected<%end if%>>关闭</option>
</select>
</td>
<td>
<script>
function adv3()
{
if (document.all.advshow3.checked == true) {
document.getElementById("adv3").style.display = "";
}else{
document.getElementById("adv3").style.display = "none";
}
}
</script>
<input name=advshow3 type=checkbox value=1 onclick="adv3();">
</td>
</tr>
<tr bgcolor="#FFFFFF" align="center" id="adv3" style="display:none">
<td colspan="8"><a href="<%=piclink(3)%>"><img src="../adpic/<%=picname(3)%>" width="468" height="60" border="0"></a></td>
</tr>
<tr bgcolor="#FFFFFF" align="center">
<td>4</td>
<td align="left"> 首页两侧对联</td>
<td><%=picname(4)%></td>
<td>100×300</td>
<form name="form1" method="post" action="?id=4">
<td>
<input type="text" name="piclink" size=15 class="an" value="<%=piclink(4)%>">
<input type="submit" name="Submit" value="修改" class="an" style="font-size: 12px">
</td>
</form>
<form name="form1" method="post" action="../upfile_photo.asp?id=4" enctype="multipart/form-data">
<td>
<input type="file" name="file1" size=15 class="an">
<input type="submit" name="Submit" value="上传" class="an" style="font-size: 12px">
<input name="PhotoUrlID" type="hidden" id="PhotoUrlID" value=1>
</td>
</form>
<td>
<select name="pass" onChange="location=this.options[this.selectedIndex].value">
<option value="?pass=yes&id=4" <%if picpass(4)="yes" then%>selected<%end if%>>开启</option>
<option value="?pass=no&id=4" <%if picpass(4)="no" then%>selected<%end if%>>关闭</option>
</select>
</td>
<td>
<script>
function adv4()
{
if (document.all.advshow4.checked == true) {
document.getElementById("adv4").style.display = "";
}else{
document.getElementById("adv4").style.display = "none";
}
}
</script>
<input name=advshow4 type=checkbox value=1 onclick="adv4();">
</td>
</tr>
<tr bgcolor="#FFFFFF" align="center" id="adv4" style="display:none">
<td style="cursor:hand" onclick=window.open("<%=piclink(4)%>","_blank") colspan="8">
<%if lcase(right(picname(4),3))="swf" then%>
<embed src="../adpic/<%=picname(4)%>" width=100 height=300 quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" scale="noborder" >
</embed>
<%else%>
<img src="../adpic/<%=picname(4)%>" width=100 height=300 border=0>
<%end if%>
</td>
</tr>
<tr bgcolor="#FFFFFF" align="center">
<td>5</td>
<td align="left"> 首页左漂浮按钮</td>
<td><%=picname(5)%></td>
<td>80×80</td>
<form name="form1" method="post" action="?id=5">
<td>
<input type="text" name="piclink" size=15 class="an" value="<%=piclink(5)%>">
<input type="submit" name="Submit" value="修改" class="an" style="font-size: 12px">
</td>
</form>
<form name="form1" method="post" action="../upfile_photo.asp?id=5" enctype="multipart/form-data">
<td>
<input type="file" name="file1" size=15 class="an">
<input type="submit" name="Submit" value="上传" class="an" style="font-size: 12px">
<input name="PhotoUrlID" type="hidden" id="PhotoUrlID" value=1>
</td>
</form>
<td>
<select name="pass" onChange="location=this.options[this.selectedIndex].value">
<option value="?pass=yes&id=5" <%if picpass(5)="yes" then%>selected<%end if%>>开启</option>
<option value="?pass=no&id=5" <%if picpass(5)="no" then%>selected<%end if%>>关闭</option>
</select>
</td>
<td>
<script>
function adv5()
{
if (document.all.advshow5.checked == true) {
document.getElementById("adv5").style.display = "";
}else{
document.getElementById("adv5").style.display = "none";
}
}
</script>
<input name=advshow5 type=checkbox value=1 onclick="adv5();">
</td>
</tr>
<tr bgcolor="#FFFFFF" align="center" id="adv5" style="display:none">
<td style="cursor:hand" onclick=window.open("<%=piclink(5)%>","_blank") colspan="8">
<%if lcase(right(picname(5),3))="swf" then%>
<embed src="../adpic/<%=picname(5)%>" width=80 height=80 quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" scale="noborder" >
</embed>
<%else%>
<img src="../adpic/<%=picname(5)%>" width=80 height=80 border=0>
<%end if%>
</td>
</tr>
<tr bgcolor="#FFFFFF" align="center">
<td>6</td>
<td align="left"> 首页右漂浮按钮</td>
<td><%=picname(6)%></td>
<td>80×80</td>
<form name="form1" method="post" action="?id=6">
<td>
<input type="text" name="piclink" size=15 class="an" value="<%=piclink(6)%>">
<input type="submit" name="Submit" value="修改" class="an" style="font-size: 12px">
</td>
</form>
<form name="form1" method="post" action="../upfile_photo.asp?id=6" enctype="multipart/form-data">
<td>
<input type="file" name="file1" size=15 class="an">
<input type="submit" name="Submit" value="上传" class="an" style="font-size: 12px">
<input name="PhotoUrlID" type="hidden" id="PhotoUrlID" value=1>
</td>
</form>
<td>
<select name="pass" onChange="location=this.options[this.selectedIndex].value">
<option value="?pass=yes&id=6" <%if picpass(6)="yes" then%>selected<%end if%>>开启</option>
<option value="?pass=no&id=6" <%if picpass(6)="no" then%>selected<%end if%>>关闭</option>
</select>
</td>
<td>
<script>
function adv6()
{
if (document.all.advshow6.checked == true) {
document.getElementById("adv6").style.display = "";
}else{
document.getElementById("adv6").style.display = "none";
}
}
</script>
<input name=advshow6 type=checkbox value=1 onclick="adv6();">
</td>
</tr>
<tr bgcolor="#FFFFFF" align="center" id="adv6" style="display:none">
<td style="cursor:hand" onclick=window.open("<%=piclink(6)%>","_blank") colspan="8">
<%if lcase(right(picname(6),3))="swf" then%>
<embed src="../adpic/<%=picname(6)%>" width=80 height=80 quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" scale="noborder" >
</embed>
<%else%>
<img src="../adpic/<%=picname(6)%>" width=80 height=80 border=0>
<%end if%>
</td>
</tr>
<tr bgcolor="#FFFFFF" align="center">
<td>7</td>
<td align="left"> 首页弹出窗口</td>
<td><%=picname(7)%></td>
<td>400×300</td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -