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

📄 addads.asp

📁 嘉缘人才6.0精简 ,很好用的人才系统
💻 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"))
if IsNumeric(getwidth)=false then getwidth=0
getheight=trim(Request("height"))
if IsNumeric(getheight)=false then getheight=0
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 JOB_price where JOB_price='"&request("price")&"'"
adsrs.open adssql,conn,1,1
if not adsrs.eof then
getpriceid=adsrs("JOB_priceid")
end if
adsrs.close

set adsrs=server.createobject("adodb.recordset")
adssql="select * from JOB_ads"
adsrs.open adssql,conn,1,3
adsrs.AddNew
adsrs("JOB_act") = 1
adsrs("JOB_sitename") = getname
adsrs("JOB_showtype") = gettype
adsrs("JOB_url") = geturl
adsrs("JOB_gif_url") = getgif
adsrs("JOB_window") = getwin
adsrs("JOB_width") = getwidth
adsrs("JOB_height") = getheight
adsrs("JOB_class") = getclass
adsrs("JOB_clicks") = getclicks
adsrs("JOB_shows") = getshows
adsrs("JOB_lasttime") = gettime
adsrs("JOB_note") = getnote
adsrs("JOB_username") = getusername
adsrs("JOB_contact") = getcontact
adsrs("JOB_price") = request("price")
adsrs("JOB_place") = request("placeid")
adsrs("JOB_priceid")=getpriceid
adsrs("JOB_regtime") = now()
adsrs("JOB_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 checkaddads(thisform)
{

  
  if (thisform.name.value == "")
  {
    alert("请输入站名!");
    thisform.name.focus();
    return false;
  }
  if (thisform.url.value=="http://")
  {
  	alert("请输入站点url");
	thisform.url.focus();
	return false;
	}
  if (thisform.gif_url.value=="http://")
  {
  	alert("请输入图标url");
	thisform.gif_url.focus();
	return false;
	}
}

//-->
</script><table border=0 align="center" cellpadding=0 cellspacing=1 class="tableBorder">
 <tr>
    <th height="25" colspan="2">添加广告</th>
  </tr>
<form name="addadschk"  method=POST action="addads.asp?job=add" onSubmit="return checkaddads(this)">
                  <tr bgcolor=#ffffff> 
                    <td height="25">广告类型</td>
                    <td> 
                      <input name="itype" type="radio" class="checkbox" value="i" checked>
                      图片 
                      <input name="itype" type="radio" class="checkbox" value="f">
                    Flash</td>
                  </tr>
                  <tr bgcolor=#ffffff> 
                    <td height="25">广告具体位置:</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 JOB_place where JOB_place="&request("placeid")&" and JOB_price='"&request("price")&"' order by JOB_placeid"
adsrs6.open adssql6,conn,1,1%>
<%cc=adsrs6("JOB_cc")%>
<%=adsrs6("JOB_placename")%> (<%=adsrs6("JOB_jg")%>/<%=adsrs6("JOB_jgg")%>)
<%adsrs6.close%></b></font><input type=hidden value="<%=request("placeid")%>" name="placeid">
                      位 <br>
                    (相同广告位如果有多个广告记录,将轮显所有广告。注意:轮显广告的尺寸最好一致。)</td>
                  </tr>
                  <tr bgcolor=#ffffff> 
                    <td height="25">中文站名</td>
                    <td width=540> 
                      <input type=text name="name" size=30 maxlength=30>
                    <strong><font color="#FF0000">*</font></strong>  不超过15个中文或30个字母数字</td>
                  </tr>
                  <tr bgcolor=#ffffff> 
                    <td height="25">客户姓名</td>
                    <td width=540> 
                      <input type=text name="username" size=30 maxlength=30>
                     不超过15个中文或30个字母数字</td>
                  </tr>
                  <tr bgcolor=#ffffff> 
                    <td height="25">联系方式(电话或EMAIL):</td>
                    <td width=540> 
                      <input type=text name="contact" size=30 maxlength=30>
                     </td>
                  </tr>
                  <tr bgcolor=#ffffff> 
                    <td height="25">站点URL</td>
                    <td width=540> 
                      <input type=text name=url size=40 value="http://">                    </td>
                  </tr>
                  <tr bgcolor=#ffffff> 
                    <td height="25">图标URL</td>
                    <td> 
                    <input type=text name=gif_url size=40 value="/ads/">
                    <span>
                    <input name="upfile" type="button" class="inputs" onClick="javascript:opw('../inc/job_up.asp?fromForm=addadschk&fromEdit=gif_url&saveTo=../../ads/&showPath=/ads/','adpic',420,165)" value="浏览文件">
                    </span> <strong><font color="#FF0000">*</font></strong>                    </td>
                  </tr>
                  
                  <tr bgcolor=#ffffff> 
                    <td height="25">广告条大小</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,如要按原始大小显示请输入值为0)</td>
                  </tr>
                  <tr bgcolor=#ffffff> 
                    <td height="25">打开方式</td>
                    <td> 
                      <select size=1 name=window>
                        <option value=0 selected>新窗口打开</option>
                        <option value=1>原窗口打开</option>
                    </select>                    </td>
                  </tr>
                  <tr bgcolor=#c0d0e0> 
                    <td height="25">广告播放条件</td>
                    <td> 受多个条件限制的广告,只要有一个条件满足,该广告便自动进入休眠状态,你可以修改限制条件并激活广告。</td>
                  </tr>
                  <tr bgcolor=#ffffff> 
                    <td rowspan=8 valign=top>  </td>
                    <td> 
                      <table border=0>
                        <tr> 
                          <td> 
                            <input name=class type=radio class="checkbox" value=0 checked>                          </td>
                          <td>无限制循环</td>
                        </tr>
                    </table>                    </td>
                  </tr>
                  <tr> 
                    <td bgcolor=#ffffee> 
                      <table border=0>
                        <tr> 
                          <td> 
                            <input name=class type=radio class="checkbox" value=1>                          </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 name=class type=radio class="checkbox" value=2>                          </td>
                          <td>显示数不超过</td>
                          <td> 
                            <input type=text name=shows2 size=8>                          </td>
                        </tr>
                    </table>                    </td>
                  </tr>
                  <tr> 
                    <td> 
                      <table border="0">
                        <tr> 
                          <td> 
                            <input name=class type=radio class="checkbox" value=3>                          </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 name=class type=radio class="checkbox" value=4>                          </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 name=class type=radio class="checkbox" value=5>                          </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 name=class type=radio class="checkbox" value=6>                          </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 name=class type=radio class="checkbox" value=7>                          </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 name=B1 type=submit class="inputs" value=提交>
                    <input name=B2 type=reset class="inputs" value=重写>                    </td>
                  </tr>
</form>
</table>

⌨️ 快捷键说明

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