<!--#include file="const.asp"-->
<!--#include file="check.asp"-->
<!--#include file="conn.asp"-->

<%response.expires=0
set rs=server.createobject("adodb.recordset")
sql="select * from admin order by id"
rs.open sql,conn,3,1
%>

<head>
<link rel="stylesheet" type="text/css" href="STYLE.CSS">
<title></title>
</head>

<body bgcolor="#799AE1">
<div align="center">
  <center>
  <table bgcolor="#e8e8e8" border="0" width="600" bordercolorlight="#000000" cellspacing="0" cellpadding="0" style="border-left: 2 solid #82C130; border-right: 2 solid #82C130" height="101">
    <tr>
      <td width="100%" height="30" background="l1.gif">
<!--#include file="menu.asp"-->
      </td>
    </tr>
  </center>
    <tr>
      <td width="100%" height="72">
      <form method="POST" action="saveadmin.asp" name="form1">
        <p>　</p>
        <div align="center">
          <center>
          <table border="1" width="500" cellspacing="0" cellpadding="0" bordercolorlight="#000000" bordercolordark="#FFFFFF">
            <tr>
              <td width="91" height="33" bgcolor="#82C130">
                <p align="center"><font color="#FFFFFF">增加管理员：</font></td>
              <td width="403" height="33">&nbsp;账号：<input type="text" name="name" size="12" style="BORDER-BOTTOM: #FFFFFF 1px double; BORDER-LEFT: #FFFFFF 1px double; BORDER-RIGHT: #FFFFFF 1px double; BORDER-TOP: #FFFFFF 1px double; BACKGROUND: #93CF43 COLOR: #000000; FONT-SIZE: 9pt">密码：<input type="text" name="password" size="12" style="BORDER-BOTTOM: #FFFFFF 1px double; BORDER-LEFT: #FFFFFF 1px double; BORDER-RIGHT: #FFFFFF 1px double; BORDER-TOP: #FFFFFF 1px double; BACKGROUND: #93CF43 COLOR: #000000; FONT-SIZE: 9pt">权限：<select size="1" name="qx" style="BORDER-BOTTOM: #FFFFFF 1px double; BORDER-LEFT: #FFFFFF 1px double; BORDER-RIGHT: #FFFFFF 1px double; BORDER-TOP: #FFFFFF 1px double; BACKGROUND: #93CF43 COLOR: #000000; FONT-SIZE: 9pt">
                  <option value="1" selected>一般管理员</option>
                  <option value="2">超级管理员</option>
                </select></td>
            </tr>
            <tr>
              <td width="91" height="33" bgcolor="#82C130">
                <p align="center"><font color="#FFFFFF">删除管理员：</font></td>
              <td width="403" height="33">&nbsp;账号：<input type="text" name="delname" size="12" style="BORDER-BOTTOM: #FFFFFF 1px double; BORDER-LEFT: #FFFFFF 1px double; BORDER-RIGHT: #FFFFFF 1px double; BORDER-TOP: #FFFFFF 1px double; BACKGROUND: #93CF43 COLOR: #ffffff; FONT-SIZE: 9pt"></td>
            </tr>
          </table>
          </center>
        </div>
        <p align="center"><input type="submit" value="确定新增/删除" name="B1"></p>
      </form>
      <hr>
      <form method="POST" action="xgadmin.asp" name="form2">
        <div align="center">
          <center>
          <table border="1" width="500" bordercolorlight="#000000" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" height="33">
            <tr>
              <td width="89" bgcolor="82C130">
                <p align="center"><font color="#FFFFFF">修改用户：</font></td>
              <td width="405"><select size="1" name="D1">
                  <option value="0" selected style="BORDER-BOTTOM: #FFFFFF 1px double; BORDER-LEFT: #FFFFFF 1px double; BORDER-RIGHT: #FFFFFF 1px double; BORDER-TOP: #FFFFFF 1px double; BACKGROUND: #93CF43 COLOR: #000000; FONT-SIZE: 9pt">操作用户</option>
                  <%do while not rs.eof%>
                   <option value="<%=rs("id")%>"><%=rs("admin")%></option>
                   <%rs.movenext
                   loop%>
                </select> 密码：<input type="text" name="password" size="12" style="BORDER-BOTTOM: #FFFFFF 1px double; BORDER-LEFT: #FFFFFF 1px double; BORDER-RIGHT: #FFFFFF 1px double; BORDER-TOP: #FFFFFF 1px double; BACKGROUND: #93CF43 COLOR: #000000; FONT-SIZE: 9pt">&nbsp; 
                权限：<select size="1" name="qx" style="BORDER-BOTTOM: #FFFFFF 1px double; BORDER-LEFT: #FFFFFF 1px double; BORDER-RIGHT: #FFFFFF 1px double; BORDER-TOP: #FFFFFF 1px double; BACKGROUND: #93CF43 COLOR: #000000; FONT-SIZE: 9pt">
                  <option value="1">一般管理员</option>
                  <option value="2">超级管理员</option>
                  <option selected value="0">选择修改权限</option>
                </select></td>
            </tr>
          </table>
          </center>
        </div>
        <p align="center"><input type="submit" value="确定修改" name="B1"></p>
      </form>
      <p align="center">密码和权限如果没有修改请留空</p>
      　
      </td>
    </tr>
 <tr>
      <td width="746" height="18" background="l2.gif"></td>
    </tr>
  </table>
</div>
<%rs.close
set rs=nothing
conn.close
set conn=nothing%>
<p align="center"><font color="#FF0000">注：一般管理员只能添加投票，修改和删除自己增加的投票</font></p>
