<%
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("01")%>

<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 bconfig") 
%>
<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/help/index.asp?boardid=2&page=1" 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=config6.asp method=post name=setup>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% align=right>首页商品模式</td>
      <td > <input type="radio" name="mosi" value="0" <%if rs("mosi")="0" then%>checked<%end if%>>
        “新品速递”版块在上方，“推荐商品”版块在下方<br> <input type="radio" name="mosi" value="1" <%if rs("mosi")="1" then%>checked<%end if%>>
        “推荐商品”版块在上方，“新品速递”版块在下方<br> <input type="radio" name="mosi" value="2" <%if rs("mosi")="2" then%>checked<%end if%>>
        只显示“新品速递”版块<br> <input type="radio" name="mosi" value="3" <%if rs("mosi")="3" then%>checked<%end if%>>
        只显示“推荐商品”版块 </td>
    </TR>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% align=right>商品图片边框效果</td>
      <td > <input type="radio" name="pic_xiaogao" value="0" <%if rs("pic_xiaogao")="0" then%>checked<%end if%>>
        无边框<br> <input type="radio" name="pic_xiaogao" value="1" <%if rs("pic_xiaogao")="1" then%>checked<%end if%>>
        效果一&nbsp;&nbsp;<a href=../images/small/pic_bg1.gif target=_blank><img src=../images/admin/memo.gif border=0 alt="点击预览效果"></a><br> 
        <input type="radio" name="pic_xiaogao" value="2" <%if rs("pic_xiaogao")="2" then%>checked<%end if%>>
        效果二&nbsp;&nbsp;<a href=../images/small/pic_bg2.gif target=_blank><img src=../images/admin/memo.gif border=0 alt="点击预览效果"></a><br> 
        <input type="radio" name="pic_xiaogao" value="3" <%if rs("pic_xiaogao")="3" then%>checked<%end if%>>
        效果三&nbsp;&nbsp;<a href=../images/small/pic_bg3.gif target=_blank><img src=../images/admin/memo.gif border=0 alt="点击预览效果"></a><br> 
        <input type="radio" name="pic_xiaogao" value="4" <%if rs("pic_xiaogao")="4" then%>checked<%end if%>>
        效果四&nbsp;&nbsp;<a href=../images/small/pic_bg4.gif target=_blank><img src=../images/admin/memo.gif border=0 alt="点击预览效果"></a><br> 
      </td>
    </TR>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% align=right>首页新品上市数量</td>
      <td> <input type=text value="<%=rs("prompt_num")%>" name=prompt_num size="20" maxlength=2> 
        &nbsp;&nbsp; <img src=../images/admin/memo.gif alt="首页“新品上架”位置的商品总数&lt;br&gt;必须是4的倍数"> 
      </td>
    </TR>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% align=right>首页推荐商品数量</td>
      <td> <input type=text value="<%=rs("newprod_num")%>" name=newprod_num size="20" maxlength=2> 
        &nbsp;&nbsp; <img src=../images/admin/memo.gif alt="首页“推荐商品”位置的商品总数<br>必须是4的倍数"> 
      </td>
    </TR>
    <tr bgcolor="#FFFFFF"> 
      <td align=right>热点排行数量</td>
      <td><input type=text value="<%=rs("renmen_num")%>" name=renmen_num size="20" maxlength=2> 
        &nbsp;&nbsp; <img src=../images/admin/memo.gif alt="左侧下方热门商品数量，推荐12&lt;br&gt;技巧：灵活的调整此数，可对齐左右版面，从页使页面变得整齐美观"> 
      </td>
    </TR>
    <tr bgcolor="#FFFFFF"> 
      <td align=right>商品缺货时提示语</td>
      <td><input type=text value="<%=rs("quehuo")%>" name=quehuo size="20" maxlength=9> 
        &nbsp;&nbsp; <img src=../images/admin/memo.gif alt="例如：“货品准备中”"> </td>
    </TR>
    <tr bgcolor="#FFFFFF">
      <td align=right>无价格时的提示语</td>
      <td><input type=text value="<%=rs("wujiage")%>" name=wujiage size="20" maxlength=9> 
        &nbsp;&nbsp; <img src=../images/admin/memo.gif alt="例如：“价格请咨询”"> </td>
    </TR>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% align=right>未登陆会员价提示</td>
      <td><input type=text value="<%=rs("huiyuanjia")%>" name=huiyuanjia size="20" maxlength=5> 
        &nbsp;&nbsp; <img src=../images/admin/memo.gif alt="例如：“请先登陆”、“登陆更优惠”等"> 
      </td>
    </TR>
    <tr bgcolor="#FFFFFF"> 
      <td width="568" colspan=2 ><INPUT name="ok" TYPE="hidden" value="ok">
        <INPUT TYPE="hidden" name=fenlei_num value="<%=rs("fenlei_num")%>"> 
        <INPUT TYPE="hidden" name=lar_color value="<%=rs("lar_color")%>"> <INPUT TYPE="hidden" value="<%=rs("mid_color")%>" name=mid_color> 
        <INPUT TYPE="hidden" name="tree_display" value="1"> <INPUT TYPE="hidden" name="tree_view" value="1"> 
        <INPUT TYPE="hidden" name="tree_num" value="1"> <INPUT TYPE="hidden" name="index_tishi" value="1"> 
        <INPUT name=action TYPE="submit" value="保存设置"> &nbsp;</td>
    </tr>
  </form>
</table>
		  <table height="5"><tr><td></td></tr></table>

<%
rs.close
set rs=nothing
conn.close
set conn=nothing
end if
if action="ok" then
if  request.form("mosi")="" or request.form("tree_num")=""  or request.form("mid_color")="" or request.form("lar_color")="" or request.form("quehuo")="" or request.form("wujiage")="" or request.form("huiyuanjia")="" then er=1
if not isNumeric(request.form("prompt_num")) then er=1
if not isNumeric(request.form("newprod_num")) then er=1
if not isNumeric(request.form("renmen_num")) then er=1
if not isNumeric(request.form("fenlei_num")) then er=1
if  er=1 then
response.write "<script language='javascript'>"
response.write "alert('出错了，资料填写完整，或不符合要求。');"
response.write "location.href='javascript:history.go(-1)';"
response.write "</script>"
response.end
end if
if request.form("newprod_num") mod 4 <>0 then er=2
if request.form("prompt_num") mod 4 <>0 then er=2
if request.form("prompt_num")<=0 then er=2
if request.form("newprod_num")<=0 then er=2
if request.form("renmen_num")<=0 then er=2
if request.form("fenlei_num")<=0 then er=2
if  er=2 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 bconfig"
rs.open sql,conn,1,3
  rs("prompt_num")=trim(request.form("prompt_num"))
  rs("newprod_num")=trim(request.form("newprod_num"))
  rs("renmen_num")=trim(request.form("renmen_num"))
  rs("fenlei_num")=trim(request.form("fenlei_num"))
  rs("mosi")=trim(request.form("mosi"))
  rs("pic_xiaogao")=trim(request.form("pic_xiaogao"))
  rs("index_tishi")=trim(request.form("index_tishi"))
  rs("tree_num")=trim(request.form("tree_num"))
  rs("tree_view")=trim(request.form("tree_view"))
  rs("tree_display")=trim(request.form("tree_display"))
  rs("lar_color")=trim(request.form("lar_color"))
  rs("mid_color")=trim(request.form("mid_color"))
 rs("quehuo")=request.form("quehuo")
 rs("wujiage")=request.form("wujiage")
 rs("huiyuanjia")=request.form("huiyuanjia")
rs.update
url="config6.asp"
rs.close
set rs=nothing
conn.close
set conn=nothing
response.write "<script language='javascript'>"
response.write "alert('操作成功，您设置的信息已保存！');"
response.write "location.href='"&url&"';"
response.write "</script>"
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>
