<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ImportWord.aspx.cs" Inherits="TotCms.Web.Admin.ImportWord" ValidateRequest="false" %>
<!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>导入Word文件</title>
    <link href="style/Global.css" rel="stylesheet" type="text/css" />
    <link href="../swfupload/swfupload.css" rel="stylesheet" type="text/css" />
    <script src="../swfupload/swfupload.js" type="text/javascript"></script>
    <script type="text/javascript" src="js/handlers.js"></script>
    <script type="text/javascript">
      var swfu;
      window.onload = function () {
        //swf upload
        swfu = new SWFUpload({
          // Backend Settings
          upload_url: "UploadFace/UploadFiles.aspx",
          post_params: {
            "ASPSESSID": "<%=Session.SessionID %>"
          },

          // File Upload Settings
          file_size_limit: "0",
          file_types: "*.*",
          file_types_description: "files",
          file_upload_limit: "0",    // Zero means unlimited

          // Event Handler Settings - these functions as defined in Handlers.js
          //  The handlers are not part of SWFUpload but are part of my website and control how
          //  my website reacts to the SWFUpload events.
          file_queue_error_handler: fileQueueError,
          file_dialog_complete_handler: fileDialogComplete,
          upload_progress_handler: uploadProgress,
          upload_error_handler: uploadError,
          upload_success_handler: uploadSuccess,
          upload_complete_handler: uploadComplete,

          // Button settings
          button_image_url: "UploadFace/Images/XPButtonUploadText_61x22.png",
          button_placeholder_id: "spanButtonPlaceholder",
          button_width: 61,
          button_height: 22,
          button_text: '<span class="button"></span>',
          button_text_style: '.button { font-family: 宋体; font-size: 14px; } .buttonSmall { font-size: 12px; }',
          button_text_top_padding: 1,
          button_text_left_padding: 5,

          // Flash Settings
          flash_url: "../swfupload/swfupload.swf", // Relative to this file

          custom_settings: {
            upload_target: "divFileProgressContainer",
            upload_returnobjid: "FilePath"
          },

          // Debug Settings
          debug: false
        });
      }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div align="left">
        1、上传WORD文档 <asp:TextBox ID="FilePath" runat="server"></asp:TextBox>
        <span id="spanButtonPlaceholder"></span>
        <asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine" CssClass="hidden"></asp:TextBox>        
        <asp:TextBox ID="TextBox2" runat="server" TextMode="MultiLine" CssClass="hidden"></asp:TextBox>  
        <br />
        <br />
        2、导入WORD文档 <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="确  定" />
        
        <div id="divFileProgressContainer"></div>      
          
        
        <br />  
    </div>
    </form>
</body>
</html>
