<!--#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 "<p align=center><font color=red>您没有此项目管理权限！</font></p>"
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-Type" content="text/html; charset=gb2312">
<link href="../images/css.css" rel="stylesheet" type="text/css">
</head>
<body>
<table class="tableBorder" width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
    <form method="post" action="ziduanset.asp?action=update">
          <tr> 
            <td colspan="4" align="center" background="../img/green.gif"><b><font color="#ffffff">字段名称设置</font></b></td>
          </tr>
      <tr align=center bgcolor=#ffffff> 
        <td>序号</td>
        <td>字段名称</td>
        <td>排序</td>
      </tr>
<%
Set rs = Server.CreateObject("ADODB.Recordset")
rs.open "SELECT  * From ziduan  order by ziduanorder",conn,1,1
if rs.recordcount=0 then 
%>
      <tr> 
        <td colspan="3" align="center" width="100%" bgcolor="#ffffff"> 还没有添加字段 </td>
      </tr>
<%
else
    do while not rs.eof
%>
      <tr bgcolor="#ffffff"> 
        <td align=center><%=rs("ID")%></td>
        <td align=center> 
          <input type="hidden" name="ziduanid" value="<%=rs("id")%>">
          <input class=text type="text" name="ziduanname" size="10" value="<%=trim(rs("ziduanname"))%>">
        </td>
        <td align=center> 
          <%=rs("ziduanorder")%>
        </td>
      </tr>
      <%
    rs.MoveNext
    Loop
%>
      <tr> 
        <td colspan="3" bgcolor="#ffffff" align="center" width="100%"> 
          <input type="submit" name="Submit2" value="保存修改" style="font-family: 宋体; font-size: 9pt" >
          &nbsp; 
          <input type="reset" value="重新设定" style="font-family: 宋体; font-size: 9pt" name="重置" >
        </td>
      </tr>
<%
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
</form>
</table>
</body>
</html>