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.140.195.142
function calluploadexsheet()
{
$("#page_main_div").load('html_modules/admuploadexsheet.html?v=22092018',function(){
document.getElementById('display_module_name').innerHTML = 'Upload Excel Sheet';
document.getElementById('module_name_for_save').value = 'Upload Excel Sheet';
getDefaultHeadFooterLinks('Upload Excel Sheet');
});
}
function admuploadexeclsheet()
{
var valid_file_extentions = new Array("xlsx","xls");
var ext=$("#admuploadsheet").val();
console.log(ext);
filepath=ext;
/*ext = ext.substring(ext.length-3,ext.length);
ext = ext.toLowerCase();
if(ext != "" && !in_array(ext,valid_file_extentions))
{
alert("Select valid File!");
$("#admuploadsheet").val('');
return false;
}*/
$.blockUI({ message: "<h1 class='h1' style='font-size:12px'><img src='img/ajax-loader.gif' border='0'></h1>" });
var lstr_data="&filepath="+filepath;
$upload = $host_url+"admuploadexeclsheet&"+lstr_data;
document.getElementById("form_module_image_upload").setAttribute("action",$upload);
return AIM.submit(document.getElementById("form_module_image_upload"), 'report_display',{'onComplete' : admuploadexeclsheetResponse});
}
function admuploadexeclsheetResponse($responce)
{
$.unblockUI();
$responce = eval('('+$responce+')');
alert($responce.data);
calluploadexsheet();
}
|