<%@ page language="C#" autoeventwireup="true" inherits="WebAdmin_Accounts, 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 rel="stylesheet" type="text/css" href="css/css.css" media="screen"/>
    <script type="text/javascript" language="javascript" src="js/topHead.js"></script>
    <script src="js/checked.js" type="text/javascript"></script>
    <link href="css/tipswindown.css" type="text/css" rel="stylesheet" />
    <script src="js/jquery.js" type="text/javascript"></script>
    <script src="js/tipswindown.js" type="text/javascript"></script>
    <script type="text/javascript">
        var $=jQuery;
        var page='<%=page %>';
        function edit(id){
            window.location.href="Accounta.aspx?uid="+id+"&page="+<%=page %>;
        }
        function add(){
            window.location.href="AccountAdd.aspx";
        }
    </script>
</head>
<body>
<form id="form1" runat="server">
<!--顶部logo区域-->
        <script>header(4,1,"images/");</script>
        <div class="blank clearfix"></div>
        <!--功能区-->
        <div class="tabmenus mainwidth">
            <ul>
                <li class="current"><a href="Accounts.aspx"><span>充值管理</span></a></li>
                <li><a href="AccountAdd.aspx"><span>账户充值</span></a></li>
                <li><a href="AccountLog.aspx"><span>充值日志</span></a></li>
            </ul>
        </div>
        <div class="tab-mainbody">
            <div class="tab-mainbody2">
                <div class="functionHandleArea clearfix">
                    <input type="image" title=" 充值 " onclick="add();return false;" src="images/btn-chong.gif" align="absmiddle">
                </div>
                <div id="datalist">
                    <table cellspacing="0" border="0" id="list" style="width: 100%; border-collapse: collapse;">
                    <!-- table 导航 -->
                        <tr>
                            <th style="width: 20%">用户名</th>
                            <th style="width: 15%">姓名</th>
                            <th style="width: 15%">账户余额(元)</th>
                            <th style="width: 15%">保障金(元)</th>
                            <th style="width: 15%">冻结金额(元)</th>
                            <th style="width: 10%">实名认证</th>
                            <th style="width: 10%">充值</th>
                        </tr>
                        <%for (int i = 0; i < ds.Tables[0].Rows.Count; i++){%>
                        <tr>
                            <td> <input type="hidden" id="hidden_id<%=i %>" name="hidden_id<%=i %>" value="<%=ds.Tables[0].Rows[i]["id"] %>" />
                                <%=ds.Tables[0].Rows[i]["username"] %>
                            </td>
                            <td>
                                <%=ds.Tables[0].Rows[i]["uname"] %>
                            </td>
                            <td>
                                <%=ds.Tables[0].Rows[i]["Balance"]%>
                            </td>
                            <td>
                                <%=ds.Tables[0].Rows[i]["Deposit"]%>
                            </td>
                            <td>
                                <%=ds.Tables[0].Rows[i]["djmoney"]%>&nbsp;
                            </td>
                            <td>
                                <%if (ds.Tables[0].Rows[i]["renzheng"].ToString() == "1"){%><span style="color:Red;">已认证</span><%}else{ %>未认证<%} %>
                            </td>
                            <td>
                                <a href="javascript:edit(<%=ds.Tables[0].Rows[i]["id"] %>)">充值</a>
                            </td>
                        </tr>
                        <%} %>
                        <tr>
                            <td class="list-foot" colspan=7>
                                <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>
