<%
if request.cookies("buyok")("admin")="" then response.write "<meta http-equiv='refresh' content='0;URL=../admin.asp'>"
%>
<!--#include file="../include/config.asp"-->

<script language=javascript src=../include/mouse.js></script>
<%
sub checkmanage(str)
Set mrs = conn.Execute("select * from manage where username='"&request.cookies("buyok")("admin")&"'")
if not (mrs.bof and mrs.eof) then
manage=mrs("manage")
if instr(manage,str)<=0 then
response.write "<script language='javascript'>"
response.write "alert('警告：您没有此项操作的权限！');"
response.write "location.href='quit.asp';"
response.write "</script>"
response.end
else
session("buyok_admin_login")=0
end if
else 
response.write "<script language='javascript'>"
response.write "alert('没有登陆，不能执行此操作！');"
response.write "location.href='quit.asp';"
response.write "</script>"
response.end
end if
set mrs=nothing
end sub
%>
<%call checkmanage("02")%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../images/css.css" type=text/css rel=stylesheet>
<LINK href="../list/newhead.css" type=text/css rel=stylesheet>
</head>
<BODY bgcolor="#D9EAFC">
<%
action=request("ok")
if action="" then
Set rs = conn.Execute("select * from adv1") 
show=request("show") 
if show="" then show=rs("adv1")
%>
<table height="5"><tr><td></td></tr></table>
<TABLE cellSpacing=0 cellPadding=0 width=95% border=0 style="BORDER-RIGHT: #b1bfee 1px solid; BORDER-TOP: #b1bfee 1px solid; BORDER-LEFT: #b1bfee 1px solid; BORDER-BOTTOM: #b1bfee 1px solid" 
>
  <TBODY>
    <TR>
      <TD width="90%" bgColor=#f4f5fd><font color="#000000">　<B><font color="#FF0000">&nbsp;首页左下角广告设置</font></B></font></TD>
      <TD bgColor=#f4f5fd height=30><font color="#000000">&nbsp;</font></TD>
    </TR>
  </TBODY>
</TABLE>
		  <table height="5"><tr><td></td></tr></table>

	<form action=adv_zuoxia.asp method=post name=adv>

  <table width="95%"  border="0" cellpadding="0" cellspacing="1" bgcolor="#b1bfee"><tr bgcolor="#FFFFFF">
    <td width=20% height="18" align=right>图片类型</td>
    <td> <input type="radio" value="1" name="flash8" <%if show="1" then%>checked<%end if%> onclick="javascript:location.href='adv_zuoxia.asp?show=1';">
      一张图片<br> <input type="radio" value="2" name="flash8" <%if show="2" then%>checked<%end if%> onclick="javascript:location.href='adv_zuoxia.asp?show=2';">
      两张图片<br> <input type="radio" value="3" name="flash8" <%if show="3" then%>checked<%end if%> onclick="javascript:location.href='adv_zuoxia.asp?show=3';">
      三张图片<br> <input type="radio" value="4" name="flash8" <%if show="4" then%>checked<%end if%> onclick="javascript:location.href='adv_zuoxia.asp?show=4';">
      四张图片<br> <input type="radio" value="0" name="flash8" <%if show="0" then%>checked<%end if%> onclick="javascript:location.href='adv_zuoxia.asp?show=0';">
      隐藏横幅</td>
    </tr>
    <%if show="1" then%>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>JPG/GIF图片</td>
      <td> <input type=text value="<%=rs("hf130pic")%>" name=hf130pic size=40 maxlength=100> 
        <INPUT TYPE="button" value="浏览"  onClick="window.open('upload.asp?fuptype=adv&fupname=banner130&frmname=hf130pic','blank_','scrollbars=yes,resizable=no,width=650,height=450')"></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>链接</td>
      <td> <input type=text value="<%=rs("hf130url")%>" name=hf130url size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>说明</td>
      <td> <input type=text value="<%=rs("hf130tit")%>" name=hf130tit size=40 maxlength=100></td>
    </tr>
    <%end if%>
    <%if show="2" then%>
    <tr bgcolor="#FFFFFF">
      <td width=20%>第一张图片</td>
      <td></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>JPG/GIF图片</td>
      <td> <input type=text value="<%=rs("hf131pic")%>" name=hf131pic size=40 maxlength=100> 
        <INPUT TYPE="button" value="浏览"  onClick="window.open('upload.asp?fuptype=adv&fupname=banner131&frmname=hf131pic','blank_','scrollbars=yes,resizable=no,width=650,height=450')"></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>链接</td>
      <td> <input type=text value="<%=rs("hf131url")%>" name=hf131url size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>说明</td>
      <td> <input type=text value="<%=rs("hf131tit")%>" name=hf131tit size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td width=20%>第二张图片</td>
      <td></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>JPG/GIF图片</td>
      <td> <input type=text value="<%=rs("hf132pic")%>" name=hf132pic size=40 maxlength=100> 
        <INPUT TYPE="button" value="浏览"  onClick="window.open('upload.asp?fuptype=adv&fupname=banner132&frmname=hf132pic','blank_','scrollbars=yes,resizable=no,width=650,height=450')"></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>链接</td>
      <td> <input type=text value="<%=rs("hf132url")%>" name=hf132url size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>说明</td>
      <td> <input type=text value="<%=rs("hf132tit")%>" name=hf132tit size=40 maxlength=100></td>
    </tr>
    <%end if%>
    <%if show="3" then%>
    <tr bgcolor="#FFFFFF">
      <td width=20%>第一张图片</td>
      <td></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>JPG/GIF图片</td>
      <td> <input type=text value="<%=rs("hf133pic")%>" name=hf133pic size=40 maxlength=100> 
        <INPUT TYPE="button" value="浏览"  onClick="window.open('upload.asp?fuptype=adv&fupname=banner133&frmname=hf133pic','blank_','scrollbars=yes,resizable=no,width=650,height=450')"></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>链接</td>
      <td> <input type=text value="<%=rs("hf133url")%>" name=hf133url size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>说明</td>
      <td> <input type=text value="<%=rs("hf133tit")%>" name=hf133tit size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td width=20%>第二张图片</td>
      <td></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>JPG/GIF图片</td>
      <td> <input type=text value="<%=rs("hf134pic")%>" name=hf134pic size=40 maxlength=100> 
        <INPUT TYPE="button" value="浏览"  onClick="window.open('upload.asp?fuptype=adv&fupname=banner134&frmname=hf134pic','blank_','scrollbars=yes,resizable=no,width=650,height=450')"></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>链接</td>
      <td> <input type=text value="<%=rs("hf134url")%>" name=hf134url size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>说明</td>
      <td> <input type=text value="<%=rs("hf134tit")%>" name=hf134tit size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td width=20%>第三张图片</td>
      <td></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>JPG/GIF图片</td>
      <td> <input type=text value="<%=rs("hf135pic")%>" name=hf135pic size=40 maxlength=100> 
        <INPUT TYPE="button" value="浏览"  onClick="window.open('upload.asp?fuptype=adv&fupname=banner135&frmname=hf135pic','blank_','scrollbars=yes,resizable=no,width=650,height=450')"></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>链接</td>
      <td> <input type=text value="<%=rs("hf135url")%>" name=hf135url size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>说明</td>
      <td> <input type=text value="<%=rs("hf135tit")%>" name=hf135tit size=40 maxlength=100></td>
    </tr>
    <%end if%>
    <%if show="4" then%>
    <tr bgcolor="#FFFFFF">
      <td width=20%>第一张图片</td>
      <td></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>JPG/GIF图片</td>
      <td> <input type=text value="<%=rs("hf136pic")%>" name=hf136pic size=40 maxlength=100> 
        <INPUT TYPE="button" value="浏览"  onClick="window.open('upload.asp?fuptype=adv&fupname=banner136&frmname=hf136pic','blank_','scrollbars=yes,resizable=no,width=650,height=450')"></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>链接</td>
      <td> <input type=text value="<%=rs("hf136url")%>" name=hf136url size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>说明</td>
      <td> <input type=text value="<%=rs("hf136tit")%>" name=hf136tit size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td width=20%>第二张图片</td>
      <td></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>JPG/GIF图片</td>
      <td> <input type=text value="<%=rs("hf137pic")%>" name=hf137pic size=40 maxlength=100> 
        <INPUT TYPE="button" value="浏览"  onClick="window.open('upload.asp?fuptype=adv&fupname=banner137&frmname=hf137pic','blank_','scrollbars=yes,resizable=no,width=650,height=450')"></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>链接</td>
      <td> <input type=text value="<%=rs("hf137url")%>" name=hf137url size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>说明</td>
      <td> <input type=text value="<%=rs("hf137tit")%>" name=hf137tit size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td width=20%>第三张图片</td>
      <td></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>JPG/GIF图片</td>
      <td> <input type=text value="<%=rs("hf138pic")%>" name=hf138pic size=40 maxlength=100> 
        <INPUT TYPE="button" value="浏览"  onClick="window.open('upload.asp?fuptype=adv&fupname=banner138&frmname=hf138pic','blank_','scrollbars=yes,resizable=no,width=650,height=450')"></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>链接</td>
      <td> <input type=text value="<%=rs("hf138url")%>" name=hf138url size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>说明</td>
      <td> <input type=text value="<%=rs("hf138tit")%>" name=hf138tit size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td width=20%>第四张图片</td>
      <td></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>JPG/GIF图片</td>
      <td> <input type=text value="<%=rs("hf139pic")%>" name=hf139pic size=40 maxlength=100> 
        <INPUT TYPE="button" value="浏览"  onClick="window.open('upload.asp?fuptype=adv&fupname=banner139&frmname=hf139pic','blank_','scrollbars=yes,resizable=no,width=650,height=450')"></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>链接</td>
      <td> <input type=text value="<%=rs("hf139url")%>" name=hf139url size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>说明</td>
      <td> <input type=text value="<%=rs("hf139tit")%>" name=hf139tit size=40 maxlength=100></td>
    </tr>
    <%end if%>
    <tr bgcolor="#FFFFFF"> 
      <td colspan=2> <INPUT name="ok" TYPE="hidden" value="ok"> <INPUT name=action TYPE="submit" value="保存设置"></td>
    </tr>
  </table>
  		  <table height="5"><tr><td></td></tr></table>

</form>
	
<%
	rs.close
	set rs=nothing
end if%>
<%              
if action="ok" then


     Set rs=Server.CreateObject("ADODB.Recordset")
	 sql="select * from adv1"
	 rs.open sql,conn,1,3
	rs("xuanze3")=request.form("flash8")
	 rs("hf130pic")=trim(request.form("hf130pic"))
 	 rs("hf130url")=trim(request.form("hf130url"))
 	 rs("hf130tit")=trim(request.form("hf130tit"))
	 
	 rs("hf131pic")=trim(request.form("hf131pic"))
 	 rs("hf131url")=trim(request.form("hf131url"))
 	 rs("hf131tit")=trim(request.form("hf131tit"))

	 rs("hf132pic")=trim(request.form("hf132pic"))
 	 rs("hf132url")=trim(request.form("hf132url"))
 	 rs("hf132tit")=trim(request.form("hf132tit"))

	 rs("hf133pic")=trim(request.form("hf133pic"))
 	 rs("hf133url")=trim(request.form("hf133url"))
 	 rs("hf133tit")=trim(request.form("hf133tit"))

	 rs("hf134pic")=trim(request.form("hf134pic"))
 	 rs("hf134url")=trim(request.form("hf134url"))
 	 rs("hf134tit")=trim(request.form("hf134tit"))

	 rs("hf135pic")=trim(request.form("hf135pic"))
 	 rs("hf135url")=trim(request.form("hf135url"))
 	 rs("hf135tit")=trim(request.form("hf135tit"))

	 rs("hf136pic")=trim(request.form("hf136pic"))
 	 rs("hf136url")=trim(request.form("hf136url"))
 	 rs("hf136tit")=trim(request.form("hf136tit"))

	 rs("hf137pic")=trim(request.form("hf137pic"))
 	 rs("hf137url")=trim(request.form("hf137url"))
 	 rs("hf137tit")=trim(request.form("hf137tit"))

	 rs("hf138pic")=trim(request.form("hf138pic"))
 	 rs("hf138url")=trim(request.form("hf138url"))
 	 rs("hf138tit")=trim(request.form("hf138tit"))

	 rs("hf139pic")=trim(request.form("hf139pic"))
 	 rs("hf139url")=trim(request.form("hf139url"))
 	 rs("hf139tit")=trim(request.form("hf139tit"))

	rs.update
	rs.close
	set rs=nothing

	response.write "<script language='javascript'>"
	response.write "alert('首页底部的横幅图片设置成功！');"
	response.write "location.href='adv_zuoxia.asp';"
	response.write "</script>"
	response.end
end if%>

</body>
</html>

