<%@ Page Title="" Language="C#" MasterPageFile="~/Management/SiteManage.Master" AutoEventWireup="true"
    CodeBehind="Article.aspx.cs" Inherits="Amr.SuperSiteGroup.Web.Management.Article" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="ckeditor/ckeditor.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="right" style="text-align: center; margin-top: 10px;">
        <table width="100%" border="0" cellspacing="1" cellpadding="1" class="edit">
            <tr>
                <td class="title_edit">
                    <h1 style="float: left">
                        文章设置<span class="red">(各文章属性后面括号内值为模板中的属性值)</span></h1>
                </td>
            </tr>
            <tr>
                <td class="edit_main">
                 <div><a href="ArticleList.aspx" target="_blank">【文章管理】</a></div>
                    <table width="100%" border="0" cellspacing="1" cellpadding="1" class="table_list">
                        <tr class="tr1">
                            <td colspan="2">
                                <asp:Label ID="laTitle" runat="server" Text="添加文章"></asp:Label><br />
                                <asp:Label ID="laErrorInfo" runat="server" ForeColor="Red"></asp:Label>
                                <asp:Label ID="laSuccessInfo" runat="server" ForeColor="Green"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <div align="right">
                                    文章分类：</div>
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="ddlCategory" runat="server">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <div align="right">
                                    文章排序值：</div>
                            </td>
                            <td align="left">
                                        <asp:TextBox ID="tbOrderValue" runat="server" CausesValidation="True"
                                            EnableViewState="False" Width="100" Wrap="False" 
                                            ValidationGroup="checkAdd" >10</asp:TextBox>
                                        排序值越小文章越靠前，用于置顶一类操作</td>
                        </tr>
                        <tr>
                            <td>
                                <div align="right">
                                    文章标题(Title)<font color="red">*</font>：</div>
                            </td>
                            <td align="left">
                                        <asp:TextBox ID="tbTitle" runat="server" CausesValidation="True"
                                            EnableViewState="False" Width="100%" Wrap="False" 
                                            ValidationGroup="checkAdd" />
                                        <validation targetid="<%=tbTitle.ClientID%>" targetname="文章标题" type="text" />
                            </td>
                        </tr>
                         <tr>
                            <td>
                                <div align="right">
                                    短标题(ShortTitle)：</div>
                            </td>
                            <td align="left">
                                        <asp:TextBox ID="tbShortTitle" runat="server" CausesValidation="True"
                                            EnableViewState="False" Width="100%" Wrap="False" 
                                            ValidationGroup="checkAdd" />
                            </td>
                        </tr>
                                                 <tr>
                            <td>
                                <div align="right">
                                    标签(Tag)：</div>
                            </td>
                            <td align="left">
                                        <asp:TextBox ID="tbTag" runat="server" CausesValidation="True"
                                            EnableViewState="False" Width="100%" Wrap="False" 
                                            ValidationGroup="checkAdd" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <div align="right">
                                    文章来源(Source)：</div></td>
                            <td align="left">
                                        <asp:TextBox ID="tbSource" runat="server" CausesValidation="True"
                                            EnableViewState="False" Width="100%" Wrap="False" 
                                            ValidationGroup="checkAdd" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                 <div align="right">
                                    来源网址(SourceUrl)：</div></td>
                            <td align="left">
                                        <asp:TextBox ID="tbSourceUrl" runat="server" CausesValidation="True"
                                            EnableViewState="False" Width="100%" Wrap="False" 
                                            ValidationGroup="checkAdd" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                 <div align="right">
                                    作者(Author)：</div></td>
                            <td align="left">
                                        <asp:TextBox ID="tbAuthor" runat="server" CausesValidation="True"
                                            EnableViewState="False" Width="100%" Wrap="False" 
                                            ValidationGroup="checkAdd" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                 <div align="right">
                                    缩略图(Thumbnails)：</div></td>
                            <td align="left">
                                        <asp:FileUpload ID="fileThumbnail" runat="server" />
                                        <asp:Image ID="imgThumbnail" runat="server" Height="80px" Visible="False" 
                                            Width="80px" />
                            </td>
                        </tr>
                                                <tr>
                            <td>
                                 <div align="right">
                                    文章描述(Description)：</div></td>
                            <td align="left">
                                        <asp:TextBox ID="tbDescription" runat="server" CausesValidation="True"
                                            EnableViewState="False" Width="100%" Wrap="False" 
                                            ValidationGroup="checkAdd" />
                            </td>
                        </tr>
                        <tr>
                                    <td>
                                        <div align="right">
                                            选项：</div>
                                    </td>
                                    <td align="left">
                                        <asp:CheckBox ID="cbIsEnable" CssClass="checkbox" runat="server" 
                                            Text="是否激活" Checked="True" />
                                        &nbsp;<asp:CheckBox ID="cbIsShareAllSite" CssClass="checkbox" runat="server" 
                                            Text="是否全站共享（如不勾选则只能本站使用）" Checked="True" />
                                        </td>
                                </tr>
                        <tr>
                            <td>
                                <div align="right">
                                    内容(ContentValue)<font color="red">*</font>：</div>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="tbContent" runat="server" Wrap="False" Height="200px" TextMode="MultiLine"
                                    Width="90%" class="ckeditor" />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <asp:LinkButton ID="lbSubmit" runat="server" Text="【提交】" OnClick="lbSubmit_Click"
                                    OnClientClick="return validateForm()" />
                                &nbsp;<asp:LinkButton ID="lbCancel" runat="server" Text="【取消】" OnClick="lbCancel_Click" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    <div class="clear">
    </div>
</asp:Content>
