<!--#include file="../utf-8.asp" -->
<!--#include file="../js/Function.asp" -->
<!--#include file="../html/yidacms_htmlurl.asp" -->
<!--#include file="../js/admin_vipkp.asp" -->
<!--#include file="../CheckAdmin.asp" -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<META NAME="copyright" CONTENT="Copyright 2010-2012 - yidacms.com" />
<META NAME="Author" CONTENT="世纪伟成  yidacms.com" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../js/admin.css" rel="stylesheet" type="text/css">
<title>广告配置！</title>
<link rel="stylesheet" href="../js/reveal.css">	
<script type="text/javascript" src="../js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="../js/jquery.reveal.js"></script>
</head>
<body>
<%
'版权：世纪伟成(http://yidacms.com)
'本信息不会影响您网站的正常访问，无论免费用户或是收费用户请保留这里的信息.
'如果您删除了这里的版权信息,将追究法律责任.

       		if request("t")="ad" Then 
		  
		dim rs,sql : yidacms_id = cint(request("id"))
		set rs=server.createobject("adodb.recordset")
		sql="select * from shuaiweb_ad WHERE id = "&yidacms_id&"" 
		rs.open sql,dbok,1,3
			rs("shuaiweb_adimg1")=trim(request.form("shuaiweb_adimg1"))
			rs("shuaiweb_adurl1")=trim(request.form("shuaiweb_adurl1"))
			rs("shuaiweb_adimg2")=trim(request.form("shuaiweb_adimg2"))
			rs("shuaiweb_adurl2")=trim(request.form("shuaiweb_adurl2"))
			rs("shuaiweb_adimg3")=trim(request.form("shuaiweb_adimg3"))
			rs("shuaiweb_adurl3")=trim(request.form("shuaiweb_adurl3"))
			rs("shuaiweb_adtitle")=trim(request.form("shuaiweb_adtitle"))
			rs("shuaiweb_adneirong1")=trim(request.form("shuaiweb_adneirong1"))
		rs.update
		rs.close
		set rs=nothing
		response.write "<script language=javascript> alert('创建成功！');history.back(-1);</script>"
		response.end
		End If

		set rs = server.createobject("adodb.recordset")
		sql="select * from shuaiweb_ad WHERE id = 1 ORDER BY id DESC"
		rs.open sql,dbok,1,1
%><br />
   <br />
	<form id="form1" name="form1" method="post" action="admin_adt.asp?t=ad&id=1">
		<table width="98%" height="100%" border="1" cellpadding="10" cellspacing="0" bordercolor="#cccccc" bgcolor="#FFFFFF" style="border-collapse:collapse" align="center">
			<tr>
			  <td onMouseOver="this.id='aa'" onMouseOut="this.id='bb'" class="cc"><a href="admin_ad.asp">文本广告</a></td>
                        </tr>
		</table>
<br />
 <br />
		<table width="98%" height="100%" border="1" cellpadding="10" cellspacing="0" bordercolor="#cccccc" bgcolor="#FFFFFF" style="border-collapse:collapse" align="center">
			<tr>
			  <td onMouseOver="this.id='aa'" onMouseOut="this.id='bb'" class="cc">设置页面漂浮广告,调用标签: {YidacmsAd:floating}</td>
                        </tr>
			<tr>
			  <td onMouseOver="this.id='aa'" onMouseOut="this.id='bb'" class="cc"><div class="uppic">广告图片<br /><input name="shuaiweb_adimg1" type="text" id="yidacms_adpic" value="<%=rs("shuaiweb_adimg1")%>" class="win"/></div><div class="uppic2"><iframe width="305" height="34" marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no src="../../uploadclass/upload/upfile.asp?class=1&upload_class=ad" allowtransparency="true" ></iframe></div></td>
                        </tr>
			<tr>
			  <td width="90%" onMouseOver="this.id='aa'" onMouseOut="this.id='bb'" class="cc">连接地址<br /><input name="shuaiweb_adurl1" type="text" value="<%=rs("shuaiweb_adurl1")%>" class="win"/></td>
			</tr>
		</table>
<div style="border-bottom:1px #CCCCCC solid; margin-top:15px; margin-bottom:15px; width:100%; height:1px;"></div>
		<table width="98%" height="100%" border="1" cellpadding="10" cellspacing="0" bordercolor="#cccccc" bgcolor="#FFFFFF" style="border-collapse:collapse" align="center">
			<tr>
			  <td onMouseOver="this.id='aa'" onMouseOut="this.id='bb'" class="cc">设置对联广告,调用标签: {YidacmsAd:couplets}</td>
                        </tr>
			<tr>
			  <td onMouseOver="this.id='aa'" onMouseOut="this.id='bb'" class="cc"><div class="uppic">对联左侧图片<br /><input name="shuaiweb_adimg2" id="yidacms_adpic2" type="text" value="<%=rs("shuaiweb_adimg2")%>" class="win"/></div><div class="uppic2"><iframe width="305" height="34" marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no src="../../uploadclass/upload/upfile.asp?class=2&upload_class=ad" allowtransparency="true" ></iframe></div></td>
                        </tr>
			<tr>
			  <td width="90%" onMouseOver="this.id='aa'" onMouseOut="this.id='bb'" class="cc">左侧连接地址<br /><input name="shuaiweb_adurl2" type="text" value="<%=rs("shuaiweb_adurl2")%>" class="win"/></td>
			</tr>
			<tr>
			  <td onMouseOver="this.id='aa'" onMouseOut="this.id='bb'" class="cc"><div class="uppic">对联右侧图片<br /><input name="shuaiweb_adimg3" id="yidacms_adpic3" type="text" value="<%=rs("shuaiweb_adimg3")%>" class="win"/></div><div class="uppic2"><iframe width="305" height="34" marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no src="../../uploadclass/upload/upfile.asp?class=3&upload_class=ad" allowtransparency="true" ></iframe></div></td>
                        </tr>
			<tr>
			  <td width="90%" onMouseOver="this.id='aa'" onMouseOut="this.id='bb'" class="cc">右侧连接地址<br /><input name="shuaiweb_adurl3" type="text" value="<%=rs("shuaiweb_adurl3")%>" class="win"/></td>
			</tr>
		</table>
<div style="border-bottom:1px #CCCCCC solid; margin-top:15px; margin-bottom:15px; width:100%; height:1px;"></div>
		<table width="98%" height="100%" border="1" cellpadding="10" cellspacing="0" bordercolor="#cccccc" bgcolor="#FFFFFF" style="border-collapse:collapse" align="center">
			<tr>
			  <td onMouseOver="this.id='aa'" onMouseOut="this.id='bb'" class="cc">设置右下角弹出广告,调用标签: {YidacmsAd:popup}</td>
                        </tr>
			<tr>
			  <td onMouseOver="this.id='aa'" onMouseOut="this.id='bb'" class="cc">广告标题<br /><input name="shuaiweb_adtitle" type="text" value="<%=rs("shuaiweb_adtitle")%>" class="win"/></td>
                        </tr>
			<tr>
			  <td width="90%" onMouseOver="this.id='aa'" onMouseOut="this.id='bb'" class="cc">广告内容<br /><input name="shuaiweb_adneirong1" type="text" value="<%=rs("shuaiweb_adneirong1")%>" class="win"/></td>
			</tr>
			<tr>
			  <td><input type="submit" name="Submit" value="提交" class="inanniu"/>
			  <input type="reset" name="Submit2" value="重置" class="inanniu" /></td>
			</tr>
		</table>
			</form>

</body>
</html>
