<%@ Page Title="" Language="C#" MasterPageFile="../BaseMaster.Master" CodeBehind="GuestBookList.aspx.cs" Inherits="WAP2P.Web.PC.Admin.Info.GuestBookList" %>
<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>
                        <input type="hidden" name="from" value="<% =Request.QueryString["from"].HtmlEncode() %>" />
                        <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="20%">留言类型</th>
                    <th width="54%" class="g-fleft">留言内容</th>
                    <%--<th width="3%">状态</th>--%>
                    <th width="20%">操作</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.Sys.GuestBook">
        <ItemTemplate>
            <tr id="tr<%# Item.Id %>">
                <td><input type="checkbox" class="del" data-id="<%# Item.Id %>" /></td>
                <td><%# Item.Type.LeftX(30) %></td>
                <td class="g-fleft"><%# Item.Detail.LeftX(30) %></td>
                <%--<td><%# !string.IsNullOrEmpty(Item.Reply) ? "<i class=\"iconfont fcjade-1\">&#xe655;</i>" : "<i class=\"iconfont fcred-3\">&#xe639;</i>"%></td>--%>
                <td>
                    <%--<ruson:PermissionSpace runat="server" Module="资讯推广" Function="客户留言管理" Operate="处理">
                        <%# string.Format("<a class=\"iconfont oper edit\" href=\"javascript:;\" onclick=\"$.jPopupEdit('回复留言', 'GuestBookDetail.aspx?ID={0}');\">&#xe642; {1}</a>", Item.Id, string.IsNullOrEmpty(Item.Reply) ? "回复" : "修改回复") %>
                    </ruson:PermissionSpace>--%>
                    <a class="iconfont oper" href="javascript:void(0);" onclick="<%# string.Format("$.jPopupEdit('查看', 'GuestBookDetail.aspx?ID={0}');", Item.Id) %>">&#xe655; 查看</a>
                    <ruson:PermissionSpace runat="server" Module="资讯推广" Function="客户留言管理" Operate="删除"><a class="iconfont del" href="GuestBookDetail.aspx?ID=<%# Item.Id %>&action=del">&#xe611; 删除</a></ruson:PermissionSpace>
                </td>
            </tr>   
        </ItemTemplate>
        <EmptyTemplate>
            <tr>
                <td colspan="4" class="g-fleft">暂无数据。</td>
            </tr>
        </EmptyTemplate>
    </ruson:Repater>
    <tr class="pager">
        <td colspan="4"><ruson:Pager runat="server" ID="pages" CssClass="pages" /><a href="<% =Request.RawUrl %>" class="g-hide"></a></td>
    </tr>
</asp:Content>
