<!--#include file="conn.asp"-->
<!--#include file="adminset.asp"-->
<%if session("admin")="" then
response.Write "<script language='javascript'>alert('网络超时或您还没有登陆！');window.location.href='login.asp';</script>"
response.End
end if
if session("flag")>2 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限！</b></font></div>"
response.End
end if
if qx4<>1 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限！</b></font></div>"
response.End
end if
%>
<html>
<head>
<title>网软志成在线购物系统</title>
<script>
function IsDigit()
{
  return ((event.keyCode >= 48) && (event.keyCode <= 57));
}
</script>
<html>
<style type="text/css">
<!--
.style1 {
	color: #000000;
	font-weight: bold;
}
.STYLE2 {
	color: #FF0000;
	font-size: 12px;
}
.STYLE3 {color: #FF0000}
.STYLE3 {color: #000000}
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
}
-->
</style>
<head>
<title>动感商城系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="../css.css" rel="stylesheet" type="text/css">
</head>
<body>
<center>
  <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td width="1%" height="28">&nbsp;</td>
      <td width="99%"><table width="100%" border="0" cellspacing="0" cellpadding="5">
          <tr>
            <td width="77%" height="27" style="font-size:14px;color:#ffffff">&nbsp;<strong><font color="#000000">网软志成购物后台管理系统 &gt;&gt; 货运管理 &gt;&gt; <span class="tableHeaderText style1">各省运费浮动系数</span>管理</font></strong></td>
            <td width="23%" style="font-size:14px;color:#ffffff"><span class="STYLE3">* 为必添项目</span></td>
          </tr>
          <tr>
            <td height="20" colspan="2" style="font-size:12px;color:#000000"><span class="STYLE3">&nbsp;操作说明：各省运费浮动系数为“正负百分数”，如：10或-5.5，正数不用带“+”号<br>
              （当在 [<A href="shfangshi_manage.asp" target="forum"><span class="STYLE2">送货方式</span></A>] 选中精确计算时，本页设置才生效！本页设置与分类管理中的[<A href="sheng_manage.asp" target="forum"><span class="STYLE2">省级管理</span></A>]中的省级设置为一致，删除等操作为联动操作！）</span><br />
            </span></td>
          </tr>
      </table></td>
    </tr>
  </table>
  <table border="0" width="95%" cellpadding="3" cellspacing="1" style="border-collapse: collapse" bgcolor="#999999" >
    <form method="post" action="shengyf_save.asp?action=update2">
      <tr align=center bgcolor="#cccccc" height=25> 
        <td width="65">序号</td>
        <td width="190">省名称</td>
        <td width="112">省编号</td>
        <td width="144">排序
          （必填，数字）</td>
        <td width="297">各省运费浮动系数（+/-百分数）</td>
        <td width="58">操作</td>
      </tr>
<%
Set rs = Server.CreateObject("ADODB.Recordset")
rs.open "SELECT  * From shop_szSheng  order by shengorder",conn,1,1
if rs.recordcount=0 then 
%>
      <tr bgcolor="#F3F3F3"> 
        <td height=25 colspan="9" align="center"> 还没有添加省 </td>
      </tr>
<%
else
    do while not rs.eof
%>
      <tr height=25 bgcolor="#F3F3F3"> 
        <td align=center><%=rs("ID")%></td>
        <td align=center> 
          <input type="hidden" name="shengid" value="<%=rs("id")%>">
          <input type="text" class="wenbenkuang" name="shengname" size="22" value="<%=trim(rs("shengname"))%>">        </td>
        <td align=center> 
          <input type="text" class="wenbenkuang" name="shengno" size="16" value="<%=trim(rs("shengno"))%>" ONKEYPRESS="event.returnValue=IsDigit();" >        </td>
        <td align=center> 
        <input type="text" class="wenbenkuang" name="shengorder" size="10" value="<%=rs("shengorder")%>" ONKEYPRESS="event.returnValue=IsDigit();" >        </td>
        <td align=center><input name="fy" type="text" class="wenbenkuang" id="fy" onKeyPress="return event.keyCode>=45&&event.keyCode<=57 "  onpaste="var s=clipboardData.getData('text'); if(!/\D/.test(s)) value=s.replace(/^%*/,''); return false;" ondragenter="return false"   style="ime-mode:disabled"  onkeyup="if(/(^%+)/.test(value))value=value.replace(/^%*/, '')" value="<%=rs("fy")%>" size="10" >
          %</td>
		   <td align=center> <a href="shengyf_kill.asp?shengid=<%=rs("id")%>&act=a">删除</a>        </td>
      </tr>
      <%
    rs.MoveNext
    Loop
%>
      <tr bgcolor="#F3F3F3"> 
        <td height=25 colspan="9" align="center"> 
          <input type="submit" name="Submit2" class="go-wenbenkuang" value="保存修改">
          &nbsp; 
          <input type="reset" value="重新设定" class="go-wenbenkuang" name="重置" >        </td>
      </tr>
<%
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
    </form>
    <form method="post" action="shengyf_save.asp?action=add2">
      <tr height=25 bgcolor="#F3F3F3">
        <td colspan="7" align=center bgcolor="#CCCCCC">添加新的省份设置</td>
      </tr>
      <tr height=25 bgcolor="#F3F3F3"> 
        <td align=center>&nbsp;</td>
        <td align=center> 
          <input type="text" name="shengname" size="22" class="wenbenkuang">        </td>
        <td align=center> 
          <input type="text" name="shengno" size="10" class="wenbenkuang" ONKEYPRESS="event.returnValue=IsDigit();">        </td>
        <td align=center> 
          <input type="text" name="shengorder" size="10" class="wenbenkuang" ONKEYPRESS="event.returnValue=IsDigit();">        </td>
        <td align=center><input name="fy" type="text" class="wenbenkuang" id="fy" ONKEYPRESS="event.returnValue=IsDigit();" value="0" size="10" >
          %</td>
        <td colspan="2" align=center>&nbsp;</td>
      </tr>
      <tr height=25 bgcolor="#F3F3F3">
        <td colspan="7" align=center><input type="submit" name="Submit22" class="go-wenbenkuang" value="确 认 添 加"></td>
      </tr>
    </form>
  </table>
</center>
<!--#include file="copyright.asp"-->
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>