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

<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("返回列表", "VoteList", new { ClassID = Request.QueryString["ClassID"] })%></div>
    <hr />
    <% using (Html.BeginForm(new { ClassID = Request.QueryString["ClassID"] }))
	   {%>
    <div>
        <%--调查文本--%>
        <span class="editor-label"><%= Html.LabelFor(model => model.Title)%>：</span>
        <span class="editor-field"><%= Html.TextBoxFor(model => model.Title)%> <%= Html.DisplayToolTipFor(model => model.Title)%> <%= Html.ValidationMessageFor(model => model.Title)%></span>
    </div>
    <div>
        <%--投票数量--%>
        <span class="editor-label"><%= Html.LabelFor(model => model.Total)%>：</span>
        <span class="editor-field"><%= Html.TextBoxFor(model => model.Total, new { value = 0 })%> <%= Html.DisplayToolTipFor(model => model.Total)%> <%= Html.ValidationMessageFor(model => model.Total)%></span>
    </div>
    <div>
        <%----%>
        <%= Html.HiddenFor(model => model.ID)%>
    </div>
    <div style="display: none;">
        <%--调查类别--%>
        <span class="editor-label"><%= Html.LabelFor(model => model.Class)%>：</span>
        <span class="editor-field"><%= Html.TextBoxFor(model => model.Class, new { value = 0 })%> <%= Html.DisplayToolTipFor(model => model.Class)%> <%= Html.ValidationMessageFor(model => model.Class)%></span>
    </div>
    <p><input type="submit" value="保 存" /> </p>
    <% } %>
</asp:Content>