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.145.105.85
function LoadCollegeDegreeStatus()
{
$geditinternalcode=0;
window.enable_proper_module="CollegeDegreeStatus";
$("#page_main_div").load('html_modules/college_degree_status.html',function()
{
document.getElementById('display_module_name').innerHTML = 'College Degree Status';
document.getElementById('module_name_for_save').value = 'saveCollegeDegreeStatus';
document.getElementById('college_degree_status_div').innerHTML ='';
getDefaultHeadFooterLinks('Collge Degree Status');
$("#error_msg").html(" ");
$("#cds_College_code").focus();
$("#cds_College_code").val('');
$("#cds_College_name").val('');
$("#cds_Degree_code").val('');
$("#cds_Degree_name").val('');
}
);
$('#module_details_div').hide();
}
function getCollegeDegreeStatus()
{
$.ajax({
type: "POST",
async:false,
url: $host_url+"getCollegeDegreeStatus.demo",
data:"FCOLLCODE="+$("#cds_College_code").val()+"&FDEGREE="+$("#cds_Degree_code").val(),
success: enableCollegeDegreeStatusSuccess
});
}
function enableCollegeDegreeStatusSuccess($responce)
{
$responce = eval('(' + $responce + ')');
document.getElementById('college_degree_status_div').innerHTML= $responce.data.html;
$("#college_degree_status_div").show();
$g_college_degree_status=$responce.data.table_data;
$("#cds_exam_type").val($responce.data.FEXAMTYPE);
}
function saveCollegeDegreeStatus()
{
if(trim($("#cds_College_code").val())=='')
{
alert('Please Enter the College Code');
$("#cds_College_code").focus();
return;
}
//$("#cds_exam_type").val($responce.data.FEXAMTYPE);
$id=1;
$g_cds_details_data = new Object();
for($i=0;$i<$g_college_degree_status.length;$i++)
{
$g_cds_details_data[$i]= new Object();
$g_cds_details_data[$i]['cds_degree']=$("#cds_degree_"+$id).html();
$g_cds_details_data[$i]['cds_module']=$("#cds_module_"+$id).html();
if(document.getElementById('is_active_'+$id).checked==true)
$g_cds_details_data[$i]['is_active']='1';
else $g_cds_details_data[$i]['is_active']='0';
$g_cds_details_data[$i]['cds_year']=$("#cds_year_"+$id).val();
if(document.getElementById('cds_reset_'+$id).checked==true)
$g_cds_details_data[$i]['cds_reset']='1';
else
$g_cds_details_data[$i]['cds_reset']='0';
$id++;
}
var myJSONCdsText = encodeURIComponent(JSON.stringify($g_cds_details_data));
$lstr_data_details="cds_details="+myJSONCdsText;
$.ajax({
type: "POST",
//async:false,
url: $host_url+"saveCollegeDegreeStatus.demo",
data:$lstr_data_details+"&coll_code="+$("#cds_College_code").val(),
success:saveCollegeDegreeStatusresponse
});
}
function saveCollegeDegreeStatusresponse($responce)
{
$responce = eval('(' + $responce + ')');
alert($responce.data);
}
function CollegeStatusGetCollegeCode(evt,id,colCode)
{
var kC = (evt.which) ? evt.which : evt.keyCode;
//alert(id);
if(kC==112) //F2 Key code
{
CollegeDetailsPopup(colCode);
}
else
if(kC==13) //Enter Key code
{
globalkeyEvent(id);
}
}
function CollegeStatusGetDegreeCode(evt,id,DegCode)
{
var kC = (evt.which) ? evt.which : evt.keyCode;
//alert(id);
if(kC==112) //F2 Key code
{
degreeDetailsPopup(DegCode);
}
}
|