<%@ Page Title="单页文章编辑" ValidateRequest="false" StylesheetTheme="AdminSkin" Language="C#" MasterPageFile="~/Others/AdminMasterPage.Master" AutoEventWireup="true" CodeBehind="SingleArticleEdit.aspx.cs" Inherits="Solution.Admin.Contents.SingleArticleEdit" %>

<%@ 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" 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="txtAlias" runat="server" Width="260" CssClass="text form-validate"></asp:TextBox>
                                <asp:CustomValidator ControlToValidate="txtAlias" 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="txtTemplate" runat="server" Width="260"></asp:TextBox>
                            </td>
                            <td class="fielddescription"></td>
                        </tr>
                        <tr>
                            <td class="fieldname">SEO:
                            </td>
                            <td class="fieldvalue">
                                <table>
                                    <tr>
                                        <td class="tablelefttd">Keyword:
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtSEOKeyword" MaxLength="25" runat="server" Width="366px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tablelefttd">Description:
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtSEODescription" MaxLength="500" runat="server" Height="40px"
                                                TextMode="MultiLine" Width="366px"></asp:TextBox>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td class="fielddescription"></td>
                        </tr>
                        <tr>
                            <td class="fieldname">简介:
                            </td>
                            <td class="fieldvalue">
                                <asp:TextBox ID="txtIntroduce" runat="server" Width="520" Height="50" TextMode="MultiLine"></asp:TextBox>
                            </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="ddlStatus" runat="server">
                                    <asp:ListItem Selected="True" Value="1">显示</asp:ListItem>
                                    <asp:ListItem Value="0">隐藏</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>
