<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Pagedoc.aspx.cs" Inherits="Portal.Portal.Pagedoc" %>

<!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 src="../Javascript/jquery142.js" type="text/javascript"></script>
    <style>
    .upload input{ margin-top:5px;} 
    </style>
</head>
<body style=" width:800px; margin:0 auto; line-height:25px;">
<br /><br />
    <form id="form1" runat="server">
     
    
    <asp:Panel runat="server" ID="pnl_doc" Visible="false">
    
       系统允许上传的文档类型：<br />
       <asp:Label ID="lbl_allow" runat="server" Text=""></asp:Label> <br />
       系统一次性上传文件总大小为10M，超过10M请单独上传<br />
       
     </asp:Panel>
    
    
    <asp:Panel runat="server" ID="pnl_img" Visible="false">
    
       系统允许上传的图片类型： .jpg.jpeg.gif.bmp.png
       <br />
       系统一次性上传文件总大小为10M，超过10M请单独上传<br />
       
    </asp:Panel>



     <asp:CheckBox ID="CheckBox1" runat="server" Text="转换为电子书(仅支持pdf格式)" 
            oncheckedchanged="CheckBox1_CheckedChanged" AutoPostBack="true" Visible="false" />
     

    <asp:Panel runat="server" ID="pnl1">
     <div class="upload">
     
     <asp:FileUpload ID="f1" runat="server" /><br />
     <asp:FileUpload ID="f2" runat="server" /><br />
     <asp:FileUpload ID="f3" runat="server" /><br />
     <asp:FileUpload ID="f4" runat="server" /><br />
     <asp:FileUpload ID="f5" runat="server" /><br /> 
       </div>     
     
     
       <div>
         <asp:Button ID="Button1" runat="server" Text="上传" style=" padding:5px; " onclick="Button1_Click" />
           <br />
      </div>

      </asp:Panel>
    
    

    <asp:Panel runat="server" id="pnl2">
    
      <asp:FileUpload ID="file_pdf" runat="server" />（上传文件仅支持pdf格式）
   
     
        <br />
   
    <div id="dv1">
    <asp:Button ID="btn_Flip" ClientIDMode="Static" runat="server"  OnClientClick="pro()"  style=" width:300px" onclick="btn_Flip_Click" Text="上传并转换为电子书" />
    </div>
    
    <div id="dv2" style=" display:none">
     <asp:Button ID="Button2" ClientIDMode="Static" runat="server"   Enabled="false"  style=" width:300px" onclick="btn_Flip_Click" Text="转换中，可能需要3-5分钟" />
     </div>
   
   <script>

       function pro() {
           $("#dv1").hide();
           $("#dv2").show();
           
       }
   
   
   </script>
    
</asp:Panel>
    </form>
</body>
</html>
