<%@ page language="C#" autoeventwireup="true" inherits="disk__admin_manager_disk_ResourceFile_disk_ResourceFile_Insert, App_Web_q2xq3iae" %>

<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>

<%@ Register Assembly="Brettle.Web.NeatUpload" Namespace="Brettle.Web.NeatUpload"  TagPrefix="Upload" %>
<!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>资源上传</title>
    <script type="text/javascript" language="javascript" src="<%=ResolveUrl("~/disk/control/easy_ui/jquery.min.js?v=1.7.2")%>"></script>
    <script type="text/javascript" language="javascript" src="<%=ResolveUrl("~/disk/control/easy_ui/jquery.easyui.min.js?v=1.3")%>"></script>
    <script type="text/javascript" language="javascript" src="<%=ResolveUrl("~/disk/control/easy_ui/locale/easyui-lang-zh_CN.js?v=1.0")%>"></script>
    <script type="text/javascript" language="javascript" src="<%=ResolveUrl("~/disk/control/easy_ui/jquery.easyui.validtor.js?v=1.0")%>"></script>
    
    <link rel="stylesheet" type="text/css" href="<%=ResolveUrl("~/disk/control/easy_ui/themes/gray/easyui.css?v=1.0")%>" />
    <link rel="stylesheet" type="text/css" href="<%=ResolveUrl("~/disk/control/easy_ui/themes/icon.css?v=1.0")%>" />
    <link rel="stylesheet" type="text/css" href="<%=ResolveUrl("~/disk/control/css/main.css?v=1.0")%>" />
    <script language="javascript" type="text/javascript">
    $(function(){
        $("#MultiFile_NeatUploadInternalInputFile").next().val('选择文件');
        $("#MultiFile").next().attr("class",'selectFile');
        
        $("body").css("visibility","visible");
    });
    </script>
</head>
<body style="visibility:hidden">
<h3>新增教案 </h3>
    <form id="form1" runat="server">
        <div>
           <fieldset style=" border:1px solid #d3d3d3; padding:10px">
            <legend>所属科目</legend>
                <div>
                    当前学期：<asp:Label ID="labTerm" runat="server" ></asp:Label><br />
                    <asp:TextBox ID="catalog" CssClass="easyui-combotree"  data-options="url:'../disk_Catalog/disk_Catalog_Tree.aspx',required:true"  
                    style="width: 450px" runat="server">
                    

                    
                    </asp:TextBox>
                </div>
            </fieldset> 
            
            <fieldset style=" border:1px solid #d3d3d3; padding:10px">
            <legend>教案名称</legend>
                <asp:TextBox ID="txtName" MaxLength="50" runat="server" Width="448px"></asp:TextBox>
            </fieldset>
            
            <fieldset style=" border:1px solid #d3d3d3; padding:10px">
            <legend>教案资源文件上传，如Word文档(注：相关教案资源请打包压缩成一个文件(rar,zip))</legend>
     
                
            <upload:inputfile id="InputFile" runat="server"></upload:inputfile>
            <br />
            <Upload:ProgressBar ID="ProgressBar" runat="server" Triggers="btnSubmit" Inline="true" Width="500px" Height="25px">
            </Upload:ProgressBar>
            <br />
                
                <span style="color:red">*资源上传中请不要关闭页面（如果有word文档请尽量上传您的word教案,并复制WORD内容到教案内容以便查看）</span>
            </fieldset>
           <script language="javascript" type="text/javascript">
                    function valid(){
                        if($("#form1").form('validate')){
                            ToggleVisibility('ProgressBar','on');
                            return truel
                        }
                        return false;
                    }
            </script>
             <fieldset style=" border:1px solid #d3d3d3; padding:10px">
             <legend>教案内容：(您可以从Word中复制教案内容：注图片与特殊格式无法复制，您可以上传word教案)</legend>
                 <CKEditor:CKEditorControl ID="CKEditorControl"  runat="server" Height="337px" BasePath="~/disk/control/editor/ckeditor/" >
                 
                 </CKEditor:CKEditorControl>
             </fieldset>
             <fieldset style=" border:1px solid #d3d3d3; padding:10px;  text-align:center">
            <asp:Button ID="btnSubmit" runat="server"  Text="保存教案" OnClientClick="return valid()" OnClick="btnSubmit_Click" Width="104px" />
           
            </fieldset>
        </div>
    </form>
</body>
</html>


