<%
if request.cookies("buyok")("admin")="" then response.write "<meta http-equiv='refresh' content='0;URL=../admin.asp'>"
%>
<!--#include file="../include/nowshop.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 adv") 
show=request("show") 
if show="" then show=rs("adv")
%>
<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">首页底部Banner设置</font></B></font></TD>
      <TD bgColor=#f4f5fd height=30><font color="#000000">&nbsp;<a href="http://www.nowshop.com.cn/shezhi/downbanner.jpg" target="_blank">设置帮助</a></font></TD>
    </TR>
  </TBODY>
</TABLE>
		  <table height="5"><tr><td></td></tr></table>

	<form action=adv_down.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_down.asp?show=1';">
      一张图片<br> <input type="radio" value="2" name="flash8" <%if show="2" then%>checked<%end if%> onclick="javascript:location.href='adv_down.asp?show=2';">
      两张图片<br> <input type="radio" value="3" name="flash8" <%if show="3" then%>checked<%end if%> onclick="javascript:location.href='adv_down.asp?show=3';">
      三张图片<br> <input type="radio" value="4" name="flash8" <%if show="4" then%>checked<%end if%> onclick="javascript:location.href='adv_down.asp?show=4';">
      四张图片<br> <input type="radio" value="0" name="flash8" <%if show="0" then%>checked<%end if%> onclick="javascript:location.href='adv_down.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("hf14pic")%>" name=hf14pic size=40 maxlength=100> 
        <INPUT TYPE="button" value="浏览"  onClick="window.open('upload.asp?fuptype=adv&fupname=banner14&frmname=hf14pic','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("hf14url")%>" name=hf14url size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>说明</td>
      <td> <input type=text value="<%=rs("hf14tit")%>" name=hf14tit 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("hf15pic")%>" name=hf15pic size=40 maxlength=100> 
        <INPUT TYPE="button" value="浏览"  onClick="window.open('upload.asp?fuptype=adv&fupname=banner15&frmname=hf15pic','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("hf15url")%>" name=hf15url size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>说明</td>
      <td> <input type=text value="<%=rs("hf15tit")%>" name=hf15tit 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("hf10pic")%>" name=hf10pic size=40 maxlength=100> 
        <INPUT TYPE="button" value="浏览"  onClick="window.open('upload.asp?fuptype=adv&fupname=banner10&frmname=hf10pic','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("hf10url")%>" name=hf10url size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>说明</td>
      <td> <input type=text value="<%=rs("hf10tit")%>" name=hf10tit 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("hf11pic")%>" name=hf11pic size=40 maxlength=100> 
        <INPUT TYPE="button" value="浏览"  onClick="window.open('upload.asp?fuptype=adv&fupname=banner11&frmname=hf11pic','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("hf11url")%>" name=hf11url size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>说明</td>
      <td> <input type=text value="<%=rs("hf11tit")%>" name=hf11tit 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("dopic")%>" name=dopic size=40 maxlength=100> 
        <INPUT TYPE="button" value="浏览"  onClick="window.open('upload.asp?fuptype=adv&fupname=banner14&frmname=dopic','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("dourl")%>" name=dourl size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>说明</td>
      <td> <input type=text value="<%=rs("dotit")%>" name=dotit 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("odpic")%>" name=odpic size=40 maxlength=100> 
        <INPUT TYPE="button" value="浏览"  onClick="window.open('upload.asp?fuptype=adv&fupname=banner15&frmname=odpic','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("odurl")%>" name=odurl size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>说明</td>
      <td> <input type=text value="<%=rs("odtit")%>" name=odtit 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("hf16pic")%>" name=hf16pic size=40 maxlength=100> 
        <INPUT TYPE="button" value="浏览"  onClick="window.open('upload.asp?fuptype=adv&fupname=banner16&frmname=hf16pic','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("hf16url")%>" name=hf16url size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>说明</td>
      <td> <input type=text value="<%=rs("hf16tit")%>" name=hf16tit 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("hf17pic")%>" name=hf17pic size=40 maxlength=100> 
        <INPUT TYPE="button" value="浏览"  onClick="window.open('upload.asp?fuptype=adv&fupname=banner17&frmname=hf17pic','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("hf17url")%>" name=hf17url size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>说明</td>
      <td> <input type=text value="<%=rs("hf17tit")%>" name=hf17tit 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("hf18pic")%>" name=hf18pic size=40 maxlength=100> 
        <INPUT TYPE="button" value="浏览"  onClick="window.open('upload.asp?fuptype=adv&fupname=banner18&frmname=hf18pic','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("hf18url")%>" name=hf18url size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>说明</td>
      <td> <input type=text value="<%=rs("hf18tit")%>" name=hf18tit 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("hf19pic")%>" name=hf19pic size=40 maxlength=100> 
        <INPUT TYPE="button" value="浏览"  onClick="window.open('upload.asp?fuptype=adv&fupname=banner19&frmname=hf19pic','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("hf19url")%>" name=hf19url size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>说明</td>
      <td> <input type=text value="<%=rs("hf19tit")%>" name=hf19tit 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 adv"
	 rs.open sql,conn,1,3
	rs("xuanze2")=request.form("flash8")
	 rs("hf14pic")=trim(request.form("hf14pic"))
 	 rs("hf14url")=trim(request.form("hf14url"))
 	 rs("hf14tit")=trim(request.form("hf14tit"))
	 
	 rs("hf15pic")=trim(request.form("hf15pic"))
 	 rs("hf15url")=trim(request.form("hf15url"))
 	 rs("hf15tit")=trim(request.form("hf15tit"))

	 rs("hf10pic")=trim(request.form("hf10pic"))
 	 rs("hf10url")=trim(request.form("hf10url"))
 	 rs("hf10tit")=trim(request.form("hf10tit"))

	 rs("hf11pic")=trim(request.form("hf11pic"))
 	 rs("hf11url")=trim(request.form("hf11url"))
 	 rs("hf11tit")=trim(request.form("hf11tit"))

	 rs("dopic")=trim(request.form("dopic"))
 	 rs("dourl")=trim(request.form("dourl"))
 	 rs("dotit")=trim(request.form("dotit"))

	 rs("odpic")=trim(request.form("odpic"))
 	 rs("odurl")=trim(request.form("odurl"))
 	 rs("odtit")=trim(request.form("odtit"))

	 rs("hf16pic")=trim(request.form("hf16pic"))
 	 rs("hf16url")=trim(request.form("hf16url"))
 	 rs("hf16tit")=trim(request.form("hf16tit"))

	 rs("hf17pic")=trim(request.form("hf17pic"))
 	 rs("hf17url")=trim(request.form("hf17url"))
 	 rs("hf17tit")=trim(request.form("hf17tit"))

	 rs("hf18pic")=trim(request.form("hf18pic"))
 	 rs("hf18url")=trim(request.form("hf18url"))
 	 rs("hf18tit")=trim(request.form("hf18tit"))

	 rs("hf19pic")=trim(request.form("hf19pic"))
 	 rs("hf19url")=trim(request.form("hf19url"))
 	 rs("hf19tit")=trim(request.form("hf19tit"))

	rs.update
	rs.close
	set rs=nothing

	response.write "<script language='javascript'>"
	response.write "alert('首页底部的横幅图片设置成功！');"
	response.write "location.href='adv_down.asp';"
	response.write "</script>"
	response.end
end if%>
<table width="95%" border="0">
  <tr> 
    <td height="60"><font color="#FF0000">我们将为购买正版NowShop商城系统者免费设计全套广告图片；提供免费安装调试；免费送1%网银接口、支付宝接口；免费提供技术支持；免费提供系统升级；免费提供系统模板更换；免费代办网站ICP备案；使您的网店更具吸引力！</font></td>
  </tr>
  <tr> 
    <td><p>购买咨询或技术支持，请在周一至周五8：00-18：00间联系<br>
        Email / MSN：shop@nowshop.com.cn<br>
        电话：0551-5123308&nbsp;&nbsp;13965090551<br>
        QQ：2055008<br>
        网站：<a href="http://www.nowshop.com.cn" target="_blank">http://www.nowshop.com.cn</a><br>
        演示：<a href="http://ys.nowshop.com.cn" target="_blank">http://ys.nowshop.com.cn</a><br>
      </p>
      <p>Powerd By：NowShop商城系统 V3.5</p></td>
  </tr>
</table>
</body>
</html>

