<%@ page language="C#" autoeventwireup="true" inherits="admin_down, aoshuosoft" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>

<!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 id="Head1" runat="server">
    <title>下载中心</title>
    <link href="admin.css" rel="stylesheet" type="text/css" />
</head>
<script language="javascript">
function sy()
{
if(document.getElementById("ms").value=="双语模式")
{
document.getElementById("ms").value="简体中文";
tbname.style.display="";
tbkeywords.style.display="";;
tbdescription.style.display="";
tbbanben.style.display="";
tbpingtai.style.display="";
tbdaxiao.style.display="";
tblanguage.style.display="";
tbcontent.style.display="";
}
else
{
document.getElementById("ms").value="双语模式";
tbname.style.display="none";
tbkeywords.style.display="none";;
tbdescription.style.display="none";
tbbanben.style.display="none";
tbpingtai.style.display="none";
tbdaxiao.style.display="none";
tblanguage.style.display="none";
tbcontent.style.display="none";
}
}
function acadd()
{
one.style.display="";
two.style.display="";
ae.style.display="none";
}
</script>
<body>
    <form id="form1" runat="server">
<div>
 <table border='0' width='100%' id='one' style="display:none;" >
      <tr height='150'>
      <td>      
      </td>
      </tr>
      </table>
      <table id='two' style="display:none;" align='center' cellspacing='1' border='0' bgcolor='#CCFF66'><tr bgcolor='#FFFF99'><td>
      <table  class='actionadd' border='0' height='30' bgcolor='#FFFF99' style="width: 365px">
         <tr style='font-size:12px;'><td style="text-align: right">
             <asp:Image ID="Image1" runat="server" ImageUrl="~/image/ac.gif" /></td><td>
             &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; 请稍后，正在保存数据...</td></tr>
         </table></td></tr>
      </table>
       <asp:Panel ID="addedit" runat="server"  Width="100%" Visible="False">      
           <table class="adminmaintable" id="ae" border="0" cellpadding="3" cellspacing="1">
               <tr>
                   <td class="bt" colspan="3" style="text-align: center; height: 35px;">
                       <asp:Label ID="actionbt" runat="server" Text="" Width="185px"></asp:Label></td>
               </tr>
               <tr>
                <td style="width: 87px">
                    模式选择：</td>
                <td>
                    <input id="ms" type="button" value="双语模式" onclick="sy()" /></td>
            </tr>
               <tr>
                   <td style="width: 87px">
                       下载属性：</td>
                   <td colspan="2">
                       <asp:CheckBox ID="hot" runat="server" Text="热门" /><asp:CheckBox ID="commend" runat="server" Text="推荐" /></td>
               </tr>
               <tr>
                   <td style="width: 87px" >
                       所属分类：</td>
                   <td colspan="2">
                       <asp:DropDownList ID="sort" CssClass="downlist" runat="server">
                       </asp:DropDownList>
                       <asp:Literal ID="sortts" runat="server"></asp:Literal></td>
               </tr>
               <tr>
                   <td style="width: 87px" >
                       文件名称：</td>
                   <td colspan="2" >
                       <asp:TextBox ID="name" CssClass="textput" runat="server" Width="392px"></asp:TextBox>
                       </td>
               </tr>
               <tr class="en" id="tbname" style="display:none;">
                   <td style="width: 87px">
                       文件名称：<br />
                       （英文）</td>
                   <td colspan="2">
                       <asp:TextBox ID="enname" runat="server" CssClass="entextput" Width="392px"></asp:TextBox></td>
               </tr>
               <tr>
                   <td style="width: 87px">
                       文件关键词：</td>
                   <td colspan="2">
                       <asp:TextBox ID="keywords" runat="server" CssClass="textput" Height="40px" TextMode="MultiLine"
                           Width="521px"></asp:TextBox></td>
               </tr>
               <tr class="en" id="tbkeywords" style="display:none;">
                   <td style="width: 87px">
                       文件关键词：<br />
                       （英文）</td>
                   <td colspan="2">
                       <asp:TextBox ID="enkeywords" runat="server" CssClass="textput" Height="40px"
                           TextMode="MultiLine" Width="521px"></asp:TextBox></td>
               </tr>
               <tr>
                   <td style="width: 87px">
                       文件描述：</td>
                   <td colspan="2">
                       <asp:TextBox ID="description" runat="server" CssClass="textput" Height="40px" TextMode="MultiLine"
                           Width="521px"></asp:TextBox></td>
               </tr>
               <tr class="en" id="tbdescription" style="display:none;">
                   <td style="width: 87px">
                       文件描述：<br />
                       （英文）</td>
                   <td colspan="2">
                       <asp:TextBox ID="endescription" runat="server" CssClass="entextput" Height="40px" TextMode="MultiLine"
                           Width="521px"></asp:TextBox></td>
               </tr>
               <tr >
                   <td style="width: 87px">
                       文件版本：</td>
                   <td colspan="2">
                       <asp:TextBox ID="banben" runat="server" CssClass="textput" Width="260px"></asp:TextBox></td>
               </tr>
               <tr class="en" id="tbbanben" style="display: none">
                   <td style="width: 87px">
                       文件版本：<br />
                       （英文）</td>
                   <td colspan="2">
                       <asp:TextBox ID="enbanben" runat="server" CssClass="entextput" Width="260px"></asp:TextBox></td>
               </tr>
               <tr >
                   <td style="width: 87px">
                       文件大小：</td>
                   <td colspan="2">
                       <asp:TextBox ID="daxiao" runat="server" CssClass="textput" Width="260px"></asp:TextBox></td>
               </tr>
               <tr class="en" id="tbdaxiao" style="display: none">
                   <td style="width: 87px">
                       文件大小：<br />
                       （英文）</td>
                   <td colspan="2">
                       <asp:TextBox ID="endaxiao" runat="server" CssClass="entextput" Width="260px"></asp:TextBox></td>
               </tr>
               <tr>
                   <td style="width: 87px">
                       文件应用平台：</td>
                   <td colspan="2">
                       <asp:TextBox ID="pingtai" runat="server" CssClass="textput" Width="260px"></asp:TextBox></td>
               </tr>
               <tr class="en" id="tbpingtai" style="display: none">
                   <td style="width: 87px">
                       文件应用平台：<br />
                       （英文）</td>
                   <td colspan="2">
                       <asp:TextBox ID="enpingtai" runat="server" CssClass="entextput" Width="260px"></asp:TextBox></td>
               </tr>
               <tr>
                   <td style="width: 87px">
                       文件语言：</td>
                   <td colspan="2">
                       <asp:TextBox ID="language" runat="server" CssClass="textput" Width="260px"></asp:TextBox></td>
               </tr>
               <tr class="en" id="tblanguage" style="display: none">
                   <td style="width: 87px">
                       文件语言：<br />
                       （英文）</td>
                   <td colspan="2">
                       <asp:TextBox ID="enlanguage" runat="server" CssClass="entextput" Width="260px"></asp:TextBox></td>
               </tr>
               <tr >
                   <td style="width: 87px">
                       上传文件：</td>
                   <td colspan="2">
                       <asp:FileUpload ID="file" runat="server" Width="306px" />只允许上传（rar,zip,exe,rmvb,rm,text）格式</td>
               </tr>
               <tr>
                   <td style="width: 87px">
                       文件简介：</td>
                    <td><fckeditorv2:fckeditor id="content" runat="server"  EnableXHTML="true" EnableSourceXHTML="true" basepath="~/FCKeditor/" height="400px">
                    </FCKeditorV2:FCKeditor>
                    </td>
               </tr>
               <tr class="en" id="tbcontent" style="display:none;">
                   <td style="width: 87px">
                       文件简介：<br />
                       （英文）</td>
                   <td>
                       <fckeditorv2:fckeditor id="encontent" runat="server"  EnableXHTML="true" EnableSourceXHTML="true" basepath="~/FCKeditor/" height="400px">
                       </FCKeditorV2:FCKeditor>
                   </td>
               </tr>
               <tr >
                   <td style="width: 87px">
                       首页图片：</td>
                   <td>
                       <asp:FileUpload ID="filepic" runat="server" Width="356px" />（只能上传.gif,.jpg格式图片）用于在首页的图片文章处显示
                   </td>
               </tr>
                <tr>
                   <td style="width: 76px">
                       静态生成：</td>
                   <td>
                       <asp:CheckBox ID="html" Text="自动生成静态（当系统开启静态生成功能才有效）" runat="server" /></td>
               </tr>
               <tr>
                   <td style="width: 76px">
                       优先级别：</td>
                   <td>
                       <asp:TextBox ID="yxpx" runat="server" Text="0" Width="57px"></asp:TextBox>&nbsp;
                       数字越大排序越靠前（只有在<a href="list.aspx?action=down" target="adminmain">下载参数配置</a>中启用了优先排序才有效）</td>
               </tr>
               <tr>
                   <td style="width: 76px">
                       模板选择：</td>
                   <td>
                       <asp:DropDownList ID="kzmb" runat="server">
                       </asp:DropDownList>
                       <a href="kztemplet.aspx?action=add">点击这里添加扩展模板</a></td>
               </tr>
               <tr>
                   <td colspan="3" style="text-align: center">
                      <asp:Button ID="adddown" runat="server" Text="添 加" Width="80px" OnClick="adddown_Click" OnClientClick="acadd()"/>
                      <asp:Button ID="editdown" runat="server" Text="修 改" Width="80px" OnClick="editdown_Click" OnClientClick="acadd()" />
                      </td>
               </tr>
           </table>
           <asp:Literal ID="javaaction" runat="server"></asp:Literal></asp:Panel>
           <asp:Panel ID="down" runat="server"  Width="100%" Visible="False" >
            <table class="adminhtmltable" border="0" cellpadding="1" cellspacing="1" >
                   <tr>
                       <td style="height: 24px; background-color: #0099FF;color:#FFFFFF;font-weight:bold;">
                           下载分类</td>
                       <td  style="height: 24px;background-color: #0099FF;color:#FFFFFF;font-weight:bold;">
                           下载列表</td>
                   </tr>
                   <tr>
                       <td style="background-color:#ffffff;" valign="top">
                           <asp:TreeView ID="sorttree" runat="server" ShowLines="True">
                           </asp:TreeView>
                       </td>
                       <td style="background-color:#ffffff;" valign="top">
                           <asp:Literal ID="downtable" runat="server"></asp:Literal></td>
                   </tr>
                <tr>
                    <td class="bt" colspan="2" style=" height: 25px;">
                        <asp:Button ID="zk" runat="server" Text="全部展开" OnClick="zk_Click" />
                        <asp:Button ID="ss" runat="server" Text="全部收缩" OnClick="ss_Click" /></td>
                </tr>
               </table>
               </asp:Panel>
        </div>
    </form>
</body>
</html>
