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.129.210.35
// $geditinternalcode=1;CallEnableTeacherEntry("Edit");
function CallDownloadMiscFiles(type) {
$("#page_main_div").load(
"../html_modules/download_misc_files.html",
function() {
document.getElementById("display_module_name").innerHTML =
"Download Files";
document.getElementById("module_name_for_save").value = "DownloadFiles";
getDefaultHeadFooterLinks("Download Files");
getfoldername();
}
);
}
function getfoldername() {
var type = document.getElementById("type").value;
var $parameters = "type=" + type;
$.ajax({
type: "POST",
url: $host_url + "getfoldername",
data: $parameters,
success: getfoldernamesuccess
});
}
function getfoldernamesuccess($responce) {
$responce = eval("(" + $responce + ")");
var html = $responce.data;
//$("#mode").remove();
//$('select option').remove('#mode');
$("#mode").html(html);
}
function Downloaddocsfiles() {
var type = document.getElementById("type").value;
var mode = document.getElementById("mode").value;
if (type == "") {
alert("please select type");
document.getElementById("type").focus();
return;
}
if (mode == "") {
alert("please select mode");
document.getElementById("mode").focus();
return;
}
var $parameters = "type=" + type + "&mode=" + mode;
$.ajax({
type: "POST",
url: $host_url + "DownloadMiscFiles",
data: $parameters,
success: DownloadMiscFilesSuccess
});
}
function DownloadMiscFilesSuccess($responce) {
$responce = eval("(" + $responce + ")");
var html = $responce.data;
$("#html_data").remove();
$("#mis_files_div").append("<div id='html_data'>" + html + "</div>");
}
|