From 5293695f335d03750542b8b964dfa26ef5bdfd5d Mon Sep 17 00:00:00 2001 From: lq_avenue <704528201@qq.com> Date: Tue, 15 Nov 2016 11:15:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E4=BF=AE=E6=94=B9=E5=A4=B4?= =?UTF-8?q?=E5=83=8F=E5=8A=9F=E8=83=BD=EF=BC=8C=E7=94=A8=E6=88=B7=E8=A1=A8?= =?UTF-8?q?=E4=B8=AD=E5=A2=9E=E5=8A=A0=E4=BA=86=E5=A4=B4=E5=83=8F=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/Bootstrap.Admin.csproj | 12 +- Bootstrap.Admin/Content/js/ajaxfileupload.js | 224 ++++++++++++++++++ .../Controllers/InfosController.cs | 55 +++++ Bootstrap.Admin/Models/HeaderBarModel.cs | 5 + Bootstrap.Admin/Scripts/Infos.js | 46 ++++ Bootstrap.Admin/Views/Admin/Infos.cshtml | 32 +-- Bootstrap.Admin/Views/Shared/Header.cshtml | 9 +- Bootstrap.DataAccess/DictHelper.cs | 10 + Bootstrap.DataAccess/User.cs | 4 + Bootstrap.DataAccess/UserHelper.cs | 31 ++- DatabaseScripts/InitData.sql | 4 +- DatabaseScripts/Install.sql | 1 + 12 files changed, 407 insertions(+), 26 deletions(-) create mode 100644 Bootstrap.Admin/Content/js/ajaxfileupload.js create mode 100644 Bootstrap.Admin/Controllers/InfosController.cs create mode 100644 Bootstrap.Admin/Scripts/Infos.js diff --git a/Bootstrap.Admin/Bootstrap.Admin.csproj b/Bootstrap.Admin/Bootstrap.Admin.csproj index ee9fefc7..54a6be08 100644 --- a/Bootstrap.Admin/Bootstrap.Admin.csproj +++ b/Bootstrap.Admin/Bootstrap.Admin.csproj @@ -132,6 +132,7 @@ + @@ -188,6 +189,7 @@ + @@ -212,7 +214,9 @@ - + + Designer + @@ -230,6 +234,7 @@ + @@ -304,7 +309,10 @@ Web.config - + + + + {af16ca71-b8c6-4f51-b38c-0c0300fdebd7} diff --git a/Bootstrap.Admin/Content/js/ajaxfileupload.js b/Bootstrap.Admin/Content/js/ajaxfileupload.js new file mode 100644 index 00000000..c1ab2de5 --- /dev/null +++ b/Bootstrap.Admin/Content/js/ajaxfileupload.js @@ -0,0 +1,224 @@ +// JavaScript Document +jQuery.extend({ + + createUploadIframe: function (id, uri) { + //create frame + var frameId = 'jUploadFrame' + id; + + if (window.ActiveXObject) { + + //var io = document.createElement('