<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="templateadd.aspx.cs" Inherits="WebApp.Wpdcc.ShareBackup.templateadd" %>

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta charset="utf-8" />
    <title>模板包上传</title>
    <meta name="description" content="overview &amp; stats" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
    <!--#include file = "../assets/head.htm" -->
</head>
<body class="no-skin">
    <form id="form1" runat="server">
        <div>
            <div class="main-content-inner">

                <div class="page-content">
                    <!-- PAGE CONTENT BEGINS -->
                    <div class="page-header">
                        <h1>共享模板包
								<small>
                                    <i class="ace-icon fa fa-angle-double-right"></i>
                                    模板包上传
                                </small>
                        </h1>
                    </div>
                    <div class="row">
                        <div class="col-xs-12">
                            <asp:Panel ID="Panel1" runat="server" CssClass="form-group">
                                <label class="col-sm-3 control-label no-padding-right" for="form-field-1">备份名称：</label>
                                <div class="col-sm-9">
                                    <asp:TextBox ID="uploadName" runat="server" CssClass="col-xs-10 col-sm-4"></asp:TextBox>
                                    &nbsp;
                                    <asp:Button ID="EditButton" runat="server" Text="修改" Visible="false" CssClass="btn btn-sm btn-primary"></asp:Button>
                                </div>
                            </asp:Panel>

                            <asp:Panel ID="Panel2" runat="server" CssClass="form-group">
                                <label class="col-sm-3 control-label no-padding-right" for="form-field-1">上传备份文件：</label>
                                <div class="col-sm-3">
                                    <input id="uploadfile" type="file" runat="server" style="display: inline-block;" class="col-xs-10 col-sm-4">
                                </div>
                                &nbsp;
                                <asp:Button ID="upload" runat="server" Text="开始上传" CssClass="btn btn-sm btn-primary"></asp:Button>
                            </asp:Panel>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>
    <!--#include file = "../assets/foot.htm" -->
    <script type="text/javascript">

        jQuery(function ($) {
            //编辑：打开弹出层
            $(".FBox").click().fancybox({
                autoSize: false,
                'width': 600,
                'height': 450,
                'hideOnOverlayClick': false,
                'type': 'iframe',
                'padding': '0'
            });

            $('#uploadfile').ace_file_input({
                no_file: '没有文件 ...',
                btn_choose: '请选择',
                btn_change: '选好了',
                droppable: false,
                onchange: null,
                thumbnail: false //| true | large
                //whitelist:'gif|png|jpg|jpeg'
                //blacklist:'exe|php'
                //onchange:''
                //
            });


        });
    </script>
</body>
</html>
