<!--#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 qx3<>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}
-->
</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 topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
<center><br>
  <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; 省管理 </font></strong></td>
            <td width="23%" style="font-size:14px;color:#ffffff"><span class="STYLE2">* 为必添项目</span></td>
          </tr>
      </table></td>
    </tr>
  </table>
  <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 height="27" style="font-size:12px;color:#ffffff">&nbsp;<font color="#000000">操作说明：网站相关使用省市的地方需要调用相关数据，比如订单提交选择省市或者搜索等处，具体使用中可根据目标客户的情况灵活删减。</font></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="sheng_save.asp?action=update">
      <tr align=center bgcolor="#cccccc" height=25> 
        <td>序号</td>
        <td>省名称</td>
        <td>省编号</td>
        <td>排序
          (必填项，数字)</td>
        <td>删除</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 width="100" height=25 colspan="8" align="center"> <div align="center" class="STYLE2">还没有添加省 </div></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> <a href="sheng_kill.asp?shengid=<%=rs("id")%>">删除</a> 
        </td>
      </tr>
      <%
    rs.MoveNext
    Loop
%>
      <tr bgcolor="#F3F3F3"> 
        <td width="100%" height=25 colspan="8" 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="sheng_save.asp?action=add">
      <tr height=25 bgcolor="#F3F3F3"> 
        <td align=center>添加省 </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 colspan="2" align=center> 
          <input type="submit" name="Submit2" class="go-wenbenkuang" value="添加">
        </td>
      </tr>
    </form>
  </table>
  <!--#include file="copyright.asp"-->
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>
  </p>
</center>
</body>
</html>