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.144.37.178
/*
*
* FOR THE STUDENT ENTRY FORM
* PROGRAMED BY NAVEEN
* DATE: 13/03/09
* TIME: 1:15 PM
*
*/
$g_it_module_count =0;
function LoadIdentifyTransactions()
{
$("#page_main_div").load('html_modules/degree_selection.html',function()
{
document.getElementById('display_module_name').innerHTML = 'Identify Transactions';
document.getElementById('module_name_for_save').value = 'IdentifyTransactions';
clearIdentifyTransactionsField();
getDefaultHeadFooterLinks("Degree Selection");
$g_it_module_count =0;
}
);
$('#module_details_div').hide();
}
function getAllItDegreeCode()
{
$.ajax({
type: "POST",
//async:false,
url: $host_url+"getITModuleData.demo",
data:"degree_range="+encodeURIComponent(trim($("#it_degree_code").val())),
success: getITModuleDataResponse
});
}
function getITModuleDataResponse($responce)
{
$responce = eval('(' + $responce + ')');
//$g_subject_appearing=$responce.data;
if($responce.error_code==-1)
{
alert($responce.data);
}
else
{
$("#it_module").show();
$("#it_module").html($responce.data.html);
$g_it_module_count = $responce.data.total_count;
}
}
function saveIdentifyTransactions()
{
$mod_arr = new Object();
for($m=0; $m<$g_it_module_count; $m++)
{
$td_id = "it_mname_"+$m;
$chk_id = "it_fmodule_"+$m;
$mod_arr[$m]= new Object();
$mod_arr[$m]['name']=trim($("#"+$td_id).html());
if(document.getElementById($chk_id).checked)
{
$mod_arr[$m]['it_fmodule']=1;
}
else
$mod_arr[$m]['it_fmodule']=0;
}
var myJSONText = encodeURIComponent(JSON.stringify($mod_arr));
//console.log($mod_arr);
$.ajax({
type: "POST",
//async:false,
url: $host_url+"saveIdentifyTransactions.demo",
data:"&mod_arr="+myJSONText,
success:saveIdentifyTransactionsResponse
});
}
function saveIdentifyTransactionsResponse($responce)
{
$responce = eval('(' + $responce + ')');
alert($responce.data);
clearIdentifyTransactionsField();
}
function clearIdentifyTransactionsField()
{
$("#it_degree_code").val('');
document.getElementById('it_module').innerHTML = '';
$("#it_degree_code").focus();
}
|