<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Defult.Master" AutoEventWireup="true" CodeBehind="moneyListManage.aspx.cs" Inherits="Maticsoft.Web.Admin.moneyListManage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="page-content">
        <div class="page-header">
            <h1>
                众筹投资列表
            </h1>
        </div>
        <!-- Content -->
        <div class="row">
            <div class="col-xs-12">
                <!-- PAGE CONTENT BEGINS -->
                <div class="alert alert-block alert-success">
                    <a href="?pid=<%=Maticsoft.Common.UrlOper.QueryString("pid") %>&isPast!=0">已付款</a> | <a href="?pid=<%=Maticsoft.Common.UrlOper.QueryString("pid") %>&isPast=0">未付款</a>
                </div>
                <!-- PAGE CONTENT ENDS -->
            </div>
            <div class="col-xs-12">
                <div class="table-responsive">
                    <table width="100%" class="table table-striped table-bordered table-hover" id="sample-table-1">
                        <thead>
                            <tr>
                                <th class="center">
                                    <label>
                                        <input type="checkbox" class="ace" />
                                        <span class="lbl"></span>
                                    </label>
                                </th>
                                <th>
                                    发布者
                                </th>
                                <th>
                                    项目名称
                                </th>
                                <th class="hidden-480">
                                    报酬价格
                                </th>
                                <th>
                                    投资备注
                                </th>
                                <th>
                                    投资途径
                                </th>
                                <th class="hidden-480">
                                    投资人
                                </th>
                                <th class="hidden-480">
                                    投资人联系方式
                                </th>
                                <th class="hidden-480">
                                    投资人联系电话
                                </th>
                                <th class="hidden-480">
                                    投资时间
                                </th>
                                <th>
                                    操作
                                </th>
                            </tr>
                        </thead>
                        <tbody>
                            <asp:Repeater ID="userList" runat="server">
                                <ItemTemplate>
                                    <tr>
                                        <td class="center">
                                            <label>
                                                <input type="checkbox" name="checkbox1" class="ace" value="<%#Eval("trade_no") %>" />
                                                <span class="lbl"></span>
                                            </label>
                                        </td>
                                        <td>
                                            <%#Eval("loginname")%>
                                        </td>
                                        <td>
                                            <%#Eval("lengName") %>
                                        </td>
                                        <td class="hidden-480">
                                            <%#Eval("money") %> <%#payStaus() %>
                                        </td>
                                        <td>
                                            <%#Eval("beizhu") %>                                            
                                        </td>
                                        <td>
                                            <%#Eval("paytype") %>
                                        </td>
                                        <td>
                                            <%#Eval("name") %>
                                        </td>
                                        <td>
                                            <%#Eval("email") %>
                                        </td>
                                        <td>
                                            <%#Eval("phone") %>
                                        </td>
                                        <td class="hidden-480">
                                            <%#Eval("addtime") %>
                                        </td>
                                        <td>
                                            <div class="visible-md visible-lg hidden-sm hidden-xs btn-group">
                                                <a href="moneyListEdit.aspx?Action=Edit&Id=<%#Eval("id") %>" class="tooltip-success" data-rel="tooltip" title="修改">
                                                    <li class="btn btn-xs btn-success"><span style="color: #fff"><i class="icon-edit bigger-120"></i></span></li>
                                                </a><a href="?Action=Delete&Id=<%#Eval("id") %>" class="tooltip-error" data-rel="tooltip" title="删除" onclick="return confirm('确定要删除此项吗？此操作不可逆。')">
                                                    <li class="btn btn-xs btn-danger"><span style="color: #fff"><i class="icon-trash bigger-120"></i></li>
                                                </a>
                                            </div>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                        </tbody>
                    </table>
                    <div class="row">
                        <div class="col-sm-6">
                            <div class="dataTables_info" id="sample-table-2_info">
                                <button class="btn btn-danger" name="delbutton" value="del">
                                    删除选中</button>
                                <button class="btn btn-success" name="refundbutton" value="refund">
                                    批量退款</button>

                            </div>
                        </div>
                        <div class="col-sm-6">
                        </div>
                        <div class="col-sm-6">
                            <div class="dataTables_paginate paging_bootstrap">
                                <ul class="pagination">
                                    <li class="active">
                                        <%=paging %></li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="otherjquery" runat="server">
    <script src="assets/js/jquery.dataTables.min.js"></script>
    <script src="assets/js/jquery.dataTables.bootstrap.js"></script>
    <script type="text/javascript">
        jQuery(function ($) {
            $('table th input:checkbox').on('click', function () {
                var that = this;
                $(this).closest('table').find('tr > td:first-child input:checkbox')
					.each(function () {
					    this.checked = that.checked;
					    $(this).closest('tr').toggleClass('selected');
					});
            });

            $("#search_input1").on('blur', function () {
                var txt = $("#search_input1").val();
                if (txt != "") {
                    location.href = '?search=' + txt;
                }
            });

            $('[data-rel="tooltip"]').tooltip({ placement: tooltip_placement });
            function tooltip_placement(context, source) {
                var $source = $(source);
                var $parent = $source.closest('table')
                var off1 = $parent.offset();
                var w1 = $parent.width();

                var off2 = $source.offset();
                var w2 = $source.width();

                if (parseInt(off2.left) < parseInt(off1.left) + parseInt(w1 / 2)) return 'right';
                return 'left';
            }
        })
    </script>
</asp:Content>
