<!--#include file="conn1.asp"-->
<!--#include file="session1.asp"-->

<html>
<head>
<title>后台用户管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="skins/css/main.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body,td,th {
	font-size: 12px;
}
-->
</style></head>
<body>
<table cellpadding="3" cellspacing="1" border="0" width="100%" class="tableBorder" align=center>
  <tr> 
    <th class="td_title"  colspan=5>后台用户管理</th>
  </tr>
  <tr> 
    <td width="23%"  class="td_content"> <div align="center">后台用户名</div></td>
    <td width="21%"  class="td_content"> <div align="center">密 码</div></td>
    <td width="31%"  class="td_content"> <div align="center">权 限</div></td>
    <td width="25%"  class="td_content"> <div align="center">操 作</div></td>
  </tr>
  <%set rs=server.CreateObject("adodb.recordset")
        rs.Open "select * from wq_admin where quanxian=0 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  class="td_content"> <div align="center"> 
          <input name="admin" type="text" size="12" value="<%=trim(rs("admin"))%>">
        </div></td>
      <td  class="td_content"> <div align="center"> 
          <input name="password" type="text" size="12">
        </div></td>
      <td  class="td_content"> <div align="center"> 
          <%select case rs("flag")
                case "1"
                response.Write "<input type=radio name=flag value=1 checked>站长　<input name=flag type=radio value=2 >管理员　<input type=radio name=flag value=3>业务员"
                case "2"
                response.Write "<input type=radio name=flag value=1>站长　<input name=flag type=radio value=2 checked>管理员　<input type=radio name=flag value=3>业务员"
				case "3"
				response.Write "<input type=radio name=flag value=1>站长　<input name=flag type=radio value=2>管理员　<input type=radio name=flag value=3  checked>业务员"
                end select%>
        </div></td>
      <td  class="td_content"> <div align="center"> 
          <input class="button" type="submit" name="Submit" value="修 改">
          &nbsp;<a href="saveadmin.asp?id=<%=int(rs("adminid"))%>&action=del" onClick="return confirm('您确定要删除此用户吗？')">删除</a> 
        </div></td>
    </tr>
  </form>
  <%rs.movenext
        loop
        rs.close
        set rs=nothing
        %>
</table>
<br>
<table cellpadding="3" cellspacing="1" border="0" width="100%" class="tableBorder" align=center>
  <tr> 
    <th class="td_title" colspan=5>添加系统用户</th>
  </tr>
  <tr> 
    <td width="23%"  class="td_content"> <div align="center">后台用户名</div></td>
    <td width="21%"  class="td_content"> <div align="center">密 码</div></td>
    <td width="31%"  class="td_content"> <div align="center">权 限</div></td>
    <td width="25%"  class="td_content"> <div align="center">操 作</div></td>
  </tr>
  <form name="form1" method="post" action="saveadmin.asp?action=add">
    <tr> 
      <td class="td_content" > <div align="center"> 
          <input name="admin2" type="text" size="12">
        </div></td>
      <td class="td_content" > <div align="center"> 
          <input name="password2" type="text" size="12">
        </div></td>
      <td class="td_content" > <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 class="td_content" > <div align="center"> 
          <input class=button type="submit" name="Submit2" value="添 加">
        </div></td>
    </tr>
  </form>
</table>
<br>
<table cellpadding="3" cellspacing="1" border="0" width="100%" class="tableBorder" align=center>
  <tr> 
    <th class="td_title" colspan=3>用户管理说明</th>
  </tr>
  <tr> 
     <td class="td_content" width="20%"></td>
    <td class="td_content" width="60%"> ·站长拥有所有管理权限！<br>
      ·管理员需要站长给予权限。<font color="#666666">其权限为：除网站基本信息外的所有管理。</font><br>
      ·业各员需要站长给予权限。<font color="#666666">其权限为：信息、房源、客户管理。</font><br>
      <font color="#FF9999">·登陆密码采用MD5不可逆转方式加密，如不修改密码，请留空。 </font></td>
     <td class="td_content" width="20%"></td>
  </tr>
</table>
</body>
</html>
