<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Admin/AdminMain.Master" Inherits="System.Web.Mvc.ViewPage<MvcEnterprise.Models.DataSet1+ArticleSortRow>" %>

<asp:Content ID="Content0" ContentPlaceHolderID="HeadContent" runat="server">
    <script src="../../Scripts/MicrosoftAjax.js" type="text/javascript"></script>
    <script src="../../Scripts/MicrosoftMvcAjax.js" type="text/javascript"></script>
    <script src="../../Scripts/MicrosoftMvcValidation.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../../Scripts/Admin.js" type="text/javascript"></script>
    <script src="<%=Url.Content("~/Content/fckeditor/fckeditor.js")%>" type="text/javascript"></script>
    <%Html.EnableClientValidation(); %>
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    编辑内容
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div>
        <%= Html.ActionLink("返回列表","ArticleSortList") %></div>
    <hr />
    <% using (Html.BeginForm()) {%>
    <div>
        <%--分类名称--%>
        <span class="editor-label"><%= Html.LabelFor(model => model.SortName) %>：</span>
        <span class="editor-field"><%= Html.TextBoxFor(model => model.SortName) %> <%= Html.DisplayToolTipFor(model => model.SortName) %> <%= Html.ValidationMessageFor(model => model.SortName) %></span>
        <%--发布--%>
        <span><%= Html.LabelFor(model => model.ViewFlag) %>：<%= Html.CheckBoxFor(model => model.ViewFlag) %> <%= Html.DisplayToolTipFor(model => model.ViewFlag) %></span>
    </div>
    <div style="display:none">
        <%--父编号--%>
        <span class="editor-label"><%= Html.LabelFor(model => model.ParentID) %>：</span>
        <span class="editor-field"><%= Html.TextBoxFor(model => model.ParentID, new { value = 0}) %> <%= Html.DisplayToolTipFor(model => model.ParentID) %> <%= Html.ValidationMessageFor(model => model.ParentID) %></span>
    </div>
    <div style="display:none">
        <%--类别路径--%>
        <span class="editor-label"><%= Html.LabelFor(model => model.SortPath) %>：</span>
        <span class="editor-field"><%= Html.TextBoxFor(model => model.SortPath)%> <%= Html.DisplayToolTipFor(model => model.SortPath) %> <%= Html.ValidationMessageFor(model => model.SortPath) %></span>
    </div>
    <div>
        <%--显示顺序--%>
        <span class="editor-label"><%= Html.LabelFor(model => model.Sequence) %>：</span>
        <span class="editor-field"><%= Html.TextBoxFor(model => model.Sequence, new { value = 0}) %> <%= Html.DisplayToolTipFor(model => model.Sequence) %> <%= Html.ValidationMessageFor(model => model.Sequence) %></span>
    </div>
    <div>
        <%--页面标题--%>
        <span class="editor-label"><%= Html.LabelFor(model => model.PageTitle) %>：</span>
        <span class="editor-field"><%= Html.TextBoxFor(model => model.PageTitle) %> <%= Html.DisplayToolTipFor(model => model.PageTitle) %> <%= Html.ValidationMessageFor(model => model.PageTitle) %></span>
    </div>
    <div>
        <%--页面关键字--%>
        <span class="editor-label"><%= Html.LabelFor(model => model.PageKeywords) %>：</span>
        <span class="editor-field"><%= Html.TextBoxFor(model => model.PageKeywords) %> <%= Html.DisplayToolTipFor(model => model.PageKeywords) %> <%= Html.ValidationMessageFor(model => model.PageKeywords) %></span>
    </div>
    <div>
        <%--页面描述--%>
        <span class="editor-label"><%= Html.LabelFor(model => model.PageDescription) %>：</span>
        <span class="editor-field"><%= Html.TextBoxFor(model => model.PageDescription) %> <%= Html.DisplayToolTipFor(model => model.PageDescription) %> <%= Html.ValidationMessageFor(model => model.PageDescription) %></span>
    </div>
    <div>
        <%----%>
        <%= Html.HiddenFor(model=>model.ID) %>
    </div>
    <p><input type="submit" value="保 存" /> </p>
    <% } %>
</asp:Content>