<%@ Page Title="添加/修改文章" Language="C#" MasterPageFile="~/Admin/MasterPage.master"
    AutoEventWireup="true" ValidateRequest="false" CodeBehind="WapContent.aspx.cs"
    Inherits="PowerEasy.Module.Wap.WebSite.Admin.Wap.WapContent" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CphNavigation" runat="server">
    <pe:ExtendedSiteMapPath ID="SmpNavigator" SiteMapProvider="AdminMapProvider" runat="server" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CphContent" runat="server">
    <table border="0" cellpadding="2" cellspacing="1" class="border" width="100%">
        <tr align="center">
            <td class="spacingtitle" colspan="2">
                <strong>
                    <pe:AlternateLiteral ID="LblTitle" Text="添加WAP内容" AlternateText="修改WAP内容" runat="Server" /></strong>
            </td>
        </tr>
        <tr class="tdbg">
            <td align="right" width="20%">
                <b>WAP类别：</b>
            </td>
            <td>
                <asp:DropDownList ID="dropWapCategory" runat="server" Width="100px">
                </asp:DropDownList>
                <pe:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="dropWapCategory"
                    ErrorMessage="请选择类别！" Display="Dynamic" runat="server"></pe:RequiredFieldValidator>
                <pe:ExtendedLiteral ID="ltrAddCategory" runat="server" Visible="false" HtmlEncode="false"
                    Text="请先<a href='WapCategoryAdd.aspx?RootIn=1' style='color:red;'>添加</a>类别"></pe:ExtendedLiteral>
            </td>
        </tr>
        <tr class="tdbg">
            <td align="right">
                <b>标题：</b>
            </td>
            <td>
                <asp:TextBox ID="txtTitle" runat="server" MaxLength="100" Width="578px"></asp:TextBox>
                <pe:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="txtTitle"
                    ErrorMessage="请输入标题！" Display="Dynamic" runat="server"></pe:RequiredFieldValidator>
            </td>
        </tr>
        <tr class="tdbg">
            <td align="right">
                <b>作者：</b>
            </td>
            <td>
                <asp:TextBox ID="txtAuthor" runat="server" MaxLength="50" Width="100px"></asp:TextBox>
            </td>
        </tr>
        <tr class="tdbg">
            <td align="right">
                <b>文章内容：</b>
            </td>
            <td>
                <pe:CKeditor ID="txtContent" runat="server" ModuleName="Base" Toolbar="Wap" Width="580px" Height="220px"
                    ImageUpload="true">
                </pe:CKeditor>
                <pe:CKeditorValidator ID="CKeditorValidator1" runat="server" ControlToValidate="txtContent"
                    Display="Dynamic" ErrorMessage="内容不能为空！"></pe:CKeditorValidator>
                <br />
                <asp:Button ID="btnFomat" runat="server" Width="92px" Text="格式化内容" CausesValidation="false" OnClick="btnFomat_Click" />
                <font style="color: Green;">格式化内容，使之符合WAP格式标准。</font>
            </td>
        </tr>
        <tr class="tdbg">
            <td align="right">
                <b>状态：</b>
            </td>
            <td>
                <asp:RadioButtonList ID="RadlStatus" runat="server" RepeatLayout="Flow" RepeatDirection="Horizontal">
                    <asp:ListItem Text="草稿" Value="-1"></asp:ListItem>
                    <asp:ListItem Text="待审核" Value="0"></asp:ListItem>
                    <asp:ListItem Text="终审通过" Value="99" Selected="True"></asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr align="center" class="tdbgbottom">
            <td colspan="2">
                <asp:Button ID="BtnSave" runat="server" Text="保存" OnClick="BtnSave_Click" />
                &nbsp; &nbsp;<input id="Cancel" name="Cancel" onclick="javascript:window.location.href='WapContentManage.aspx'"
                    style="cursor: hand" type="button" class="inputbutton" value="取消" />
            </td>
        </tr>
    </table>
</asp:Content>
