<%@ page language="C#" autoeventwireup="true" inherits="e_info_class, ZKCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register TagName="meta" TagPrefix="UC" Src="~/e/meta.ascx" %>
<%@ Register TagName="head" TagPrefix="UC" Src="~/e/head.ascx" %>
<%@ Register TagName="foot" TagPrefix="UC" Src="~/e/foot.ascx" %>
<!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">
    <UC:meta ID="meta1" runat="server" />

    <script type="text/javascript" src="../s/skin/city_.js"></script>

</head>
<body>
    <form id="form1" runat="server" autocomplete="off">
    <asp:Label ID="pathcode" runat="server" Style="display: none">
    &nbsp;&raquo;&nbsp;信息资讯&nbsp;&raquo;&nbsp;管理类别
    </asp:Label>
    <UC:head ID="head1" runat="server" />
    <asp:Panel ID="PanelBoxDo" runat="server" Visible="false">

        <script type="text/javascript">
  　function BoxDoCheck(){
   if(document.getElementById("parentid").value==""){alert("请输入父级栏目编号！");return false;}
   if(document.getElementById("n").value==""||document.getElementById("n").value=="多个请换行输入或者使用，号隔开"){alert("请输入分类名称！");return false;}
 　}
        </script>

        <div class="c1">
            <div class="b1">
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="b1_l">
                        </td>
                        <td>
                            <div class="con1">
                                <ul>
                                    <li class="on"><a href="javascript:void(0)" onfocus="this.blur()">
                                        <asp:Literal ID="Literal_path_name" runat="server">添加类别</asp:Literal></a></li>
                                </ul>
                                <div class="clear">
                                </div>
                            </div>
                        </td>
                        <td align="right">
                            <div class="con2">
                            </div>
                        </td>
                        <td class="b1_r">
                        </td>
                    </tr>
                </table>
            </div>
            <div class="v1">
                <div class="do1" style="padding-top: 10px; padding-left: 10px; padding-bottom: 10">
                    <table border="0" cellpadding="0" cellspacing="0" class="table1">
                        <tr>
                            <td class="tt">
                                <b>父级栏目编号：</b>
                            </td>
                            <td>
                                <asp:TextBox ID="parentid" runat="server" CssClass="inp1" Width="120" MaxLength="10"
                                    Text="0" onblur="this.value=this.value.replace(/\D/g,'')" Enabled="false" autocomplete="off"></asp:TextBox><span
                                        class="msgon" style="background-image: none; padding-left: 8px">
                                        <asp:Literal ID="parentn" runat="server"></asp:Literal></span>
                            </td>
                        </tr>
                        <tr>
                            <td class="tt">
                                <b>分类名称：</b>
                            </td>
                            <td>
                                <asp:TextBox ID="n" runat="server" CssClass="inp1" Width="500" Text="多个请换行输入或者使用，号隔开"
                                    onfocus="if(this.value=='多个请换行输入或者使用，号隔开')this.value=''" autocomplete="off"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="tt">
                                排序值：
                            </td>
                            <td>
                                <asp:TextBox ID="sorting" runat="server" CssClass="inp1" Width="120" MaxLength="10"
                                    Text="0" onblur="this.value=this.value.replace(/\D/g,'')" autocomplete="off"></asp:TextBox>
                                <span style="padding-left: 5px"><span class="msgon">请输入数值，值越大越靠前</span> </span>
                            </td>
                        </tr>
                        <tr>
                            <td class="tt">
                                频道输出：
                            </td>
                            <td>
                                <asp:DropDownList ID="nav" runat="server" Width="125">
                                    <asp:ListItem Value="1">是</asp:ListItem>
                                    <asp:ListItem Value="0">否</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td class="tt">
                                &nbsp;
                            </td>
                            <td>
                                <asp:Button ID="ButtonSubmit" runat="server" CssClass="but1" Text="添加" OnClick="ButtonSubmit_Click"
                                    OnClientClick="return BoxDoCheck()" /><input class="but1" style="margin-left: 10px"
                                        type="button" value="返回" onclick="window.location='info_class.aspx'" />
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </asp:Panel>
    <asp:Panel ID="PanelBox" runat="server">
        <div id="funparentcopy" style="display: none">
        </div>
        <%--main start--%>
        <div class="c1">
            <div class="b1">
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="b1_l">
                        </td>
                        <td>
                            <div class="con1">
                                <ul>
                                    <li class="on"><a href="info_class.aspx">管理类别</a></li>
                                    <li><a href="#" onclick="if(confirm('确定创建顶级类别吗？'))window.location='info_class.aspx?act=root'">创建根级</a></li>
                                </ul>
                                <div class="clear">
                                </div>
                            </div>
                        </td>
                        <td align="right">
                            <div class="con2">
                                <a href="#" onclick="history.back()">返回上页</a></div>
                        </td>
                        <td class="b1_r">
                        </td>
                    </tr>
                </table>
            </div>
            <div class="v1">
                <div class="info_class">
                    <asp:Literal ID="Literal1" runat="server"></asp:Literal>
                </div>
            </div>
        </div>
        <%--main end--%>
        <%--fun start--%>
        <%-- <div class="self_funparent" id="funparent">
            <div class="c1" id="funwrap">
                <div class="b1">
                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td class="b1_l">
                            </td>
                            <td>
                                <div class="con1">
                                    <ul>
                                        <li id="funtab1" class="on"><a href="javascript:void(0)" onfocus="this.blur()">常规操作</a></li>
                                    </ul>
                                    <div class="clear">
                                    </div>
                                </div>
                            </td>
                            <td align="right">
                                <div class="con2">
                                </div>
                            </td>
                            <td class="b1_r">
                            </td>
                        </tr>
                    </table>
                </div>
                <div class="v1">
                    <div class="funbox" id="funarea">
                        <blockquote class="block">
                            <input type="button" class="but1_86" value="添加顶级类别" onclick="window.location='info_class.aspx?act=add'" />
                        </blockquote>
                    </div>
                </div>
            </div>
        </div>--%>
        <%--fun end--%>
    </asp:Panel>
    <UC:foot ID="foot1" runat="server" />
    </form>
</body>
</html>
