<%@ Page Title="" Language="C#" MasterPageFile="../BaseMaster.Master" CodeBehind="NoticeDetail.aspx.cs" Inherits="WAP2P.Web.PC.Admin.Sys.NoticeDetail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="header" runat="server"></asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">
    <form action="" method="post" class="auto" onsuccess="parent.$.jPopupEdit.close(true);">
        <div class="m-editbar">
            <input type="submit" class="btn-larger c-priority iconfont" value="&#xe684; 保存" />
            <input type="button" class="btn-larger c-normal iconfont" value="&#xe634; 关闭" onclick="parent.$.jPopupEdit.close();" />
        </div>
        <div class="m-content m-editcontent">
            <div class="m-content">
                <table class="m-info" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <th>公告标题 </th>
                        <td><input type="text" placeholder="请输入公告标题" name="title" class="w250" data-vtype="must" maxlength="100" value="<% =Model.Title.HtmlEncode() %>" data-vmsg="请输入公告标题" /></td>
                    </tr>
                    <tr>
                        <th>排序值</th>
                        <td>
                            <input type="text" name="orderBy" class="w60 ui-int" value="<%=Model.OrderBy %>" data-vtype="must|number" data-vmsg="请输入排序|排序必须为数字" /><em>数值越大越靠前</em>
                        </td>
                    </tr>
                    <tr>
                        <th>公告内容</th>
                        <td><textarea name="detail" data-vtype="must" data-vmsg="请输入公告内容"><% =Model.Detail.HtmlEncode() %></textarea></td>
                    </tr>
                    <tr>
                        <th>查看操作组<br/>(不选为所有操作组)</th>
                        <td>
                            <asp:Repeater ID="rptNoticeList" runat="server" ItemType="WAP2P.Sys.AdminGroup">
                                <HeaderTemplate><ul class="info-limit"></HeaderTemplate>
                                <ItemTemplate>
                                    <li class="w190"><div class="ui-checkbox"><label><input type="checkbox" name="targetGroupIds" value="<%# Item.Id %>" <%# IsNew || string.IsNullOrEmpty(Model.TargetGroupIds) || !Model.TargetGroupIds.Contains("|" + Item.Id + "|") ? string.Empty : "checked=\"checked\"" %> /><%# Item.Name %> </label></div></li>
                                </ItemTemplate>
                                <FooterTemplate></ul></FooterTemplate>
                            </asp:Repeater>
                        </td>
                    </tr>
                    <tr>
                        <th>开始时间</th>
                        <td><input type="text" name="startAt" id="startAt" value="<% =(IsNew ? DateTime.Now : Model.StartAt).ToDateTimeString() %>" class="ui-date w150 ui-datetime" data-maxdate="#endAt" /></td>
                    </tr>
                    <tr>
                        <th>结束时间</th>
                        <td><input type="text" name="endAt" id="endAt" value="<% =IsNew ? null : Model.EndAt %>" class="ui-date w150 ui-datetime" data-mindate="#startAt" /><em>不填写则长期有效</em></td>
                    </tr>
                    <tr>
                        <th>添加时间</th>
                        <td><% = Model.CreateAt.ToDateTimeString() %></td>
                    </tr>
                </table>
            </div>
        </div>
    </form>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="script" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="list" runat="server">
</asp:Content>
