<!--#include file=conn.asp-->
<!--#include file=cookies.asp-->
<%
dim flag
flag=request.cookies("foxwww")("fox")
if flag<9 then
response.Write "<script LANGUAGE='javascript'>alert('你目前的级别不允许此操作！');history.go(-1);</script>"
response.end
end if
%>
<link rel="stylesheet" type="text/css" href="images/fox.css">
<style type=text/css>
BODY{
	margin:0px;
	FONT-SIZE: 12px;
	FONT-FAMILY: "宋体", "Verdana", "Arial", "Helvetica", "sans-serif";
	background-color: #CCCC99; 
	scrollbar-highlight-color: #CC9933; 
	scrollbar-arrow-color: #FFFFFF; 
	scrollbar-base-color: #CC9933
}
table { border:0px; }
td { font:normal 12px 宋体; }
img { vertical-align:bottom; border:0px; }
a { font:normal 12px 宋体; color:#111111; text-decoration:none; }
a:hover { color:#384780;text-decoration:underline; }
.sec_menu { border-left:2px solid #CC3300; border-right:2px solid #CC3300; border-bottom:2px solid #CC3300; overflow:hidden; background:#ffffff; }
.menu_title {background-color: #335EA8;color: white;font-size: 12px;font-weight:bold;height: 25; }
.menu_title span { position:relative; top:2px; left:8px; color:#FFFF00; font-weight:bold; }
.menu_title2 {background-color: #335EA8;color: white;font-size: 12px;font-weight:bold;height: 25; }
.menu_title2 span { position:relative; top:2px; left:8px; color:#FEFEFE; font-weight:bold; }
input,select,Textarea{
font-family:宋体,Verdana, Arial, Helvetica, sans-serif; font-size: 12px;}
</style>
<%dim rs,sql,pic,url,pic1,url1,pic2,url2,pic3,url3,pic4,url4,pic5,url5,pic11,url11,pic21,url21,pic31,url31,pic41,url41,pic6,url6,pic7,url7
set rs=server.createobject("adodb.recordset")
sql="select * from FOX_ad"
rs.open sql,conn,1,1
pic=rs("pic")
url=rs("url")
pic1=rs("pic1")
url1=rs("url1")
pic2=rs("pic2")
url2=rs("url2")
pic3=rs("pic3")
url3=rs("url3")
pic4=rs("pic4")
url4=rs("url4")
pic5=rs("pic5")
url5=rs("url5")
pic11=rs("pic11")
url11=rs("url11")
pic21=rs("pic21")
url21=rs("url21")
pic31=rs("pic31")
url31=rs("url31")
pic41=rs("pic41")
url41=rs("url41")
pic6=rs("pic6")
url6=rs("url6")
pic7=rs("pic7")
url7=rs("url7")
rs.close
set rs=nothing%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center">
      <form name="form1" method="POST" action="admin_ad.asp?fox=1">
        <table border="1" cellspacing="0" cellpadding="0" bgcolor="#F5F5F5" width="100%" style="border-collapse: collapse" bordercolor="#ADAED6">
          <tr> 
            <td height="28" bgcolor="#CC3300" bordercolor="#FF0000"><span class="style1">
			<font color="#FEFEFE"><b>&nbsp;网站首页广告设置</b></font></span></td>
          </tr>
          <tr> 
            <td bgcolor="#FFFFFF" align="center"> 
              <table width="96%" border="0" cellspacing="0" cellpadding="2">
                <tr>
                  <td width="105%" colspan="2" bgcolor="#D6D6D6">首页中部FLASH轮播广告位</td>
                </tr>
                <tr>
                  <td width="20%" bgcolor="#EEEEEE">
					<p align="right">图片地址：</td>
                  <td width="85%" bgcolor="#EEEEEE"> 
                    <input type="text" name="pic" value="<%=pic%>" size="20" style="font-family: 宋体,Verdana, Arial, Helvetica, sans-serif; font-size: 12px">
                  	图片大小：宽760高100，<font color="#FF6C3B"><b>必须为.jpg</b></font></td>
                </tr>
                <tr>
                  <td width="20%">
					<p align="right">链接地址：</td>
                  <td width="85%"> 
                    <input type="text" name="url" value="<%=url%>" size="20" style="font-family: 宋体,Verdana, Arial, Helvetica, sans-serif; font-size: 12px"></td>
                </tr>
                <tr>
                  <td width="20%" bgcolor="#EEEEEE">
					<p align="right">图片地址：</td>
                  <td width="85%" bgcolor="#EEEEEE"> 
                    <input type="text" name="pic11" value="<%=pic11%>" size="20" style="font-family: 宋体,Verdana, Arial, Helvetica, sans-serif; font-size: 12px">
                  	图片大小：宽760高100，<font color="#FF6C3B"><b>必须为.jpg</b></font></td>
                </tr>
                <tr>
                  <td width="20%">
					<p align="right">链接地址：</td>
                  <td width="85%"> 
                    <input type="text" name="url11" value="<%=url11%>" size="20" style="font-family: 宋体,Verdana, Arial, Helvetica, sans-serif; font-size: 12px"></td>
                </tr>   
                <tr>
                  <td width="20%" bgcolor="#EEEEEE">
					<p align="right">图片地址：</td>
                  <td width="85%" bgcolor="#EEEEEE"> 
                    <input type="text" name="pic21" value="<%=pic21%>" size="20" style="font-family: 宋体,Verdana, Arial, Helvetica, sans-serif; font-size: 12px">
                  	图片大小：宽760高100，<font color="#FF6C3B"><b>必须为.jpg</b></font></td>
                </tr>
                <tr>
                  <td width="20%">
					<p align="right">链接地址：</td>
                  <td width="85%"> 
                    <input type="text" name="url21" value="<%=url21%>" size="20" style="font-family: 宋体,Verdana, Arial, Helvetica, sans-serif; font-size: 12px"></td>
                </tr>                             
                <tr>
                  <td width="20%" bgcolor="#EEEEEE">
					<p align="right">图片地址：</td>
                  <td width="85%" bgcolor="#EEEEEE"> 
                    <input type="text" name="pic31" value="<%=pic31%>" size="20" style="font-family: 宋体,Verdana, Arial, Helvetica, sans-serif; font-size: 12px">
                  	图片大小：宽760高100，<font color="#FF6C3B"><b>必须为.jpg</b></font></td>
                </tr>
                <tr>
                  <td width="20%">
					<p align="right">链接地址：</td>
                  <td width="85%"> 
                    <input type="text" name="url31" value="<%=url31%>" size="20" style="font-family: 宋体,Verdana, Arial, Helvetica, sans-serif; font-size: 12px"></td>
                </tr> 
                <tr>
                  <td width="20%" bgcolor="#EEEEEE">
					<p align="right">图片地址：</td>
                  <td width="85%" bgcolor="#EEEEEE"> 
                    <input type="text" name="pic41" value="<%=pic41%>" size="20" style="font-family: 宋体,Verdana, Arial, Helvetica, sans-serif; font-size: 12px">
                  	图片大小：宽760高100，<font color="#FF6C3B"><b>必须为.jpg</b></font></td>
                </tr>
                <tr>
                  <td width="20%">
					<p align="right">链接地址：</td>
                  <td width="85%"> 
                    <input type="text" name="url41" value="<%=url41%>" size="20" style="font-family: 宋体,Verdana, Arial, Helvetica, sans-serif; font-size: 12px"></td>
                </tr>
                <tr>
                 <td width="105%" colspan="2" bgcolor="#D6D6D6">首页左栏及中下栏小广告位</td>
                </tr>
                                            
                <tr>
                  <td width="20%">广告位一</td>
                  <td width="85%"> 
                    　</td>
                </tr>
				<tr>
                  <td width="20%" align="right">图片地址：</td>
                  <td width="85%"> 
                    <input type="text" name="pic1" value="<%=pic1%>" size="20" style="font-family: 宋体,Verdana, Arial, Helvetica, sans-serif; font-size: 12px">
                  	图片大小：宽180高60<font color="#FF0000"> ----左边小广告上</font></td>
                	</tr>
					<tr>
                  <td align="right">链接地址：</td>
                  <td> 
                    <input type="text" name="url1" value="<%=url1%>" size="20" style="font-family: 宋体,Verdana, Arial, Helvetica, sans-serif; font-size: 12px">
                  </td>
                	</tr>
					<tr>
                  <td width="20%">广告位二</td>
                  <td width="85%"> 
                    　</td>
                	</tr>
					<tr>
                  <td width="20%" align="right">图片地址：</td>
                  <td width="85%"> 
                    <input type="text" name="pic2" value="<%=pic2%>" size="20" style="font-family: 宋体,Verdana, Arial, Helvetica, sans-serif; font-size: 12px">
                  	图片大小：宽180高60<font color="#FF0000"> ----左边小广告下</font></td>
                	</tr>
					<tr>
                  <td align="right">链接地址：</td>
                  <td> 
                    <input type="text" name="url2" value="<%=url2%>" size="20" style="font-family: 宋体,Verdana, Arial, Helvetica, sans-serif; font-size: 12px">
                  </td>
                	</tr>
					<tr>
                  <td width="20%">广告位三</td>
                  <td width="85%"> 
                    　</td>
                	</tr>
					<tr>
                  <td width="20%" align="right">图片地址：</td>
                  <td width="85%"> 
                    <input type="text" name="pic3" value="<%=pic3%>" size="20" style="font-family: 宋体,Verdana, Arial, Helvetica, sans-serif; font-size: 12px">
                  	图片大小：宽460高60<font color="#FF0000"> ----中部通栏广告左</font></td>
                	</tr>
					<tr>
                  <td align="right">链接地址：</td>
                  <td> 
                    <input type="text" name="url3" value="<%=url3%>" size="20" style="font-family: 宋体,Verdana, Arial, Helvetica, sans-serif; font-size: 12px">
                  </td>
                	</tr>
                <tr> 
                  <td width="20%">广告位四</td>
                  <td width="85%"> 
                    　</td>
                </tr>
                <tr> 
                  <td width="20%" align="right">图片地址：</td>
                  <td width="85%"> 
                    <input type="text" name="pic4" value="<%=pic4%>" size="20">
                  	图片大小：宽460高60<font color="#FF0000"> ----中部通栏广告右</font></td>
                </tr>
                <tr> 
                  <td align="right">链接地址：</td>
                  <td> 
                    <input type="text" name="url4" value="<%=url4%>" size="20">
                  </td>
                </tr>
                <tr> 
                  <td width="105%" colspan="2" bgcolor="#D6D6D6">首页通栏广告位</td>
                </tr>
                <tr> 
                  <td width="20%" align="right" bgcolor="#F6F6F6">图片地址：</td>
                  <td width="85%" bgcolor="#F6F6F6"> 
                    <input type="text" name="pic5" value="<%=pic5%>" size="20">
                  	图片大小：宽930高100(注意，必须为FLASH）<font color="#FF0000">----最顶部广告</font></td>
                </tr>
                <tr> 
                  <td align="right">链接地址：</td>
                  <td> 
                    <input type="text" name="url5" value="<%=url5%>" size="20">
                  	<font color="#3399FF">请在flash中做好链接即可，地址无用</font></td>
                </tr>
                <tr> 
                  <td width="20%" align="right" bgcolor="#F6F6F6">图片地址：</td>
                  <td width="85%" bgcolor="#F6F6F6"> 
                    <input type="text" name="pic6" value="<%=pic6%>" size="20">
                  	图片大小：宽930高80(注意，必须为FLASH）<font color="#FF0000">----中部广告</font></td>
                </tr>
                <tr> 
                  <td align="right">链接地址：</td>
                  <td> 
                    <input type="text" name="url6" value="<%=url6%>" size="20">
                  	<font color="#3399FF">请在flash中做好链接即可，地址无用</font></td>
                </tr>
                <tr> 
                  <td width="20%" align="right" bgcolor="#F6F6F6">图片地址：</td>
                  <td width="85%" bgcolor="#F6F6F6"> 
                    <input type="text" name="pic7" value="<%=pic7%>" size="20">
                  	图片大小：宽930高80(注意，必须为FLASH）<font color="#FF0000">----底部广告</font></td>
                </tr>
                <tr> 
                  <td align="right">链接地址：</td>
                  <td> 
                    <input type="text" name="url7" value="<%=url7%>" size="20">
                  	<font color="#3399FF">请在flash中做好链接即可，地址无用</font></td>
                </tr>                                
                </table>
            </td>
          </tr>
          <tr>
            <td height="35" align="center" bgcolor="#eeeeee"> 
              <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td><div align="center">
                    <input type="submit" name="Submit" value="确认设置" class="Tips_bo">
                  </div></td>
                  <td><div align="center">
                    <input type="reset" name="Submit" value="取消设置" class="Tips_bo">
                  </div></td>
                </tr>
              </table>
            </td>
          </tr>
          </table>
      </form>
    </td>
  </tr>
</table>
<%sub fox_1()
set rs=server.createobject("adodb.recordset")
sql="select * from FOX_ad"
rs.open sql,conn,1,3
rs("pic")=trim(request("pic"))
rs("url")=trim(request("url"))
rs("pic1")=trim(request("pic1"))
rs("url1")=trim(request("url1"))
rs("pic2")=trim(request("pic2"))
rs("url2")=trim(request("url2"))
rs("pic3")=trim(request("pic3"))
rs("url3")=trim(request("url3"))
rs("pic4")=trim(request("pic4"))
rs("url4")=trim(request("url4"))
rs("pic5")=trim(request("pic5"))
rs("url5")=trim(request("url5"))
rs("pic11")=trim(request("pic11"))
rs("url11")=trim(request("url11"))
rs("pic21")=trim(request("pic21"))
rs("url21")=trim(request("url21"))
rs("pic31")=trim(request("pic31"))
rs("url31")=trim(request("url31"))
rs("pic41")=trim(request("pic41"))
rs("url41")=trim(request("url41"))
rs("pic6")=trim(request("pic6"))
rs("url6")=trim(request("url6"))
rs("pic7")=trim(request("pic7"))
rs("url7")=trim(request("url7"))
rs.update
rs.close
set rs=nothing
    Response.Write "<script>alert('设置成功！');this.location.href='admin_ad.asp';</SCRIPT>"
     response.end
Response.Redirect "admin_ad.asp"
end sub%>
<%
if request("fox")="1" then
fox_1()
end if
%></body></html>