<%@ Page Title="" Language="C#" MasterPageFile="../BaseMaster.Master" CodeBehind="HelpArticleDetail.aspx.cs" Inherits="WAP2P.Web.PC.Admin.Info.HelpArticleDetail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="header" runat="server"></asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">
    <form action="" class="auto" method="post"  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">
            <table class="m-info" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <th>所属栏目</th>
                    <td>
                        <select id="categoryId" name="categoryId" class="iconfont" data-vtype="must" data-vmsg="请选择所属栏目">
                            <option value="">请选择所属栏目</option>
                            <ruson:Repater runat="server" ID="categoryList" ItemType="WAP2P.Article.HelpCategory">
                                <ItemTemplate>
                                    <option value="<%# Item.Id %>" <%# Model.CategoryId == Item.Id ? "selected" : string.Empty %>><%# Item.SelectLevelOption()%></option>
                                </ItemTemplate>
                            </ruson:Repater>
                        </select>
                    </td>
                </tr>
                <tr>
                    <th>帮助名称</th>
                    <td>
                        <input type="text" name="title" id="title" class="w250" maxlength="100" data-vtype="must" data-vmsg="请输入帮助名称" value="<%= Model.Title.HtmlEncode() %>" />    
                    </td>
                </tr>
                <tr>
                    <th>排序值</th>
                    <td>
                        <input type="text" name="orderBy" class="w60 ui-int" value="<%=Model.OrderBy %>" data-vtype="number" data-vmsg="排序必须为数字" />
                        <em>数值越大越靠前</em>
                    </td>
                </tr>
                <tr>
                    <th>独立帮助页</th>
                    <td>
                        <% =HtmlHelper.CheckBox("selfPage", "是", Model.SelfPage) %>                        
                        <em>勾选此项时，将显示为独立帮助页，可在其他帮助中使用此帮助生成的链接。</em>
                    </td>
                </tr>
                <tr>
                    <th>是否启用</th>
                    <td><div class="ui-checkbox"><% =HtmlHelper.CheckBox("active", "启用", IsNew ? true : Model.Active) %></div></td>
                </tr>
                <tr>
                    <th>帮助内容</th>
                    <td><script id="detail" name="detail" class="ui-editor" style="width:200px;" type="text/plain"><%= Model.Detail %></script></td>
                </tr>
            </table>
        </div>
    </form>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="script" runat="server">
    <script src="<% =this.ImportJsCss("../res/ueditor/ueditor.config.js") %>"></script>
    <script src="<% =this.ImportJsCss("../res/ueditor/ueditor.all.min.js") %>"></script>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="list" runat="server">
</asp:Content>
