?? addadw.asp
字號:
<%@ LANGUAGE="VBSCRIPT" %>
<!--#include file=config.asp -->
<script language="javascript">
<!--
function isok(theform)
{
if (theform.placename.value=="")
{
alert("請填寫廣告位標識!");
theform.placename.focus();
return (false);
}
}
-->
</script>
<script language=JavaScript>
<!--
function opw(url,name, width, height) { //v2.0
window.open(url,name,''+'width='+width+',height='+height+',scrollbars=yes'+'');
}
//-->
</script>
<!--#include file="top.asp"-->
<center>
<table border="0" align="center" width=100% cellpadding="0" cellspacing="0" height="1">
<tr>
<td valign="top">
<table border=0 width=98% cellspacing=0 cellpadding=0>
<tr bgcolor=#ffffff align=center valign=top>
<td>
<table border=0 width=100% cellspacing=0 cellpadding=2 style="border-collapse: collapse" bordercolor="#111111">
<form method="POST" action=?job=add onSubmit="return isok(this)">
<%
if request.querystring("job")="add" then
adsconn.open adsdata
set adsrs=server.createobject("adodb.recordset")
if request("place")="0" then
adssql="select * from place "
adsrs.open adssql,adsconn,1,3
adsrs.AddNew
else
adssql="select * from place where place="&trim(request("place"))
adsrs.open adssql,adsconn,1,3
end if
adsrs(1) = trim(request("placename"))
adsrs(2)= trim(request("placelei"))
adsrs(3)= trim(request("placehei"))
adsrs(4)= trim(request("placewid"))
adsrs.update
adsrs.close
set adsrs=nothing
adsconn.close
set adsconn=nothing
response.redirect "?"
end if
if request.querystring("job")="del" then
if isnumeric(request("place"))=true then
adsconn.open adsdata
set adsrs=server.createobject("adodb.recordset")
adssql="select * from place where place="&trim(request("place"))
adsrs.open adssql,adsconn,3,3
adsrs.delete
adsrs.close
set adsrs=nothing
adsconn.close
set adsconn=nothing
response.redirect "?"
end if
end if
%>
<tr bgcolor=#ffffff>
<td> </td>
<td> <input type=hidden name=place value="0" >
<p align="center">廣告位標識 <input type=text name=placename size=30 maxlength=30>
<font color="#FF0000">15字以內 </font>高度<input type=text name=placehei value="60" size=3 maxlength=30>
寬度<input type=text name=placewid value="468" size=3 maxlength=30> 類型
<%Call Ggwlei(1)%>
<input type=submit value=新增廣告位 name=B1></p>
<p align="center">
<font color="#808080">*** 請盡量不要使用相同的廣告位標識,高度、寬度主要應用于彈出窗口大小、滾動區域設置,請適當設置,不可為空</font></td>
</tr>
</form>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<hr color="#808080" size="1">
<p> <font color="#FF0000">廣告插入方法:</font>將下表內容放到預定廣告位置,并將其中的<font color="#FF0000">廣告位ID</font>對應正確
<font color="#808080">請在廣告位列表中查看</font><font color="#FF0000">廣告位ID</font><br><input type="text" name="T1" size="100" value="<script language=javascript src=<%=DqUrl()%>/ad.asp?i=廣告位ID></script>"></p>
<p align="center"> <font color=red><b>已有廣告位列表</b></font></p>
<p align=left><font color="#808080">*** 請在高度、寬度中輸入合適的<b>數字或百分比或為空自動</b></font></p>
<div align="center">
<center>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#C0C0C0" width="100%" id="AutoNumber1">
<tr>
<td width="80" align="center" height="20" bgcolor="#F5F5F5">
<font color="#FF0000">廣告位ID</font></td>
<td align="center" height="20" bgcolor="#F5F5F5">廣告位標識</td>
<td align="center" height="20" bgcolor="#F5F5F5">高度</td>
<td align="center" height="20" bgcolor="#F5F5F5">寬度</td>
<td width="20%" align="center" height="20" bgcolor="#F5F5F5">廣告位顯示方式</td>
<td width="30%" align="center" height="20" bgcolor="#F5F5F5">操 作</td>
</tr>
<%
adsconn.open adsdata
set adsrs=server.createobject("adodb.recordset")
adssql="select * from place"
adsrs.open adssql,adsconn,1,1
do while not adsrs.eof
%><form method="POST" action="?job=add" onSubmit="return isok(this)">
<tr>
<td width="80" align="center"><font color=red><%=adsrs(0)%></font><input type=hidden name=place value="<%=adsrs(0)%>" > </td>
<td align="center"><input type=text name=placename value="<%=adsrs(1)%>" size=30 maxlength=30></td>
<td align="center">
<input type=text name=placehei value="<%=adsrs(3)%>" size=3 maxlength=30></td>
<td align="center">
<input type=text name=placewid value="<%=adsrs(4)%>" size=3 maxlength=30></td>
<td width="20%" align="center">
<%Call Ggwlei(adsrs("placelei"))%>
</td>
<td width="30%" align="center"><input type="submit" value="修改" name="B1">
<a href=?job=del&place=<%=adsrs(0)%>>刪除</a> <a href=list.asp?type=place&place=<%=adsrs(0)%>>已有廣告條</a> <a href=javascript:opw('option.asp?id=<%=adsrs(0)%>&job=yulanggw','',800,600)>預覽廣告</a></td>
</tr>
</form>
<%adsrs.movenext
loop
adsrs.close
set adsrs=nothing
adsconn.close
set adsconn=nothing
%>
</table>
</center>
</div>
<p align="left">
<p align="left"><hr color="#808080" size="1">
<p align="left"><font color="#FF0000"><a name="說明">廣告位顯示方式說明</a>:</font></p>
<center>
</p>
<ul>
<li><p align="left">
頁內嵌入循環:就是將廣告位直接置入某頁面一固定位置,并在同一位置循環顯示廣告位中的所有正常廣告條,這樣,每刷新一次就會更替顯示一個新的廣告條</p>
</li>
<li><p align="left">上下排列置入:從上到下豎排廣告位中的所有正常廣告條</p>
</li>
<li><p align="left">左右排列置入:從左到右橫排廣告位中的所有正常廣告條</p>
</li>
<li><p align="left">向上滾動置入:向上滾動顯示廣告位中的所有正常廣告條</p>
</li>
<li><p align="left">向左滾動置入:向左滾動顯示廣告位中的所有正常廣告條</p>
</li>
<li><p align="left">彈出多個窗口:頁面打開時同時彈出多個窗口,每個窗口內顯示一個廣告條,彈出數量跟該廣告位中的正常廣告條數一致</p>
</li>
<li><p align="left">
循環彈出窗口:頁面打開時同時彈出一個窗口,在同一窗口內循環顯示廣告位中的正常廣告,這樣,每刷新一次就會在彈出窗口中更替顯示一個新的廣告條</p>
</li>
</ul>
<!--#include file="boot.asp"-->
<p><br><br>
</p>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -