<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Admin_WithdrawList.aspx.vb" Inherits="TourEx.Web.Admin_WithdrawList" %>
<%@ 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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题页</title>
<link rel="stylesheet" type="text/css" href="Css/Style.css"/>
<script language="javascript" src="../Sys/Js/jquery.js"></script>
</head>
<body>
<form runat="server">
<ul class="tools">
	<li class="del" p="64"><span><a href="javascript:void(0);" onclick="Del(0);return false;">删除</a></span></li>
	<li class="search">
        <asp:DropDownList ID="Mark" runat="server" onchange="location='?T='+this.value;">
        <asp:ListItem Text="全部" Value="0"></asp:ListItem>
        <asp:ListItem Text="申请提现" Value="1"></asp:ListItem>
        <asp:ListItem Text="已驳回" Value="2"></asp:ListItem>
        <asp:ListItem Text="已提现" Value="3"></asp:ListItem>
        </asp:DropDownList>
	</li>
</ul>
</form>
<div style="display:none"><asp:Label ID="navIgation" runat="server" Text=""></asp:Label></div>
    <form id="BatchSubmit" name="BatchSubmit" method="post" action="?act=edit" style="display: none">
    </form>
<asp:Repeater ID="Repeater" runat="server">
    <HeaderTemplate>
		<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="80">会员帐号</td>
				<td width="80">开户名</td>
				<td>银行帐号</td>
                <td width="60">提现金额</td>
                <td width="140">申请时间</td>
                <td width="60">状态</td>
                <td width="80">操作</td>
            </tr>
    </HeaderTemplate>
    <ItemTemplate>
        <tr class="tabTextMain" onmouseout="this.style.background='#FFFFFF';" onmouseover="this.style.background='#F4F7FA';">
            <td><input name="W_ID" type="checkbox" value="<%#Eval("W_ID")%>" /></td>
            <td><a href="?UserId=<%#Eval("U_ID")%>"><%#Eval("U_Name")%></a></td>
            <td><%#Eval("W_KardName")%></td>
            <td><%#Eval("W_KardID")%></td>
            <td><%#Eval("W_Money")%><%=WebSet.BonusUnits%></td>
            <td><%#Eval("W_Date")%></td>
            <td><%# IIf(Eval("W_Mark") = 0, "申请提现", IIf(Eval("W_Mark") = 1, "已驳回", "已提现"))%></td>
            <td>
                <a href="Admin_Withdraw.aspx?id=<%#Eval("W_ID")%>" p="63">查看</a> 
                <a href="javascript:void(0);" onclick="Del(<%#Eval("W_ID")%>);return false;" p="64">删除</a>
            </td>
        </tr>
    </ItemTemplate>
    <FooterTemplate>
        </table>
        <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">
 <!--//
 var AP='<%=TourEx.BLL.GetSession("AdminPermissions") %>';
 if(AP!='')
 {
    if(AP.indexOf(',63,')==-1)$('*[p="63"]').remove();
    if(AP.indexOf(',64,')==-1)$('*[p="64"]').remove();
 }
 function Save(ID)
 {
 	var W_IDs=ID==0?$('input[name="W_ID"]'):$('#W_ID_'+ID);
	var W_Title,W_O;
	$('#BatchSubmit').html('');
	for(var i=0;i<W_IDs.length;i++)
	{
		W_Title = $.trim($('#W_Title_'+W_IDs[i].value).val());
		$('#W_Title_'+W_IDs[i].value).val(W_Title);
		if(W_Title==''){alert('请填写标题！');return;}
		W_O=$('#W_OrderID_'+W_IDs[i].value).val();
		if(W_Title!=$('#W_Title_'+W_IDs[i].value).attr('ovalue') || W_O!=$('#W_OrderID_'+W_IDs[i].value).attr('ovalue'))
		{
			W_IDs[i].checked=true;
			$('#From_'+W_IDs[i].value).clone().prependTo("#BatchSubmit");
			$('#W_Title_'+W_IDs[i].value,'#BatchSubmit').val(W_Title);
			$('#W_OrderID_'+W_IDs[i].value,'#BatchSubmit').val(W_O);
		}
	}
 	if($('#BatchSubmit').html()==''){alert('数据没有改动过，无需保存！');return;}
	$('input[name="W_ID"]','#BatchSubmit').attr('checked',true);
	$('#BatchSubmit').submit();
 }
 function Del(ID)
 {
 	var Url='?Act=del&';
	var IDs;
	if(ID>0)
	{
		Url +='ID='+ID;
	}else{
 		IDs = $("input[name='W_ID']").serialize().replace(/&W_ID=/g,',');
		if(IDs==''){alert('请选择您要删除的提现记录！');return;}
		Url +=IDs;
	}
	if(confirm('您确定删除吗！')){location=Url;}
 }
//-->
</script>

</body>
</html>
