<!--#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>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css.css" rel="stylesheet" type="text/css">
</head>

<body>
<br><table width="95%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC">
  <tr> 
    <td height="22" bgcolor="f1f1f1"> 
      <div align="center"><font color="#000000">后台用户管理</font></div>
    </td>
  </tr>
  <tr> 
    <td bgcolor="#FFFFFF"> 
      <br><table width="95%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC">
        <tr> 
          <td width="23%" bgcolor="f1f1f1"> 
            <div align="center">管理员</div>
          </td>
          <td width="21%" bgcolor="f1f1f1"> 
            <div align="center">密 码</div>
          </td>
          <td width="31%" bgcolor="f1f1f1"> 
            <div align="center">权 限</div>
          </td>
          <td width="25%" bgcolor="f1f1f1"> 
            <div align="center">操 作</div>
          </td>
        </tr>
        <%set rs=server.CreateObject("adodb.recordset")
        rs.Open "select * from shop_admin order by flag",conn,1,1
        do while not rs.EOF%>
        <form name="form1" method="post" action="saveadmin.asp?action=edit&id=<%=int(rs("adminid"))%>">
          <tr bgcolor="#FFFFFF"> 
            <td> 
              <div align="center"> 
                <input name="admin" type="text" class="wenbenkuang" size="12" value="<%=trim(rs("admin"))%>">
              </div>
            </td>
            <td> 
              <div align="center"> 
                <input name="password" type="text" size="12" class="wenbenkuang">
              </div>
            </td>
            <td> 
              <div align="center"> 
                <%select case rs("flag")
                case "1"
                response.Write "<input type=radio name=flag value=1 checked>管理&nbsp;<input name=flag type=radio value=2 >添加&nbsp;<input type=radio name=flag value=3>查看"
                case "2"
                response.Write "<input type=radio name=flag value=1>管理&nbsp;<input name=flag type=radio value=2 checked>添加&nbsp;<input type=radio name=flag value=3>查看"
				case "3"
				response.Write "<input type=radio name=flag value=1>管理&nbsp;<input name=flag type=radio value=2>添加&nbsp;<input type=radio name=flag value=3  checked>查看"
                end select%>
              </div>
            </td>
            <td> 
              <div align="center"> 
                <input type="submit" name="Submit" value="修 改" class="go-wenbenkuang">
                &nbsp;<a href="saveadmin.asp?id=<%=int(rs("adminid"))%>&action=del" onClick="return confirm('您确定要删除此用户吗？')"><font color=red>删除</font></a> 
              </div>
            </td>
          </tr>
        </form>
        <%rs.movenext
        loop
        rs.close
        set rs=nothing
        %>
      </table>
    <br></td>
  </tr>
</table>
<br>
<table width="95%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC">
  <tr> 
    <td height="22" bgcolor="f1f1f1"> 
      <div align="center"><font color="#000000">后台用户添加</font></div>
    </td>
  </tr>
  <tr> 
    <td bgcolor="#FFFFFF"> 
     <br> <table width="95%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC">
        <tr> 
          <td width="21%" bgcolor="f1f1f1"> 
            <div align="center">管理员</div>
          </td>
          <td width="23%" bgcolor="f1f1f1"> 
            <div align="center">密 码</div>
          </td>
          <td width="35%" bgcolor="f1f1f1"> 
            <div align="center">权 限</div>
          </td>
          <td width="21%" bgcolor="f1f1f1"> 
            <div align="center">操 作</div>
          </td>
        </tr>
        <form name="form1" method="post" action="saveadmin.asp?action=add">
          <tr bgcolor="#FFFFFF"> 
            <td> 
              <div align="center"> 
                <input name="admin2" type="text" size="12" class="wenbenkuang">
              </div>
            </td>
            <td> 
              <div align="center"> 
                <input name="password2" type="text" size="12" class="wenbenkuang">
              </div>
            </td>
            <td> 
              <div align="center"> 
                <input type="radio" name="flag2" value="1">
                管理 
                <input name="flag2" type="radio" value="2" checked>
                添加 
                <input type="radio" name="flag2" value="3">
                查看</div>
            </td>
            <td> 
              <div align="center"> 
                <input type="submit" name="Submit2" value="添 加" class="go-wenbenkuang">
              </div>
            </td>
          </tr>
        </form>
      </table>
      <br>
    </td>
  </tr>
</table>
<br>
<table width="95%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <td> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td  rowspan="2"> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="12v">
              <tr> 
                <td class="12v" > 
                  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" id="AutoNumber3" height="0" width="100%">
                    <tr> 
                      <td> 
                        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                          <tr> 
                            <td height="22"> 
                              <div align="center"><font color="#000000">操作注意事项及说明</font></div>
                            </td>
                          </tr>
                          <tr> 
                            <td height="38"> 
                              <table width="80%" border="0" align="center" cellpadding="5" cellspacing="0">
                                <tr> 
                                  <td height="48"><font color="#FF0000">·后台管理用户与前台用户毫无牵连。<br>
                                    ·添加人员只能添加、修改、删除商品资料。<br>
                                    ·查看人员可以管理商品评论\用户订单和用户留言。<br>
                                    ·管理员拥有本站所有管理权限。<br>
                                    ·登录密码采用MD5不可逆转方式加密，如不修改密码，请留空。 </font></td>
                                </tr>
                              </table>
                            </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<!--#include file="copyright.asp"-->
</body>
</html>
