<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="../../MasterPage/Default.Master"
    Codebehind="EnAddOtherClass.aspx.cs" Inherits="LJCMS.Admin.en.Others.EnAddOtherClass" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageBody" runat="server">
    <link rel="stylesheet" type="text/css" href="<%=Page.ResolveUrl("~/") %>Admin/inc/FineMessBox/css/subModal.css" />

    <script type="text/javascript" src="<%=Page.ResolveUrl("~/") %>Admin/inc/FineMessBox/js/common.js"></script>

    <script type="text/javascript" src="<%=Page.ResolveUrl("~/") %>Admin/inc/FineMessBox/js/subModal.js"></script>

    <table style="width:100%">
        <tr>
            <td>
                <DataLayerWebControls:HeadMenuWebControls ID="HeadMenuWebControls1" runat="server"
                    HeadTitleTxt="<英文>信息分类管理" HeadOPTxt="修改信息分类">
                </DataLayerWebControls:HeadMenuWebControls>
                <DataLayerWebControls:TabOptionWebControls ID="TabOptionWebControls1" runat="server">
                    <DataLayerWebControls:TabOptionItem ID="TabOptionItem1" runat="server" Tab_Name="修改分类">
                        <table width="100%" border="0" cellspacing="1" cellpadding="3" align="center">
                            <tr id="Tr1" runat="server">
                                <td class="table_title" colspan="2">
                               <asp:Label ID="CatListTitle" runat="server"></asp:Label></td>
                            </tr>
                            <tr id="TopTr" runat="server">
                                <td class="table_body">
                                    上级信息分类</td>
                                <td class="table_none">
                                    <asp:HiddenField ID="HFClassID" runat="server" />
                                    <asp:TextBox ID="ClassParentName" runat="server"></asp:TextBox>
                                    <input type="button" value="选择分类" id="button3" name="buttonselect" onclick="javascript:ShowDepartID()"
                                        class="cbutton">
                                    <input type="button" value="清除" onclick="javascript:ClearSelect();" class="cbutton" /></td>
                            </tr>
                            <tr id="Tr2" runat="server">
                                <td class="table_body">
                                    信息分类名称</td>
                                <td class="table_none">
                                    <asp:TextBox ID="ClassName_Input" runat="server" CssClass="text_input"></asp:TextBox>
                                </td>
                            </tr>
             
                            <tr id="Tr4" runat="server">
                                <td class="table_body">
                                    关键字</td>
                                <td class="table_none">
                                    <asp:TextBox ID="ClassKey_Input" runat="server" CssClass="text_input"></asp:TextBox>
                                </td>
                            </tr>
                            <tr id="Tr5" runat="server">
                                <td class="table_body">
                                    说明</td>
                                <td class="table_none">
                                    <asp:TextBox ID="ClassDescp_Input" runat="server" CssClass="text_input" TextMode="MultiLine"
                                        Width="200px" Height="100px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                </td>
                            </tr>
                            <tr id="SubmitTr" runat="server">
                                <td colspan="2" align="right">
                                    <asp:Button ID="Button1" runat="server" CssClass="button_bak" Text="确定" OnClick="Button1_Click" />
                                    <input id="Reset1" class="button_bak" type="reset" value="重填" />&nbsp;
                                </td>
                            </tr>
                        </table>
                    </DataLayerWebControls:TabOptionItem>
                </DataLayerWebControls:TabOptionWebControls>
            </td>
        </tr>
    </table>

    <script type="text/javascript">
  rnd.today=new Date(); 

    rnd.seed=rnd.today.getTime(); 

    function rnd() { 

　　　　rnd.seed = (rnd.seed*9301+49297) % 233280; 

　　　　return rnd.seed/(233280.0); 

    }; 

    function rand(number) { 

　　　　return Math.ceil(rnd()*number); 

    }; 

      function ShowDepartID()
        {
            showPopWin('选择下载分类','EnOtherTree.aspx?'+rand(10000000), 215, 255, AlertClassBox,true,true)
        }
    function AlertClassBox(file_name)
    {
       
             if (file_name!=undefined){
	            var ShValues = file_name.split('||');
	            if (ShValues[1]!=0)
	            {
	                document.all.<%=this.ClassParentName.ClientID %>.value=ShValues[0];
	                document.all.<%=this.HFClassID.ClientID %>.value=ShValues[1];
	            }            
	        }
    }
            function ClearSelect()
        {
   	        document.all.<%=this.ClassParentName.ClientID %>.value="";
            document.all.<%=this.HFClassID.ClientID %>.value="";
        }
        
   
    </script>

</asp:Content>
