<%@ Page Language="C#" AutoEventWireup="true" Inherits="System_AddLabelType, QianboCMS" EnableEventValidation="false" %>
<!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 rel="stylesheet" href="../Css/layout.css" type="text/css" />
    <script language="javascript" type="text/javascript" src="../../Js/Common.js"></script>
    <script language="javascript" type="text/javascript">
        function CheckValidate() {
            if ($("txtLabelTypeName").value.trim().length == 0) {
                alert("标签名称不能为空！");
                $("txtLabelTypeName").focus();
                return false;
            }
            return true;
        }
    </script>
</head>

<body>
    <form id="form1" runat="server">
        <div>
            <table cellspacing="1" cellpadding="0" class="wzdh" align="center">
                <tr>
                    <td class="wzlist">
                        <img src="../Images/Skin/Default/you.gif" align="absmiddle" />
                        您现在的位置：<a href="../SystemInfo.aspx">后台管理</a> &gt;&gt; <a href="../Template/CreateFolder.aspx">标签&模板管理</a> &gt;&gt; <a href="LabelManager.aspx">标签管理</a> &gt;&gt; 新增标签分类
					</td>
                </tr>
            </table>
            <table cellpadding="0" cellspacing="1" class="border" align="center">
                <tr>
                    <td class="wzlist">
						<span style="float: left;">
							<asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="LabelManager.aspx">标签管理首页</asp:HyperLink> | <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="SetLabelCategory.aspx">新增标签分类</asp:HyperLink> | <asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl="SetLabelContent.aspx">创建新标签</asp:HyperLink> | <a href="#" onclick="javascript:window.history.back();">返回</a>
						</span>
                        <span style="float: right;">
                            <asp:DropDownList ID="ddlRedirectPage" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlRedirectPage_SelectedIndexChanged">
                                <asp:ListItem>跳转类型至…</asp:ListItem>
                                <asp:ListItem Value="StyleManager.aspx">样式管理</asp:ListItem>
                                <asp:ListItem Value="LabelManager.aspx">标签管理</asp:ListItem>
                                <asp:ListItem Value="../Template/CreateFolder.aspx">模板管理</asp:ListItem>
                            </asp:DropDownList>
                        </span>
					</td>
                </tr>
            </table>
            <table cellpadding="0" cellspacing="1" class="border" align="center">
                <tbody>
                    <tr>
                        <td class="bqleft">标签分类名称：</td>
                        <td class="bqright">
                            <asp:TextBox ID="txtLabelTypeName" runat="server" Width="40%" MaxLength="200"></asp:TextBox>
						</td>
                    </tr>
                    <tr>
                        <td align="right" class="bqleft">所属分类：</td>
                        <td class="bqright" valign="middle">
                            <asp:DropDownList ID="dropLabelType" runat="server"></asp:DropDownList>
                            <asp:Label ID="Label1" runat="server" Text="注意：添加标签层级请保持在两层以内" ForeColor="Red"></asp:Label>
						</td>
                    </tr>
                    <tr>
                        <td align="right" class="bqleft">说明：</td>
                        <td class="bqright">
                            <asp:TextBox ID="txtExplain" TextMode="multiLine" Rows="6" Columns="50" runat="server"></asp:TextBox>
						</td>
                    </tr>
                    <tr>
                        <td align="right" class="bqleft"></td>
                        <td class="bqright">
                            <asp:Button ID="btnSave" CssClass="btn" runat="server" Text="保存创建" OnClick="btnSave_Click" OnClientClick="return CheckValidate()" />
                            <asp:Button ID="btnReset" CssClass="btn" runat="server" Text="重新填写" OnClick="btnReset_Click" />
						</td>
                    </tr>
                </tbody>
            </table>
        </div>
    </form>
    <br />
</body>
</html>