<%On Error Resume Next%>
<!--#include file="conn.asp"-->
<!--#include file="chk_logs.asp"-->

<%
if session("AdminName")="" then
	response.Write "<script language='javascript'>alert('网络超时或您还没有登陆！');window.location.href='index.asp';</script>"
	response.End
else
	if session("flag")>1 then
	response.Write "<script LANGUAGE='javascript'>alert('您没有此项目管理权限！请于管理员联系!!!');window.location.href='admin.asp';</script>"
	response.End
	end if
end if
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css2.css" rel="stylesheet" type="text/css">

<script type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
</script>
</head>
</html>
<html>
<head></head>
<body bgcolor="#E8F1FF" topmargin="0" marginheight="0">

 <table width="100%" height="480" border="0" align="center" cellpadding="0" cellspacing="0">
 
 <form action="deladmin.asp" method="post" name="dele" >
 <tr><td height="480" align="left" valign="top">
 <table width="100%" height="5" border="0" align="center" cellpadding="0" cellspacing="0">
     <tr><td height="14" class="admin-top-bg"></td></tr>
 </table>
 <table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
     <tr><td height="120" valign="top" bgcolor="3AA3D0">
	     <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
              <tr>
			       <td height="25" bgcolor="254B8F">
			       <table width="100%" border="0" cellpadding="0" cellspacing="0">
                        <tr><td align="left"><span class="bsz">&nbsp; ⊙ 用户管理</span></td>
                        <td align="right"><span class="bsz">当前位置：网站后台管理___首页</span>&nbsp;&nbsp; </td>
                        </tr>
                   </table>
				   </td>
               </tr>
               <tr>
                   <td height="79" valign="top" bgcolor="#FFFFFF">
				   <table class="tableBorder" width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
					  <tr bgcolor="#E8F1FF">
						  <td width="23%" align="center" class="wz">用户名</td>
						  <td width="23%" align="center" class="wz">用户权限</td>
						  <td width="44%" align="center" class="wz">加入时间</td>
						  <td width="10%" align="center" class="wz">选 择</td>
					  </tr>
<%
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from tadmin ",conn,1,3
do while not rs.eof

%>
                      <tr bgcolor="#E8F1FF">
						  <td align="center" class="wz">
							  <a href="renpassword11.asp?id=<%=rs("id")%>">
							  <font color="#666666"><%=rs("tname")%></font></a>
						  </td>
						  <td width="23%" align="center" class="wz" style='PADDING-LEFT: 10px'>
<%
		dim admin,flag
	    flag=trim(rs("flag"))
        
		if flag=1 then admin="管理员"
        if flag=2 then admin="前台管理员"
        if flag=3 then admin="普通用户"
        
        response.write trim(admin)
%>                        </td>
						  <td align="center" class="wz"><%=rs("time")%></td>
						  <td align="center" class="wz">
						  <input name="selectadmin" type="checkbox" id="selectadmin" value="<%=rs("id")%>">
						  </td>
						  </tr>
<%
		rs.movenext
		loop
		rs.close
		set rs=nothing
%>
                    <tr bgcolor="#E8F1FF">
                      <td height="54" colspan="4" align="right" class="wz">全选
                          <input type="checkbox" name="checkbox" value="Check All" onClick="mm()">
                          <input type="submit" name="Submit" value="删 除" onClick="return test();">&nbsp;
					  </td>
                    </tr>
                   </table></td>
                </tr>
            </table></td>
          </tr>
        </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
	  <td class="wz">&nbsp;&nbsp;&nbsp;&nbsp;<a href="manageadmin.asp">添加管理员</a></td>
	  </tr>
	  </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td>&nbsp;</td>
          </tr>
        </table>      
		<table width="97%" height="140" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td bgcolor="65CEE7"><table width="100%" height="147" border="0" cellpadding="0" cellspacing="1">
                <tr>
                  <td height="20" background="images/admin-00.jpg"><span class="STYLE4">&nbsp; </span><span class="bsz">⊙ 温馨提示</span></td>
                </tr>
                <tr>
                  <td height="124" valign="top" bgcolor="#E4F4FC"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td width="3%" height="124">&nbsp;</td>
                        <td width="97%" valign="top" class="wz">尊敬的用户：<br>
                          &nbsp;&nbsp;&nbsp; 感谢您选择芜湖天颂！我们将一如即往的为您提供优质的服务。<br>
                          &nbsp;&nbsp;&nbsp; 您在使用过程中遇到任何问题请拨打服务热线：0553-3846251，如果您觉得我们哪里还可以做的更好，请拨打：0553-3846257！<br>
                          &nbsp;&nbsp;&nbsp; 如果您对我们的服务有任何不满请拨打投诉电话：0553-3846696&nbsp;&nbsp; 3316160。<br>
                          &nbsp;&nbsp;&nbsp; 邮箱：002@tian-song.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;传真：0553-3872351&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 客服QQ：40581502</td>
                      </tr>
                  </table></td>
                </tr>
            </table></td>
          </tr>
      </table></td>
    </tr></form>
</table>

<p>

<script>
function test()
{
  if(!confirm('确认删除吗？')) return false;
}
</script>

<script language=javascript>
function mm()
{
   var a = document.getElementsByTagName("input");
   if(a[0].checked==true)
   {
	   for (var i=0; i<a.length; i++)
		  if (a[i].type == "checkbox") a[i].checked = false;
   }
   else
   {
	   for (var i=0; i<a.length; i++)
		  if (a[i].type == "checkbox") a[i].checked = true;
   }
}
</script>