<!--#include file="conn.asp"-->
<!--#include file="inc/cook1.asp"-->
<!--#include file="inc/dimflag.asp"-->
<!--#include file="top.asp"-->
<div id="container">
<div class="top_but">
 <li class="left">&nbsp;</li>
 <li><a href="?action=pageadd"><img src="images/but_1.gif" alt="添加" ></a></li>
 <li><img src="images/but_8.gif" alt="刷新" onClick="window.location.reload(true);"></li>
 <li><img src="images/but_9.gif" alt="打印" onClick="window.print() "/></li>
</div>
<div class="tableAll titlebgcolor">
  <li style="width:30px;">&nbsp;</li>
 <li style="width:700px;">管理员管理说明</li>
</div>
<div class="tableAll trbgcolor">
  <li style="width:30px;">&nbsp;</li>
 <li><%=info_admin_help_01%><br><%=info_admin_help_02%></li>
</div>

<div class="tableAll titlebgcolor">
   <li style="width:30px;">&nbsp;</li>
  <li style="width:200px">后台用户名</li>
  <li style="width:200px">密码（不修改保持空）</li>
  <li style="width:200px">权限</li>
  <li style="width:200px">操作</li>
</div>

<%

set rs=server.CreateObject("adodb.recordset")
rs.Open "select * from com_admin where adminid>5 and vip<>1",conn,1,1
while not rs.EOF%>
<form name="form<%=rs("adminid")%>" method="post" action="db_adminsave.asp?action=edit&amp;id=<%=int(rs("adminid"))%>">
 <div class="tableAll trbgcolor">
   <li style="width:30px;">&nbsp;</li>
  <li style="width:200px"><input name="user" type="text" value="<%=trim(rs("com_xxx_admin"))%>"></li>
  <li style="width:200px"><input name="pass" type="text"></li>
  <li style="width:200px"><%select case rs("admin")
                case "1"
                response.Write "<input type=radio name=flag value=1 checked>网站CEO <input name=flag type=radio value=2 >普通管理"
                case "2"
                response.Write "<input type=radio name=flag value=1>网站CEO <input name=flag type=radio value=2 checked>普通管理"
                end select%></li>
  <li style="width:200px"><a href="javascript:form<%=rs("adminid")%>.submit();">修改</a>
          <a href="db_adminsave.asp?username=<%=trim(rs("com_xxx_admin"))%>&amp;action=del" onClick="return confirm('您确定要删除此用户吗？')">删除</a></li>
 </div>
 </form>
<%
rs.movenext
wend
rs.close
set rs=nothing
%>
<%
select case action
case "pageadd" 
%>
<div class="tableAll titlebgcolor">
   <li style="width:30px;">&nbsp;</li>
  <li style="width:700px">添加</li>
</div>
<form name="formadd" method="post" action="db_adminsave.asp?action=add">
<div class="tableAll trbgcolor">
   <li style="width:30px;">&nbsp;</li>
  <li style="width:200px"><input name="admin2" type="text"></li>
  <li style="width:200px"><input name="password2" type="text"></li>
  <li style="width:200px"><input type="radio" name="flag2" value="1">网站CEO<input name="flag2" type="radio" value="2" checked>普通管理</li>
  <li style="width:200px"><a href="javascript:formadd.submit();">添加</a></li>
 </div>
</form>
<%
end select
%>
</div>
<!--#include file="footer.asp"-->