<!--#include file="byshop_conn.asp"-->
<!--#include file="session.asp"-->
<html>
<head>
<title>省管理</title>
<script>
function IsDigit()
{
  return ((event.keyCode >= 48) && (event.keyCode <= 57));
}
</script>
<meta http-equiv="目录类型" content="文本/html; 字符集=gb2312">
<link href="css/style.css" rel="stylesheet" type="text/css">
</head>
<body>
  <div align="center">
  <table cellpadding="3" cellspacing="1" border="1" width="100%" class="tableBorder" style="border-collapse: collapse" bordercolor="#C0C0C0">
    <form method="post" action="shengset.asp?action=update">
	<tr> 
      <th class="tableHeaderText" colspan=5 bgcolor="#E8F1FF">省管理</th>
    </tr>
      <tr align=center> 
        <td class="forumRowHighlight" bgcolor="#F7F7F7">序号</td>
        <td class="forumRowHighlight" bgcolor="#F7F7F7">市名称</td>
        <td class="forumRowHighlight" bgcolor="#F7F7F7">市编号</td>
        <td class="forumRowHighlight" bgcolor="#F7F7F7">排序(必填项，数字)</td>
        <td class="forumRowHighlight" bgcolor="#F7F7F7">删除</td>
      </tr>
<%
Set rs = Server.CreateObject("ADODB.Recordset")
rs.open "SELECT  * from province  order by shengorder",conn,1,1
if rs.recordcount=0 then 
%>
      <tr> 
        <td colspan="8"  class="forumRowHighlight" align="center" width="100%" bgcolor="#F7F7F7"> 还没有添加市 </td>
      </tr>
<%
else
    do while not rs.eof
%>
      <tr> 
        <td align=center class="forumRowHighlight" bgcolor="#F7F7F7"><%=rs("ID")%></td>
        <td align=center class="forumRowHighlight" bgcolor="#F7F7F7"> 
          <input type="hidden" name="shengid" value="<%=rs("id")%>">
          <input class=text type="text" name="shengname" size="10" value="<%=trim(rs("shengname"))%>">
        </td>
        <td align=center class="forumRowHighlight" bgcolor="#F7F7F7"> 
          <input class=text type="text" name="shengno" size="10" value="<%=trim(rs("shengno"))%>" ONKEYPRESS="event.returnValue=IsDigit();" >
        </td>
        <td align=center class="forumRowHighlight" bgcolor="#F7F7F7"> 
          <input class=text type="text" name="shengorder" size="10" value="<%=rs("shengorder")%>" ONKEYPRESS="event.returnValue=IsDigit();" >
        </td>
        <td align=center class="forumRowHighlight" bgcolor="#F7F7F7"> 
          <a href="DelProvince.asp?shengid=<%=rs("id")%>">删除</a> 
        </td>
      </tr>
      <%
    rs.MoveNext
    Loop
%>
      <tr> 
        <td colspan="8"  class="forumRowHighlight" align="center" width="100%" bgcolor="#F7F7F7"> 
          <input class=button type="submit" name="Submit2" value="保存修改" >
          &nbsp; 
          <input class=button type="reset" value="重新设定" name="重置">
        </td>
      </tr>
<%
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
    </form>
    <form method="post" action="shengset.asp?action=add">
      <tr height=25> 
        <td align=center class="forumRowHighlight" bgcolor="#F7F7F7">添加市 
        </td>
        <td align=center class="forumRowHighlight" bgcolor="#F7F7F7"> 
          <input class=text type="text" name="shengname" size="10">
        </td>
        <td align=center class="forumRowHighlight" bgcolor="#F7F7F7"> 
          <input class=text type="text" name="shengno" size="10" ONKEYPRESS="event.returnValue=IsDigit();">
        </td>
        <td align=center class="forumRowHighlight" bgcolor="#F7F7F7"> 
          <input class=text type="text" name="shengorder" size="10" ONKEYPRESS="event.returnValue=IsDigit();">
        </td>
        <td align=center colspan="2" class="forumRowHighlight" bgcolor="#F7F7F7"> 
          <input class=button type="submit" name="Submit2" value="添加">
        </td>
      </tr>
    </form>
  </table>
	</div>
</body>
</html> 
  