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 : 18.227.13.119
function CallEnableChangeAdmDegree()
{
$("#page_main_div").load('html_modules/changeAdmDegree.html',function()
{
document.getElementById('display_module_name').innerHTML = 'Change Degree In Basic data received';
document.getElementById('module_name_for_save').value = 'Change Degree';
getDefaultHeadFooterLinks("Change Degree");
loadDegree();
});
}
function loadDegree() {
$.ajax({
type: "POST",
async: false,
url: $host_url + "loaddegree",
success: function($responceCat) {
$responceCat = eval("(" + $responceCat + ")");
if ($responceCat.error_code == 0) {
var optionsAsString = "<option value=''>--Select Degree--</option>";
for (var i = 0; i < $responceCat.data.length; i++) {
optionsAsString +=
"<option value='" +
$responceCat.data[i].internal_code +
"'>" +
$responceCat.data[i].internal_code +
"-" +
$responceCat.data[i].value +
"</option>";
}
$("#efdegree").append(optionsAsString);
$("#nfdegree").append(optionsAsString);
}
},
error: function(data) {
alert(data);
}
});
}
function getolddegree()
{
var oldmobileno = $('#oldmobileno').val();
if($('#oldmobileno').val() == '')
{
return;
}
if(oldmobileno.length < 10)
{
alert("Please Enter Mobile Number Correclty");
setTimeout(function()
{
document.getElementById('oldmobileno').focus();
}, 0);
return;
}
$.blockUI({ message: "<h1 class='h1' style='font-size:12px'><img src='img/ajax-loader.gif' border='0'></h1>"});
var parameters = `&oldmobileno=${$("#oldmobileno").val()}`;
$.ajax({
type: "POST",
data: parameters,
url: $host_url+"getoldmobileno",
success:getolddegreeResponce
});
}
function getolddegreeResponce(responce)
{
responce = eval('(' + responce + ')');
$.unblockUI();
if(responce.error_code == '0')
{
$("#fname").val(responce.data.fname);
$("#femail").val(responce.data.femail);
$("#fmobileno").val(responce.data.fmobileno);
$("#efdegree").val(responce.data.fdegree);
document.getElementById("fmobileno").disabled = false;
document.getElementById("femail").disabled = false;
document.getElementById("fname").disabled = false;
document.getElementById("efdegree").disabled = false;
$("#fmobileno").focus();
return;
}
else if(responce.error_code == '-1')
{
alert(responce.data);
$("#fname").val('');
$("#femail").val('');
$("#efdegree").val('');
$("#oldmobileno").val('');
document.getElementById("fmobileno").disabled = true;
document.getElementById("femail").disabled = true;
document.getElementById("fname").disabled = true;
$("#oldmobileno").focus();
return
}
}
function savestudentdegree()
{
$.blockUI({ message: "<h1 class='h1' style='font-size:12px'><img src='img/ajax-loader.gif' border='0'></h1>" });
var parameters = `&oldmobileno=${$("#oldmobileno").val()}
&fname=${$("#fname").val()}
&femail=${$("#femail").val()}
&nfdegree=${$("#nfdegree").val()}`;
$.ajax({
type: "POST",
data: parameters,
url: $host_url+"savestudentdegree",
success:savestudentdegreeResponce
});
}
function savestudentdegreeResponce(responce)
{
$.unblockUI();
responce = eval('(' + responce + ')');
if(responce.error_code == '0')
{
alert(responce.data);
$("#fname").val('');
$("#femail").val('');
$("#efdegree").val('');
$("#nfdegree").val('');
$("#oldmobileno").val('');
document.getElementById("efdegree").disabled = true;
document.getElementById("femail").disabled = true;
document.getElementById("fname").disabled = true;
$("#oldmobileno").focus();
return
}
else if(responce.error_code == '-1')
{
alert(responce.data);
$("#fname").val('');
$("#femail").val('');
$("#efdegree").val('');
$("#nfdegree").val('');
$("#oldmobileno").val('');
document.getElementById("efdegree").disabled = true;
document.getElementById("femail").disabled = true;
document.getElementById("fname").disabled = true;
$("#oldmobileno").focus();
return
}
}
|