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

📄 addads.asp

📁 站完全依据SEO技术建立
💻 ASP
字号:
<!--#include file=menu.asp -->
<%if request.querystring("job")="add" then
dim getname,geturl,getgif,getwin,adsrs,adssql,getclass,getclicks,getshows,gettime,gettype,getwidth,getheight,getnote,getusername,getcontact,getprice,getpriceid

getname = Trim(Request("name"))
if getname="" then getname=null
geturl = Trim(Request("url"))
if geturl="" then geturl=null
getgif = Trim(Request("gif_url"))
getplace =trim(Request("placeid"))
getwin =trim(Request("window"))
getclass=trim(Request("class"))
gettype=trim(Request("itype"))
getwidth=trim(Request("width"))
getheight=trim(Request("height"))
getnote=trim(Request("note"))
getusername=trim(Request("username"))
if getusername="" then getusername=null
getcontact=trim(Request("contact"))
if getcontact="" then getcontact=null

if getclass=0 then
getclicks=0
getshows=0
gettime=date()

elseif getclass=1 then
getclicks=trim(request("clicks1"))
getshows=0
gettime=date()

elseif getclass=2 then
getclicks=0
getshows=trim(request("shows2"))
gettime=date()

elseif getclass=3 then
getclicks=0
getshows=0
gettime=trim(request("time3"))

elseif getclass=4 then
getclicks=trim(request("clicks4"))
getshows=trim(request("shows4"))
gettime=date()

elseif getclass=5 then
getclicks=trim(request("clicks5"))
getshows=0
gettime=trim(request("time5"))

elseif getclass=6 then
getclicks=0
getshows=trim(request("shows6"))
gettime=trim(request("time6"))

elseif getclass=7 then
getclicks=trim(request("clicks7"))
getshows=trim(request("shows7"))
gettime=trim(request("time7"))
end if

set adsrs=server.createobject("adodb.recordset")
adssql="select * from SMT_price where SMT_price='"&request("price")&"'"
adsrs.open adssql,conn,1,1
getpriceid=adsrs("SMT_priceid")
adsrs.close








set adsrs=server.createobject("adodb.recordset")
adssql="select * from SMT_ads"
adsrs.open adssql,conn,1,3
adsrs.AddNew
adsrs("SMT_act") = 1
adsrs("SMT_sitename") = getname
adsrs("SMT_showtype") = gettype
adsrs("SMT_url") = geturl
adsrs("SMT_gif_url") = getgif
adsrs("SMT_window") = getwin
adsrs("SMT_width") = getwidth
adsrs("SMT_height") = getheight
adsrs("SMT_class") = getclass
adsrs("SMT_clicks") = getclicks
adsrs("SMT_shows") = getshows
adsrs("SMT_lasttime") = gettime
adsrs("SMT_note") = getnote
adsrs("SMT_username") = getusername
adsrs("SMT_contact") = getcontact
adsrs("SMT_price") = request("price")
adsrs("SMT_place") = request("placeid")
adsrs("SMT_priceid")=getpriceid
adsrs("SMT_regtime") = now()
adsrs("SMT_time") = date()

adsrs.update
adsrs.close
set adsrs=nothing
conn.close
set conn=nothing
response.redirect"addads_place.asp?job=finish"
end if

%>

<script language=JavaScript>
<!--

function opw(url,name, width, height) { //v2.0
window.open(url,name,''+'width='+width+',height='+height+',scrollbars=yes'+'');

function checkform00()
{

  if (addadschk.itype.value == "nothingbeselected")
  {
    alert("请选择显示类型!");
    addadschk.itype.focus();
    return (false);
  }
  
  if (addadschk.name.value == "")
  {
    alert("请输入站名!");
    addadschk.name.focus();
    return (false);
  }
  return (true);
}
}
//-->
</script>
<table border=0 width=630 cellspacing=3 cellpadding=3 align="center">
<tr><td align=center>
<font size="3" color=red><b>添加广告</b></font>
</td></tr></table>

<table border=0 width=630 cellspacing=1 cellpadding=2 align="center" bgcolor="#000000">
<form name="addadschk"  method=POST action="addads.asp?job=add" onsubmit="return checkform00()">
                  <tr bgcolor=#ffffff> 
                    <td>广告类型</td>
                    <td> 
                      <input type="radio" name="itype" value="i" checked>
                      图片 
                      <input type="radio" name="itype" value="f">
                      Flash</td>
                  </tr>
                  <tr bgcolor=#ffffff> 
                    <td width=85>广告具体位置:</td>
                    <td width=540>广告位种类:<font color=blue><%=request("price")%></font><input type=hidden value="<%=request("price")%>" name="price"> - <font color=blue><b><%set adsrs6=server.createobject("adodb.recordset")
adssql6="select * from SMT_place where SMT_place="&request("placeid")&" and SMT_price='"&request("price")&"' order by SMT_placeid"
adsrs6.open adssql6,conn,1,1%>
<%cc=adsrs6("SMT_cc")%>
<%=adsrs6("SMT_placename")%> (<%=adsrs6("SMT_jg")%>/<%=adsrs6("SMT_jgg")%>)
<%adsrs6.close%></b></font><input type=hidden value="<%=request("placeid")%>" name="placeid">
                      位 <br>
                      (相同广告位如果有多个广告记录,将轮显所有广告。注意:轮显广告的尺寸最好一致。)</td>
                  </tr>
                  <tr bgcolor=#ffffff> 
                    <td width=85>中文站名</td>
                    <td width=540> 
                      <input type=text name="name" size=30 maxlength=30>
                       不超过15个中文或30个字母数字</td>
                  </tr>
                  <tr bgcolor=#ffffff> 
                    <td width=85>客户姓名</td>
                    <td width=540> 
                      <input type=text name="username" size=30 maxlength=30>
                       不超过15个中文或30个字母数字</td>
                  </tr>
                  <tr bgcolor=#ffffff> 
                    <td width=85>联系方式(电话或EMAIL):</td>
                    <td width=540> 
                      <input type=text name="contact" size=30 maxlength=30>
                       </td>
                  </tr>
                  <tr bgcolor=#ffffff> 
                    <td width=85>站点URL</td>
                    <td width=540> 
                      <input type=text name=url size=40 value="http://">
                    </td>
                  </tr>
                  <tr bgcolor=#ffffff> 
                    <td>图标URL</td>
                    <td> 
                      <input type=text name=gif_url size=40 value="http://"> <strong><font color="#FF0000">*</font></strong>
                    </td>
                  </tr>
                  <tr bgcolor=#ffffff> 
                    <td>广告条大小</td>
<%if cc<>"" then
cc=split(cc,"*")
for i=0 to ubound(cc)
w=cc(0)
h=cc(1)
next
end if%>
                    <td> 宽度: 
                      <input type="text" name="width" size="5" maxlength="3" value="<%=w%>">
                       高度: 
                      <input type="text" name="height" size="5" maxlength="3" value="<%=h%>">
                      <strong><font color="#FF0000">*</font></strong>(一般标准尺寸为468X60或者88X31)</td>
                  </tr>
                  <tr bgcolor=#ffffff> 
                    <td>打开方式</td>
                    <td> 
                      <select size=1 name=window>
                        <option value=0 selected>新窗口打开</option>
                        <option value=1>原窗口打开</option>
                      </select>
                    </td>
                  </tr>
                  <tr bgcolor=#c0d0e0> 
                    <td>广告播放条件</td>
                    <td> 受多个条件限制的广告,只要有一个条件满足,该广告便自动进入休眠状态,你可以修改限制条件并激活广告。</td>
                  </tr>
                  <tr bgcolor=#ffffff> 
                    <td rowspan=8 valign=top>  </td>
                    <td> 
                      <table border=0>
                        <tr> 
                          <td> 
                            <input type=radio value=0 name=class checked>
                          </td>
                          <td>无限制循环</td>
                        </tr>
                      </table>
                    </td>
                  </tr>
                  <tr> 
                    <td bgcolor=#ffffee> 
                      <table border=0>
                        <tr> 
                          <td> 
                            <input type=radio value=1 name=class>
                          </td>
                          <td>点击数不超过</td>
                          <td> 
                            <input type=text name=clicks1 size=8>
                          </td>
                        </tr>
                      </table>
                    </td>
                  </tr>
                  <tr> 
                    <td bgcolor=#ffffff> 
                      <table border="0">
                        <tr> 
                          <td> 
                            <input type=radio value=2 name=class>
                          </td>
                          <td>显示数不超过</td>
                          <td> 
                            <input type=text name=shows2 size=8>
                          </td>
                        </tr>
                      </table>
                    </td>
                  </tr>
                  <tr> 
                    <td bgcolor=#ffffee> 
                      <table border="0">
                        <tr> 
                          <td> 
                            <input type=radio value=3 name=class>
                          </td>
                          <td>显示截止期为</td>
                          <td> 
                            <input type=text name=time3 size=20>
                             <font color=#FF0000>格式为yyyy-mm-dd hh:mm:ss或者yyyy-mm-dd</font></td>
                        </tr>
                      </table>
                    </td>
                  </tr>
                  <tr> 
                    <td bgcolor=#ffffff> 
                      <table border="0">
                        <tr> 
                          <td> 
                            <input type=radio value=4 name=class>
                          </td>
                          <td>点击数不超过</td>
                          <td> 
                            <input type=text name=clicks4 size=8>
                          </td>
                        </tr>
                        <tr> 
                          <td></td>
                          <td>显示数不超过</td>
                          <td> 
                            <input type=text name=shows4 size=8>
                          </td>
                        </tr>
                      </table>
                    </td>
                  </tr>
                  <tr> 
                    <td bgcolor=#ffffee> 
                      <table border="0">
                        <tr> 
                          <td> 
                            <input type=radio value=5 name=class>
                          </td>
                          <td>点击数不超过</td>
                          <td> 
                            <input type=text name=clicks5 size=8>
                          </td>
                        </tr>
                        <tr> 
                          <td></td>
                          <td>显示截止期为</td>
                          <td> 
                            <input type=text name=time5 size=20>
                             <font color=#FF0000>格式为yyyy-mm-dd hh:mm:ss或者yyyy-mm-dd</font></td>
                        </tr>
                      </table>
                    </td>
                  </tr>
                  <tr> 
                    <td bgcolor=#ffffff> 
                      <table border="0">
                        <tr> 
                          <td> 
                            <input type=radio value=6 name=class>
                          </td>
                          <td>显示数不超过</td>
                          <td> 
                            <input type=text name=shows6 size=8>
                          </td>
                        </tr>
                        <tr> 
                          <td></td>
                          <td>显示截止期为</td>
                          <td> 
                            <input type=text name=time6 size=20>
                             <font color=#FF0000>格式为yyyy-mm-dd hh:mm:ss或者yyyy-mm-dd</font></td>
                        </tr>
                      </table>
                    </td>
                  </tr>
                  <tr> 
                    <td bgcolor=#ffffee> 
                      <table border="0">
                        <tr> 
                          <td> 
                            <input type=radio value=7 name=class>
                          </td>
                          <td>点击数不超过</td>
                          <td> 
                            <input type=text name=clicks7 size=8>
                          </td>
                        </tr>
                        <tr> 
                          <td></td>
                          <td>显示数不超过</td>
                          <td> 
                            <input type=text name=shows7 size=8>
                          </td>
                        </tr>
                        <tr> 
                          <td></td>
                          <td>显示截止期为</td>
                          <td> 
                            <input type=text name=time7 size=20>
                             <font color=#FF0000>格式为yyyy-mm-dd hh:mm:ss或者yyyy-mm-dd</font></td>
                        </tr>
                      </table>
                    </td>
                  </tr>
                  <tr bgcolor=#ffffff> 
                    <td>备注: </td>
                    <td> 
                      <textarea name="note" cols="40" rows="5"></textarea>
                    </td>
                  </tr>
                  <tr bgcolor=#ffffff> 
                    <td colspan=2 align=center> 
                      <input type=submit value=提交 name=B1>
                      <input type=reset value=重写 name=B2>
                    </td>
                  </tr>
</form>
</table>

⌨️ 快捷键说明

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