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.117.168.40
<html>
<head>
<title>Untitled</title>
<link rel="stylesheet" type="text/css" href="my.css">
<script>
// used to store resonce from the table
var $g_ref_data_arr='';
$host_url= getCookie('host_url');
var $g_total_exam_details='';
function getExamfeeNames()
{
$degree=trim(document.getElementById('candidate_list_degree_code').value);
$reg_no=trim(document.getElementById('candidate_list_reg_no').value);
$.ajax({
type: "POST",
async:false,
data: "reg_no="+$reg_no+"°ree="+$degree+"&exam_no="+ window.location.g_FeePopUpExamNo,
url: $host_url+"getExamfeeNames.demo",
success: getExamfeeNamesResponse
});
}
function getExamfeeNamesResponse($responce)
{
$responce = eval('(' + $responce + ')');
$("#fee_details_div").html($responce.data.fee_data);
$g_total_exam_details=$responce.data.table_data;
if(eval("window.location.fee_exam_"+$g_total_exam_details[0]['exam_no'])=='' && $g_total_exam_details[0]['stu_data']!=0)
{
eval("window.location.fee_exam_"+$g_total_exam_details[0]['exam_no']+"='"+$g_total_exam_details[0]['stu_data']+"'");
}
AssignAllreadyEnteredValues($g_total_exam_details[0]['exam_no']);
}
function AssignMarkstoGlobalVariable($exam)
{
switch($exam)
{
case 'A':
window.location.fee_exam_A='';
for($j=0;$j<$g_total_exam_details.length;$j++)
{
$fee_code=$g_total_exam_details[$j]['FFEECODE'];
window.location.fee_exam_A+=$fee_code+"_"+$("#fee_A_"+$fee_code+"_amount").val()+"~";
}
AssignExamFeeForEachDiv($exam,window.location.fee_exam_A);
break;
case 'B':
window.location.fee_exam_B='';
for($j=0;$j<$g_total_exam_details.length;$j++)
{
$fee_code=$g_total_exam_details[$j]['FFEECODE'];
window.location.fee_exam_B+=$fee_code+"_"+$("#fee_B_"+$fee_code+"_amount").val()+"~";
}
AssignExamFeeForEachDiv($exam,window.location.fee_exam_B);
break;
case 'C':
window.location.fee_exam_C='';
for($j=0;$j<$g_total_exam_details.length;$j++)
{
$fee_code=$g_total_exam_details[$j]['FFEECODE'];
window.location.fee_exam_C+=$fee_code+"_"+$("#fee_C_"+$fee_code+"_amount").val()+"~";
}
AssignExamFeeForEachDiv($exam,window.location.fee_exam_C);
break;
case 'D':
window.location.fee_exam_D='';
for($j=0;$j<$g_total_exam_details.length;$j++)
{
$fee_code=$g_total_exam_details[$j]['FFEECODE'];
window.location.fee_exam_D+=$fee_code+"_"+$("#fee_D_"+$fee_code+"_amount").val()+"~";
}
AssignExamFeeForEachDiv($exam,window.location.fee_exam_D);
break;
case 'E':
window.location.fee_exam_E='';
for($j=0;$j<$g_total_exam_details.length;$j++)
{
$fee_code=$g_total_exam_details[$j]['FFEECODE'];
window.location.fee_exam_E+=$fee_code+"_"+$("#fee_E_"+$fee_code+"_amount").val()+"~";
}
AssignExamFeeForEachDiv($exam,window.location.fee_exam_E);
break;
case 'F':
window.location.fee_exam_F='';
for($j=0;$j<$g_total_exam_details.length;$j++)
{
$fee_code=$g_total_exam_details[$j]['FFEECODE'];
window.location.fee_exam_F+=$fee_code+"_"+$("#fee_F_"+$fee_code+"_amount").val()+"~";
}
AssignExamFeeForEachDiv($exam,window.location.fee_exam_F);
break;
case 'G':
window.location.fee_exam_G='';
for($j=0;$j<$g_total_exam_details.length;$j++)
{
$fee_code=$g_total_exam_details[$j]['FFEECODE'];
window.location.fee_exam_G+=$fee_code+"_"+$("#fee_G_"+$fee_code+"_amount").val()+"~";
}
AssignExamFeeForEachDiv($exam,window.location.fee_exam_G);
break;
case 'H':
window.location.fee_exam_H='';
for($j=0;$j<$g_total_exam_details.length;$j++)
{
$fee_code=$g_total_exam_details[$j]['FFEECODE'];
window.location.fee_exam_H+=$fee_code+"_"+$("#fee_H_"+$fee_code+"_amount").val()+"~";
}
AssignExamFeeForEachDiv($exam,window.location.fee_exam_H);
break;
case 'I':
window.location.fee_exam_I='';
for($j=0;$j<$g_total_exam_details.length;$j++)
{
$fee_code=$g_total_exam_details[$j]['FFEECODE'];
window.location.fee_exam_I+=$fee_code+"_"+$("#fee_I_"+$fee_code+"_amount").val()+"~";
}
AssignExamFeeForEachDiv($exam,window.location.fee_exam_I);
break;
case 'J':
window.location.fee_exam_J='';
for($j=0;$j<$g_total_exam_details.length;$j++)
{
$fee_code=$g_total_exam_details[$j]['FFEECODE'];
window.location.fee_exam_J+=$fee_code+"_"+$("#fee_J_"+$fee_code+"_amount").val()+"~";
}
AssignExamFeeForEachDiv($exam,window.location.fee_exam_J);
break;
}
removeFeePopUp();
}
function AssignExamFeeForEachDiv($exam,$str)
{
$amount='';
$final_amount='';
$split_tilde='';
$split_tilde=$str.split("~");
for($n=0;$n<$split_tilde.length;$n++)
{
if($split_tilde[$n]!='')
{
$split_amount=$split_tilde[$n].split("_");
$amount+=$split_amount[1]+"+";
}
}
$amount+=0.0;
$final_amount=eval($amount);
$("#candidate_list_exam_"+$exam+"_details_total").val(0);
$("#candidate_list_exam_"+$exam+"_details_total").val(roundNumber($final_amount,2));
showExamNosDiv("candidate_list_exam_"+$exam+"_details");
}
function AssignAllreadyEnteredValues($exam_no)
{
switch($exam_no)
{
case 'A':
$split_tilde=window.location.fee_exam_A.split("~");
if($split_tilde!="")
{
for($n=0;$n<$split_tilde.length;$n++)
{
if($split_tilde[$n]!='')
{
$split_amount=$split_tilde[$n].split("_");
$fee_code=$split_amount[0];
$amount=$split_amount[1];
$("#fee_A_"+$fee_code+"_amount").val($amount);
}
}
}
break;
case 'B':
$split_tilde=window.location.fee_exam_B.split("~");
if($split_tilde!="")
{
for($n=0;$n<$split_tilde.length;$n++)
{
if($split_tilde[$n]!='')
{
$split_amount=$split_tilde[$n].split("_");
$fee_code=$split_amount[0];
$amount=$split_amount[1];
$("#fee_B_"+$fee_code+"_amount").val($amount);
}
}
}
break;
case 'C':
$split_tilde=window.location.fee_exam_C.split("~");
if($split_tilde!="")
{
for($n=0;$n<$split_tilde.length;$n++)
{
if($split_tilde[$n]!='')
{
$split_amount=$split_tilde[$n].split("_");
$fee_code=$split_amount[0];
$amount=$split_amount[1];
$("#fee_C_"+$fee_code+"_amount").val($amount);
}
}
}
case 'D':
$split_tilde=window.location.fee_exam_D.split("~");
if($split_tilde!="")
{
for($n=0;$n<$split_tilde.length;$n++)
{
if($split_tilde[$n]!='')
{
$split_amount=$split_tilde[$n].split("_");
$fee_code=$split_amount[0];
$amount=$split_amount[1];
$("#fee_D_"+$fee_code+"_amount").val($amount);
}
}
}
break;
case 'E':
$split_tilde=window.location.fee_exam_E.split("~");
if($split_tilde!="")
{
for($n=0;$n<$split_tilde.length;$n++)
{
if($split_tilde[$n]!='')
{
$split_amount=$split_tilde[$n].split("_");
$fee_code=$split_amount[0];
$amount=$split_amount[1];
$("#fee_E_"+$fee_code+"_amount").val($amount);
}
}
}
break;
case 'F':
$split_tilde=window.location.fee_exam_F.split("~");
if($split_tilde!="")
{
for($n=0;$n<$split_tilde.length;$n++)
{
if($split_tilde[$n]!='')
{
$split_amount=$split_tilde[$n].split("_");
$fee_code=$split_amount[0];
$amount=$split_amount[1];
$("#fee_F_"+$fee_code+"_amount").val($amount);
}
}
}
break;
case 'G':
$split_tilde=window.location.fee_exam_G.split("~");
if($split_tilde!="")
{
for($n=0;$n<$split_tilde.length;$n++)
{
if($split_tilde[$n]!='')
{
$split_amount=$split_tilde[$n].split("_");
$fee_code=$split_amount[0];
$amount=$split_amount[1];
$("#fee_G_"+$fee_code+"_amount").val($amount);
}
}
}
break;
case 'H':
$split_tilde=window.location.fee_exam_H.split("~");
if($split_tilde!="")
{
for($n=0;$n<$split_tilde.length;$n++)
{
if($split_tilde[$n]!='')
{
$split_amount=$split_tilde[$n].split("_");
$fee_code=$split_amount[0];
$amount=$split_amount[1];
$("#fee_H_"+$fee_code+"_amount").val($amount);
}
}
}
break;
case 'I':
$split_tilde=window.location.fee_exam_I.split("~");
if($split_tilde!="")
{
for($n=0;$n<$split_tilde.length;$n++)
{
if($split_tilde[$n]!='')
{
$split_amount=$split_tilde[$n].split("_");
$fee_code=$split_amount[0];
$amount=$split_amount[1];
$("#fee_I_"+$fee_code+"_amount").val($amount);
}
}
}
break;
case 'J':
$split_tilde=window.location.fee_exam_J.split("~");
if($split_tilde!="")
{
for($n=0;$n<$split_tilde.length;$n++)
{
if($split_tilde[$n]!='')
{
$split_amount=$split_tilde[$n].split("_");
$fee_code=$split_amount[0];
$amount=$split_amount[1];
$("#fee_J_"+$fee_code+"_amount").val($amount);
}
}
}
break;
}
}
function removeFeePopUp()
{
$('#dialog').dialog('close');
}
</script>
<!-- end -->
</head>
<body>
<div style="text-align:center">
<div id="fee_details_div" style='overflow:Auto;'>
</div>
<!-- <input type="button" name="add" value="Add" id="selasdRow" align="left" style="width:80px;" onClick="addElement();" >
--></body>
<script>
getExamfeeNames();
</script>
</html>
|