<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Admin_BonusDetails.aspx.vb" Inherits="TourEx.Web.Admin_BonusDetails" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Import Namespace="TourEx.BLL" %>
<!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" src="../Sys/Js/jquery.js"></script>
</head>
<body>
<ul class="tools">
	<li class="del"><span><a href="javascript:void(0);" onclick="Del(0);return false;">删除</a></span></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 width="100">会员</td>
                <td width="100">类型</td>
                <td>时间</td>
                <td width="60">金额</td>
                <td width="60">操作</td>
            </tr>
    </HeaderTemplate>
    <ItemTemplate>
        <tr class="tabTextMain" id="Form_<%#Eval("B_Id")%>" onmouseout="this.style.background='#FFFFFF';" onmouseover="this.style.background='#F4F7FA';">
            <td><input name="ID" type="checkbox" value="<%#Eval("B_Id")%>" /></td>
            <td><a href="?UserId=<%#Eval("U_Id")%>"><%#Eval("U_Name")%></a></td>
            <td><a href="?T=<%#Eval("B_Type")%>"><%#BonusType(Eval("B_Type"))%></a></td>
            <td><%#Eval("B_Date")%></td>
            <td><%#Eval("B_BonusCount")%><%=WebSet.BonusUnits%></td>
            <td><a href="javascript:void(0);" onclick="Del(<%#Eval("B_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>
