<%@ Page Title="公告编辑" Theme="AdminSkin" Language="C#" ValidateRequest="false" MasterPageFile="~/Others/AdminMasterPage.Master" AutoEventWireup="true" CodeBehind="AnnouncementEdit.aspx.cs" Inherits="Web.Admin.Contents.AnnouncementEdit" %>
<%@ Register Src="../Controls/ExtendedEditor.ascx" TagName="ExtendedEditor" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="AdminContentHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="AdminContentCenter" runat="server">
    <form id="form1" runat="server">
        <div class="formtextfield">
            <div class="title">
                <h4><span>公告编辑</span></h4>
            </div>
            <div class="content">
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="fieldname">标题:
                        </td>
                        <td class="fieldvalue">
                            <asp:TextBox ID="txtTitle" runat="server" Width="260" MaxLength="150" CssClass="text form-validate"></asp:TextBox>
                            <asp:CustomValidator ControlToValidate="txtTitle" ClientValidationFunction="Validator.NonEmpty" ErrorMessage="不能为空" ValidateEmptyText="true" CssClass="fielderror"  runat="server"></asp:CustomValidator>
                        </td>
                        <td class="fielddescription"></td>
                    </tr>
                    <tr>
                        <td class="fieldname">链接:
                        </td>
                        <td class="fieldvalue">
                           <asp:TextBox ID="txtLink" runat="server" Width="260" MaxLength="100" TextMode="SingleLine" CssClass="text"></asp:TextBox>
                        </td>
                        <td class="fielddescription">跳转连接,如果不为空将跳转到指定地址</td>
                    </tr>
                    <tr>
                        <td class="fieldname">起始时间:
                        </td>
                        <td class="fieldvalue">
                            <asp:TextBox ID="txtStartDate" runat="server" MaxLength="20" Width="260" TextMode="SingleLine" CssClass="text"></asp:TextBox>
                        </td>
                        <td class="fielddescription">可选</td>
                    </tr>
                    <tr>
                        <td class="fieldname">结束时间:
                        </td>
                        <td class="fieldvalue">
                            <asp:TextBox ID="txtEndDate" runat="server" MaxLength="20" Width="260" TextMode="SingleLine" CssClass="text"></asp:TextBox>
                        </td>
                        <td class="fielddescription">可选</td>
                    </tr>
                    <tr>
                        <td class="fieldname">顺序:
                        </td>
                        <td class="fieldvalue">
                            <asp:TextBox ID="txtSequence" runat="server" Width="260" TextMode="SingleLine" CssClass="text" Text="11"></asp:TextBox>
                            <asp:CustomValidator ControlToValidate="txtSequence" ClientValidationFunction="Validator.Digit" ErrorMessage="请填写数字" ValidateEmptyText="true" CssClass="fielderror"  runat="server"></asp:CustomValidator>
                        </td>
                        <td class="fielddescription"></td>
                    </tr>
                    <tr>
                        <td class="fieldname">内容:
                        </td>
                        <td class="fieldvalue">
                            <uc1:ExtendedEditor ID="txtContent" runat="server" EditorFileName="xheditor"
                                    EditorUploadUrl="../ajax/FileUpload.ashx?cmd=demo&name=imgFile&uploadtype=kindeditor" />
                        </td>
                        <td class="fielddescription"></td>
                    </tr>
                    <tr>
                        <td class="fieldname">推荐:
                        </td>
                        <td class="fieldvalue">
                            
                            <asp:DropDownList ID="ddlRecommend" runat="server">
                                <asp:ListItem Value="0">不推荐</asp:ListItem>
                                <asp:ListItem Value="1">推荐(置顶)</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td class="fielddescription"></td>
                    </tr>
                </table>
            </div>
            <table width="100%" border="0" cellpadding="2" cellspacing="1">
                <tr>
                    <td colspan="2" align="center">
                        <asp:Button ID="btnSave" runat="server" Text="保存" OnClientClick="extendeGetEditorContent();" OnClick="btnSave_Click" SkinID="ButtonSave"/>
                        &nbsp;&nbsp;
                        <asp:Button ID="btnCancel" runat="server" Text="取消" SkinID="ButtonCancel" CausesValidation="false" OnClick="Cancel_Click"/>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</asp:Content>
