<%
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") 
%>
<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"><a href="http://www.nowshop.com.cn/shezhi/gundong.jpg" target="_blank">设置帮助</a></font></TD>
    </TR>
  </TBODY>
</TABLE>
		  <table height="5"><tr><td></td></tr></table>


<table width="95%"  border="0" cellpadding="0" cellspacing="1" bgcolor="#b1bfee">
  <form action=adv3.asp method=post name=advsetup>
    <tr bgcolor="#FFFFFF">
      <td width=20% height="18" align=right>第一条滚动文字内容</td>
      <td> <input type=text value="<%=rs("zimu")%>" name=zimu size=40 maxlength=50>
        [最多50字]</td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td width=20% height="18" align=right>字幕一的链接</td>
      <td> <input type=text value="<%=rs("zimulink")%>" name=zimulink size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td width=20% height="18" align=right>第二条滚动文字内容</td>
      <td> <input type=text value="<%=rs("zimu2")%>" name=zimu2 size=40 maxlength=50></td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td width=20% height="18" align=right>字幕二的链接</td>
      <td> <input type=text value="<%=rs("zimu2link")%>" name=zimu2link size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td width=20% height="18" align=right>第三条滚动文字内容</td>
      <td> <input type=text value="<%=rs("zimu3")%>" name=zimu3 size=40 maxlength=50></td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td width=20% height="18" align=right>字幕三的链接</td>
      <td> <input type=text value="<%=rs("zimu3link")%>" name=zimu3link size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td width=20% height="18" align=right>第四条滚动文字内容</td>
      <td> <input type=text value="<%=rs("zimu4")%>" name=zimu4 size=40 maxlength=50></td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td width=20% height="18" align=right>字幕四的链接</td>
      <td> <input type=text value="<%=rs("zimu4link")%>" name=zimu4link size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td width=20% height="18" align=right>第五条滚动文字内容</td>
      <td> <input type=text value="<%=rs("zimu5")%>" name=zimu5 size=40 maxlength=50></td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td width=20% height="18" align=right>字幕五的链接</td>
      <td> <input type=text value="<%=rs("zimu5link")%>" name=zimu5link size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td width=20% height="18" align=right>字幕间距</td>
      <td> <input type=text value="<%=rs("zimujianju")%>" name=zimujianju size=5 maxlength=1>
        [1-9，数字越大，距离越大]</td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td width=20% height="18" align=right>字幕滚动速度</td>
      <td> <input type=text value="<%=rs("zimuspeed")%>" name=zimuspeed size=5 maxlength=1>
        [1-9，数字越大，速度越小]</td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td colspan=2> <INPUT name="ok" TYPE="hidden" value="ok">
        <INPUT name=action TYPE="submit" value="保存设置"></td>
    </tr>
  </form>
</table>
		  <table height="5"><tr><td></td></tr></table>

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

	if len(request.form("zimu"))>50 or len(request.form("zimu2"))>50 or len(request.form("zimu3"))>50 or len(request.form("zimu4"))>50 or len(request.form("zimu5"))>50 then
	response.write "<script language='javascript'>"
	response.write "alert('您填写的字幕内容太长，请不要超过50个文字，单击“确定”返回上一页！');"
	response.write "location.href='javascript:history.go(-1)';"
	response.write "</script>"
	response.end
	end if

	If not isNumeric(request.form("zimuspeed")) or not isNumeric(request.form("zimujianju")) then
	response.write "<script language='javascript'>"
	response.write "alert('在要求填写数字的地方，您填写了非数字内容，单击“确定”返回上一页！');"
	response.write "location.href='javascript:history.go(-1)';"
	response.write "</script>"
	response.end
	end if

     Set rs=Server.CreateObject("ADODB.Recordset")
	 sql="select * from adv"
	 rs.open sql,conn,1,3
 	 rs("zimu")=trim(request.form("zimu"))
 	 rs("zimulink")=trim(request.form("zimulink"))
 	 rs("zimu2")=trim(request.form("zimu2"))
 	 rs("zimu2link")=trim(request.form("zimu2link"))
 	 rs("zimu3")=trim(request.form("zimu3"))
 	 rs("zimu3link")=trim(request.form("zimu3link"))
 	 rs("zimu4")=trim(request.form("zimu4"))
 	 rs("zimu4link")=trim(request.form("zimu4link"))
 	 rs("zimu5")=trim(request.form("zimu5"))
 	 rs("zimu5link")=trim(request.form("zimu5link"))
 	 rs("zimuspeed")=trim(request.form("zimuspeed"))
 	 rs("zimujianju")=trim(request.form("zimujianju"))
	rs.update
	rs.close
	conn.close
	set rs=nothing
	set conn=nothing

	response.write "<script language='javascript'>"
	response.write "alert('操作成功，您设置的滚动字幕已保存！');"
	response.write "location.href='adv3.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-3929843&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.0</p></td>
  </tr>
</table>
</body>
</html>

