<%@ Page Title="" Language="C#" MasterPageFile="../BaseMaster.Master" CodeBehind="ExposeList.aspx.cs" Inherits="WAP2P.Web.PC.Admin.Member.ExposeList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="header" runat="server"></asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">
    <dl class="ui-tabs">
        <dt><a href="javascript:" class="on">举报信息列表</a></dt>
        <dd>
            <form action="?action=search" method="get" class="m-search">
                <table class="m-criteria" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <th>信息筛选:</th>
                        <td>
                            <ruson:EnumSelect runat="server" ID="status" TypeName="WAP2P.Member.Expose+HandleStatus,WAP2P.Member" TipsText="审核状态筛选"></ruson:EnumSelect>
                            <ruson:Select runat="server" ID="type" FillRequestValue="true">
                                <option value="举报人姓名">举报人名称</option>
                                <option value="被举报人名称">被举报人名称</option>
                            </ruson:Select>
                            <input type="text" name="key" placeholder="输入搜索条件" value="<% =Request.QueryString["key"].UrlEncode() %>" class="w250" />
                            <span class="ml20 js-inlinesubmit">
                                <input type="submit" class="btn-base c-priority iconfont" value="&#xe60f; 搜索" /><input type="reset" class="btn-base c-normal iconfont" value="&#xe670; 清空条件" /></span>
                        </td>
                    </tr>
                </table>
            </form>
            <div class="m-content">
                <div class="m-oper">
                    <ruson:PermissionSpace runat="server" Module="会员管理" Function="举报信息管理" Operate="删除">
                        <input type="button" class="oper-clear btn-smaller c-normal selall iconfont" value="&#xe612; 全选" />
                        <input type="button" class="oper-clear btn-smaller c-normal selreverse iconfont" value="&#xe644; 反选" />
                        <input type="button" class="oper-clear btn-smaller c-important delsel iconfont" data-function="举报信息管理" data-operate="批量删除" data-freemes="<% =FreeLimit.ActionLimitMes %>" value="&#xe611; 删除选中" />
                    </ruson:PermissionSpace>
                </div>
                <table class="m-list" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <th width="3%">选取</th>
                        <th width="10%">举报人名称</th>
                        <th width="15%">被举报人名称</th>
                        <th width="51%" class="g-fleft">举报详情</th>
                        <th width="6%">状态</th>
                        <th width="15%">操作</th>
                    </tr>
                </table>
            </div>
        </dd>
    </dl>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="script" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="list" runat="server">
    <ruson:Repater runat="server" ID="rptList" ItemType="WAP2P.Member.Expose">
        <ItemTemplate>
            <tr id="tr<%# Item.Id %>">
                <td><input type="checkbox" class="del" data-id="<%# Item.Id %>" /></td>
                <td class="g-fbold"><%# GetUserDisplay(WAP2P.Member.User.LoadByName(Item.Name).Id , Item.Name) %></td>
                <td class="g-fbold"><%# GetUserDisplay(Item.UserId, Item.UserName) %></td>
                <td class="g-fleft"><%# Item.Detail.LeftX(40).BrEncode() %></td>
                <td><%# GetStatus(Item.Status ) %></td>
                <td>
                    <ruson:PermissionSpace runat="server" Module="会员管理" Function="举报信息管理" Operate="处理">
                        <%# Item.Status == WAP2P.Member.Expose.HandleStatus.Wait ?  string.Format(@"<a class=""iconfont oper edit"" href=""javascript:void(0);"" onclick=""$.jPopupEdit('举报信息处理', 'ExposeDetail.aspx?ID={0}');"">&#xe642; 处理</a>",Item.Id) : ""%>
                    </ruson:PermissionSpace>
                    <ruson:PermissionSpace runat="server" Module="会员管理" Function="举报信息管理" Operate="查看资料">
                        <%# string.Format(@"<a class=""iconfont oper"" href=""javascript:void(0);"" onclick=""$.jPopupEdit('举报信息资料查看', 'ExposeDetail.aspx?ID={0}&op=view');"">&#xe655; 查看资料</a>", Item.Id)%>
                    </ruson:PermissionSpace>
                    <ruson:PermissionSpace runat="server" Module="会员管理" Function="举报信息管理" Operate="删除">
                        <a class="iconfont del" href="ExposeDetail.aspx?ID=<%# Item.Id %>&action=del">&#xe611; 删除</a>
                    </ruson:PermissionSpace>
                </td>
            </tr>
        </ItemTemplate>
        <EmptyTemplate>
            <tr>
                <td colspan="6" class="g-fleft">暂无数据。</td>
            </tr>
        </EmptyTemplate>
    </ruson:Repater>
    <tr class="pager">
        <td colspan="6">
            <ruson:Pager runat="server" ID="pages" CssClass="pages" />
            <a href="<% =Request.RawUrl %>" class="g-hide"></a>
        </td>
    </tr>
</asp:Content>
