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.118.126.51
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 /
dud /
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
AllkeyEvent_10082018.js
32.5
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.39
KB
-rwxr-xr-x
Message_board.js
5.02
KB
-rwxr-xr-x
SubjectAppearingPopup.js
12.78
KB
-rwxr-xr-x
absententrysubjectwiseQP.js
16.36
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
46.4
KB
-rwxr-xr-x
ack_admentry_application.js
57.73
KB
-rwxr-xr-x
ack_admentry_application_06102...
26.13
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
3.29
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
46.14
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.32
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_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
3.12
KB
-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
convdet.js
5.9
KB
-rwxr-xr-x
convdet_12242019.js
5.78
KB
-rwxr-xr-x
createAdmission.js
4.44
KB
-rwxr-xr-x
cronjob_sendsms.php
2.94
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.8
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
4.38
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
freezeiaprici.js
5.22
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
24.14
KB
-rwxr-xr-x
index_BEFORE_LOGINPOPUP.js
4.88
KB
-rwxr-xr-x
index_old.js
20.17
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
9.7
KB
-rwxr-xr-x
load_js_files.js
637
B
-rwxr-xr-x
load_mannual_js_files.js
37.9
KB
-rwxr-xr-x
load_mannual_js_files_10082018...
29.09
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
17.75
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.42
KB
-rwxr-xr-x
popup_10082018.js
106.93
KB
-rwxr-xr-x
popupold.js
57.4
KB
-rwxr-xr-x
postnotification.js
9.28
KB
-rwxr-xr-x
postnotification_25102019.js
3.32
KB
-rwxr-xr-x
printExamform.js
718
B
-rwxr-xr-x
push_data_to_studentportal.js
771
B
-rwxr-xr-x
receive_rv_rt_application.js
2.66
KB
-rwxr-xr-x
recociliaton.js
1.11
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
6.52
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
sectionwisepermission.js
4.71
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
studentWiseIAMarksPending.js
814
B
-rwxr-xr-x
student_entry.js
87.78
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
11.11
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
21.63
KB
-rwxr-xr-x
teachersOLD.js
13.7
KB
-rwxr-xr-x
teachersnew.js
21.4
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.84
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.93
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 : student_entry24.js
/* * * FOR THE STUDENT ENTRY FORM * PROGRAMED BY NAVEEN * DATE: 13/03/09 * TIME: 1:15 PM * */ $g_se_degree=''; $g_se_exam=''; function returnMonthValue(val) { var month_array = new Array(); month_array['Jan'] = '01'; month_array['Feb'] = '02'; month_array['Mar'] = '03'; month_array['Apr'] = '04'; month_array['May'] = '05'; month_array['Jun'] = '06'; month_array['Jul'] = '07'; month_array['Aug'] = '08'; month_array['Sep'] = '09'; month_array['Oct'] = '10'; month_array['Nov'] = '11'; month_array['Dec'] = '12'; return month_array[val]; } function returnMonthName(val) { var month_array = new Array(); month_array['Jan'] = '01'; month_array['Feb'] = '02'; month_array['Mar'] = '03'; month_array['Apr'] = '04'; month_array['May'] = '05'; month_array['Jun'] = '06'; month_array['Jul'] = '07'; month_array['Aug'] = '08'; month_array['Sep'] = '09'; month_array['Oct'] = '10'; month_array['Nov'] = '11'; month_array['Dec'] = '12'; return month_array[val]; } function dateTab() { /* if(document.getElementById('student_entry_dob').value != '') { if(isValidDate(document.getElementById('student_entry_dob').value)) // in validate.js File { document.getElementById('student_entry_gender').focus(); } else { document.getElementById('student_entry_dob').value = ''; document.getElementById('student_entry_dob').focus(); return false; } } */ } function LoadstudentEntry(type) { $("#page_main_div").load('html_modules/admission_entry.html',function() { $g_student_retain_per_mode=1; $g_remaining_counter_inc = ''; $g_remaining_counter_inc=0; $g_clicked_subject_id=0; $("#student_entry_exam").val("A") ; document.getElementById('display_module_name').innerHTML = 'Student Entry'; document.getElementById('module_name_for_save').value = 'StudentEntry'; document.getElementById('is_add_edit').value = type; getDefaultHeadFooterLinks('Admission Entry'); clearStudentEntry(); $("#student_entry_degree_code").focus(); $("#student_entry_exam").val('A'); $("#error_msg").html(""); $("#print_row").hide(); //getHonoursNames(); DeletedRecords=0; document.getElementById("student_entry_nationality").value = "INDIAN"; if(type=='Add') { getCategoryNames('degree_category'); //getHonoursNames(); $g_se_degree=''; $geditinternalcode=''; } if(type=='Edit') { $(document).ready(function() { EditStudentDetailsForUpdate($geditinternalcode,$g_se_degree); //getCategoryNames('degree_category'); }); } } ); $('#module_details_div').hide(); } function getHonoursNames(degreeCode) { $.ajax({ type: "POST", //async:false, url: $host_url+"getHonoursNames", data:"degree="+encodeURIComponent(degreeCode), success:function($responce) { $responce = eval('(' + $responce + ')'); if($responce.error_code==0) { /*var arr = $responce.data; document.getElementById('degree_honours').options.length=0; jQuery.each(arr, function(k, v) { var op = new Option(v['name'], v['code']); op.id=v['code']; document.getElementById('degree_honours').options.add(op); });*/ document.getElementById('degree_honours').options.length = 0; var $lobj_Option = document.createElement("OPTION"); $lobj_Option.value = ""; $lobj_Option.text = "Select Honours"; document.getElementById('degree_honours').options[0]=($lobj_Option); for($i=0;$i < $responce.data.length;$i++) { $op = new Option($responce.data[$i]['value'], $responce.data[$i]['internal_code']); $op.id=$responce.data[$i]['internal_code'];//specifying the id for options document.getElementById('degree_honours').options.add($op); } } } }); } function GetHonorusCombinationList () { $.ajax({ type: "POST", //async:false, url: $host_url+"getHonoursCombinationNames", data:"honours="+encodeURIComponent(trim($("#degree_honours").val()))+"°ree="+encodeURIComponent(trim($("#student_entry_degree_code").val())), success:function($responce) { $responce = eval('(' + $responce + ')'); if($responce.error_code==0) { document.getElementById('honours_combination').options.length = 0; var $lobj_Option = document.createElement("OPTION"); $lobj_Option.value = ""; $lobj_Option.text = "Select Combination"; document.getElementById('honours_combination').options[0]=($lobj_Option); for($i=0;$i < $responce.data.length;$i++) { $op = new Option($responce.data[$i]['value'], $responce.data[$i]['internal_code']); $op.id=$responce.data[$i]['internal_code'];//specifying the id for options document.getElementById('honours_combination').options.add($op); } } else { document.getElementById('honours_combination').options.length = 0; var $lobj_Option = document.createElement("OPTION"); $lobj_Option.value = ""; $lobj_Option.text = "Select Combination"; document.getElementById('honours_combination').options[0]=($lobj_Option); } } }); } function GetCombinationSubjectList1 () { if( jQuery.trim($("#student_entry_degree_code").val())!='') { $sl_no=''; $sl_no=encodeURIComponent(trim($("#student_entry_slno").val())); $.ajax({ type: "POST", //async:false, url: $host_url+"getCombinationSubject.demo", data:"degree_code="+$("#student_entry_degree_code").val()+"&exam="+$("#student_entry_exam").val()+"&honours="+$("#degree_honours").val()+"&combcode="+$("#honours_combination").val() +"&sl_no="+$sl_no+"&pmode="+$g_student_retain_per_mode+"&sub_degree="+encodeURIComponent(trim($("#student_entry_sub_degree_code").val())), success: function($responce) { $responce = eval('(' + $responce + ')'); $g_subject_appearing=$responce.data; $g_remaining_counter_inc=($responce.data.remaining_count); $("#subject_appearing").show(); $("#subject_appearing").html($responce.data.html); } }); } } function chkStudentEditAdd() { if(document.getElementById('is_add_edit').value =='Add' ) { if(trim($("#student_entry_degree_code").val())!='') { generateAutoIncrementSlNo(); //document.getElementById("add_row").setAttribute("class", "tarkabutton-disabled"); //disableButton(); } } else if(document.getElementById('is_add_edit').value =='Edit' || document.getElementById('is_add_edit').value =='Delete') { // document.getElementById("student_entry_slno").disabled=false; getStudentSlNo(); } /* else if(document.getElementById('is_add_edit').value =='Delete') { document.getElementById("student_entry_slno").disabled=false; getStudentSlNo(); } */ } // thu function assignDefaultName() { if(trim(document.getElementById("student_entry_nationality").value) == '') document.getElementById("student_entry_nationality").value = "INDIAN"; } function copyAddress() { if($("#student_entry_per_add1").val() == '' && $("#student_entry_per_add2").val() == '' ) { $("#student_entry_per_add1").val($("#student_entry_comm_addr1").val()); $("#student_entry_per_add2").val($("#student_entry_comm_addr2").val()); $("#student_entry_per_add3").val($("#student_entry_comm_addr3").val()); $("#student_entry_per_add4").val($("#student_entry_comm_addr4").val()); } } // end thu //--wed naveen function generateAutoIncrementSlNo() { $.ajax({ type: "POST", //async:false, url: $host_url+"generateAutoIncrementSlNo.demo", data:"degree="+encodeURIComponent(trim($("#student_entry_degree_code").val())), success: generateAutoIncrementSlNoResponse }); } function generateAutoIncrementSlNoResponse($responce) // to get value and edit of pertiqular student { $responce = eval('(' + $responce + ')'); if($responce.error_code==0) { $("#student_entry_slno").val($responce.data); } else { alert($responce.data); LoadstudentEntry('Add'); } } // for key press in the degree code field displaying sub appareing table function GetCombinationSubjectList() { if( jQuery.trim($("#student_entry_degree_code").val())!='') { $sl_no=''; $sl_no=encodeURIComponent(trim($("#student_entry_slno").val())); $.ajax({ type: "POST", //async:false, url: $host_url+"getsubjectAppearingTotal.demo", data:"degree_code="+$("#student_entry_degree_code").val()+"&exam="+$("#student_entry_exam").val() +"&sl_no="+$sl_no+"&pmode="+$g_student_retain_per_mode+"&sub_degree="+encodeURIComponent(trim($("#student_entry_sub_degree_code").val())), success: subjectAppearingTotalResponse }); } } function subjectAppearingTotalResponse($responce) { $responce = eval('(' + $responce + ')'); $g_subject_appearing=$responce.data; $g_remaining_counter_inc=($responce.data.remaining_count); $("#subject_appearing").show(); $("#subject_appearing").html($responce.data.html); } // from here to subject popup /* window.location.$g_popup_sub_code=''; function subjectAppearing_PopUp($id) { var url = "../ui/SubjectAppearingPopup.html?height=200&width=400&id="+$id; tb_show("College Details", url); //$subCode = window.location.$g_popup_sub_code=$id; } */ window.location.$g_popup_sub_code_field_id=''; function keyboardsubjectAppearing_PopUp(evt,$id) { var kC = (evt.which) ? evt.which : evt.keyCode; //alert(id); if(kC==112) //F1 Key code { var url = "../ui/SubjectAppearingPopup.html?height=200&width=400&id="+$id; tb_show("College Details", url); //$subCode = window.location.$g_popup_sub_code_field_id=$id; return false; } } // upt to hereselect category function SaveStudentEntry() { if(DeletedRecords==0) { var date_student; if(trim(document.getElementById('student_entry_degree_code').value) == '' ) { alert(' Enter the degree code'); document.getElementById('student_entry_degree_code').focus(); return; } else if(trim(document.getElementById('student_entry_name').value) == '' ) { alert(' Enter the student name'); document.getElementById('student_entry_name').focus(); return; } if(($("#student_entry_dob_date").val() != '1' || $("#student_entry_dob_month").val() != 'Jan') && $("#student_entry_dob_year").val() == '') { alert(' Enter the Year..!'); document.getElementById('student_entry_dob_year').focus(); return; } if($("#student_entry_dob_year").val() == '' || $("#student_entry_dob_year").val() < '1960') { alert(' Enter the valid Year..!'); document.getElementById('student_entry_dob_year').focus(); return; } if($("#student_entry_dob_year").val() != '') { date_student = $("#student_entry_dob_year").val()+'-'+returnMonthValue($("#student_entry_dob_month").val())+'-'+$("#student_entry_dob_date").val(); } else if($("#student_entry_dob_year").val() == '') { date_student = '0000-00-00'; } if(trim(document.getElementById('student_entry_fname').value) == '' ) { alert(' Enter the father\'s name / guardian name'); document.getElementById('student_entry_fname').focus(); return; } /*else if(trim(document.getElementById('student_entry_father_occupation').value) == '' ) { alert(' Enter the father\'s occupation'); document.getElementById('student_entry_father_occupation').focus(); return; }else if(trim(document.getElementById('student_entry_mname').value) == '' ) { alert(' Enter the mother\'s name'); document.getElementById('student_entry_mname').focus(); return; }else if(trim(document.getElementById('student_entry_mather_occupation').value) == '' ) { alert(' Enter the mothers\'s occupation '); document.getElementById('student_entry_mather_occupation').focus(); return; } */ else if(trim(document.getElementById('student_entry_email').value) == '' ) { alert(' Enter the email id'); document.getElementById('student_entry_email').focus(); return; } /* else if(trim(document.getElementById('student_entry_english').value) == '' ) { alert(' Enter the Medium Of Instructions'); document.getElementById('student_entry_english').focus(); return; } else if(trim(document.getElementById('student_entry_religion').value) == '' ) { alert(' enter the Religion'); document.getElementById('student_entry_religion').focus(); return; } */ else if(trim(document.getElementById('student_entry_nationality').value) == '' ) { alert(' Enter the nationality'); document.getElementById('student_entry_nationality').focus(); return; } else if(trim(document.getElementById('degree_category').value) == '' ) { alert('Select the category'); document.getElementById('degree_category').focus(); return; } /* else if(trim(document.getElementById('student_entry_phone_no').value) == '' ) { alert('Enter the contact no'); document.getElementById('student_entry_phone_no').focus(); return; } */ if(trim(document.getElementById('student_entry_mobile_no').value) == '' ) { alert('Enter the mobile no'); document.getElementById('student_entry_mobile_no').focus(); return; } if(trim(document.getElementById('student_entry_comm_addr1').value) == '' ) { alert(' Enter the communication address:'); document.getElementById('student_entry_comm_addr1').focus(); return; } if(trim(document.getElementById('student_entry_per_add1').value) == '' ) { alert(' Enter the permanent address :'); document.getElementById('student_entry_per_add1').focus(); return; } if(trim(document.getElementById('degree_honours').value) == '' ) { alert(' Select Honours'); document.getElementById('degree_honours').focus(); return; } if(trim(document.getElementById('honours_combination').value) == '' ) { alert(' Select Combination'); document.getElementById('honours_combination').focus(); return; } if(trim(document.getElementById('student_entry_lstcls').value) == '' ) { alert(' Select Last Class Attended'); document.getElementById('student_entry_lstcls').focus(); return; } if(trim(document.getElementById('student_entry_board').value) == '' ) { alert(' Select the Board / University'); document.getElementById('student_entry_board').focus(); return; } if(trim(document.getElementById('student_entry_board').value) == 'Others' ) { if(trim(document.getElementById('student_entry_otherBoard').value) =='') { alert(' Enter the Board / University name'); document.getElementById('student_entry_otherBoard').focus(); return; } } if(trim(document.getElementById('student_entry_college').value) == '' ) { alert('Enter the college / school'); document.getElementById('student_entry_college').focus(); return; } if(trim(document.getElementById('student_entry_passyear').value) == '' ) { alert('Enter the pass year'); document.getElementById('student_entry_passyear').focus(); return; } if(trim(document.getElementById('student_entry_percent').value) == '' ) { alert('Enter the total percentage'); document.getElementById('student_entry_percent').focus(); return; } if(document.getElementById('migration_certy').checked == true) { if(trim(document.getElementById('student_entry_docno').value) == '') { alert('Enter certificate no'); document.getElementById('student_entry_docno').focus(); return; } } if(trim(document.getElementById('student_entry_upload').value) == '' && document.getElementById('is_add_edit').value=='Add') { alert(' Upload Student Photo'); document.getElementById('student_entry_upload').focus(); return; } if(trim($("#fee_paid").val()) <= 0 || trim($("#fee_paid").val()) == 'NaN') { alert("Total fee should be more than zero"); return; } $lstr_data="add_edit="+document.getElementById('is_add_edit').value; $lstr_data+="°ree_code="+encodeURIComponent($("#student_entry_degree_code").val()); $lstr_data+="°ree_description="+encodeURIComponent($("#student_entry_degree_name").val()); $lstr_data+="°ree_exam="+encodeURIComponent($("#student_entry_exam").val()); $lstr_data+="°ree_slno="+encodeURIComponent($("#student_entry_slno").val()); $lstr_data+="&student_entry_name="+encodeURIComponent($("#student_entry_name").val()); $lstr_data+="°ree_fname="+encodeURIComponent($("#student_entry_fname").val()); $lstr_data+="°ree_mname="+encodeURIComponent($("#student_entry_mname").val()); $lstr_data+="°ree_dob="+date_student; $lstr_data+="°ree_gender="+encodeURIComponent($("#student_entry_gender").val()); $lstr_data+="°ree_english="+encodeURIComponent($("#student_entry_english").val()); $lstr_data+="°ree_nationality="+encodeURIComponent($("#student_entry_nationality").val()); $lstr_data+="°ree_category="+encodeURIComponent($("#degree_category").val()); $lstr_data+="&student_entry_comm_addr1="+encodeURIComponent($("#student_entry_comm_addr1").val()); $lstr_data+="&student_entry_comm_addr2="+encodeURIComponent($("#student_entry_comm_addr2").val()); $lstr_data+="&student_entry_comm_addr3="+encodeURIComponent($("#student_entry_comm_addr3").val()); $lstr_data+="&student_entry_comm_addr4="+encodeURIComponent($("#student_entry_comm_addr4").val()); $lstr_data+="&student_entry_per_add1="+encodeURIComponent($("#student_entry_per_add1").val()); $lstr_data+="&student_entry_per_add2="+encodeURIComponent($("#student_entry_per_add2").val()); $lstr_data+="&student_entry_per_add3="+encodeURIComponent($("#student_entry_per_add3").val()); $lstr_data+="&student_entry_per_add4="+encodeURIComponent($("#student_entry_per_add4").val()); $lstr_data+="°ree_honours="+encodeURIComponent($("#degree_honours").val()); $lstr_data+="&honours_combination="+encodeURIComponent($("#honours_combination").val()); //Added for Pondicheri Req Starts $lstr_data+="&sub_degree="+encodeURIComponent($("#student_entry_sub_degree_code").val()); $lstr_data+="&rec_order_no="+encodeURIComponent($("#student_entry_recognition_order_no").val()); $lstr_data+="&rec_order_date="+date_format($("#student_entry_recognition_date").val()); $lstr_data+="&aff_order_no="+encodeURIComponent($("#student_entry_affiliation_order_no").val()); $lstr_data+="&aff_order_date="+date_format($("#student_entry_affiliation_date").val()); $lstr_data+="&father_occ="+encodeURIComponent($("#student_entry_father_occupation").val()); $lstr_data+="&mother_occ="+encodeURIComponent($("#student_entry_mather_occupation").val()); $lstr_data+="&email="+encodeURIComponent($("#student_entry_email").val()); $lstr_data+="&contact="+encodeURIComponent($("#student_entry_phone_no").val()); $lstr_data+="&blood_group="+encodeURIComponent($("#student_entry_blood_group").val()); $lstr_data+="&mobile="+encodeURIComponent($("#student_entry_mobile_no").val()); $lstr_data+="&collrsch="+encodeURIComponent($("#student_entry_college").val()); $lstr_data+="&passyear="+encodeURIComponent($("#student_entry_passyear").val()); $lstr_data+="&totalper="+encodeURIComponent($("#student_entry_percent").val()); $lstr_data+="&boardRuniv="+encodeURIComponent($("#student_entry_board").val()); $lstr_data+="&lstclass="+encodeURIComponent($("#student_entry_lstcls").val()); if($("#student_entry_board").val() =='Others') $lstr_data+="&othboardRuniv="+encodeURIComponent($("#student_entry_otherBoard").val()); else $lstr_data+="&othboardRuniv=' '"; if(document.getElementById('migration_certy').checked ==true) $lstr_data+="&mgdocno="+encodeURIComponent($("#student_entry_docno").val()); else $lstr_data+="&mgdocno="+''; var student_entry_reg_fee=parseFloat(empty($("#student_entry_reg_fee").val())?0.0:$("#student_entry_reg_fee").val()); var student_entry_exam_fee=parseFloat(empty($("#student_entry_exam_fee").val())?0.0:$("#student_entry_exam_fee").val()); var student_entry_grade_card_fee=parseFloat(empty($("#student_entry_grade_card_fee").val())?0.0:$("#student_entry_grade_card_fee").val()); var student_entry_total_fee=parseFloat(empty($("#student_entry_total_fee").val())?0.0:$("#student_entry_total_fee").val()); $lstr_data+="&student_entry_reg_fee="+encodeURIComponent($("#student_entry_reg_fee").val()); $lstr_data+="&student_entry_exam_fee="+encodeURIComponent($("#student_entry_exam_fee").val()); $lstr_data+="&student_entry_grade_card_fee="+encodeURIComponent($("#student_entry_grade_card_fee").val()); $lstr_data+="&student_entry_total_fee="+encodeURIComponent($("#student_entry_total_fee").val()); $lstr_data+="&rec_date="+date_format(trim($("#rec_date").val())); $lstr_data+="&rec_no="+encodeURIComponent($("#rec_no").val()); $lstr_data+="&fee_remarks="+encodeURIComponent($("#fee_remarks").val()); $lstr_data+="&fee_paid="+encodeURIComponent($("#fee_paid").val()); /* var lateral_entry=0; if(document.getElementById("is_lateral_entry").checked==true) lateral_entry=1; $lstr_data+="&lateral_entry="+lateral_entry; */ $lstr_data+="&religion="+encodeURIComponent($("#student_entry_religion").val()); $lstr_data+="&unlink_file="+encodeURIComponent($("#student_entry_photo").attr('src')); //end var fee_com = new Object(); var z=0; var obj=$("input[id*='fee_paying_']"); jQuery.each(obj, function(k, v) { fee_com[z]= new Object(); var sl_no=v['id'].split("_")[2]; fee_com[z]['fee_paid']=$("#"+v['id']).val(); fee_com[z]['head_id']=$("#head_"+sl_no).html(); z++; }); var fee_com = encodeURIComponent(JSON.stringify(fee_com)); var valid_file_extentions = new Array("jpeg","jpg",'png','gif'); 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(" Select the Valid Photo!"); return false; } $.blockUI({ message: "<h1 class='h1' style='font-size:12px'><img src='images/ajax-loader.gif' border='0'></h1>" }); $lstr_data+="&filepath="+filepath; $upload = $host_url+"saveStudentEntry.demo&"+$lstr_data+"&fee_com="+fee_com; document.getElementById("form_module_image_upload").setAttribute("action",$upload); return AIM.submit(document.getElementById("form_module_image_upload"), 'report_display',{'onComplete' : saveStudentEntryResponse}); } else { alert(" This record is already deleted..!!"); } } function saveStudentEntryResponse($responce) { $responce = eval('(' + $responce + ')'); $.unblockUI(); if($responce.error_code==0) { alert($responce.data); $("#student_entry_degree_code").focus(); clearStudentEntryAfterSave(); document.getElementById('is_add_edit').value="Add"; } else if($responce.error_code== -9) { alert($responce.data); loadMasters(); } else alert($responce.data); } function getEnterForSubDetails(evt,type,id,icode) { var kC = (evt.which) ? evt.which : evt.keyCode; if(kC == 13) { getSubDetails(id,icode); } } function getStudentSlNo() // for getting student serial number { return; if((document.getElementById('is_add_edit').value=='Edit' || document.getElementById('is_add_edit').value=='Delete') && jQuery.trim($("#student_entry_slno").val())!='') { $.ajax({ type: "POST", //async:false, url: $host_url+"getSlNoStudentDetails.demo", data:"sl_no="+encodeURIComponent(trim($("#student_entry_slno").val()))+"°ree="+encodeURIComponent(trim($("#student_entry_degree_code").val())), success: selectStudentDetailsResponse }); } } function selectStudentDetailsResponse($responce) { $responce = eval('(' + $responce + ')'); if($responce.data['FDELETED'] == 'F') { DeletedRecords = 0; // non deleted record $("#error_msg").html(" "); } else { DeletedRecords = 1; // deleted Record } if($responce.error_code == 0 || $responce.error_code == -1) { //getHonoursNames(); document.getElementById('degree_honours').value = $responce.data['FHONOURS']; $("#error_msg").html(" "); document.getElementById('student_entry_degree_code').value = $responce.data['FDEGREE']; document.getElementById('student_entry_degree_name').value = $responce.data['FDESCPN']; //document.getElementById('student_entry_exam').value = $responce.data['FEXAMNO']; document.getElementById('student_entry_slno').value = $responce.data['FSLNO']; document.getElementById('student_entry_name').value = $responce.data['FNAME']; document.getElementById('student_entry_fname').value = $responce.data['FFATNAME']; document.getElementById('student_entry_mname').value = $responce.data['FMOTNAME']; document.getElementById('student_entry_dob_year').value = $responce.data['FDOB_Year']; document.getElementById('student_entry_dob_month').value = returnMonthName($responce.data['FDOB_month']); document.getElementById('student_entry_dob_date').value = $responce.data['FDOB_date']; document.getElementById('student_entry_gender').value = $responce.data['Fgender']; document.getElementById('student_entry_english').value = $responce.data['FENGLISH']; document.getElementById('student_entry_nationality').value = $responce.data['FNATIONAL']; document.getElementById('student_entry_comm_addr1').value = $responce.data['FCURRADD1']; document.getElementById('student_entry_comm_addr2').value = $responce.data['FCURRADD2']; document.getElementById('student_entry_comm_addr3').value = $responce.data['FCURRADD3']; document.getElementById('student_entry_comm_addr4').value = $responce.data['FCURRADD4']; document.getElementById('student_entry_per_add1').value = $responce.data['FPERMADD1']; document.getElementById('student_entry_per_add2').value = $responce.data['FPERMADD2']; document.getElementById('student_entry_per_add3').value = $responce.data['FPERMADD3']; document.getElementById('student_entry_per_add4').value = $responce.data['FPERMADD4']; document.getElementById('student_entry_sub_degree_code').value= $responce.data['FSUBDEGREE']; document.getElementById('student_entry_sub_degree').value =$responce.data['FSUBDEGREE']; document.getElementById('student_entry_recognition_order_no').value =$responce.data['FREC_ORDER_NO']; document.getElementById('student_entry_recognition_date').value =$responce.data['FREC_ORDER_DATE']; document.getElementById('student_entry_affiliation_order_no').value =$responce.data['FAFF_ORDER_NO']; document.getElementById('student_entry_affiliation_date').value =$responce.data['FAFF_ORDER_DATE']; document.getElementById('student_entry_religion').value =$responce.data['FRELIGION']; document.getElementById('student_entry_father_occupation').value =$responce.data['FFAT_OCC']; document.getElementById('student_entry_mather_occupation').value=$responce.data['FMOT_OCC']; document.getElementById('student_entry_email').value=$responce.data['FEMAIL']; document.getElementById('student_entry_phone_no').value =$responce.data['FCONTACT_NO']; document.getElementById('student_entry_blood_group').value =$responce.data['FBLOOD_GROUP']; document.getElementById('degree_category').value = $responce.data['FCASTE']; document.getElementById('rec_date').value = $responce.data['FRECDATE']; document.getElementById('rec_no').value = $responce.data['FRECNO']; document.getElementById('fee_remarks').value = $responce.data['FREMARKS']; GetHonorusCombinationList(); document.getElementById('honours_combination').value = $responce.data['FCOMBCODE']; /* $("#student_entry_photo").attr("src", $responce.data['FPHOTOPATH']); if($responce.data.FLATERAL_ENTRY==1) { document.getElementById('is_lateral_entry').checked=true; $("#student_entry_exam").val("C") ; } else { document.getElementById('is_lateral_entry').checked=false; $("#student_entry_exam").val("A") ; } */ //getsubjectAppearingTotal($responce.data['FDEGREE']); } else if($responce.error_code == -2) { DeletedRecords = 0; //$("#error_msg").html(" In Valid SL Number "); alert('In Valid SL Number'); $("#student_entry_slno").val(''); document.getElementById('student_entry_slno').focus(); } } function deleteStudentRecord() { var ids=jQuery("#view_student_entry").getGridParam('selarrrow'); var delete_arr = new Object(); if (ids) { for(var p=0;p<ids.length;p++) { var dataset=jQuery("#view_student_entry").getRowData(ids[p]); var degree_code=dataset['grid_degree']; var exam=dataset['grid_exam']; var sl_no=dataset['grid_sl_no']; delete_arr[p]= new Object(); delete_arr[p]['degree_code']=degree_code; delete_arr[p]['exam']=exam; delete_arr[p]['sl_no']=sl_no; } var agree=confirm("Would you like to Delete this Record..!!"); if(agree) { var myJSONText = encodeURIComponent(JSON.stringify(delete_arr)); $.ajax({ type: "POST", //async:false, url: $host_url+"disableRecord.demo", data:"&delete_arr="+myJSONText, success: disableRecordResponse }); } } else { alert(" select row in grid"); return; } } function disableRecordResponse($responce) { $responce = eval('(' + $responce + ')'); if($responce.error_code==0) { alert("Record Deleted Successfully"); $('#view_student_entry').trigger("reloadGrid"); } else if($responce.error_code == -9) { alert("Record cannot be Deleted "); $('#view_student_entry').trigger("reloadGrid"); } } function clearStudentEntry() { document.getElementById('student_entry_degree_code').value = ''; document.getElementById('student_entry_degree_name').value = ''; document.getElementById('student_entry_slno').disabled=true; document.getElementById('student_entry_slno').value = ''; document.getElementById('student_entry_name').value = ''; document.getElementById('student_entry_fname').value = ''; document.getElementById('student_entry_mname').value = ''; document.getElementById('student_entry_dob_year').value = ''; //document.getElementById('student_entry_dob_month').value = ''; document.getElementById('student_entry_dob_date').value = ''; document.getElementById('student_entry_nationality').value =''; document.getElementById('student_entry_comm_addr1').value = ''; document.getElementById('student_entry_comm_addr2').value = ''; document.getElementById('student_entry_comm_addr3').value =''; document.getElementById('student_entry_comm_addr4').value =''; document.getElementById('student_entry_per_add1').value =''; document.getElementById('student_entry_per_add2').value = ''; document.getElementById('student_entry_per_add3').value =''; document.getElementById('student_entry_per_add4').value = ''; document.getElementById('subject_appearing').innerHTML = ''; $("#student_entry_upload").val(""); $("#student_entry_photo").attr("src", "images/default_photo.jpg"); document.getElementById('student_entry_sub_degree_code').value =''; document.getElementById('student_entry_sub_degree').value =''; document.getElementById('student_entry_recognition_order_no').value =''; document.getElementById('student_entry_recognition_date').value =''; document.getElementById('student_entry_affiliation_order_no').value =''; document.getElementById('student_entry_affiliation_date').value =''; document.getElementById('student_entry_religion').value =''; document.getElementById('student_entry_english').value =''; document.getElementById('student_entry_father_occupation').value =''; document.getElementById('student_entry_mather_occupation').value =''; document.getElementById('student_entry_email').value =''; document.getElementById('student_entry_phone_no').value =''; document.getElementById('student_entry_mobile_no').value =''; document.getElementById('student_entry_college').value =''; document.getElementById('student_entry_passyear').value =''; document.getElementById('student_entry_percent').value =''; document.getElementById('student_entry_board').value =''; document.getElementById('student_entry_lstcls').value =''; document.getElementById('student_entry_otherBoard').value =''; document.getElementById('student_entry_docno').value =''; document.getElementById('student_entry_blood_group').value =''; $("#student_entry_reg_fee").val("0.00"); $("#student_entry_exam_fee").val("0.00"); $("#student_entry_grade_card_fee").val("0.00"); $("#student_entry_total_fee").val("0.00"); $("#fee_combination_div").html(''); } function clearStudentEntryAfterSave() { document.getElementById('student_entry_slno').value = ''; document.getElementById('student_entry_slno').disabled=true; document.getElementById('student_entry_name').value = ''; document.getElementById('student_entry_fname').value = ''; document.getElementById('student_entry_mname').value = ''; document.getElementById('student_entry_dob_month').value = 'Jan'; document.getElementById('student_entry_dob_year').value = ' '; document.getElementById('student_entry_dob_date').value = '01'; document.getElementById('student_entry_comm_addr1').value = ''; document.getElementById('student_entry_comm_addr2').value = ''; document.getElementById('student_entry_comm_addr3').value = ''; document.getElementById('student_entry_comm_addr4').value = ''; document.getElementById('student_entry_per_add1').value = ''; document.getElementById('student_entry_per_add2').value = ''; document.getElementById('student_entry_per_add3').value = ''; document.getElementById('student_entry_per_add4').value = ''; $("#student_entry_upload").val(""); $("#student_entry_photo").attr("src", "images/default_photo.jpg"); document.getElementById('student_entry_recognition_order_no').value = ''; document.getElementById('student_entry_recognition_date').value = ''; document.getElementById('student_entry_affiliation_order_no').value = ''; document.getElementById('student_entry_affiliation_date').value = ''; document.getElementById('student_entry_religion').value = ''; document.getElementById('student_entry_father_occupation').value = ''; document.getElementById('student_entry_mather_occupation').value = ''; document.getElementById('student_entry_english').value = ''; document.getElementById('student_entry_email').value = ''; document.getElementById('student_entry_phone_no').value = ''; document.getElementById('student_entry_mobile_no').value = ''; document.getElementById('student_entry_college').value = ''; document.getElementById('student_entry_passyear').value =''; document.getElementById('student_entry_percent').value =''; document.getElementById('student_entry_board').value =''; document.getElementById('student_entry_lstcls').value =''; document.getElementById('student_entry_otherBoard').value =''; document.getElementById('student_entry_docno').value =''; document.getElementById('fee_remarks').value =''; document.getElementById('rec_date').value =''; document.getElementById('rec_no').value =''; document.getElementById('fee_paid').value =''; $("#student_entry_blood_group" ).val(''); $("#degree_honours" ).val(''); document.getElementById('honours_combination').options.length = 0; var $lobj_Option = document.createElement("OPTION"); $lobj_Option.value = ""; $lobj_Option.text = "Select Combination"; document.getElementById('honours_combination').options[0]=($lobj_Option); $("#degree_category" ).val(''); $("#student_entry_reg_fee").val("0.00"); $("#student_entry_exam_fee").val("0.00"); $("#student_entry_grade_card_fee").val("0.00"); $("#student_entry_total_fee").val("0.00"); $("#fee_combination_div").html(''); } function ViewStudentDetails() { $main="<table id='view_student_entry' class='scroll' ondblclick='SelectStudentRowId();'></table> <div id='sub_grid_div' class='scroll' style='text-align:center;'></div>"; document.getElementById('page_main_div').innerHTML=$main; var student_details=jQuery("#view_student_entry").jqGrid( { url:$host_url+'ViewStudentDetails', datatype: "json", colNames:['Sl No','Degree','Exam','Student Count'], colModel:[ {name:'grid_sl_no',index:'grid_sl_no', width:50 }, {name:'grid_degree',index:'grid_degree', width:100 }, {name:'grid_exam',index:'grid_exam', width:100,align:'center' }, {name:'grid_name',index:'grid_name', width:100,align:'center'}], rowNum:20, rowList:[20,30,40,60], imgpath:$img_path, pager: jQuery('#sub_grid_div'), sortname: 'id', height:'250', viewrecords: true, sortorder: "desc", multiselect: true, cellEdit: true, width:'840', caption:"Student Details", }).navGrid('#sub_grid_div',{edit:false,add:false,del:false,search:false},{},{},{},{multipleSearch:true}) .navButtonAdd('#sub_grid_div',{caption:"Toggle", buttonicon :'ui-icon-pin-s', onClickButton:function(){ student_details[0].toggleToolbar() } }). navButtonAdd('#sub_grid_div',{caption:"Edit", onClickButton:function() { SelectStudentRowId(); } }); student_details.filterToolbar(); $("#gs_grid_sl_no").focus(); $('.ui-search-toolbar').bind('keydown',function(evt) { var kC = (evt.which) ? evt.which : evt.keyCode; if(kC==40) jQuery('#degree_grid').editCell(0,0,false); }); } function ViewDegreeWiseStudentDetails(degid) { $main="<table id='view_student_entry' class='scroll' ondblclick='SelectDegreeWiseStudentRowId();'></table> <div id='sub_grid_div' class='scroll' style='text-align:center;'></div>"; document.getElementById('page_main_div').innerHTML=$main; var student_details=jQuery("#view_student_entry").jqGrid( { url:$host_url+'ViewDegreeWiseStudentDetails'+"°id="+degid, datatype: "json", colNames:['Sl No','Degree','Branch','Exam','Name','Created By'], colModel:[ {name:'grid_sl_no',index:'grid_sl_no', width:50 }, {name:'grid_degree',index:'grid_degree', width:100 }, {name:'grid_sub_degree',index:'grid_sub_degree', width:100 }, {name:'grid_exam',index:'grid_exam', width:100 }, {name:'grid_name',index:'grid_name', width:100 }, {name:'created_by',index:'created_by', width:100 }], rowNum:20, rowList:[20,30,40,60], imgpath:$img_path, pager: jQuery('#sub_grid_div'), sortname: 'id', height:'250', viewrecords: true, sortorder: "desc", multiselect: true, cellEdit: true, width:'840', caption:"Student Details", editurl:$host_url+'deleteStudentDetails' }).navGrid('#sub_grid_div',{edit:false,add:false,del:false,search:false},{},{},{},{multipleSearch:true}) .navButtonAdd('#sub_grid_div',{caption:"Toggle", buttonicon :'ui-icon-pin-s', onClickButton:function(){ student_details[0].toggleToolbar() } }). navButtonAdd('#sub_grid_div',{caption:"Delete", buttonicon :'ui-icon-trash', onClickButton:function(){ deleteStudentRecord() } }). navButtonAdd('#sub_grid_div',{caption:"Edit", onClickButton:function() { SelectDegreeWiseStudentRowId(); } }); student_details.filterToolbar(); $("#gs_grid_sl_no").focus(); $('.ui-search-toolbar').bind('keydown',function(evt) { var kC = (evt.which) ? evt.which : evt.keyCode; if(kC==40) jQuery('#degree_grid').editCell(0,0,false); }); } /* function SelectStudentRowId() { var id=jQuery("#view_student_entry").getGridParam('selrow'); if (id) { $(document).ready(function(){ LoadstudentEntry('Edit'); var dataset=jQuery("#view_student_entry").getRowData(id); $g_se_degree=dataset['grid_degree']; $geditinternalcode=id; }); } else { alert(" select row in grid"); return; } } */ function SelectStudentRowId() { var id=jQuery("#view_student_entry").getGridParam('selrow'); if (id) { ViewDegreeWiseStudentDetails(id); } else { alert("Please select row in grid"); return; } } function SelectDegreeWiseStudentRowId() { var id=jQuery("#view_student_entry").getGridParam('selrow'); if (id) { LoadstudentEntry('Edit'); var dataset=jQuery("#view_student_entry").getRowData(id); $g_se_degree=dataset['grid_degree']; $geditinternalcode=id; } else { alert("Please select row in grid"); return; } } function EditStudentDetailsForUpdate(id) { $.ajax({ type: "POST", //async:false, url: $host_url+"getSlNoStudentDetails.demo", data:"sl_no="+id+"°ree="+$g_se_degree, success: EditStudentDetailsForUpdateResponse }); } function EditStudentDetailsForUpdateResponse($responce) { $responce = eval('(' + $responce + ')'); document.getElementById('is_add_edit').value = 'Edit'; if($responce.data['FDELETED'] == 'F') { DeletedRecords = 0; // non deleted record $("#error_msg").html(" "); } else { DeletedRecords = 1; // deleted Record } if($responce.error_code == 0 || $responce.error_code == -1) { $("#error_msg").html(" "); document.getElementById('student_entry_degree_name').value = $responce.data['FDESCPN']; //document.getElementById('student_entry_exam').value = $responce.data['FEXAMNO']; document.getElementById('student_entry_slno').value = $responce.data['FSLNO']; document.getElementById('student_entry_name').value = $responce.data['FNAME']; document.getElementById('student_entry_fname').value = $responce.data['FFATNAME']; document.getElementById('student_entry_mname').value = $responce.data['FMOTNAME']; document.getElementById('student_entry_dob_year').value = $responce.data['FDOB_Year']; document.getElementById('student_entry_dob_month').value = ($responce.data['FDOB_month']); document.getElementById('student_entry_dob_date').value = $responce.data['FDOB_date']; document.getElementById('student_entry_gender').value = $responce.data['Fgender']; document.getElementById('student_entry_english').value = $responce.data['FENGLISH']; document.getElementById('student_entry_nationality').value = $responce.data['FNATIONAL']; document.getElementById('student_entry_comm_addr1').value = $responce.data['FCURRADD1']; document.getElementById('student_entry_comm_addr2').value = $responce.data['FCURRADD2']; document.getElementById('student_entry_comm_addr3').value = $responce.data['FCURRADD3']; document.getElementById('student_entry_comm_addr4').value = $responce.data['FCURRADD4']; document.getElementById('student_entry_per_add1').value = $responce.data['FPERMADD1']; document.getElementById('student_entry_per_add2').value = $responce.data['FPERMADD2']; document.getElementById('student_entry_per_add3').value = $responce.data['FPERMADD3']; document.getElementById('student_entry_per_add4').value = $responce.data['FPERMADD4']; document.getElementById('student_entry_sub_degree_code').value= $responce.data['FSUBDEGREE']; document.getElementById('student_entry_sub_degree').value =$responce.data['FSUBDEGREE']; document.getElementById('student_entry_recognition_order_no').value =$responce.data['FREC_ORDER_NO']; document.getElementById('student_entry_recognition_date').value =$responce.data['FREC_ORDER_DATE']; document.getElementById('student_entry_affiliation_order_no').value =$responce.data['FAFF_ORDER_NO']; document.getElementById('student_entry_affiliation_date').value =$responce.data['FAFF_ORDER_DATE']; document.getElementById('student_entry_religion').value =$responce.data['FRELIGION']; document.getElementById('student_entry_father_occupation').value =$responce.data['FFAT_OCC']; document.getElementById('student_entry_mather_occupation').value=$responce.data['FMOT_OCC']; document.getElementById('student_entry_email').value=$responce.data['FEMAIL']; document.getElementById('student_entry_phone_no').value =$responce.data['FCONTACT_NO']; document.getElementById('student_entry_mobile_no').value =$responce.data['FMOBILE_NO']; document.getElementById('student_entry_college').value =$responce.data['FCOLLRSCH']; document.getElementById('student_entry_passyear').value =$responce.data['FPASSYEAR']; document.getElementById('student_entry_percent').value =$responce.data['FTOTALPERCENT']; document.getElementById('student_entry_board').value =$responce.data['FBOARD_UNIV']; document.getElementById('student_entry_lstcls').value =$responce.data['FLSTCLASS']; if($responce.data['FBOARD_UNIV'] =='Others') { document.getElementById('student_entry_otherBoard').value =$responce.data['FOTHBOARD']; $("#label_othboard").show(); $("#field_othboard").show(); } else { $("#label_othboard").hide(); $("#field_othboard").hide(); document.getElementById('student_entry_otherBoard').value =''; } if($responce.data['FMIGCERTNO']) { document.getElementById('migration_certy').checked = true; document.getElementById('student_entry_docno').value =$responce.data['FMIGCERTNO']; $("#label_docno").show(); $("#field_docno").show(); } else { document.getElementById('migration_certy').checked = false; document.getElementById('student_entry_docno').value =''; $("#label_docno").hide(); $("#field_docno").hide(); } document.getElementById('student_entry_blood_group').value =$responce.data['FBLOOD_GROUP']; document.getElementById('student_entry_degree_code').value = $responce.data['FDEGREE']; document.getElementById('degree_category').value = $responce.data['FCASTE']; $.ajax({ type: "POST", url: $host_url+"getCategoryNames.demo", data:"id="+'degree_category', success:function($responceCat){ $responceCat = eval('(' + $responceCat + ')'); if($responceCat.error_code==0) { var optionsAsString = "<option value=''> Select Category </option>"; for(var i = 0; i < $responceCat.data.length; i++) { if($responceCat.data[i].internal_code == $responce.data['FCASTE']) { optionsAsString += "<option value='" + $responceCat.data[i].internal_code + "' selected>" + $responceCat.data[i].value + "</option>"; } else optionsAsString += "<option value='" + $responceCat.data[i].internal_code + "'>" + $responceCat.data[i].value + "</option>"; } $("#degree_category" ).append( optionsAsString ); } } }); $(document).ready(function(){ $.ajax({ type: "POST", url: $host_url+"getHonoursNames", data:"degree="+encodeURIComponent($responce.data['FDEGREE']), success:function($responceh) { $responceh = eval('(' + $responceh + ')'); if($responceh.error_code==0) { var optionsAsString = "<option value=''> Select Honours</option>"; for(var i = 0; i < $responceh.data.length; i++) { if($responceh.data[i].internal_code == $responce.data['FHONOURS']) { optionsAsString += "<option value='" + $responceh.data[i].internal_code + "' selected>" + $responceh.data[i].value + "</option>"; } else optionsAsString += "<option value='" + $responceh.data[i].internal_code + "'>" + $responceh.data[i].value + "</option>"; } $("#degree_honours" ).append( optionsAsString ); } } }); $.ajax({ type: "POST", //async:false, url: $host_url+"getHonoursCombinationNames", data:"honours="+encodeURIComponent($responce.data['FHONOURS'])+"°ree="+encodeURIComponent($responce.data['FDEGREE']), success:function($responces) { $responces = eval('(' + $responces + ')'); var optionsAsString = "<option value=''> Select Combination</option>"; for(var i = 0; i < $responces.data.length; i++) { if($responces.data[i].internal_code == $responce.data['FCOMBCODE']) { optionsAsString += "<option value='" + $responces.data[i].internal_code + "' selected>" + $responces.data[i].value + "</option>"; } else optionsAsString += "<option value='" + $responces.data[i].internal_code + "'>" + $responces.data[i].value + "</option>"; } $("#honours_combination" ).append( optionsAsString ); } }); }); document.getElementById('honours_combination').value = $responce.data['FCOMBCODE']; $("#rec_no").val($responce.data['FRECNO']); $("#rec_date").val($responce.data['FRECDATE']); $("#fee_remarks").val($responce.data['FREMARKS']); $("#student_entry_photo").attr("src", $responce.data['FPHOTOPATH']); /* if($responce.data.FLATERAL_ENTRY==1) { document.getElementById('is_lateral_entry').checked=true; $("#student_entry_exam").val("C") ; } else { document.getElementById('is_lateral_entry').checked=false; $("#student_entry_exam").val("A") ; } */ //getsubjectAppearingTotal(); var Vmode = 1; GetCombinationFeeList($responce.data['FSLNO'],$responce.data['FEXAMNO'],$responce.data['FDEGREE'],$responce.data['FCASTE'],$responce.data['FCOMBCODE'],Vmode); } else if($responce.error_code == -2) { DeletedRecords = 0; //$("#error_msg").html(" In Valid SL Number "); alert('In Valid SL Number'); $("#student_entry_slno").val(''); document.getElementById('student_entry_slno').focus(); } } function CalculateSETotalFee() { var student_entry_reg_fee=parseFloat(empty($("#student_entry_reg_fee").val())?0.0:$("#student_entry_reg_fee").val()); var student_entry_exam_fee=parseFloat(empty($("#student_entry_exam_fee").val())?0.0:$("#student_entry_exam_fee").val()); var student_entry_grade_card_fee=parseFloat(empty($("#student_entry_grade_card_fee").val())?0.0:$("#student_entry_grade_card_fee").val()); var total_fee=parseFloat(student_entry_reg_fee+student_entry_exam_fee+student_entry_grade_card_fee); $("#student_entry_total_fee").val(total_fee); } function getLateralEntrySubjects() { if(document.getElementById("is_lateral_entry").checked==true) { $("#student_entry_exam").val("C") ; getsubjectAppearingTotal(); } else { $("#student_entry_exam").val("A") ; getsubjectAppearingTotal(); } } function GetCombinationFeeList(slno,exam,degree,category,fcombcode,vmode) { if(vmode == 1) { var lstr_str="&fsl_no="+slno; lstr_str+="&fexamno="+exam; lstr_str+="&fdegree="+degree; lstr_str+="&fcatcode="+category; lstr_str+="&fcombcode="+fcombcode; } else { var fdegree =$("#student_entry_degree_code").val(); if(empty(fdegree)) { alert(" Select degree"); $("#student_entry_degree_code").focus(); return false; } var fcategory =$("#degree_category").val(); if(empty(fcategory)) { alert(" Select category"); $("#honours_combination").val('') $("#degree_category").focus(); return false; } var fhonours =$("#degree_honours").val(); if(empty(fhonours)) { alert(" Select honours"); $("#degree_honours").focus(); return false; } var fexamno ="A"; var fcatcode =$("#degree_category").val(); var fcombcode =$("#honours_combination").val(); var lstr_str="&fdegree="+fdegree; lstr_str+="&fhonours="+fhonours; lstr_str+="&fexamno="+fexamno; lstr_str+="&fcombcode="+fcombcode; lstr_str+="&fcatcode="+fcatcode; lstr_str+="&fsl_no="+$("#student_entry_slno").val(); } $.ajax({ type: "POST", //async:false, url: $host_url+"GetCombinationFeeList", data:lstr_str, success: GetCombinationFeeListResponse }); } function GetCombinationFeeListResponse($responce) { $responce = eval('(' + $responce + ')'); $("#fee_combination_div").html(""); $("#tbl_menu").show(); $("#fee_total_div").show(); $("#fee_combination_div").html($responce.data.html); CalculateTotalFeePaid(); } function CalculateTotalFeePaid() { var obj=$("input[id*='fee_paying_']"); var tot_paid=0; jQuery.each(obj, function(k, v) { tot_paid=tot_paid+parseFloat($("#"+v['id']).val()); }); $("#fee_paid").val(tot_paid); $("#total_fee_paid").html(tot_paid); } function getotherBoardname() { var board = document.getElementById('student_entry_board').value; if(board == 'Others') { $("#label_othboard").show(); $("#field_othboard").show(); } else { $("#label_othboard").hide(); $("#field_othboard").hide(); } } function enterDocNumber() { if(document.getElementById('migration_certy').checked == true) { $("#label_docno").show(); $("#field_docno").show(); } else { $("#label_docno").hide(); $("#field_docno").hide(); } }
Close