Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.AdminUI\Sys\DatabaseBackup\Backup.aspx
??<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Backup.aspx.cs" Inherits="AVA.ResourcesPlatform.AdminUI.Sys.DatabaseBackup.Backup" %> <!doctype html > <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title><%= this.Title %></title> <%= Import.Theme() %> <%= Import.CSS("/zh-cn/bootstrap/css/bootstrap.css") %> <%= Import.CSS("/zh-cn/bootstrap/css/bootstrap-theme.css") %> <%= Import.CSS("/zh-cn/bootstrap/admin.css") %> <%-- <%= Import.CSS("/zh-cn/Admin_StyleSheet.css") %>--%> <%= Import.Script("/jquery.1.9.js")%> <%= Import.Script("/app.js")%> <%= Import.Script("/bootstrap/bootstrap.min.js")%> </head> <body> <div class="wrap"> <% var nav = new NavigationInstance(this) { }; nav.IsTopNav = true; %> <%= nav.ToHtml() %> <div class="container-fulid"> <div class="row"> <% nav.GetChildMenu(Request["muid"]);%> <%= nav.ToHtml() %> <div class="col-md-12 " id="content"> <div id="divMain" class="gContent"> <div class="gCnta"> <div class="gCnta-cont"> <div class="g-title-2"> <div class="ico-loading right hidden"> </div> <div title="<%= DefineEnum.?????????.Define().ToScriptTag() %>" class="ico-question right"> </div> <h3 class="txt-14"> <%= Title %></h3> </div> <div class="ln-thick ln-c-mid"> </div> <div class="gService"> <div class="tip-normal"> <img alt="" src="../../Images/srv.gif" class="pic"> <div class="text"> <ul class="txt-tips"> <li> <%= Define.Get("DatabaseBackup_???????????")%> </li> </ul> </div> </div> </div> <div class="subcontent"> <form id="frmDatabaseBackup" action="" onsubmit="return false;"> <div style="margin-top: -1px;" class="ln-thin ln-c-mid"> </div> <table class="g-table-cntacomm"> <tr> <th> </th> <td> <%= new HtmlSubmit("Send", "Edit", "Backup(this);") { Class = "hidden" }%> <div id="divMessage" onclick="$(this).siblings(':submit')[0].click();" class="btn btn-dft btn-dft-impt"> <span> <%= Define.Get("DatabaseBackup_???????")%></span> </div> <% if (string.IsNullOrEmpty(SettingGroup.DatabaseBackupPath)) { %> <div id="divDownload" title="" onclick="Download();" class="btn btn-dft" style="display: none"> <span> <%= Define.Get("DatabaseBackup_???????????????")%></span> </div> <% } else { %> <div id="divDownload" title="" class="btn btn-dft" style="display: none"> <span> <%= Define.Get("DatabaseBackup_??????")%></span> </div> <% } %> <%= new HtmlHidden("FileName") %> </td> </tr> </table> </form> </div> </div> </div> </div> </div></div></div></div></body> <%= Import.Script("js","/JQueryUI/jquery-ui.min.js")%> <%= Import.Script("js", "/YK_Validate/YK_Validate.js")%> <%= Import.Script("js", "/YK_Validate/YK_ValidateRegex.js")%> <%= Import.CSS("js", "/YK_Validate/validator.css")%> <%= Import.Script("/ToolTip/jquery.tipsy.js")%> <%= Import.Script("/URL/jquery.url.js")%> <%= Import.Script("/JsonCookie/json2.js")%> <%= Import.Script("/JsonCookie/jquery.cookie.js")%> <%= Import.Script("/JsonCookie/jquery.jsoncookie.js")%> <%= Import.Script("/global.aspx")%> <%= Import.Script("js", "/global.js")%> <%= Import.Script("js", "/Ajax/Sys/DatabaseBackupAjax.js")%> <script type="text/javascript"> //?????? </script> <script type="text/javascript"> //??????AJAX??? //??? function Backup(send) { $("#divMessage span").html("<%= Define.Get("DatabaseBackup_????????????????????").ToScriptChar() %>") DatabaseBackupAjax.Backup($("#frmDatabaseBackup"), send, function(json){ //????????? if(json.Data !=null) { if (json.Data.FileSize == "???") { alert("?????????????????????????????????<% if (string.IsNullOrEmpty(SettingGroup.DatabaseBackupPath) == false) { SettingGroup.DatabaseBackupPath.Replace("\\", "\\\\"); } %>" + json.Data.FileName+"?????????"); } $("#divDownload").show(); $("#divMessage").hide(); document.getElementById("frmDatabaseBackup").FileName.value = json.Data.FileName; } }, function (XMLHttpRequest, textStatus, errorThrown) { var message = XMLHttpRequest.responseText || XMLHttpRequest.statusText; alert(message); $("#divMessage span").html("<%= Define.Get("DatabaseBackup_???????").ToScriptChar() %>") }); }; //??? function Download() { var path = "<%= (Request.WebPath() + SettingGroup.DatabaseBackupUploadPath).ToScriptChar() %>"; path += document.getElementById("frmDatabaseBackup").FileName.value; window.location.href = path; } </script> <script type="text/javascript"> //?????? //?????????????? //??????????? //??????????? //??????????? $(".tooltip").tipsy({ fade: true }); </script> <script type="text/javascript"> //?????? </script> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de