<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Admin_AdminList.aspx.vb" Inherits="TourEx.Web.Admin_AdminList" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>无标题页</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="Css/Style.css"/>
<script type="text/javascript" language="javascript" src="../Sys/Js/jquery.js"></script>
<script type="text/javascript" language="javascript src="../Sys/Js/CreateSelect.js"></script>
</head>
<body>
<ul class="tools">
	<li class="add"><span><a href="Admin_Admin.aspx">添加</a></span></li>
	<li class="del"><span><a href="javascript:void(0);" onclick="Del(0);return false;">删除</a></span></li>
	<li class="search">关键词：<input type="text" class="inputSearchTit" id="Key" runat="server" CssClass="searchTitle"/>
        <input type="button" value="" class="searchInput" onclick="location='?Key='+$('#Key').val();" /></li>
</ul>
<asp:Repeater ID="Repeater" runat="server">
    <HeaderTemplate>
        <div class="mainBox">
		<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tabBox">
            <tr class="tabTitleMain">
                <td width="35" class="selectAll"><a href="javascript:void(0);" onclick="$('input[name=\'ID\']').attr('checked',!$(this).attr('checked'));$(this).attr('checked',!$(this).attr('checked'));">全选</a></td>
                <td>管理员帐号</td>
                <td width="80">操作</td>
            </tr>
    </HeaderTemplate>
    <ItemTemplate>
        <tr class="tabTextMain" id="Form_<%#Eval("A_Id")%>" onmouseout="this.style.background='#FFFFFF';" onmouseover="this.style.background='#F4F7FA';">
            <td><input name="ID" type="checkbox" value="<%#Eval("A_Id")%>" /></td>
            <td><%#Eval("A_UserName")%></td>
            <td>
                <a href="Admin_Admin.aspx?id=<%#Eval("A_Id")%>">编辑</a> 
                <a href="javascript:void(0);" onclick="Del(<%#Eval("A_Id")%>);return false;">删除</a>
            </td>
        </tr>
    </ItemTemplate>
    <FooterTemplate>
        </table>
		</div>
        <asp:Label ID="lblEmpty" Text="暂无" runat="server" Visible="<%#Boolean.Parse((Repeater.Items.Count = 0).ToString())%>"
            Width="100%" Style="text-align: center">     
        </asp:Label>
    </FooterTemplate>
</asp:Repeater>
<webdiyer:AspNetPager ID="TourExPage" runat="server" UrlPaging="true" ShowPageIndexBox="Never"
    PageIndexBoxType="DropDownList" TextBeforePageIndexBox=""
    PageSize="20" OnPageChanged="BindData" EnableTheming="true" FirstPageText="首页"
    LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页" CssClass="page" 
        PagingButtonSpacing="" CurrentPageButtonClass="current" 
    CurrentPageButtonStyle="">
</webdiyer:AspNetPager>
    <script type="text/javascript">
    	 <!--//
    	 function Del(ID)
    	 {
    	 	var Url='?Act=del&';
    		var IDs;
    		if(ID>0)
    		{
    			Url +='ID='+ID;
    		}else{
    	 		IDs = $("input[name='ID']").serialize().replace(/&ID=/g,',');
    			if(IDs==''){alert('请选择您要删除的管理员！');return;}
    			Url +=IDs;
    		}
    		if(confirm('您确定删除吗！')){location=Url;}
    	 }
    //-->
</script>

</body>
</html>
