<!--#include file="../inc/admin_conn.asp"-->
<!--#include file="error.ini"-->
<!--#include file="Top.asp"-->
<%if session("flag")>1 then
    response.write "<script>alert('您的操作权限不够！');history.back();</script>"
    response.end
end if
%>
<%
    dim ads1
    dim ads2
    dim ads3
    dim ads4
    dim ads5
    
	dim ads6
	dim ads7
	dim ads8
	dim ads9
	dim ads10
	
	dim sql
	dim rs
	dim founderr
	founerr=false
	if founderr=false then
	   if request("ads1")="" then
	   ads1=null
	   else
	   ads1=request("ads1")
	   end if

	   if request("ads2")="" then
	   ads2=null
	   else
	   ads2=request("ads2")
	   end if

	   if request("ads3")="" then
	   ads3=null
	   else
	   ads3=request("ads3")
	   end if

	   if request("ads4")="" then
	   ads4=null
	   else
	   ads4=request("ads4")
	   end if	   	    

	   if request("ads5")="" then
	   ads5=null
	   else
	   ads5=request("ads5")
	   end if

	   if request("ads6")="" then
	   ads6=null
	   else
	   ads6=request("ads6")
	   end if

	   if request("ads7")="" then
	   ads7=null
	   else
	   ads7=request("ads7")
	   end if

          if request("ads8")="" then
	   ads8=null
	   else
	   ads8=request("ads8")
	   end if

          if request("ads9")="" then
	   ads9=null
	   else
	   ads9=request("ads9")
	   end if

          if request("ads10")="" then
	   ads10=null
	   else
	   ads10=request("ads10")
	   end if


'===================结束=========================
	set rs=server.createobject("adodb.recordset")
	sql="select * from ylmv_ads"
	rs.open sql,conn,3,3
	rs("ads1")=ads1
	rs("ads2")=ads2
    rs("ads3")=ads3
	rs("ads4")=ads4
	rs("ads5")=ads5		
	rs("ads6")=ads6
	rs("ads7")=ads7
	rs("ads8")=ads8
	rs("ads9")=ads9
	rs("ads10")=ads10
		rs.update
	set rs=nothing
	conn.close
	set conn=nothing
%>

<link href="Images/Admin_Style.Css" rel="stylesheet" type="text/css">

<body>
<p align="center">&nbsp;</p>
<form name="pay" method="post" action="online_pay_save.asp">
  <div align="center"><br>
    <table cellpadding="2" cellspacing="1" border="0" width="100%" class="border" align=center>
      <tr align="center" > 
        <td height=25 colspan=2 bgcolor="#009ACE" class="topbg" ><p align="center"><b><font>
          <%if request("action")="add" then%>
          <%else%>
          <%end if%>
        </font></b>                  <strong><font color="#FFFFFF">广告修改成功</font></strong> 
      <tr> 
        <td height=117 colspan="2"  class="tdbg"><div align="center"><a href="ads2.asp">数据已保存请返回</a></div>          </td>
      </tr>
    </table>
    <br>
    <font color="#00FFFF"> <br>
　    </font></div>
  </form>
  <%
else
 response.write "由于以下的原因不能保存数据："
 response.write errmsg
end if
%>
<%if makejs=1 then%>
<%end if%>
<%if classid=10 then%>
<%end if%>
</body>
</html>
