<%@ page language="C#" autoeventwireup="true" inherits="WebAdmin_Withdrawlist, LebiMall" %>
<%@ 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 id="Head1" runat="server">
    <title>提现信息设置</title>
    <link href="css/css.css" rel="stylesheet" type="text/css" />
    <link href="css/tipswindown.css" type="text/css" rel="stylesheet" />
    <script type="text/javascript" language="javascript" src="js/topHead.js"></script>
    <script type="text/javascript" src="js/checked.js"></script>
    <script src="js/jquery.js" type="text/javascript"></script>
    <script src="js/tipswindown.js" type="text/javascript"></script>
    <script type="text/javascript">
        var page='<%=page %>';
        function updete(id_,i){
            var txtbank=document.getElementById('txt_bank'+i).value;
            var txtname=document.getElementById('txt_name'+i).value;
            var txtcode=document.getElementById('txt_code'+i).value;
            var txtpwd=document.getElementById('txt_pwd'+i).value;
            var txtwen=document.getElementById('txt_wen'+i).value;
            var txtda=document.getElementById('txt_da'+i).value;
            window.location.href="Withdrawlistm.aspx?txtbank="+escape(txtbank)+"&txtname="+escape(txtname)+"&txtcode="+escape(txtcode)+"&txtpwd="+escape(txtpwd)+"&id="+id_+"&txtwen="+escape(txtwen)+"&txtda="+escape(txtda)+"&type=update&page="+page;
        }
        function del(id){
            if (confirm("确认要删除？")) {
                window.location.href="Withdrawlistm.aspx?id="+id+"&type=del&page="+page;
            }
        }
        function updates(){
            document.getElementById("form1").submit();
        }
        function dels(){
            var form =document.forms[0];
            var strid="";
            if (confirm("确认要删除？")) {
                for(i=0;i<form.elements.length;i++)
                {
                    if(form.elements[i].type=="checkbox")
                    {
                        if(form.elements[i].checked==true){
                            strid+=form.elements[i].value+",";
                        }
                    }
                }
                if(strid!="")
                window.location.href="Withdrawlistm.aspx?strid="+strid+"&type=dels&page="+page;
            }
        }
        function selectw2(){
            var strkey=document.getElementById("strkey").value;
            window.location.href="Withdrawlist.aspx?strkey="+escape(strkey)+"&page=1";
        }
    </script>
</head>
<body>
<form id="form1" runat="server" method="post" action="shoplevellist.aspx">
<script>header(1,2,"images/");</script>
        <div class="blank clearfix">
        </div>
        <div class="tabmenus mainwidth">
            <ul>
                <li class="current"><a href="withdrawlist.aspx"><span>提现管理</span></a></li>
                <li><a href="WithdrawelM.aspx"><span>提现设置</span></a></li>
                <li><a href="Withdrawnotelist.aspx"><span>申请提现</span></a></li>
            </ul>
        </div>
        <div class="tab-mainbody">
            <div class="tab-mainbody2">
                <div class="functionHandleArea clearfix" style="padding:3px 0 3px 4px">
                    <table cellpadding="0" cellspacing="0">
                        <tr>
                            <td><input type=text class=input id="strkey" style="width:150px;" runat="server" /><input type=button class="btn-search" onclick="selectw2();" /></td>
                        </tr>
                        <tr>
                            <td colspan="6" style="height:30px;"> 
                                <input type="image" border="0" title=" 保存 " onclick="updates();return false;" src="images/bt_app.gif" align="absmiddle" />
                                <input type="image" name="Submit" title=" 删除 " onClick="dels();return false;" src="images/bt_delete.gif" align="absmiddle" />
                            </td>
                        </tr>
                    </table>
                </div>
                <div id="datalist">
                    <table cellspacing="0" width="100%" cellpadding="0" id="list">
                        <tr>
                            <th style="width: 5%; cursor: pointer;" title="全选" onclick="AllChecked()">
                                选择</th>
                            <th style="width: 10%">
                                用户名</th>
                            <th style="width: 15%">
                                开户行
                            </th>
                            <th style="width: 10%">
                                开户人
                            </th>
                            <th style="width: 20%">
                                开户账号                 
                            </th>
                            <th style="width: 10%">
                                密码修改
                            </th>
                            <th style="width: 20%">
                                密保问题
                            </th>
                            <th style="width: 10%">
                                密保答案
                            </th>
                        </tr>
                        <%for (int i = 0; i < ds.Tables[0].Rows.Count; i++){%>
                        <tr>
                            <td>
                                <input type="checkbox" value="<%=ds.Tables[0].Rows[i]["id"] %>" />
                                <input type="hidden" id="hidden_id<%=i %>" name="hidden_id<%=i %>" value="<%=ds.Tables[0].Rows[i]["id"] %>" />
                            </td>
                            <td>
                                <%=subStr(ds.Tables[0].Rows[i]["username"].ToString()) %>
                            </td>
                            <td>
                                <input type="text" id="txt_bank<%=i %>" name="txt_bank<%=i %>" value="<%=ds.Tables[0].Rows[i]["Bankname"] %>"
                                    class="input" style="width:120px;"/>
                            </td>
                            <td>
                                <input type="text" id="txt_name<%=i %>" name="txt_name<%=i %>" value="<%=ds.Tables[0].Rows[i]["Accountholder"] %>"
                                    class="input" style="width:80px;"/>
                            </td>
                            <td>
                                <input type="text" id="txt_code<%=i %>" name="txt_code<%=i %>" value="<%=ds.Tables[0].Rows[i]["Bankaccount"] %>"
                                    class="input" style="width:160px;"/>
                            </td>
                            <td>
                                <input type="password" id="txt_pwd<%=i %>" name="txt_pwd<%=i %>" class="input" style="width:90px;"/>
                            </td>
                            <td>
                                <input type="text" id="txt_wen<%=i %>" name="txt_wen<%=i %>" value="<%=ds.Tables[0].Rows[i]["pwen"] %>"
                                    class="input" style="width:160px;"/>
                            </td>
                            <td>
                               <input type="text" id="txt_da<%=i %>" name="txt_da<%=i %>" class="input" style="width:80px;"/>
                            </td>
                        </tr>
                        <%} %>
                        <tr>
                            <td colspan="8" class="list-foot">
                                <div style="float: left; padding-top: 3px;">
                                </div>
                                <div id="divAsp" runat="server" style="float: right; padding-top: 3px;">
                                    <webdiyer:AspNetPager CssClass="pages" CurrentPageButtonClass="cpb" ID="AspNetPager1"
                                        runat="server" RecordCount="228" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页"
                                        PrevPageText="上一页" PageSize="20" UrlPaging="True" CustomInfoClass="pages1" CurrentPageButtonPosition="Center" ShowBoxThreshold="50"
                                        ShowFirstLast="true" NumericButtonCount="4" BackColor="Transparent" ShowDisabledButtons="False" EnableViewState="False">
                                    </webdiyer:AspNetPager>
                                </div>
                            </td>
                        </tr>
                    </table>
                    <script type="text/javascript">tdshowm("list");</script>
                </div>
            </div>
        </div>
</form>
</body>
</html>
