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

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<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="">
                    <DataLayerWebControls:HeadMenuButtonItem ButtonPopedom="List" ButtonUrl="EnDown.aspx"
                        ButtonUrlType="Href" ButtonVisible="True" ButtonName="下载" />
                </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>
                                <td class="table_body">
                                    下载类别</td>
                                <td class="table_none">
                                    <asp:HiddenField ID="HFClassID" runat="Server" />
                                    <asp:TextBox ID="DClassID_Input" runat="server" CssClass="text_input"></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>
                                <td class="table_body">
                                    标题</td>
                                <td class="table_none">
                                    <asp:TextBox ID="DName_Input" runat="server" CssClass="text_input"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="table_body">
                                    软件类型</td>
                                <td class="table_none">
                                    <asp:TextBox ID="Softclass_Input" runat="server" CssClass="text_input"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="table_body">
                                    语言</td>
                                <td class="table_none">
                                    <asp:TextBox ID="Language_Input" runat="server" CssClass="text_input"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="table_body">
                                    适用系统</td>
                                <td class="table_none">
                                    <asp:TextBox ID="DSystem_Input" runat="server" CssClass="text_input"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="table_body">
                                    下载次数</td>
                                <td class="table_none">
                                    <asp:TextBox ID="Hits_Input" runat="server" CssClass="text_input"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="table_body">
                                    更新日期</td>
                                <td class="table_none">
                                    <asp:TextBox ID="AddDate_Input" runat="server" CssClass="text_input" onfocus="javascript:HS_setDate(this);"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="table_body">
                                    下载详细说明</td>
                                <td class="table_none">
                                    <FCKeditorV2:FCKeditor ID="DContent_Input" runat="server" Height="500px">
                                    </FCKeditorV2:FCKeditor>
                                </td>
                            </tr>
                        </table>
                    </DataLayerWebControls:TabOptionItem>
                    <DataLayerWebControls:TabOptionItem ID="TabOptionItem2" runat="server" Tab_Name="下载上传">
                        <table width="100%" border="0" cellspacing="1" cellpadding="3" align="center">
                            <tr>
                                <td class="table_body">
                                    图片地址</td>
                                <td class="table_none">
                                    <asp:TextBox ID="PhotoUrl_Input" runat="server" CssClass="text_input"></asp:TextBox>
                                    <input id="Buttonb" type="button" runat="server" class="button_bak" value="上传图片"
                                        style="cursor: pointer" onclick="javascript:showPopWin('上传产品图片','../../UploadPic.aspx?'+rand(10000000), 300, 150, AlertMessageBox,true);" />
                                </td>
                            </tr>
                            <tr>
                                <td class="table_body">
                                    下载地址</td>
                                <td class="table_none">
                                    <asp:TextBox ID="DownloadUrl_Input" runat="server" CssClass="text_input"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="table_body">
                                    文件大小</td>
                                <td class="table_none">
                                    <asp:TextBox ID="FileSize_Input" runat="server" CssClass="text_input"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </DataLayerWebControls:TabOptionItem>
                    <DataLayerWebControls:TabOptionItem ID="TabOptionItem3" runat="server" Tab_Name="优化搜索">
                        <table width="100%" border="0" cellspacing="1" cellpadding="3" align="center">
                            <tr>
                                <td class="table_body">
                                    下载关键词</td>
                                <td class="table_none">
                                    <asp:TextBox ID="DKey_Input" runat="server" CssClass="text_input"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="table_body">
                                    下载描述</td>
                                <td class="table_none">
                                    <asp:TextBox ID="DDescp_Input" runat="server" CssClass="text_input"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </DataLayerWebControls:TabOptionItem>
                </DataLayerWebControls:TabOptionWebControls>
                <table width="100%" border="0" cellspacing="1" cellpadding="3" align="center" id="PostButton"
                    runat="server">
                    <tr>
                        <td align="right">
                            <asp:Button ID="Button1" runat="server" CssClass="button_bak" Text="确定" OnClick="Button1_Click" />
                            <input id="Reset1" class="button_bak" type="reset" value="重填" />
                        </td>
                    </tr>
                </table>
            </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); 

    }; 

    // end central randomizer. --> 
    function AlertMessageBox(file_name)
    {
       
          if (file_name!=undefined){
	            var ShValues = file_name.split('||');
	            if (ShValues[1]!=0)
	            {
	                document.all.<%=this.PhotoUrl_Input.ClientID %>.value=ShValues[0];
	            }            
	        }
    }
      function ShowDepartID()
        {
            showPopWin('选择下载分类','EnDownTree.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.DClassID_Input.ClientID %>.value=ShValues[0];
	                document.all.<%=this.HFClassID.ClientID %>.value=ShValues[1];
	            }            
	        }
    }
            function ClearSelect()
        {
   	        document.all.<%=this.DClassID_Input.ClientID %>.value="";
            document.all.<%=this.HFClassID.ClientID %>.value="";
        }
        
   
    </script>

</asp:Content>
