Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.139.80.194
Current Path : /var/www/oasis/js_old/ |
| Current File : /var/www/oasis/js_old/backup_restore.js |
function SystemBackUpAndRestore() {
$geditinternalcode = 0;
window.enable_proper_module = "BackUp And Restore";
document.getElementById("module_name_for_save").value =
"saveSystemBackUpAndRestore";
document.getElementById("display_module_name").innerHTML =
"Backup and Restore";
$("#page_main_div").load("../html_modules/backup_restore.html");
getDefaultHeadFooterLinks("Backup and Restore");
}
var thisid;
function showCalendor(thisid) {
$("#backup_date").show();
}
function GetDbBackup() {
$.ajax({
type: "POST",
url: $host_url + "GetDbBackup",
success: function GetDbBackupResponse($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
alert($responce.data);
}
}
});
}
function getZipBackup() {
window.location.href = $host_url + "getZipBackup";
}
function PutDbRestore() {
if (trim(document.getElementById("backup_start_date").value) == "") {
alert("Please enter the Date.");
document.getElementById("backup_start_date").focus();
return;
}
$.ajax({
type: "POST",
url: $host_url + "PutDbRestore&date=" + $("#backup_start_date").val(),
success: function PutDbRestoreResponse($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
alert($responce.data);
}
}
});
}
|