<!--#include file="include/conn.asp"-->
<html>
<title>管理员管理</title>
<head>
<link href="images/lst.css" rel="stylesheet" type="text/css" />
</head>
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0">
<!----头文件---->
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td width="17" height="29" valign="top" background="images/mail_leftbg.gif"><img src="images/left-top-right.gif" width="17" height="29" /></td>
<td height="29" valign="top" background="images/content-bg.gif">
<table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2"><tr><td height="31"><div class="titlebt">管理员</div></td></tr></table>
</td><td width="16" valign="top" background="images/mail_rightbg.gif"><img src="images/nav-right-bg.gif" width="16" height="29"/></td></tr>
<tr><td valign="middle" background="images/mail_leftbg.gif"></td>
<!------------------------------------------------------>
<td valign="top">
<table border="1" width="100%" cellpadding="2" style="border-collapse: collapse" bordercolor="#B5D0D9" bgcolor="#FFFFFF">
	<tr>
		<td>
		
		
		
		
<table border="1" width="100%" id="table3" cellspacing="1" style="border-collapse: collapse" bordercolor="#F6F6F6">
<tr>
<td height="30" align="center" bgcolor="#F6F6F6">用户名</td>
<td height="30" align="center" bgcolor="#F6F6F6">密码</td>
<td height="30" align="center" bgcolor="#F6F6F6">权限</td>
<td height="30" align="center" bgcolor="#F6F6F6">操作</td>
</tr>
<form action="?action=addadmin" method=post>
<tr>
<td height="30" align="center"><input name="aaaa"></td>
<td height="30" align="center"><input name="bbbb" type=password></td>
<td height="30" align="center"><select name="cccc"><option value=1>普通管理</option><option value=9>超级管理</option></select></td>
<td height="30" align="center"><input class="input" type="image" src="images/add2.gif"></td>
</tr>
</form>
</table>
<br>
<table border="1" width="100%" id="table3" cellspacing="1" style="border-collapse: collapse" bordercolor="#F6F6F6">
<tr>
<td height="30" align="center" bgcolor="#F6F6F6">用户名</td>
<td height="30" align="center" bgcolor="#F6F6F6">密码</td>
<td height="30" align="center" bgcolor="#F6F6F6">权限</td>
<td height="30" align="center" bgcolor="#F6F6F6">操作</td>
</tr>
<%
sSql="select * from LstAdmin order by Id"
Set oRs = Server.CreateObject("ADODB.Recordset")
oRs.Open sSql, oconn, 1, 1
If oRs.eof and oRs.bof then
Response.Write "暂时没有信息！"
Else
Do While Not oRs.eof%>
<form action="?action=eddadmin&Id=<%=oRs("Id")%>" method=post>
<tr>
<td height="30" align="center"><%if oRs("UsrAdmin")="admin" then%>admin<input type=hidden name="aaaa" value="admin"><%else%><input name="aaaa" value="<%=oRs("UsrAdmin")%>"><%end if%></td>
<td height="30" align="center"><input name="bbbb" type=password value=""></td>
<td height="30" align="center">
<%if oRs("UsrAdmin")="admin" then%>
超级管理<input type=hidden name="cccc" value="9">
<%else%>
<select name="cccc">
<option value=<%=oRs("UsrLev")%>><%if oRs("UsrLev")="9" Then%>超级管理<%else%>普通管理<%end if%></option>
<option value=1>普通管理</option><option value=9>超级管理</option></select>
<%end if%>
</td>
<td height="30" align="center"><input class="input" type="image" src="images/edit2.gif">
<%if session("adminlev") ="9" and oRs("UsrAdmin")<>"admin" then%>
<img src="images/del2.gif" class="input" onclick="{if(confirm('你是否确定删除？')){location.href='?action=deladmin&Id=<%=oRs("Id")%>';}return false;}">
<%end if%></td>
</tr>
</form>
<%
oRs.MoveNext
Loop
End If
%>
</table>		
		
		
		
		
		
		</td>
	</tr>
</table>
</td>
<!------------------------------------------------------>
<!----尾文件---->
<td background="images/mail_rightbg.gif"></td></tr><tr>
<td valign="middle" background="images/mail_leftbg.gif"><img src="images/buttom_left2.gif" width="17" height="17" /></td>
<td height="17" valign="top" background="images/buttom_bgs.gif"><img src="images/buttom_bgs.gif" width="17" height="17" /></td>
<td background="images/mail_rightbg.gif"><img src="images/buttom_right2.gif" width="16" height="17" /></td></tr>
</table>
</body>
</html>
<!--#include file="v.asp"-->