<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="Admin_ChannelMg.aspx.cs" Inherits="QiCms.Web.Admin.Admin_ChannelMg" %>
<%@ Register assembly="FCKeditorV2.6.3" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="QBSCmsContentPlaceHolder" runat="server">
    <form id="TableForm" runat="server">
    <asp:Panel ID="AddPH" runat="server">
        <div class="tpl-content-wrapper">
                <ol class="am-breadcrumb">
                <li><a href="Index.aspx" class="am-icon-home">首页</a></li>
                <li><a href="Admin_Channel.aspx">分类管理</a></li>
                <li class="am-active">添加分类</li>
                </ol>
                <div class="tpl-portlet-components">
                    <div class="am-g tpl-amazeui-form">
                        <div class="am-form am-form-horizontal">
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label" style="color:darkred;">所属分类：</label>
                                <div class="am-u-sm-9">
                                    <asp:DropDownList ID="ClassDrop" runat="server" data-am-selected="{btnSize: 'sm'}"></asp:DropDownList>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label" style="color:darkred;">栏目名称：</label>
                                <div class="am-u-sm-9">
                                    <input name="oName" type="text" id="oName" placeholder="栏目名称" runat="server">
                                    <asp:RequiredFieldValidator ID="ClassNameValR" runat="server" ErrorMessage="*"></asp:RequiredFieldValidator>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label" style="color:darkred;">分类设置：</label>
                                <div class="am-u-sm-9">
                                    <div class="input-icon right">
                                        <div class="tpl-switch" style="width:16%;float:left;">
                                            <input type="checkbox" class="ios-switch tpl-switch-btn" ID="ArtAdd" name="TargetChk" runat="server"/>
                                            <div class="tpl-switch-btn-view">
                                                <div>
                                                </div>
                                            </div>
                                            <small>只有一条内容</small>
                                        </div>
                                        
                                        <div class="tpl-switch" style="width:10%;float:left;">
                                            <input type="checkbox" class="ios-switch tpl-switch-btn" ID="ImgClass" name="TargetChk" runat="server"/>
                                            <div class="tpl-switch-btn-view">
                                                <div>
                                                </div>
                                            </div>
                                            <small>图片内容类</small>
                                        </div>
                                        
                                        <div class="tpl-switch" style="width:20%;float:left;">
                                            <input type="checkbox" class="ios-switch tpl-switch-btn" ID="ShowPicChk" name="TargetChk" runat="server"/>
                                            <div class="tpl-switch-btn-view">
                                                <div>
                                                </div>
                                            </div>
                                            <small>在内容列表中显示分类图片</small>
                                        </div>
                                        
                                    </div>

                                </div>
                            </div>
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label" style="color:darkred;">分类图片：</label>
                                <div class="am-u-sm-9">
                                    <input name="ClassPicTxt" type="text" id="ClassPicTxt" placeholder="图片地址" MaxLength="255" style="width:50%;float:left;" runat="server">
                                    <div class="input-icon right">
                                        <button type="button" class="am-btn am-btn-primary tpl-btn-bg-color-success " style="float:left;margin-left:20px;" onclick="ShowDialog('UpFiles.aspx',576,280)">上传图片</button>
                                    </div>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label" style="color:darkred;">样式表：</label>
                                <div class="am-u-sm-9">
                                    <input name="ClassStyleTxt" type="text" id="ClassStyleTxt" style="width:50%;float:left;" placeholder="Template/Default4/Skin/Css/Style.css" disabled="disabled" runat="server">
                                    <div class="input-icon right">
                                        <div class="tpl-switch" style="width:5%;float:left;margin-left:5%;">
                                            <input type="checkbox" class="ios-switch tpl-switch-btn" ID="ParentStyleChk" name="ParentStyleChk" runat="server"/>
                                            <div class="tpl-switch-btn-view">
                                                <div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <small style="margin-left:5%;">继承父类的样式</small>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label" style="color:darkred;">分类简介：</label>
                                <div class="am-u-sm-9">
                                    <textarea  name="oSummary" id="oSummary" class="" rows="5" placeholder="分类简要说明,不过超过250个字符" runat="server"></textarea>
                                </div>
                            </div>

                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label" style="color:darkred;">允许继承父类广告：</label>
                                <div class="am-u-sm-9">
                                    <div class="input-icon right">
                                        <div class="tpl-switch" style="width:5%;float:left;">
                                            <input type="checkbox" class="ios-switch tpl-switch-btn" ID="ParentCodeChk" name="ParentCodeChk" runat="server"/>
                                            <div class="tpl-switch-btn-view">
                                                <div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <label for="user-name" class="am-u-sm-3 am-form-label" style="text-align:left;color:darkred;">是否继承</label>
                                </div>
                            </div>
                            <div id="t_detail">
                                <div class="am-form-group">
                                    <label for="user-name" class="am-u-sm-3 am-form-label" style="color:darkred;">顶部广告：</label>
                                    <div class="am-u-sm-9">
                                        <FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server" Height="200px"></FCKeditorV2:FCKeditor>
                                    </div>
                                </div>
                                <div class="am-form-group">
                                    <label for="user-name" class="am-u-sm-3 am-form-label" style="color:darkred;">底部广告：</label>
                                    <div class="am-u-sm-9">
                                        <FCKeditorV2:FCKeditor ID="FCKeditor2" runat="server" Height="200px"></FCKeditorV2:FCKeditor>
                                    </div>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <div class="am-u-sm-9 am-u-sm-push-3">
                                    <asp:Button ID="ClassAddBtn" CssClass="am-btn am-btn-primary tpl-btn-bg-color-success" runat="server" onclick="ClassAddBtn_Click" Text="添加"/>
                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
    </asp:Panel>
    <asp:Panel ID="EditPH" runat="server">
        <div class="tpl-content-wrapper">
                <ol class="am-breadcrumb">
                <li><a href="Index.aspx" class="am-icon-home">首页</a></li>
                <li><a href="Admin_Channel.aspx">分类管理</a></li>
                <li class="am-active">修改分类</li>
                </ol>
                <div class="tpl-portlet-components">
                    <div class="am-g tpl-amazeui-form">
                        <div class="am-form am-form-horizontal">
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label" style="color:darkred;">所属分类：</label>
                                <div class="am-u-sm-9">
                                 <asp:DropDownList ID="ClassDropEdit" runat="server" data-am-selected="{btnSize: 'sm'}"></asp:DropDownList>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label" style="color:darkred;">栏目名称：</label>
                                <div class="am-u-sm-9">
                                    <input name="oNameEdit" type="text" id="oNameEdit" placeholder="栏目名称" runat="server">
                                    <asp:RequiredFieldValidator ID="ClassNameValREdit" runat="server" ErrorMessage="*"></asp:RequiredFieldValidator>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label" style="color:darkred;">分类设置：</label>
                                <div class="am-u-sm-9">
                                    <div class="input-icon right">
                                        <div class="tpl-switch" style="width:16%;float:left;">
                                            <input type="checkbox" class="ios-switch tpl-switch-btn" ID="ArtEdit" name="TargetChk" runat="server"/>
                                            <div class="tpl-switch-btn-view">
                                                <div>
                                                </div>
                                            </div>
                                            <small>只有一条内容</small>
                                        </div>
                                        
                                        <div class="tpl-switch" style="width:10%;float:left;">
                                            <input type="checkbox" class="ios-switch tpl-switch-btn" ID="ImgClassEdit" name="TargetChk" runat="server"/>
                                            <div class="tpl-switch-btn-view">
                                                <div>
                                                </div>
                                            </div>
                                            <small>图片内容类</small>
                                        </div>
                                        
                                        <div class="tpl-switch" style="width:20%;float:left;">
                                            <input type="checkbox" class="ios-switch tpl-switch-btn" ID="ShowPicChkEdit" name="TargetChk" runat="server"/>
                                            <div class="tpl-switch-btn-view">
                                                <div>
                                                </div>
                                            </div>
                                            <small>在内容列表中显示分类图片</small>
                                        </div>
                                        
                                    </div>

                                </div>
                            </div>
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label" style="color:darkred;">分类图片：</label>
                                <div class="am-u-sm-9">
                                    <input name="ClassPicTxtEdit" type="text" id="ClassPicTxtEdit" placeholder="图片地址" MaxLength="255" style="width:50%;float:left;" runat="server">
                                    <div class="input-icon right">
                                        <button type="button" class="am-btn am-btn-primary tpl-btn-bg-color-success " style="float:left;margin-left:20px;" onclick="ShowDialog('UpFiles.aspx',576,280)">上传图片</button>
                                    </div>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label" style="color:darkred;">样式表：</label>
                                <div class="am-u-sm-9">
                                    <input name="ClassStyleTxtEdit" type="text" id="ClassStyleTxtEdit" style="width:50%;float:left;" placeholder="Template/Default4/Skin/Css/Style.css" runat="server">
                                    <div class="input-icon right">
                                        <div class="tpl-switch" style="width:5%;float:left;margin-left:5%;">
                                            <input type="checkbox" class="ios-switch tpl-switch-btn" ID="ChildStyleChk" name="ChildStyleChk" runat="server"/>
                                            <div class="tpl-switch-btn-view">
                                                <div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <small style="margin-left:5%;">应用到所有子分类</small>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label" style="color:darkred;">分类简介：</label>
                                <div class="am-u-sm-9">
                                    <textarea  name="oSummaryEdit" id="oSummaryEdit" class="" rows="5" placeholder="分类简要说明,不过超过250个字符" runat="server"></textarea>
                                </div>
                            </div>

                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label" style="color:darkred;">广告应用到所有子分类：</label>
                                <div class="am-u-sm-9">
                                    <div class="input-icon right">
                                        <div class="tpl-switch" style="width:5%;float:left;">
                                            <input type="checkbox" class="ios-switch tpl-switch-btn" ID="ChildCodeChk" name="ChildCodeChk" runat="server"/>
                                            <div class="tpl-switch-btn-view">
                                                <div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <label for="user-name" class="am-u-sm-3 am-form-label" style="text-align:left;color:darkred;">是否应用</label>
                                </div>
                            </div>
                            <div id="t_detailedit">
                                <div class="am-form-group">
                                    <label for="user-name" class="am-u-sm-3 am-form-label" style="color:darkred;">顶部广告：</label>
                                    <div class="am-u-sm-9">
                                        <FCKeditorV2:FCKeditor ID="FCKeditor3" runat="server" Height="200px"></FCKeditorV2:FCKeditor>
                                    </div>
                                </div>
                                <div class="am-form-group">
                                    <label for="user-name" class="am-u-sm-3 am-form-label" style="color:darkred;">底部广告：</label>
                                    <div class="am-u-sm-9">
                                        <FCKeditorV2:FCKeditor ID="FCKeditor4" runat="server" Height="200px"></FCKeditorV2:FCKeditor>
                                    </div>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <div class="am-u-sm-9 am-u-sm-push-3">
                                    <asp:Button ID="ClassEditBtn" CssClass="am-btn am-btn-primary tpl-btn-bg-color-success" runat="server" onclick="ClassEditBtn_Click" Text="修改"/>
                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
    </asp:Panel>
    </form>
</asp:Content>
