<!--#include file="admin_start.asp" -->
<body topmargin="30" marginwidth="10" marginheight="10">
<div id=search_open style='display:none'>
<table cellspacing=3 cellpadding=3 width=98% bgcolor='#f7f7f7' align=center style='border:1px dashed #b7b7b7 '>
<form name=search_admin method=get action='admin_user_sys_list.asp'>	
<tr>
	<td  valign='middle' align=right width=10% >用 户 名:</td>
	<td  valign='middle' align=left width=40% >
	<input size=40 name=admin_name value='<%=request("admin_name")%>' >
	</td>
	<td  valign='middle' align=right width=10% >注册时间:</td>
	<td  valign='middle' align=left width=40% >
	 从 
	<input size=18 name=admin_addtime_s value='<%=request("admin_addtime_s")%>' > 
	 到 
	<input size=18 name=admin_addtime_e value='<%if request("admin_addtime_e")<>"" then response.write request("admin_addtime_e") else response.write now() %>' > 
	 </td>
</tr>
<tr>
	<td  valign='middle' align=right width=10% >用户权限:</td>
	<td  valign='middle' align=left width=40% >
	<select name=admin_open >
	<option value='' <%if request("admin_open")="" then response.write "selected"%>>随便</option>
	<option value=1 <%if request("admin_open")="1" then response.write "selected"%>>打开</option>
	<option value=0 <%if request("admin_open")="0" then response.write "selected"%>>关闭</option>
	</select>
	</td>
	<td  valign='middle' align=right width=10% >用户类型:</td>
	<td  valign='middle' align=left width=40% >
	<select name=sort_id >
	<option value='' <%if request("sort_id")="" then response.write "selected"%>>所有类型</option>
	<%
	set rs_t=conn.execute("select sort_description ,sort_id from sys_admin_sort order by sort_grade ")
	do while not rs_t.eof 
	response.write "<option value='"&rs_t("sort_id")&"' "
	if request("sort_id")<>"" then
	if rs_t("sort_id")-request("sort_id")=0 then response.write " selected "
	end if
	response.write ">"&rs_t("sort_description")&"</option>"
	rs_t.movenext
	loop
	%>
	</select>
	</td>
</tr>
<tr>
	<td  valign='middle' align=right width=10% >用户性别:</td>
	<td  valign='middle' align=left width=40% >
	<select name=admin_sex >
	<option value='' <%if request("admin_sex")="" then response.write "selected"%>>随便</option>
	<option value=1 <%if request("admin_sex")="1" then response.write "selected"%>>男</option>
	<option value=0 <%if request("admin_sex")="0" then response.write "selected"%>>女</option>
	</select>
	</td>
	<td  valign='middle' align=right width=10% ></td>
	<td  valign='middle' align=left width=40% >
	</td>
</tr>
<tr>
<td height='1' width='100%' colspan='10' background='images/dot03.gif'></td>
</tr>
<tr>
	<td  valign='middle' colspan=10 align=center width=100% >
	<input type=hidden  name=s_n value="0,admin_name,1|5,admin_addtime|1,admin_open,0|1,sort_id,0|1,admin_sex,0" >
	<input type=image align=absmiddle border=0 src='Images/search.jpg'  alt='开始搜索！！'  hspace='3' ></td>
</tr>
</form>
</table>
<br>
</div>
<%
c_order="用户名$admin_name|注册日期$admin_addtime|性别$admin_sex|是否打开$admin_open,升序$|降序$desc"

c_h="<form name=sys_admin_list action='admin_user_sys_list_handle.asp' method=post>"
c_h=c_h+"<table cellspacing=0 cellpadding=0 align=center width=98% bgcolor=#F7F7F7 style='border-top: 1px solid #EBEBEB; '>"
c_h=c_h+"<tr>"
c_h=c_h+"<td height=30 width='6%' align=center>选择</td>"
c_h=c_h+"<td height=30 width='24%' align=left>用户名(仅列出管理权限低于您的用户)</td>"
c_h=c_h+"<td height=30 width='5%' align=center>性别</td>"
c_h=c_h+"<td height=30 width='20%' align=center>注册日期</td>"
c_h=c_h+"<td height=30 width='15%' align=center>开关</td>"
c_h=c_h+"<td height=30 width='10%' align=center>查看详情</td>"
c_h=c_h+"<td height=30 width='5%' align=center>删除</td>"
c_h=c_h+"</tr>"
c_h=c_h+"<tr>"
c_h=c_h+"<td height='1' width='100%' colspan='10' background='images/dot03.gif'></td>"
c_h=c_h+"</tr>"
c_h=c_h+"</table>"

c="<table cellspacing=0 cellpadding=0 width=98% align=center >"
c=c+"<tr onmouseover=""this.style.background='#ebebeb';"" onmouseout=""this.style.background='#ffffff';"">"
c=c+"<td height=30  width='6%' align=center>"
c=c+"<input type=checkbox name=ids value='$$admin_id$$'> "
c=c+"</td>"

c=c+"<td height=30  width='24%' align=left >"
c=c+"<font style=""font-size:10pt"" >$$admin_name$$</font>"
c=c+"</td>"

c=c+"<td height=30  width='5%' align=center>"
c=c+"<% if $$admin_sex$$=1 then response.write ""男"" else response.write ""女"" %\> " 
c=c+"</td>"

c=c+"<td height=30  width='20%' align=center>"
c=c+"$$admin_addtime$$"
c=c+"</td>"

c=c+"<td height=30  width='15%' align=center>"
c=c+"<select name=admin_open_$$admin_id$$ >"
c=c+"<option value=1 <%if $$admin_open$$=1 then response.write ""selected"" %\> >打开</option>"
c=c+"<option value=0 <%if $$admin_open$$=0 then response.write ""selected"" %\> >关闭</option>"
c=c+"</select>"
c=c+"</td>"

c=c+"<td height=30  width='10%' align=center>"
c=c+"<a title='点击进行详细设置！' href='admin_user_sys_edit.asp?id=$$admin_id$$'>"
c=c+"<img border='0' src='Images/icon07.gif' align='bottom' alt='点击进行详细设置！'></a>"
c=c+"</td>"
		
c=c+"<td height=30 width='5%' align=center>"
c=c+"<a title='点击删除此项！' href='admin_user_sys_edit_handle.asp?action=delete&ids=$$admin_id$$'>"
c=c+"<img border='0' src='Images/delete.gif' align='bottom' alt='点击删除此项！'></a>"
c=c+"</td></tr>"
c=c+"<tr>"
c=c+"<td height='1' width='100%' colspan='10' background='images/dot03.gif'></td>"
c=c+"</tr>"
c=c+"</table>"

dim ins(2)

sql=MySys.search(trim(request("s_n")))

sql=sql&" and sort_id in (select sort_id from sys_admin_sort where sort_grade<"&MySys.admin_grade&" ) "

if sql<>"" then sql=" where 1=1 "&sql

MySys.ListThings c_order,c_h,c,sql,"sys_admin_list","admin_id",ins
%>
<!--#include file="admin_end.asp" -->