<!--#include file="conn.asp"-->
<%if session("admin")="" then
response.Write "<script language='javascript'>alert('网络超时或您还没有登陆！');window.location.href='login.asp';</script>"
response.End
else
if session("flag")>1 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限！</b></font></div>"
response.End
end if
end if
%>
<%dim action
action=request.QueryString("action")
'//保存信息
if action="save" then
set rs=server.CreateObject("adodb.recordset")
rs.Open "select * from shop_sys ",conn,1,3
rs("sm1")=trim(request("sm1"))
rs("sm2")=trim(request("sm2"))
rs("sm3")=trim(request("sm3"))
rs("py1")=trim(request("py1"))
rs("py2")=trim(request("py2"))
rs("py3")=trim(request("py3"))
rs("ems1")=trim(request("ems1"))
rs("ems2")=trim(request("ems2"))
rs("ems3")=trim(request("ems3"))
rs("vipid")=trim(request("vipid"))
rs.update
rs.close
set rs=nothing
response.Write "<script language=javascript>alert('系统参数修改成功！');history.go(-1);</script>"
end if%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css.css" rel="stylesheet" type="text/css">
</head>

<body><br>
<table width="95%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC">
  <tr> 
    <td height="16" bgcolor="f1f1f1"> 
      <div align="center"><font color="#000000">系统参数设置</font></div>
    </td>
  </tr>
  <tr> 
    <td height="107" bgcolor="#FFFFFF"> 
     <br> <table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC">
        <form name="form1" method="post" action="sysset.asp?action=save">
          <%set rs=server.CreateObject("adodb.recordset")
            rs.Open "select * from shop_sys",conn,1,1%>
          <tr bgcolor="#FFFFFF"> 
            <td width="196" align="center">送货上门<br>
              收费标准</td>
            <td width="448"> 
              <input name="sm1" class="wenbenkuang" type="text" size="8" value="<%=trim(rs("sm1"))%>" onKeyPress="event.returnValue=IsDigit();" >
              元/订单<br>
              普通会员用户购满 
              <input name="sm2" class="wenbenkuang" type="text" size="8" value="<%=trim(rs("sm2"))%>" onKeyPress="event.returnValue=IsDigit();" >
              元/订单免送货费<br>
              VIP用户购满 
              <input name="sm3" class="wenbenkuang" type="text" size="8" value="<%=trim(rs("sm3"))%>" onKeyPress="event.returnValue=IsDigit();" >
              元/订单免送货费 </td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td width="196" align="center">普通平邮<br>
              收费标准</td>
            <td width="448"> 基价 
              <input name="py1" class="wenbenkuang" type="text" size="4" value="<%=trim(rs("py1"))%>" onKeyPress="event.returnValue=IsDigit();" >
              元<br>
              VIP用户可享受购满 
              <input name="py2" class="wenbenkuang" type="text" size="4" value="<%=trim(rs("py2"))%>" onKeyPress="event.returnValue=IsDigit();" >
              元免 
              <input name="py3" class="wenbenkuang" type="text" size="4" value="<%=trim(rs("py3"))%>" onKeyPress="event.returnValue=IsDigit();" >
              元基价的优惠</td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td width="196" align="center">邮政速递<br>
              （EMS）<br>
              收费标准</td>
            <td width="448"> 基价 
              <input name="ems1" class="wenbenkuang" type="text" size="4" value="<%=trim(rs("ems1"))%>" onKeyPress="event.returnValue=IsDigit();" >
              元<br>
              VIP用户可享受购满 
              <input name="ems2" class="wenbenkuang" type="text" size="4" value="<%=trim(rs("ems2"))%>" onKeyPress="event.returnValue=IsDigit();" >
              元免 
              <input name="ems3" class="wenbenkuang" type="text" size="4" value="<%=trim(rs("ems3"))%>" onKeyPress="event.returnValue=IsDigit();" >
              元基价的优惠 </td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td width="196" align="center">会员申请VIP会员所需要积分</td>
            <td width="448"> 
              <input name="VIPID" class="wenbenkuang" type="text" size="10" value="<%=trim(rs("VIPID"))%>" onKeyPress="event.returnValue=IsDigit();" >
              当会员申请后会自动减掉这里所设置的积分</td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td height="22" colspan="2"> 
              <div align="center"> 
                <input type="submit" name="Submit" class="go-wenbenkuang" value="提 交">
                &nbsp;&nbsp; 
                <input type="reset" class="go-wenbenkuang" name="Submit2" value="恢 复">
              </div>
            </td>
          </tr>
        </form>
      </table>
     <br> <%rs.Close
          set rs=nothing%>
    </td>
  </tr>
</table>
<br>
<table width="80%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <td> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td rowspan="2"> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="12v">
              <tr> 
                <td class="12v" > 
                  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" id="AutoNumber3" height="0" width="100%">
                    <tr> 
                      <td> 
                        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                          <tr> 
                            <td> 
                              <div align="center"><font color="#000000">操作注意事项及说明</font></div>
                            </td>
                          </tr>
                          <tr> 
                            <td> 
                              <table width="80%" border="0" align="center" cellpadding="5" cellspacing="0">
                                <tr> 
                                  <td height="16"><font color="#FF0000">·请注意所有必须要填写数字，没有也要填0。<br>
                                    ·请在“商品管理”里确定VIP会员卡的ID号，填在这里，在普通会员的VIP的页面里用。<br>
                                    </font></td>
                                </tr>
                              </table>
                            </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<!--#include file="copyright.asp"-->
</body>
</html>
<script>
function IsDigit()
{return ((event.keyCode >= 48) && (event.keyCode <= 57));}
</script>

