<%@ Page Title="类别信息编辑" StylesheetTheme="AdminSkin" Language="C#" MasterPageFile="~/Others/AdminMasterPage.Master" AutoEventWireup="true" CodeBehind="CategoryEdit.aspx.cs" Inherits="Solution.Admin.Contents.CategoryEdit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="AdminContentHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="AdminContentCenter" runat="server">
    <form id="form11" runat="server" method="post" enctype="multipart/form-data">
        <div class="formtextfield">
            <div class="title">
                <h4><span>类别信息编辑</span></h4>
            </div>
            <div class="content">
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="fieldname">类别名称:
                        </td>
                        <td class="fieldvalue">
                            <asp:TextBox ID="txtCategoryName" MaxLength="25" runat="server" Width="246px" CssClass="text form-validate"></asp:TextBox>
                            <asp:CustomValidator ControlToValidate="txtCategoryName" ClientValidationFunction="Validator.NonEmpty" ErrorMessage="不能为空" ValidateEmptyText="true" CssClass="fielderror"  runat="server"></asp:CustomValidator>
                        </td>
                        <td class="fielddescription">使用字母或数字</td>
                    </tr>
                    <tr>
                        <td class="fieldname">别名:
                        </td>
                        <td class="fieldvalue">
                            <asp:TextBox ID="CategoryAliasName" runat="server" Width="246px" CssClass="text form-validate"></asp:TextBox> </td>
                        <td class="fielddescription">效果为http://xxx.com/rewritename/形式,使用已存在的目录名称无效</td>
                    </tr>
                    <tr>
                        <td class="fieldname">是否禁用:
                        </td>
                        <td class="fieldvalue">
                            <asp:CheckBox ID="ckbStatus" runat="server" Text="禁用" />
                        </td>
                        <td class="fielddescription"></td>
                    </tr>
                    <tr>
                        <td class="fieldname">是否推荐:
                        </td>
                        <td class="fieldvalue">
                            <asp:CheckBox ID="ckbIsRecommend" runat="server" Text="推荐" />
                        </td>
                        <td class="fielddescription"></td>
                    </tr>
                    <tr>
                        <td class="fieldname">所属类别:
                        </td>
                        <td class="fieldvalue">
                            <asp:DropDownList ID="ddlIndustryList" runat="server">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="fieldname">表单模板:</td>
                        <td class="fieldvalue">
                            <asp:DropDownList ID="ddlFormTemplate" DataTextField="TemplateName" DataValueField="TemplateID" runat="server">
                            </asp:DropDownList>
                        </td>
                        <td class="fielddescription"></td>
                    </tr>
                    <tr>
                        <td class="fieldname">排序值:
                        </td>
                        <td class="fieldvalue">
                            <asp:TextBox ID="txtOrder" runat="server" Text="0" Width="246px"></asp:TextBox>
                        </td>
                        <td class="fielddescription"></td>
                    </tr>
                    <tr>
                        <td class="fieldname">SEO:
                        </td>
                        <td class="fieldvalue">
                            <table>
                                <tr>
                                    <td>Title:
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtSEOTitle" MaxLength="25" runat="server" Width="366px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td>Keyword:
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtSEOKeyword" MaxLength="25" runat="server" Width="366px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td>Description:
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtSEODescription" MaxLength="500" runat="server" Height="40px"
                                            TextMode="MultiLine" Width="366px"></asp:TextBox>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td class="fielddescription"></td>
                    </tr>
<%--                    <tr>
                        <td class="fieldname">模板:
                        </td>
                        <td class="fieldvalue">
                            <table>
                                <tr>
                                    <td>首页模板:
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtHomeTemplate" MaxLength="25" runat="server" Width="366px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td>列表页模板:
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtListTemplate" MaxLength="25" runat="server" Width="366px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td>内容页模板:
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtContentTemplate" MaxLength="25" runat="server" Width="366px"></asp:TextBox>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td class="fielddescription"></td>
                    </tr>--%>
                </table>
            </div>
            <div>
                <table width="100%" border="0" cellpadding="2" cellspacing="1">
                <tr>
                    <td colspan="2" align="center">
                        <asp:Button ID="btnSaveInfo"  SkinID="ButtonSave" runat="server" Text="保存"
                             OnClick="btnSaveInfo_Click"/>&nbsp;&nbsp;
                    <asp:Button ID="btnApplyInfo" runat="server" Text="应用"
                         OnClick="btnApplyInfo_Click" />&nbsp;&nbsp;
                    <asp:Button ID="btnCancel" runat="server" Text="取消" SkinID="ButtonCancel" CausesValidation="false" OnClick="Cancel_Click"/>
                    </td>
                </tr>
            </table>
                <br />
            </div>
        </div>
         <br />
    </form>
</asp:Content>
