<%
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">&nbsp;横幅图片设置</font></B></font></TD>
      <TD bgColor=#f4f5fd height=30><font color="#000000">&nbsp;<a href="http://www.nowshop.com.cn/shezhi/topbanner.jpg" target="_blank">设置帮助</a></font></TD>
    </TR>
  </TBODY>
</TABLE>
		  <table height="5"><tr><td></td></tr></table>
	<form action=adv2.asp method=post name=adv>

  <table width="95%"  border="0" cellpadding="0" cellspacing="1" bgcolor="#b1bfee">
    <td width=20% height="18" align=right bgcolor="#FFFFFF">图片类型</td>
    <td bgcolor="#FFFFFF"> <input type="radio" value="1" name="flash8" <%if show="1" then%>checked<%end if%> onclick="javascript:location.href='adv2.asp?show=1';">
      一张图片<br> <input type="radio" value="2" name="flash8" <%if show="2" then%>checked<%end if%> onclick="javascript:location.href='adv2.asp?show=2';">
      两张图片<br> <input type="radio" value="3" name="flash8" <%if show="3" then%>checked<%end if%> onclick="javascript:location.href='adv2.asp?show=3';">
      三张图片<br> <input type="radio" value="4" name="flash8" <%if show="4" then%>checked<%end if%> onclick="javascript:location.href='adv2.asp?show=4';">
      四张图片<br> <input type="radio" value="0" name="flash8" <%if show="0" then%>checked<%end if%> onclick="javascript:location.href='adv2.asp?show=0';">
      隐藏横幅</td>
    </tr>
    <%if show="1" then%>
    <tr> 
      <td width=20% height="18" align=right bgcolor="#FFFFFF">JPG/GIF图片</td>
      <td bgcolor="#FFFFFF"> <input type=text value="<%=rs("hfpic")%>" name=hfpic size=40 maxlength=100> 
        <INPUT TYPE="button" value="浏览"  onClick="window.open('upload.asp?fuptype=adv&fupname=banner&frmname=hfpic','blank_','scrollbars=yes,resizable=no,width=650,height=450')"></td>
    </tr>
    <tr> 
      <td width=20% height="18" align=right bgcolor="#FFFFFF">链接</td>
      <td bgcolor="#FFFFFF"> <input type=text value="<%=rs("hfurl")%>" name=hfurl size=40 maxlength=100></td>
    </tr>
    <tr> 
      <td width=20% height="18" align=right bgcolor="#FFFFFF">说明</td>
      <td bgcolor="#FFFFFF"> <input type=text value="<%=rs("hftit")%>" name=hftit size=40 maxlength=100></td>
    </tr>
    <%end if%>
    <%if show="2" then%>
    <tr>
      <td width=20% bgcolor="#f4f5fd">第一张图片</td>
      <td bgcolor="#f4f5fd"></td>
    </tr>
    <tr> 
      <td width=20% height="18" align=right bgcolor="#FFFFFF">JPG/GIF图片</td>
      <td bgcolor="#FFFFFF"> <input type=text value="<%=rs("hf20pic")%>" name=hf20pic size=40 maxlength=100> 
        <INPUT TYPE="button" value="浏览"  onClick="window.open('upload.asp?fuptype=adv&fupname=banner20&frmname=hf20pic','blank_','scrollbars=yes,resizable=no,width=650,height=450')"></td>
    </tr>
    <tr> 
      <td width=20% height="18" align=right bgcolor="#FFFFFF">链接</td>
      <td bgcolor="#FFFFFF"> <input type=text value="<%=rs("hf20url")%>" name=hf20url size=40 maxlength=100></td>
    </tr>
    <tr> 
      <td width=20% height="18" align=right bgcolor="#FFFFFF">说明</td>
      <td bgcolor="#FFFFFF"> <input type=text value="<%=rs("hf20tit")%>" name=hf20tit size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#f4f5fd">
      <td width=20%>第二张图片</td>
      <td></td>
    </tr>
    <tr> 
      <td width=20% height="18" align=right bgcolor="#FFFFFF">JPG/GIF图片</td>
      <td bgcolor="#FFFFFF"> <input type=text value="<%=rs("hf21pic")%>" name=hf21pic size=40 maxlength=100> 
        <INPUT TYPE="button" value="浏览"  onClick="window.open('upload.asp?fuptype=adv&fupname=banner21&frmname=hf21pic','blank_','scrollbars=yes,resizable=no,width=650,height=450')"></td>
    </tr>
    <tr> 
      <td width=20% height="18" align=right bgcolor="#FFFFFF">链接</td>
      <td bgcolor="#FFFFFF"> <input type=text value="<%=rs("hf21url")%>" name=hf21url size=40 maxlength=100></td>
    </tr>
    <tr> 
      <td width=20% height="18" align=right bgcolor="#FFFFFF">说明</td>
      <td bgcolor="#FFFFFF"> <input type=text value="<%=rs("hf21tit")%>" name=hf21tit size=40 maxlength=100></td>
    </tr>
    <%end if%>
    <%if show="3" then%>
    <tr bgcolor="#f4f5fd">
      <td width=20%>第一张图片</td>
      <td></td>
    </tr>
    <tr> 
      <td width=20% height="18" align=right bgcolor="#FFFFFF">JPG/GIF图片</td>
      <td bgcolor="#FFFFFF"> <input type=text value="<%=rs("hf22pic")%>" name=hf22pic size=40 maxlength=100> 
        <INPUT TYPE="button" value="浏览"  onClick="window.open('upload.asp?fuptype=adv&fupname=banner22&frmname=hf22pic','blank_','scrollbars=yes,resizable=no,width=650,height=450')"></td>
    </tr>
    <tr> 
      <td width=20% height="18" align=right bgcolor="#FFFFFF">链接</td>
      <td bgcolor="#FFFFFF"> <input type=text value="<%=rs("hf22url")%>" name=hf22url size=40 maxlength=100></td>
    </tr>
    <tr> 
      <td width=20% height="18" align=right bgcolor="#FFFFFF">说明</td>
      <td bgcolor="#FFFFFF"> <input type=text value="<%=rs("hf22tit")%>" name=hf22tit size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#f4f5fd">
      <td width=20%>第二张图片</td>
      <td></td>
    </tr>
    <tr> 
      <td width=20% height="18" align=right bgcolor="#FFFFFF">JPG/GIF图片</td>
      <td bgcolor="#FFFFFF"> <input type=text value="<%=rs("hf23pic")%>" name=hf23pic size=40 maxlength=100> 
        <INPUT TYPE="button" value="浏览"  onClick="window.open('upload.asp?fuptype=adv&fupname=banner23&frmname=hf23pic','blank_','scrollbars=yes,resizable=no,width=650,height=450')"></td>
    </tr>
    <tr> 
      <td width=20% height="18" align=right bgcolor="#FFFFFF">链接</td>
      <td bgcolor="#FFFFFF"> <input type=text value="<%=rs("hf23url")%>" name=hf23url size=40 maxlength=100></td>
    </tr>
    <tr> 
      <td width=20% height="18" align=right bgcolor="#FFFFFF">说明</td>
      <td bgcolor="#FFFFFF"> <input type=text value="<%=rs("hf23tit")%>" name=hf23tit size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#f4f5fd">
      <td width=20%>第三张图片</td>
      <td></td>
    </tr>
    <tr> 
      <td width=20% height="18" align=right bgcolor="#FFFFFF">JPG/GIF图片</td>
      <td bgcolor="#FFFFFF"> <input type=text value="<%=rs("hf24pic")%>" name=hf24pic size=40 maxlength=100> 
        <INPUT TYPE="button" value="浏览"  onClick="window.open('upload.asp?fuptype=adv&fupname=banner24&frmname=hf24pic','blank_','scrollbars=yes,resizable=no,width=650,height=450')"></td>
    </tr>
    <tr> 
      <td width=20% height="18" align=right bgcolor="#FFFFFF">链接</td>
      <td bgcolor="#FFFFFF"> <input type=text value="<%=rs("hf24url")%>" name=hf24url size=40 maxlength=100></td>
    </tr>
    <tr> 
      <td width=20% height="18" align=right bgcolor="#FFFFFF">说明</td>
      <td bgcolor="#FFFFFF"> <input type=text value="<%=rs("hf24tit")%>" name=hf24tit size=40 maxlength=100></td>
    </tr>
    <%end if%>
    <%if show="4" then%>
    <tr bgcolor="#f4f5fd">
      <td width=20%>第一张图片</td>
      <td></td>
    </tr>
    <tr> 
      <td width=20% height="18" align=right bgcolor="#FFFFFF">JPG/GIF图片</td>
      <td bgcolor="#FFFFFF"> <input type=text value="<%=rs("hf25pic")%>" name=hf25pic size=40 maxlength=100> 
        <INPUT TYPE="button" value="浏览"  onClick="window.open('upload.asp?fuptype=adv&fupname=banner25&frmname=hf25pic','blank_','scrollbars=yes,resizable=no,width=650,height=450')"></td>
    </tr>
    <tr> 
      <td width=20% height="18" align=right bgcolor="#FFFFFF">链接</td>
      <td bgcolor="#FFFFFF"> <input type=text value="<%=rs("hf25url")%>" name=hf25url size=40 maxlength=100></td>
    </tr>
    <tr> 
      <td width=20% height="18" align=right bgcolor="#FFFFFF">说明</td>
      <td bgcolor="#FFFFFF"> <input type=text value="<%=rs("hf25tit")%>" name=hf25tit size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#f4f5fd">
      <td width=20%>第二张图片</td>
      <td></td>
    </tr>
    <tr> 
      <td width=20% height="18" align=right bgcolor="#FFFFFF">JPG/GIF图片</td>
      <td bgcolor="#FFFFFF"> <input type=text value="<%=rs("hf26pic")%>" name=hf26pic size=40 maxlength=100> 
        <INPUT TYPE="button" value="浏览"  onClick="window.open('upload.asp?fuptype=adv&fupname=banner26&frmname=hf26pic','blank_','scrollbars=yes,resizable=no,width=650,height=450')"></td>
    </tr>
    <tr> 
      <td width=20% height="18" align=right bgcolor="#FFFFFF">链接</td>
      <td bgcolor="#FFFFFF"> <input type=text value="<%=rs("hf26url")%>" name=hf26url size=40 maxlength=100></td>
    </tr>
    <tr> 
      <td width=20% height="18" align=right bgcolor="#FFFFFF">说明</td>
      <td bgcolor="#FFFFFF"> <input type=text value="<%=rs("hf26tit")%>" name=hf26tit size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#f4f5fd">
      <td width=20%>第三张图片</td>
      <td></td>
    </tr>
    <tr> 
      <td width=20% height="18" align=right bgcolor="#FFFFFF">JPG/GIF图片</td>
      <td bgcolor="#FFFFFF"> <input type=text value="<%=rs("hf27pic")%>" name=hf27pic size=40 maxlength=100> 
        <INPUT TYPE="button" value="浏览"  onClick="window.open('upload.asp?fuptype=adv&fupname=banner27&frmname=hf27pic','blank_','scrollbars=yes,resizable=no,width=650,height=450')"></td>
    </tr>
    <tr> 
      <td width=20% height="18" align=right bgcolor="#FFFFFF">链接</td>
      <td bgcolor="#FFFFFF"> <input type=text value="<%=rs("hf27url")%>" name=hf27url size=40 maxlength=100></td>
    </tr>
    <tr> 
      <td width=20% height="18" align=right bgcolor="#FFFFFF">说明</td>
      <td bgcolor="#FFFFFF"> <input type=text value="<%=rs("hf27tit")%>" name=hf27tit size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#f4f5fd">
      <td width=20%>第四张图片</td>
      <td bgcolor="#f4f5fd"></td>
    </tr>
    <tr> 
      <td width=20% height="18" align=right bgcolor="#FFFFFF">JPG/GIF图片</td>
      <td bgcolor="#FFFFFF"> <input type=text value="<%=rs("hf28pic")%>" name=hf28pic size=40 maxlength=100> 
        <INPUT TYPE="button" value="浏览"  onClick="window.open('upload.asp?fuptype=adv&fupname=banner28&frmname=hf28pic','blank_','scrollbars=yes,resizable=no,width=650,height=450')"></td>
    </tr>
    <tr> 
      <td width=20% height="18" align=right bgcolor="#FFFFFF">链接</td>
      <td bgcolor="#FFFFFF"> <input type=text value="<%=rs("hf28url")%>" name=hf28url size=40 maxlength=100></td>
    </tr>
    <tr> 
      <td width=20% height="18" align=right bgcolor="#FFFFFF">说明</td>
      <td bgcolor="#FFFFFF"> <input type=text value="<%=rs("hf28tit")%>" name=hf28tit size=40 maxlength=100></td>
    </tr>
    <%end if%>
    <tr bgcolor="#f4f5fd"> 
      <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("xuanze1")=request.form("flash8")
	 rs("hfpic")=trim(request.form("hfpic"))
 	 rs("hfurl")=trim(request.form("hfurl"))
 	 rs("hftit")=trim(request.form("hftit"))
	 
	 rs("hf20pic")=trim(request.form("hf20pic"))
 	 rs("hf20url")=trim(request.form("hf20url"))
 	 rs("hf20tit")=trim(request.form("hf20tit"))

	 rs("hf21pic")=trim(request.form("hf21pic"))
 	 rs("hf21url")=trim(request.form("hf21url"))
 	 rs("hf21tit")=trim(request.form("hf21tit"))

	 rs("hf22pic")=trim(request.form("hf22pic"))
 	 rs("hf22url")=trim(request.form("hf22url"))
 	 rs("hf22tit")=trim(request.form("hf22tit"))

	 rs("hf23pic")=trim(request.form("hf23pic"))
 	 rs("hf23url")=trim(request.form("hf23url"))
 	 rs("hf23tit")=trim(request.form("hf23tit"))

	 rs("hf24pic")=trim(request.form("hf24pic"))
 	 rs("hf24url")=trim(request.form("hf24url"))
 	 rs("hf24tit")=trim(request.form("hf24tit"))

	 rs("hf25pic")=trim(request.form("hf25pic"))
 	 rs("hf25url")=trim(request.form("hf25url"))
 	 rs("hf25tit")=trim(request.form("hf25tit"))

	 rs("hf26pic")=trim(request.form("hf26pic"))
 	 rs("hf26url")=trim(request.form("hf26url"))
 	 rs("hf26tit")=trim(request.form("hf26tit"))

	 rs("hf27pic")=trim(request.form("hf27pic"))
 	 rs("hf27url")=trim(request.form("hf27url"))
 	 rs("hf27tit")=trim(request.form("hf27tit"))

	 rs("hf28pic")=trim(request.form("hf28pic"))
 	 rs("hf28url")=trim(request.form("hf28url"))
 	 rs("hf28tit")=trim(request.form("hf28tit"))

	rs.update
	rs.close
	set rs=nothing

	response.write "<script language='javascript'>"
	response.write "alert('首页底部的横幅图片设置成功！');"
	response.write "location.href='adv2.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>

