<%@ Page Title="" Language="C#" ValidateRequest="false" MasterPageFile="~/BackCenter/Home/Edit.master" AutoEventWireup="true" CodeFile="ClassEdit.aspx.cs" Inherits="BackCenter_Class_ClassEdit" %>


<asp:Content ID="head" ContentPlaceHolderID="HeadContextPlaceHolder" runat="server">

<!--ckeditor编辑器--> 
<script type="text/javascript" src="/ckeditor/ckeditor_Full/ckeditor.js"></script>
<script type="text/javascript" src="/ckfinder/ckfinder.js"></script>

<script type="text/javascript">
    $("#ddl_ClassType").change(function() {
    alert(this.value); 
 
    });
    </script>
</asp:Content>

<asp:Content ID="main" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
    <div class="r_top_line">
        <cite style="float: right">
            <img src="/App_Themes/BackCenter/images/right_tr.gif" /></cite></div>
    <div class="r_tit">
        <p class="home">
            位置：后台中心 >> 栏目管理
        </p>
    </div>
    <div class="bd">
        <div class="tit_xs">
            <h2>
                栏目<%=Request["ID"] != null ? "修改" : "新增"%>
            </h2>
        </div>
        <table width="94%" border="0" cellpadding="0" cellspacing="0" class="tab_style fl">

            <tr>
                <td class="n1">
                    栏目名称：
                </td>
                <td class="n2">
                    <asp:TextBox ID="txt_ClassName" runat="server"  CssClass="required"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="n1">
                    栏目类型：
                </td>
                <td class="n2">
                    <asp:DropDownList ID="ddl_ClassType" name="ddl_ClassType" runat="server" CssClass="required">
                            <asp:ListItem Value="">请选择</asp:ListItem>
                            <asp:ListItem Value="固定数据栏目">固定数据栏目</asp:ListItem>
                            <asp:ListItem Value="数据栏目">数据栏目</asp:ListItem>
                            <asp:ListItem Value="单页栏目">单页栏目</asp:ListItem>
                            <asp:ListItem Value="固定功能栏目">固定功能栏目</asp:ListItem>
                            <asp:ListItem Value="功能栏目">功能栏目</asp:ListItem>
                    </asp:DropDownList>
                    <span style="color:Red">数据栏目可以维护数据；固顶栏目不能维护数据；功能栏目必须填写栏目链接</span>
                </td>
            </tr>
            <tr>
                <td class="n1">
                    上级栏目：
                </td>
                <td class="n2">
                    <asp:DropDownList ID="ddl_CreateClassId" runat="server" >
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="n1">
                    栏目图片：
                </td>
                <td class="n2">
                    <asp:Image ID="img_ClassPicture" Visible="false" runat="server" Width="50px" Height="50px" />
                    <asp:FileUpload ID="fu_ClassPicture" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="n1">
                    栏目链接：
                </td>
                <td class="n2">
                    <asp:TextBox ID="txt_ClassPath" runat="server"></asp:TextBox>
                    <span style="color:Red">*功能栏目必须填写栏目链接(不填说明功能栏目有下级栏目)</span>
                </td>
            </tr>
            <tr>
                <td class="n1">
                    栏目介绍：
                </td>
                <td class="n2">
                    <asp:TextBox ID ="ClassDescrption" runat =server  TextMode="MultiLine" Rows="4" Columns="60"></asp:TextBox>
                </td>
                </tr>
            <tr>
                <td class="n1">
                    栏目介绍：
                </td>
                <td class="n2">
                    <%--<asp:TextBox ID="txt_ClassIntro" runat="server" TextMode="MultiLine" Rows="4" Columns="60" ></asp:TextBox>--%>
                    <%--<asp:TextBox ID="txt_ClassIntro" TextMode="MultiLine" runat="server" CssClass = "ckeditor"></asp:TextBox>--%>
                    <asp:TextBox name="FileContent"  style="display:none" id="FileContent"  runat="server" ></asp:TextBox>
                    <IFRAME ID="eWebEditor" src="/ewebeditor/ewebeditor.htm?id=<%=FileContent.ClientID %>&style=blue" frameborder="0" scrolling="no" width="650" height="350"></IFRAME>
                    <input type="hidden" name="content" value="" id="content" />
                </td>
            </tr>
            <tr>
                <td class="n1">
                    栏目权重：
                </td>
                <td class="n2">
                    <asp:TextBox ID="txt_OrderNum" runat="server" MaxLength="50" CssClass="required number"></asp:TextBox>
                </td>
            </tr>
        </table>
        <div class="menu">
            <asp:Button ID="btnSave" CssClass="menu_b" runat="server" Text="保存" OnClick="btnSave_Click">
            </asp:Button>
            <input id="inputBack" type="button" class="menu_o" value="返回" onclick="window.location.href='ClassIndex.aspx?PageIndex=true&Conditions=true'" />
        </div>
    </div>
    <div class="clear">
    </div>
</asp:Content>

