<!--#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
%>
<html>
<head>
<title>字段管理</title>
<script>
function IsDigit()
{
  return ((event.keyCode >= 48) && (event.keyCode <= 57));
}
</script>
<meta http-equiv="目录类型" content="文本/html; 字符集=gb2312">
<link href="../css.css" rel="stylesheet" type="text/css">
</head>
<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
<center>
  <table border="0" width="95%" cellpadding="1" cellspacing="1" style="border-collapse: collapse" bgcolor="#CCCCCC" >
    <form method="post" action="ziduanset.asp?action=update">
      <tr height=25> 
        <td colspan="8" align="center" height="22" bgcolor="f1f1f1"><font color=red>字段设置</font></td>
      </tr>
      <tr align=center height=25> 
        <td bgcolor="f1f1f1">序号</td>
        <td bgcolor="f1f1f1">字段名称</td>
        <td bgcolor="f1f1f1">排序</td>
      </tr>
<%
Set rs = Server.CreateObject("ADODB.Recordset")
rs.open "SELECT  * From shop_ziduan  order by ziduanorder",conn,1,1
if rs.recordcount=0 then 
%>
      <tr bgcolor="#FFFFFF"> 
        <td colspan="8" height=25 align="center" width="100%"> 还没有添加字段 </td>
      </tr>
<%
else
    do while not rs.eof
%>
      <tr height=25 bgcolor="#FFFFFF"> 
        <td align=center><%=rs("ID")%></td>
        <td align=center> 
          <input type="hidden" name="ziduanid" value="<%=rs("id")%>">
          <input type="text" name="ziduanname" class="wenbenkuang" size="20" value="<%=trim(rs("ziduanname"))%>">
        </td>
        <td align=center> <%=rs("ziduanorder")%> </td>
      </tr>
      <%
    rs.MoveNext
    Loop
%>
      <tr bgcolor="#FFFFFF"> 
        <td colspan="8" height=25 align="center" width="100%"> 
          <input type="submit" name="Submit2" value="保存修改"  class="go-wenbenkuang">
          &nbsp; 
          <input type="reset" value="重新设定" class="go-wenbenkuang" name="重置" >
        </td>
      </tr>
<%
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
    </form>
  </table>
</center>
</body>
</html>