<!--#include file="conn.asp"-->
<%if session("admin")="" then
response.Write "<script language='javascript'>alert('网络超时或您还没有登陆！');history.go(-1);</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="../images/css.css" rel="stylesheet" type="text/css">
<style>
td{font-size:9pt;line-height:120%;color:#353535} 
body{font-size:9pt;line-height:120%} 

a:link          { color: #000000; text-decoration: none }
a:visited       { color: #000000; text-decoration: none }
a:active        { color: #000000; text-decoration: none }
a:hover         { color: #336699; text-decoration: none; position: relative; right: 0px; top: 1px }
</style>
</head>

<body bgcolor="#799AE1">
<table width="80%" border="1" cellspacing="0" cellpadding="1" bordercolor="#6699FF" 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="1" bgcolor="#006600">
                          <tr> 
                            <td height="16" bgcolor="#FFFFFF"> 
                              <div align="center"><font color="#000000">后台用户管理</font></div>
                            </td>
                          </tr>
                          <tr> 
                            <td bgcolor="#E8F1FF"> 
                              <table width="80%" border="0" align="center" cellpadding="2" cellspacing="0">
                                <tr> 
                                  <td width="23%"> 
                                    <div align="center">管理员</div>
                                  </td>
                                  <td width="21%"> 
                                    <div align="center">密 码</div>
                                  </td>
                                  <td width="31%"> 
                                    <div align="center">权 限</div>
                                  </td>
                                  <td width="25%"> 
                                    <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> 
                                    <td> 
                                      <div align="center"> 
                                        <input name="admin" type="text" size="12" value="<%=trim(rs("admin"))%>">
                                      </div>
                                    </td>
                                    <td> 
                                      <div align="center"> 
                                        <input name="password" type="text" size="12">
                                      </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="修 改">
                                        &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>
                            </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<br>
<table width="80%" border="1" cellspacing="0" cellpadding="1" bordercolor="#6699FF" align="center">
  <tr> 
    <td> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td background="../images/back_3.gif" 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="1" bgcolor="#006600">
                          <tr> 
                            <td height="16" bgcolor="#FFFFFF"> 
                              <div align="center"><font color="#000000">后台用户添加</font></div>
                            </td>
                          </tr>
                          <tr> 
                            <td bgcolor="#E8F1FF"> 
                              <table width="80%" border="0" align="center" cellpadding="2" cellspacing="0">
                                <tr> 
                                  <td width="21%"> 
                                    <div align="center">管理员</div>
                                  </td>
                                  <td width="23%"> 
                                    <div align="center">密 码</div>
                                  </td>
                                  <td width="35%"> 
                                    <div align="center">权 限</div>
                                  </td>
                                  <td width="21%"> 
                                    <div align="center">操 作</div>
                                  </td>
                                </tr>
                                <form name="form1" method="post" action="saveadmin.asp?action=add">
                                  <tr> 
                                    <td> 
                                      <div align="center"> 
                                        <input name="admin2" type="text" size="12">
                                      </div>
                                    </td>
                                    <td> 
                                      <div align="center"> 
                                        <input name="password2" type="text" size="12">
                                      </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="添 加">
                                      </div>
                                    </td>
                                  </tr>
                                </form>
                              </table>
                            </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<br>
<table width="80%" border="1" cellspacing="0" cellpadding="1" bordercolor="#6699FF" align="center">
  <tr> 
    <td> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td background="../images/back_3.gif" 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="1" bgcolor="#006600">
                          <tr> 
                            <td bgcolor="#FFFFFF"> 
                              <div align="center"><font color="#000000">操作注意事项及说明</font></div>
                            </td>
                          </tr>
                          <tr> 
                            <td height="38" bgcolor="#E8F1FF"> 
                              <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>
