<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Article.aspx.cs" Inherits="Admin_Article_Article"
    EnableViewState="true" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register Src="../Controls/EditionItem.ascx" TagName="EditionItem" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../Stylesheet/Main.css" rel="stylesheet" type="text/css" />

    <script src="../Javascript/Common.js" type="text/javascript" language="JavaScript"></script>

</head>
<body>
    <form id="form1" runat="server">
        <ul class="tool">
            <li onmousemove="this.className='tool_li_ac'" onmouseout="this.className=''">
                <img src="../Images/icon_add.gif" width="14" height="14" align="absmiddle" />
                <a href="Article.aspx" title="增加资讯">增加资讯</a></li>
            <li onmousemove="this.className='tool_li_ac'" onmouseout="this.className=''" id="boxDel"
                runat="server" visible="false">
                <img src="../Images/icon_del.gif" width="12" height="12" align="absmiddle" />
                <asp:LinkButton ID="lbtnDel" runat="server" OnClick="lbtnDel_Click" OnClientClick="return confirm('确认要将当前资讯放入回收站吗？')"
                    ToolTip="将当前资讯放入回收站">放入回收站</asp:LinkButton></li>
            <li>
                <div class="tool_back">
                    <a href="javaScript:history.back(-1)">返回上一步</a></div>
            </li>
        </ul>
        <div class="main_body">
            <h1>
                <asp:Literal ID="litTitle" runat="server" Text="增加资讯"></asp:Literal></h1>
            <div class="item_body" id="item_body_list">
                <div class="ht2">
                </div>
                <div class="margin_left_2px">
                    <uc2:EditionItem ID="EditionItem1" runat="server" />
                </div>
                <ul class="item_body_list">
                    <li><span class="item_body_list_left">所属分类：</span> <span class="item_body_list_right">
                        <asp:DropDownList ID="dropClass" runat="server" DataTextField="TreeMode" DataValueField="ID">
                        </asp:DropDownList>
                        * </span></li>
                    <li><span class="item_body_list_left">资讯标题：</span> <span class="item_body_list_right">
                        <asp:TextBox ID="txtTitle" runat="server" Width="300px" MaxLength="255"></asp:TextBox>
                        * </span></li>
                    <li runat="server" id="boxTitleImage"><span class="item_body_list_left">标题图片：</span>
                        <span class="item_body_list_right">
                            <asp:FileUpload ID="fileTitleImage" runat="server" />
                            <asp:CheckBox ID="chkIsTitleImageMake" runat="server" Text="自动生成图片" CssClass="input_no" /><asp:Literal
                                ID="litTitleImageSize" runat="server"></asp:Literal>
                        </span>
                        <br />
                        <asp:Image ID="imgTitleImage" runat="server" Visible="false" />
                    </li>
                    <li><span class="item_body_list_left">排序：</span> <span class="item_body_list_right">
                        <asp:TextBox ID="txtSortOrder" runat="server" Width="60px" Text="0"></asp:TextBox>
                    </span></li>
                    <li><span class="item_body_list_left">摘要：</span> <span class="item_body_list_right">
                        <asp:TextBox ID="txtSummary" runat="server" Width="99%" Height="108px" TextMode="MultiLine"></asp:TextBox>
                        * </span></li>
                    <li><span class="item_body_list_left">资讯介绍：</span><span class="item_body_list_right"><FCKeditorV2:FCKeditor
                        ID="txtBody" runat="server" Height="600px" Width="99%">
                    </FCKeditorV2:FCKeditor>
                    </span></li>
                    <li runat="server" id="boxUserLevelIDList" visible="false"><span class="item_body_list_left">
                        * 查看权限：</span> <span class="item_body_list_right input_no">
                            <asp:CheckBoxList ID="cblUserLevelIDList" runat="server" DataTextField="LevelName"
                                DataValueField="ID" RepeatDirection="Horizontal" RepeatLayout="Flow">
                            </asp:CheckBoxList>
                            (不选则为全部) </span></li>
                    <li><span class="item_body_list_left">* 状态：</span> <span class="item_body_list_right">
                        <asp:DropDownList ID="dropState" runat="server">
                            <asp:ListItem Value="1">启用</asp:ListItem>
                            <asp:ListItem Value="0">不启用</asp:ListItem>
                        </asp:DropDownList>
                    </span></li>
                </ul>
                <div class="padding8px align_center font_bold ht_color">
                    <asp:LinkButton ID="lbtnOk" runat="server" CssClass="btn_bg" OnClick="lbtnOk_Click">保存当前资讯</asp:LinkButton></div>
            </div>
            <div class="ht">
            </div>
            <div class="ht">
            </div>
            <ul class="ac_intro" runat="server" id="boxPageExplain">
                <li class="ac_intro_title">说明：</li>
                <li class="ac_intro_item">1. 资讯的增加/编辑；</li>
            </ul>
        </div>
    </form>
</body>

<script language="javascript" type="text/javascript">
        LiColor("item_body_list");
</script>

</html>
