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.141.25.100
function clearresultsheet()
{
$("#page_main_div").load('html_modules/resultsheet.html',function()
{
document.getElementById('display_module_name').innerHTML = 'Result Sheet';
document.getElementById('module_name_for_save').value = 'Result Sheet';
getDefaultHeadFooterLinks("Result Sheet");
getpopup();
});
}
function getpopup()
{
$.ajax({
type: "POST",
url: $host_url+"getDegreeGroup",
success: degreeDropDownMenusSuccess
});
}
function degreeDropDownMenusSuccess($responce)
{
$responce = eval('(' + $responce + ')');
document.getElementById("deggrp").options.length = 0;
var deg =$responce.data['deggrp'];
//console.log(deg);
$op = new Option('--SELECT--', '');
document.getElementById("deggrp").options.add($op);
for($i=0;$i < deg.length;$i++)
{
$op = new Option(deg[$i]['VALUE'], deg[$i]['internal_code']);
//console.log(deg[$i]['value']);
$op.id=deg[$i]['internal_code'];
document.getElementById("deggrp").options.add($op);
//console.log(degree);
}
}
function getDegreeName()
{
var deggrp = $('#deggrp').val();
$.ajax({
type: "POST",
url: $host_url+"getResDegreeName",
data:"°grp="+deggrp,
success: getResDegreeNameSuccess
});
}
function getResDegreeNameSuccess($responce)
{
$responce = eval('(' + $responce + ')');
document.getElementById("degree").options.length = 0;
var deg =$responce.data['degree'];
//console.log(deg);
$op = new Option('--SELECT--', '');
document.getElementById("degree").options.add($op);
for($i=0;$i < deg.length;$i++)
{
$op = new Option(deg[$i]['VALUE'], deg[$i]['internal_code']);
//console.log(deg[$i]['value']);
$op.id=deg[$i]['internal_code'];
document.getElementById("degree").options.add($op);
}
}
function getDegreeExamName()
{
var deggrp = $('#deggrp').val();
var degree = $('#degree').val();
$.ajax({
type: "POST",
url: $host_url+"getDegreeResExamName",
data:"°grp="+deggrp+"°ree="+degree,
success: getDegreeResExamNameSuccess
});
}
function getDegreeResExamNameSuccess($responce)
{
$responce = eval('(' + $responce + ')');
document.getElementById("degexam").options.length = 0;
var deg =$responce.data['degexam'];
//console.log(deg);
$op = new Option('--SELECT--', '');
document.getElementById("degexam").options.add($op);
for($i=0;$i < deg.length;$i++)
{
$op = new Option(deg[$i]['VALUE'], deg[$i]['internal_code']);
//console.log(deg[$i]['value']);
$op.id=deg[$i]['internal_code'];
document.getElementById("degexam").options.add($op);
//console.log(degree);
}
}
function generesultsheet()
{
var deggrp = document.getElementById('deggrp').value;
var degree = document.getElementById('degree').value;
var degexam = document.getElementById('degexam').value;
if(deggrp == '')
{
alert('Please Select Degree Group');
$("#deggrp").focus();
return;
}
if(degree == '')
{
alert('Please Select Degree');
$("#degree").focus();
return;
}
if(degexam == '')
{
alert('Please Select Exam');
$("#degexam").focus();
return;
}
window.location.href = $host_url+"generesultsheet.demo°grp="+deggrp+"°ree="+degree+"°exam="+degexam;
}
|