<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="uploadone2.aspx.cs" Inherits="Us.Web.admin.document.uploadone2" %>


<!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">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8,chrome=1" />
    <title>文件上传</title>
    <asp:Literal ID="litregscript" runat="server" Text=""></asp:Literal>
    <link href="../style/default/style.css" rel="stylesheet" type="text/css" />
    <%=ImportScriptStr %>
    <script language="javascript"  type="text/javascript">
        function goBack() {
            window.location.reload();
        }
        function GoReutrnNo(sPath) {
            var info = "确实要使用您选中的内容吗？";
            art.dialog.confirm(info, function () {
                //alert("1=" + sPath);
                art.dialog.data("retndata", sPath);
                art.dialog.close();
            });
            return false;
        }
        KindEditor.ready(function (K) {

            var uploadbutton = K.uploadbutton({
                button: K('#btnh5'),
                fieldName: 'imgFile',
                url: '/kindeditor/careffupload.aspx?dir=image&path=' + '&userid=' + "admin",
                afterUpload: function (data) {

                    if (data.error === 0) {
                        //alert(data.url);
                        GoReutrnNo(data.url);
                    } else {
                        alert(data.message);
                    }
                }
            });
            $(".ke-button-common").hide();
            uploadbutton.fileBox.change(function (e) {
                uploadbutton.submit();
            });
        });


    </script>
</head>
<body>
    <form id="form1" runat="server">

        <div id="tbMain">
            <div class="divTbg">
                <div class="divTbgL">
                </div>
                <div class="divTbgInfo">
                    <div class="divTbgTitle">
                        文件上传
                    </div>
                </div>
            </div>
            <div class="divTbgF">
            </div>

            <div id="mypanel">
                <div class="divInfoContext">
                    <div class="divInfo">
                        <div class="divInfoblack">
                            <div class="divInfoTopList">
                                <div class="listLeft">
                                    <div class="navtitle">
                                        单文件上传
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="divInfo">
                        <table width="100%" border="0" cellpadding="0" cellspacing="1" class="tablist" id="mainlist"
                            onmouseover="changeto()" onmouseout="changeback()">
                            <tr class="tablisttr">
                                <td class="tablisttitle">选择文件
                                </td>
                                <td class="tabmanagertr">
                                   <input type="button" name="btnh5" value="单文件上传" id="btnh5"  class="" />
                                </td>
                            </tr>
                            
                            <tr class="tablisttr">
                                <td class="tablisttitle">上传说明</td>
                                <td class="tabmanagertr">
                                    直接选择您要上传的文件即可完成上传；</td>
                            </tr>
                            
                        </table>
                        
                    </div>
                </div>
            </div>
        </div>

    </form>
</body>
</html>
