<%
    //-----------------------------------------------------------
    // 文件名称: Article_ArticleCategory_Operate.aspx
    // 页面名称: 文章分类添加/编辑
    //
    // 描    述:
    //
    // 创建标识: Add By 吴建春 2008-06-02
    //-----------------------------------------------------------
%>

<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.Article_ArticleCategory_Operate, V5Shop.Shop.Article" culture="auto" uiculture="auto" meta:resourcekey="PageResource1" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="V5Shop.Control" Namespace="V5Shop.Control" TagPrefix="cc1" %>
<%@ Register Src="control/PageBottom.ascx" TagName="PageBottom" TagPrefix="uc2" %>
<%@ Register Src="control/HiddenField.ascx" TagName="HiddenField" TagPrefix="uc1" %>
<!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="css/css.css" rel="stylesheet" type="text/css" />
    <link href="css/control.css" rel="stylesheet" type="text/css" />
    <link href="js/calendar-system.css" rel="stylesheet" type="text/css" />
    <link href="css/css_list.css" rel="stylesheet" type="text/css" />

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

</head>
<body>
    <form id="form1" runat="server">
        <div class="OperateTitle">
            <div>
                <asp:Label ID="lblAdd" runat="server" Text="【文章分类添加】" />
                <asp:Label ID="lblEdit" runat="server" Text="【文章分类编辑】" />
                <asp:HyperLink ID="lkReturn" runat="server" Text="返回列表" />
            </div>
        </div>
        <div>
            <asp:Panel runat="server" ID="PanelShow" Width="100%">
                <div style="text-align: center;">
                    <table id="OperateTable" style="width: 100%; border: 0px; text-align: center;" cellpadding="0" cellspacing="0" runat="server">
                        <tr>
                            <td width="20%" height="30" align="right" valign="middle"><asp:Label ID="Label1" runat="server" Text="分类名称：" /></td>
                            <td width="90%" align="left" valign="middle" style="color: red">
                                <asp:TextBox ID="txtName" runat="server" Width="300px" MaxLength="50" />
                                *
                                <asp:RequiredFieldValidator ID="cvNameAdd" runat="server" ControlToValidate="txtName" Display="Dynamic" ErrorMessage="必须输入" />
                            </td>
                        </tr>
                        <tr>
                            <td height="30" align="right" valign="middle">
                                <asp:Label ID="Label2" runat="server" Text="分类英文名：" /></td>
                            <td align="left" style="color: red" valign="middle">
                                <asp:TextBox ID="txtEnglishName" runat="server" Width="300px" MaxLength="50" />
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEnglishName" ErrorMessage="长度必须在50以内的英文单词" ValidationExpression="[\w|\s|-]{0,50}" Display="Dynamic" />
                                </td>
                        </tr>
                        <tr id="trHeadID" runat="server">
                            <td height="30" align="right" valign="middle">
                                <asp:Label ID="Label3" runat="server" Text="所属分类：" /></td>
                            <td align="left" valign="middle" style="color: red">
                                <asp:TextBox ID="txtHeadID" Enabled="false" runat="server" MaxLength="150" AutoPostBack="True" OnTextChanged="txtHeadId_TextChanged" Width="300px" ReadOnly="True">一级分类</asp:TextBox>
                                <asp:HiddenField ID="hftxtHeadID" runat="server" Value="0" />
                                <input id="btnGetCatagory" type="button" onclick="OpenDialogArticleCategory('txtHeadID')" value="选择上级分类" class="button" /></td>
                        </tr>
                        <tr>
                            <td height="30" align="right" valign="middle">
                                <asp:Label ID="Label4" runat="server" Text="分类关键字：" /></td>
                            <td align="left" style="color: red" valign="middle">
                                <asp:TextBox ID="txtSearchKey" runat="server" Width="300px" MaxLength="100"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td height="30" align="right" valign="middle">
                                <asp:Label ID="Label5" runat="server" Text="分类描述：" /></td>
                            <td align="left" style="color: red" valign="middle">
                                <asp:TextBox ID="txtDescription" runat="server" Height="100px" TextMode="MultiLine" Width="300px">
                                </asp:TextBox>
                                *  <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtDescription" Display="Dynamic" ErrorMessage="必须输入" />
                                <asp:RegularExpressionValidator ID="revDescription" runat="server" ControlToValidate="txtDescription" ErrorMessage="长度必须在300以内" ValidationExpression=".{0,300}" Display="Dynamic" /></td>
                        </tr>
                        <tr>
                            <td height="30" align="right" valign="middle">
                                <asp:Label ID="Label6" runat="server" Text="分类排序：" /></td>
                            <td align="left" style="color: red" valign="middle">
                                &nbsp;<asp:TextBox ID="txtOrderID" runat="server">1000</asp:TextBox></td>
                        </tr>
                        <tr>
                            <td align="center" colspan="2">
                                <asp:Button ID="btnAdd" runat="server" CssClass="button" OnClick="btnAdd_Click" Text="确定" />
                                <asp:Button ID="btnEdit" runat="server" CssClass="button" OnClick="btnEdit_Click"
                                    Text="更新" />
                                <input id="iptReset" runat="server" type="reset" value="重置" class="button" />
                                <asp:Button id="btnReturn" onclick="btnReturn_Click" runat="server" Text="返回列表" CssClass="button" CausesValidation="false" />
                            </td>
                        </tr>
                    </table>
                </div>
            </asp:Panel>
            <uc2:PageBottom ID="PageBottom1" runat="server" />
        </div>
        <div id="hiddenfield">
            <asp:HiddenField ID="CheckedIDS" runat="server" Value="0" />
            <asp:HiddenField ID="IsEdit" runat="server" Value="0" />
            <asp:HiddenField ID="PageIndex" runat="server" Value="0" />
            <asp:HiddenField ID="MaxPageIndex" runat="server" Value="0" />
            <uc1:HiddenField ID="Alert" runat="server" />
        </div>
    </form>
    <script type="text/javascript">
    //加TABLE样式
    InitTrClass();
    </script>
</body>
</html>
