<%@ Page Language="c#" Inherits="TopWinCMS.WebUI.Admin.Admin_Soft_Add" CodeBehind="Soft_Add.aspx.cs" %>

<%@ Register Assembly="TopWinCMS.WebControls" Namespace="TopWinCMS.WebControls" TagPrefix="cc1" %>
<%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="ce" %>
<!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>
        <%= AutoTitle() %></title>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <meta content="no-cache" http-equiv="Pragma" />

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

    <link href="../Style.css" rel="stylesheet" type="text/css" />

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

    <script type="text/javascript" language="javascript">
	function CheckForm()
	{ 
		if ($("<%=DDL_SoftClass.ClientID%>").value==0)
		{
		    alert("请选择栏目！");
			try{
			$("<%=DDL_SoftClass.ClientID%>").focus();
			}
			catch ( Error )
			{}
			return false;
		}
		if ($("<%=TB_SoftName.ClientID%>").value=="")
		{
			alert("标题不能为空！");
			$("<%=TB_SoftName.ClientID%>").focus();
			return false;
		}
		if ($("<%=TB_SoftSize.ClientID%>").value=="")
		{
			alert("大小不能为空！");
			$("<%=TB_SoftSize.ClientID%>").focus();
			return false;
		}
		if ($("<%=CE_Content.ClientID%>").getHTML=="")
		{
			alert("简介不能为空！");
			$("<%=CE_Content.ClientID%>").focus();
			return false;
		}
	}
	function ToSize(Size)
	{ 
	    $("<%=TB_SoftSize.ClientID%>").value=$("<%=TB_SoftSize.ClientID%>").value + Size;
	    $("<%=TB_SoftSize.ClientID%>").focus();
		return false; 
	}
	function Show1()//常规设置
	{ 
		$("A").style.display = "block";
		$("t_Content").style.display = "block"; 	
		$("B").style.display = "none";
		$("C").style.display = "none";
		$("D").style.display = "none";
		$("E").style.display = "none";		
	}
	function Show2()//高级设置
	{ 
		$("A").style.display = "none";
		$("t_Content").style.display = "none";		
		$("B").style.display = "block";
		$("C").style.display = "none";
		$("D").style.display = "none";
		$("E").style.display = "none";		
	}
	function Show3()//摘要
	{ 
		$("A").style.display = "none";
		$("t_Content").style.display = "none";		
		$("B").style.display = "none";
		$("C").style.display = "block";
		$("D").style.display = "none";
		$("E").style.display = "none";	
	}
	function Show4()//权限设置
	{ 
		$("A").style.display = "none";
		$("t_Content").style.display = "none";		
		$("B").style.display = "none";
		$("C").style.display = "none";
		$("D").style.display = "block";
		$("E").style.display = "none";	
	}
	function Show5()//自定义字段
	{ 
		$("A").style.display = "none";
		$("t_Content").style.display = "none";		
		$("B").style.display = "none";
		$("C").style.display = "none";
		$("D").style.display = "none";
		$("E").style.display = "block";	
	}	
	
	
	function HideAndDisplay(TabIndex,o)
	{
		$("current").id="";
	    for(i=0;i<5;i++)
	    {
	        if( i== TabIndex)
	        {
				o.id="current";
	        }
	    }
	    if(TabIndex==0)    
	    {
	        Show1();
	    }
	    else if(TabIndex==1)
	    {
	        Show2();
	    }
	    else if(TabIndex==2)
	    {
	        Show3();
	    }
	    else if(TabIndex==3)
	    {
	        Show4();
	    }	  
	    else if(TabIndex==4)
	    {
	        Show5();
	    }		      
	    //AutoIframeHeight();
	    return false; 
	}
	function ServersAdd()
	{
		var str='';
		if($('ServerNum').value=="")
		{
			$('ServerNum').value=1;
		}
		for(i=2;i<=$('ServerNum').value;i++)
		{
			<% =serverlistJS %>
		} 
		$('DownLoadArea').innerHTML=str;
		
		//AutoIframeHeight();
	}
	 
    </script>

    <script language="javascript" type="text/javascript">

     function ColorPalette()
     {
        var str = window.showModalDialog("../Images/JS拾色器/JS拾色器.htm","dialogWidth=190px;dialogHeight=80px");
        if(typeof(str)!="undefined")
        {
            $('TB_ColorStyle').value=str;
            LoadStyle();

        }
     }
     function LoadStyle()
     {
        if( $('TB_ColorStyle') == null)
        {
            return;
        }
        var str = $('TB_ColorStyle').value;
        if(str=="")
        {
            $('imgColorStyle').style.backgroundColor = "#000000";
            //$('TB_Title').style.color = "#000000";
        }
        else
        {
            $('imgColorStyle').style.backgroundColor = str;
            //$('TB_Title').style.color = str;
        }
     }
     function GetTag()
     {
        var str = window.showModalDialog("../window/GetTag.aspx?ModelID=<%=Request["ModelID"] %>", "up","dialogWidth=460px;dialogHeight=440px;status=0;scroll=auto");
         
        if(typeof(str)!="undefined")
        {
            if($('TB_Key').value =="")
                $('TB_Key').value = str + "|";
            else
                $('TB_Key').value = $('TB_Key').value + str + "|";
        }
     }
     function GetImage()
     {
        var str = window.showModalDialog("../window/GetImage.aspx", "up","dialogWidth=540px;dialogHeight=540px;status=0;scroll=auto");
         
        if(typeof(str)!="undefined")
            $('TB_PicUrl').value=str;
            
     }
     function GetTemplate()
     {
        var str = window.showModalDialog("../window/GetTemplate.aspx", "up","dialogWidth=350px;dialogHeight=320px;status=0;scroll=auto");
         if(typeof(str)!="undefined")
            $('TB_TemplateFileName').value=str;
            
            
     }
     
    </script>

    <script language="javascript" type="text/javascript">

        function killerrors() {
            return true;
        }
        window.onerror = killerrors; 
   
    </script>

    <style type="text/css">
        .RowStyle
        {
            width: 100px;
            font-weight: bold;
            text-align: right;
        }
        #B, #C, #D, #E
        {
            display: none;
        }
    </style>
</head>
<body>
    <form id="Form1" method="post" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div id="tabs">
        <ul>
            <li id="current" onclick="return HideAndDisplay(0,this);"><a href="#"><span>常规属性</span></a></li>
            <%
              
                if (
                    TB_Author.Visible == true
                    || TB_Email.Visible == true
                    || TB_Homepage.Visible == true
                    || TB_DecompressPassword.Visible == true
                    || TB_DemoUrl.Visible == true
                    || TB_PicUrl.Visible == true
                    || NTB_Hits.Visible == true
                    || TB_UpDateTime.Visible == true
                    )
                {
              
            %>
            <li onclick="return HideAndDisplay(1,this);"><a href="#"><span>高级属性</span></a></li>
            <%
                }
                if (this.TB_Brief.Visible)
                {
            %>
            <li onclick="return HideAndDisplay(2,this);"><a href="#"><span>摘要</span></a></li>
            <%
                }
                if (tr_Rank.Visible == true || this.NTB_PointNum.Visible == true)
                {
            %>
            <li onclick="return HideAndDisplay(3,this);"><a href="#"><span>权限设置</span></a></li>
            <% 
                }
                if (ExtendField)
                {
            %>
            <li onclick="return HideAndDisplay(4,this);"><a href="#"><span>自定义</span></a></li>
             <% 
                }
             %>
        </ul>
    </div>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div id="A">
                <table width="100%" border="0" cellpadding="2" cellspacing="1">
                    <tr>
                        <td class="RowStyle">
                            <font color="#ff0000">*</font>名称：
                        </td>
                        <td>
                            <asp:TextBox ID="TB_SoftName" runat="server" Width="250px" CausesValidation="True" />
                            <asp:DropDownList ID="DDL_FontStyle" runat="server">
                                <asp:ListItem Value="" Selected="True">常规</asp:ListItem>
                                <asp:ListItem Value="font-weight:bold;">粗体</asp:ListItem>
                                <asp:ListItem Value="font-style:italic;">斜体</asp:ListItem>
                                <asp:ListItem Value="text-decoration: underline;">下划线</asp:ListItem>
                                <asp:ListItem Value="font-weight:bold;font-style:italic;">粗体+斜体</asp:ListItem>
                                <asp:ListItem Value="font-weight:bold;text-decoration: underline;">粗体+下划线</asp:ListItem>
                                <asp:ListItem Value="font-style:italic;text-decoration: underline;">斜体+下划线</asp:ListItem>
                            </asp:DropDownList>
                            <span style="display: none">
                                <asp:TextBox ID="TB_ColorStyle" runat="server" Width="80px"></asp:TextBox></span>
                            <img id="imgColorStyle" title="选取颜色" style="cursor: pointer; background-color: #000000;
                                width: 18px; height: 17px; border: 0px;" onclick="ColorPalette();" src="../Images/拾色器.gif"
                                alt="" runat="server">
                            <asp:Button ID="BT_CheckSoftName" runat="server" CssClass="btn" OnClick="BT_CheckSoftName_Click"
                                Text="重名检测" />
                        </td>
                    </tr>
                    <tr runat="server" id="tr_SoftVersion">
                        <td class="RowStyle">
                            版本：
                        </td>
                        <td>
                            <asp:TextBox ID="TB_SoftVersion" runat="server" Width="131px" />
                        </td>
                    </tr>
                    <tr>
                        <td class="RowStyle">
                            <font color="#ff0000">*</font> 所属栏目：
                        </td>
                        <td>
                            <asp:DropDownList ID="DDL_SoftClass" runat="server" CausesValidation="True">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr runat="server" id="tr_SpecialID">
                        <td class="RowStyle">
                            专题栏目：
                        </td>
                        <td>
                            <asp:DropDownList ID="DDL_SpecialID" runat="server">
                                <asp:ListItem Value="0">不属于任何专题</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr runat="server" id="tr_Key">
                        <td class="RowStyle">
                            关 键 字：
                        </td>
                        <td>
                            <asp:TextBox ID="TB_Key" runat="server" BackColor="#FFFFC0" ToolTip="该控件可根据输入自动列出相似项"
                                Width="250px"></asp:TextBox>
                            <img src="../../Images/help.gif" alt="" width="16" height="16" title="如果要输入多关键字请用“|”分割" />
                            &nbsp;
                            <input id="BT_GetTag" type="button" onclick="GetTag()" class="btn" value="现有Tags" /><ajaxToolkit:AutoCompleteExtender
                                ID="AutoCompleteExtender4" runat="server" CompletionInterval="1000" CompletionSetCount="12"
                                EnableCaching="true" MinimumPrefixLength="2" ServiceMethod="GetKeyList" ServicePath="WS_FindHistTory.asmx"
                                TargetControlID="TB_Key">
                            </ajaxToolkit:AutoCompleteExtender>
                        </td>
                    </tr>
                    <tr runat="server" id="tr_SoftSize">
                        <td class="RowStyle">
                            <font color="#ff0000">*</font>大小：
                        </td>
                        <td>
                            <asp:TextBox ID="TB_SoftSize" runat="server" Width="136px" CausesValidation="True"></asp:TextBox>
                            &nbsp; <a href="#" onclick="return ToSize(' KB')">KB</a> <a href="#" onclick="return ToSize(' MB')">
                                MB</a><font color="#ff0000"> </font>
                        </td>
                    </tr>
                    <tr runat="server" id="tr_Stars">
                        <td class="RowStyle">
                            &nbsp;评分等级：
                        </td>
                        <td>
                            <asp:DropDownList ID="DDL_Stars" runat="server">
                                <asp:ListItem Value="1">★</asp:ListItem>
                                <asp:ListItem Value="2">★★</asp:ListItem>
                                <asp:ListItem Value="3">★★★</asp:ListItem>
                                <asp:ListItem Value="4" Selected="True">★★★★</asp:ListItem>
                                <asp:ListItem Value="5">★★★★★</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr runat="server" id="tr_RunAtSystem">
                        <td class="RowStyle">
                            平台：
                        </td>
                        <td>
                            <asp:CheckBoxList ID="CBL_RunAtSystem" runat="server" RepeatDirection="Horizontal"
                                RepeatColumns="9">
                                <asp:ListItem Value="Win2008">Win2008</asp:ListItem>
                                <asp:ListItem Value="WinVista">WinVista</asp:ListItem>
                                <asp:ListItem Value="Win2003">Win2003</asp:ListItem>
                                <asp:ListItem Value="WinXP">WinXP</asp:ListItem>
                                <asp:ListItem Value="Win2000">Win2000</asp:ListItem>
                                <asp:ListItem Value="NT">NT</asp:ListItem>
                                <asp:ListItem Value="WinME">WinME</asp:ListItem>
                                <asp:ListItem Value="Win9X">Win9X</asp:ListItem>
                                <asp:ListItem Value="Dos">Dos</asp:ListItem>
                                <asp:ListItem Value="Linux">Linux</asp:ListItem>
                                <asp:ListItem Value="Unix ">Unix </asp:ListItem>
                                <asp:ListItem Value="Mac">Mac</asp:ListItem>
                                <asp:ListItem Value="ASP环境">ASP环境</asp:ListItem>
                                <asp:ListItem Value="PHP环境">PHP环境</asp:ListItem>
                                <asp:ListItem Value="CGI环境">CGI环境</asp:ListItem>
                                <asp:ListItem Value=".Net">.Net</asp:ListItem>
                            </asp:CheckBoxList>
                        </td>
                    </tr>
                    <tr>
                        <td class="RowStyle">
                            属性：
                        </td>
                        <td>
                            <asp:CheckBox ID="CB_IncludePic" runat="server" Text='含图' Width="80px" />
                            <asp:CheckBox ID="CB_OnTop" runat="server" Text='置顶' Width="80px" />
                            <asp:CheckBox ID="CB_Elite" runat="server" Text='推荐' Width="80px" />
                            <asp:CheckBox ID="CB_IsSlide" runat="server" Text="幻灯片" Width="80px" />
                            <asp:CheckBox ID="CB_AllowComment" runat="server" Text='允许评论' Checked="True" Width="80px" />
                            <asp:CheckBox ID="CB_Pass" runat="server" Text='审核摘要' Width="80px" />
                            <asp:CheckBox ID="CB_ContentPass" runat="server" Text="审核内容" Width="80px" />
                            <asp:CheckBox ID="CB_IsDraft" runat="server" Text="稿件" Width="80px" />
                        </td>
                    </tr>
                </table>
            </div>
            <div id="B">
                <table width="100%" border="0" cellpadding="2" cellspacing="1" id="table_B" runat="server">
                    <tr runat="server" id="tr_BlackGuard">
                        <td class="RowStyle">
                            插件威胁：
                        </td>
                        <td>
                            <asp:DropDownList ID="DDL_BlackGuard" runat="server">
                                <asp:ListItem Value="不详">不详</asp:ListItem>
                                <asp:ListItem Value="无流氓软件">无流氓软件</asp:ListItem>
                                <asp:ListItem Value="可选安装">可选安装</asp:ListItem>
                                <asp:ListItem Value="强制安装">强制安装</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr runat="server" id="tr_CopyrightType">
                        <td class="RowStyle">
                            授权形式：
                        </td>
                        <td>
                            <asp:DropDownList ID="DDL_CopyrightType" runat="server">
                                <asp:ListItem Value="免费版">免费版</asp:ListItem>
                                <asp:ListItem Value="共享版" Selected="True">共享版</asp:ListItem>
                                <asp:ListItem Value="试用版">试用版</asp:ListItem>
                                <asp:ListItem Value="演示版">演示版</asp:ListItem>
                                <asp:ListItem Value="注册版">注册版</asp:ListItem>
                                <asp:ListItem Value="破解版">破解版</asp:ListItem>
                                <asp:ListItem Value="零售版">零售版</asp:ListItem>
                                <asp:ListItem Value="OEM版">OEM版</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr runat="server" id="tr_SoftLanguage">
                        <td class="RowStyle">
                            语言：
                        </td>
                        <td>
                            <asp:DropDownList ID="DDL_SoftLanguage" runat="server">
                                <asp:ListItem Value="英文">英文</asp:ListItem>
                                <asp:ListItem Value="简体中文" Selected="True">简体中文</asp:ListItem>
                                <asp:ListItem Value="繁体中文">繁体中文</asp:ListItem>
                                <asp:ListItem Value="多国语言">多国语言</asp:ListItem>
                                <asp:ListItem Value="其他语言">其他语言</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr runat="server" id="tr_SoftType">
                        <td class="RowStyle">
                            类别：<font color="#ff0000">&nbsp;</font>
                        </td>
                        <td>
                            <asp:DropDownList ID="DDL_SoftType" runat="server">
                                <asp:ListItem Value="国产软件">国产软件</asp:ListItem>
                                <asp:ListItem Value="国外软件">国外软件</asp:ListItem>
                                <asp:ListItem Value="汉化补丁">汉化补丁</asp:ListItem>
                                <asp:ListItem Value="程序源码">程序源码</asp:ListItem>
                                <asp:ListItem Value="电影下载">电影下载</asp:ListItem>
                                <asp:ListItem Value="FLASH动画">FLASH动画</asp:ListItem>
                                <asp:ListItem Value="其他">其他</asp:ListItem>
                            </asp:DropDownList>
                            &nbsp; &nbsp;
                        </td>
                    </tr>
                    <tr runat="server" id="tr_Author">
                        <td class="RowStyle">
                            作者/开发商：
                        </td>
                        <td>
                            <asp:TextBox ID="TB_Author" runat="server" Width="250px" BackColor="#FFFFC0" ToolTip="该控件可根据输入自动列出相似项" />
                            &nbsp;<asp:DropDownList ID="DDL_Author" runat="server">
                            </asp:DropDownList>
                            <input id="Button3" type="button" value="添加" onclick='NewAuthor();' class="btn" />

                            <script language="javascript" type="text/javascript">
                                function GetAuthor() {
                                    if ($("DDL_Author").selectedIndex != 0) {
                                        var str = $("DDL_Author").options[$("DDL_Author").selectedIndex].text;
                                        $("TB_Author").value = str;
                                    }
                                    else {
                                        $("TB_Author").value = "";
                                    }
                                }
                                function NewAuthor() {
                                    NewTabPage('添加作者', '添加作者', 'Common/TopWinCMS_ContentPropertyManage.aspx?ModelID=' + Request.QueryString("ModelID") + '&Type=3'); ;
                                }
 

                            </script>

                            <ajaxToolkit:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server" CompletionInterval="1000"
                                CompletionSetCount="12" EnableCaching="true" MinimumPrefixLength="2" ServiceMethod="GetSoftAuthorList"
                                ServicePath="WS_FindHistTory.asmx" TargetControlID="TB_Author">
                            </ajaxToolkit:AutoCompleteExtender>
                        </td>
                    </tr>
                    <tr runat="server" id="tr_Email">
                        <td class="RowStyle">
                            信箱：
                        </td>
                        <td>
                            <asp:TextBox ID="TB_Email" runat="server" Width="250px" BackColor="#FFFFC0" ToolTip="该控件可根据输入自动列出相似项" />
                            &nbsp;<asp:DropDownList ID="DDL_Email" runat="server">
                            </asp:DropDownList>
                            <input id="Button4" type="button" value="添加" onclick='NewEmail();' class="btn" />

                            <script language="javascript" type="text/javascript">
                                function GetEmail() {
                                    if ($("DDL_Email").selectedIndex != 0) {
                                        var str = $("DDL_Email").options[$("DDL_Email").selectedIndex].text;
                                        $("TB_Email").value = str;
                                    }
                                    else {
                                        $("TB_Email").value = "";
                                    }
                                }
                                function NewEmail() {
                                    NewTabPage('添加Email', '添加Email', 'Common/TopWinCMS_ContentPropertyManage.aspx?ModelID=' + Request.QueryString("ModelID") + '&Type=4'); ;
                                }
 

                            </script>

                            <ajaxToolkit:AutoCompleteExtender ID="AutoCompleteExtender2" runat="server" CompletionInterval="1000"
                                CompletionSetCount="12" EnableCaching="true" MinimumPrefixLength="2" ServiceMethod="GetEmailList"
                                ServicePath="WS_FindHistTory.asmx" TargetControlID="TB_Email">
                            </ajaxToolkit:AutoCompleteExtender>
                        </td>
                    </tr>
                    <tr runat="server" id="tr_Homepage">
                        <td class="RowStyle">
                            主页：
                        </td>
                        <td>
                            <asp:TextBox ID="TB_Homepage" runat="server" Width="250px" />
                        </td>
                    </tr>
                    <tr runat="server" id="tr_DecompressPassword">
                        <td class="RowStyle">
                            解压密码：
                        </td>
                        <td>
                            <asp:TextBox ID="TB_DecompressPassword" runat="server" Width="168px" BackColor="#FFFFC0"
                                ToolTip="该控件可根据输入自动列出相似项"></asp:TextBox>
                            <asp:DropDownList ID="DDL_DecompressPassword" runat="server">
                            </asp:DropDownList>
                            &nbsp;<input id="Button5" type="button" value="添加" onclick='NewDecompressPassword();'
                                class="btn" />

                            <script language="javascript" type="text/javascript">
                                function GetDecompressPassword() {
                                    if ($("DDL_DecompressPassword").selectedIndex != 0) {
                                        var str = $("DDL_DecompressPassword").options[$("DDL_DecompressPassword").selectedIndex].text;
                                        $("TB_DecompressPassword").value = str;
                                    }
                                    else {
                                        $("TB_DecompressPassword").value = "";
                                    }
                                }
                                function NewDecompressPassword() {
                                    NewTabPage('添加解压密码', '添加解压密码', 'Common/TopWinCMS_ContentPropertyManage.aspx?ModelID=' + Request.QueryString("ModelID") + '&Type=5'); ;
                                }
 

                            </script>

                            <ajaxToolkit:AutoCompleteExtender ID="AutoCompleteExtender3" runat="server" CompletionInterval="1000"
                                CompletionSetCount="12" EnableCaching="true" MinimumPrefixLength="2" ServiceMethod="GetDecompressPasswordList"
                                ServicePath="WS_FindHistTory.asmx" TargetControlID="TB_DecompressPassword">
                            </ajaxToolkit:AutoCompleteExtender>
                        </td>
                    </tr>
                    <tr runat="server" id="tr_DemoUrl">
                        <td class="RowStyle">
                            演示地址：
                        </td>
                        <td>
                            <asp:TextBox ID="TB_DemoUrl" runat="server" Width="328px"></asp:TextBox>
                            &nbsp;&nbsp;&nbsp;请输入完整的URL
                        </td>
                    </tr>
                    <tr runat="server" id="tr_TemplateFileName">
                        <td class="RowStyle">
                            网页模板：
                        </td>
                        <td>
                            <asp:TextBox ID="TB_TemplateFileName" runat="server" Width="250px"></asp:TextBox>
                            <input id="Button2" type="button" value="网页模板" onclick='GetTemplate();' class="btn" />
                        </td>
                    </tr>
                    <tr runat="server" id="tr_PicUrl">
                        <td class="RowStyle">
                            缩略图：
                        </td>
                        <td>
                            <asp:TextBox ID="TB_PicUrl" runat="server" Width="250px"></asp:TextBox>
                            <input id="现有图片" type="button" value="现有图片" onclick='GetImage();' class="btn" /><asp:Button
                                ID="BT_UpLoad" runat="server" CssClass="btn" Text="上传" />&nbsp; &nbsp;
                            <ce:Uploader ID="FileUploader1" OnFileUploaded="FileUploader1_FileUploaded" runat="server"
                                TempDirectory="~/UpLoadFolder" CancelText="取消" InsertText="上传" FileTypeNotSupportMsg="不允许上传该格式文件"
                                InsertButtonID="BT_UpLoad" ProgressTextTemplate="%F%.. %P% %SEND%/%SIZE%">
                                <ProgressPanelStyle Direction="NotSet" HorizontalAlign="NotSet" ScrollBars="None"
                                    Wrap="True"></ProgressPanelStyle>
                                <CancelButtonStyle CssClass="btn" />
                                <InsertButtonStyle CssClass="btn" />
                            </ce:Uploader>
                            <br />
                            缩略图大小：
                            <asp:TextBox ID="TB_PicW" runat="server" Width="60px" Text="240"></asp:TextBox>
                            *
                            <asp:TextBox ID="TB_PicH" runat="server" Width="60px" Text="180"></asp:TextBox>
                            <asp:CheckBox ID="CB_BiLi" runat="server" Checked="True" Text="按比例缩小" />
                        </td>
                    </tr>
                    <tr runat="server" id="tr_Hits">
                        <td class="RowStyle">
                            初始下载次数：
                        </td>
                        <td>
                            <cc1:NumericTextBox ID="NTB_Hits" runat="server" Width="85px">0</cc1:NumericTextBox>
                        </td>
                    </tr>
                    <tr runat="server" id="tr_UpDateTime">
                        <td class="RowStyle">
                            更新日期：
                        </td>
                        <td>
                            <asp:TextBox ID="TB_UpDateTime" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </div>
            <div id="C">
                <table width="100%" border="0" cellpadding="2" cellspacing="1">
                    <tr runat="server" id="tr_Brief">
                        <td class="RowStyle">
                            内容摘要：
                        </td>
                        <td>
                            <asp:TextBox ID="TB_Brief" runat="server" Height="120px" TextMode="MultiLine" Width="98%"></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </div>
            <div id="D">
                <table width="100%" border="0" cellpadding="2" cellspacing="1">
                    <tr runat="server" id="tr_Rank">
                        <td class="RowStyle">
                            下载等级：
                        </td>
                        <td>
                            <asp:DropDownList ID="DDL_Rank" runat="server">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr runat="server" id="tr_PointNum">
                        <td class="RowStyle">
                            扣除点数：
                        </td>
                        <td>
                            <cc1:NumericTextBox ID="NTB_PointNum" runat="server" Width="85px">0</cc1:NumericTextBox>
                        </td>
                    </tr>
                </table>
            </div>
            <div id="E">
                <asp:Table ID="T_DefinedFile" BorderWidth="0" CellPadding="2" CellSpacing="1" runat="server"
                    EnableViewState="true">
                </asp:Table>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <table id="t_Content" width="100%" border="0" cellpadding="2" cellspacing="1">
        <tr>
            <td class="RowStyle" valign="top">
                <font color="#ff0000">*</font>简介：<br />
                <br />
            </td>
            <td>
                <ce:Editor ID="CE_Content" runat="server" ThemeType="Office2003" Height="400px" Width="100%"
                    AutoConfigure="Simple">
                    <FrameStyle Height="100%" BorderWidth="1px" BorderStyle="Solid" BorderColor="#DDDDDD"
                        Width="100%" BackColor="White"></FrameStyle>
                </ce:Editor>
            </td>
        </tr>
        <tr id="TR_SoftDownList_Edit" runat="server">
            <td class="RowStyle">
                修改下载地址：
            </td>
            <td id="TD_SoftDownList_Edit" runat="server">
            </td>
        </tr>
        <tr>
            <td class="RowStyle" style="vertical-align: top">
                <font color="#ff0000">*</font>添加下载地址：
            </td>
            <td align="left">
                添加新的下载镜像，请填写下面信息。
                <div>
                    <input id="ServerNum" type="text" style="width: 50px" value="1" />
                    <input id="Button1" type="button" onclick="ServersAdd()" value="添加新服务器组" class="btnl" />
                    &nbsp;
                    <br />
                    <asp:DropDownList ID="DownLoadServer" runat="server">
                    </asp:DropDownList>
                    <asp:TextBox ID="FileName" runat="server" Width="311px"></asp:TextBox>
                    <br />
                    <span id="DownLoadArea"></span>
                </div>
            </td>
        </tr>
        <tr>
            <td class="RowStyle">
                &nbsp;
            </td>
            <td align="left">
                &nbsp;
            </td>
        </tr>
    </table>
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td style="text-align: center">
                <asp:Button ID="BT_SoftAdd" runat="server" Text="添加" CausesValidation="False" OnClick="BT_SoftAdd_Click"
                    CssClass="btn"></asp:Button>
                <asp:Button ID="BT_SoftEdit" runat="server" Text="修改" CausesValidation="False" OnClick="BT_SoftAdd_Click"
                    CssClass="btn"></asp:Button>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
