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 | : 3.22.74.192
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 /
oasis /
js /
[ HOME SHELL ]
Name
Size
Permission
Action
Report
[ DIR ]
drwxr-xr-x
base_file
[ DIR ]
drwxr-xr-x
events
[ DIR ]
drwxr-xr-x
popups
[ DIR ]
drwxr-xr-x
.DS_Store
12
KB
-rwxr-xr-x
AbsentEntrySubjectWise.js
15.19
KB
-rwxr-xr-x
AllkeyEvent.js
37.26
KB
-rw-rw-r--
AllkeyEvent_20102021.js
37.24
KB
-rwxr-xr-x
Att_Ent_Teacher_Wise.js
10.99
KB
-rw-rw-r--
Barchart.js
13.12
KB
-rw-rw-r--
CIEAttendanceNotEligible.js
7.23
KB
-rw-rw-r--
CIEpendingList.js
5.97
KB
-rw-rw-r--
Dispatch_answer_script.js
18.53
KB
-rwxr-xr-x
Dispatch_answer_script_qp.js
16.83
KB
-rwxr-xr-x
ECHblk.js
8.11
KB
-rwxr-xr-x
IdentifyTransactions.js
2.18
KB
-rwxr-xr-x
MainPage.js
18.36
KB
-rwxr-xr-x
MainPage_wait.js
15.19
KB
-rwxr-xr-x
Message_board.js
5.09
KB
-rwxr-xr-x
RvRtAcknowledgement.js
6.95
KB
-rw-rw-r--
SelectSubjType.js
11.2
KB
-rw-rw-r--
SubjectType.js
11.27
KB
-rw-rw-r--
UpdateCollDet.js
8.15
KB
-rwxr-xr-x
absentEntryYearModewise.js
10.67
KB
-rw-rw-r--
absentMalpractice.js
3.04
KB
-rw-rw-r--
absententrysubjectwiseQP.js
20.23
KB
-rwxr-xr-x
ack_adm_application.js
57.5
KB
-rwxr-xr-x
ack_admentry_application.js
57.78
KB
-rwxr-xr-x
ack_admentry_application_dud.j...
56.55
KB
-rwxr-xr-x
ack_exam_app_form.js
4.1
KB
-rwxr-xr-x
ack_exam_app_form_bulk.js
2.21
KB
-rwxr-xr-x
ack_rv_rt_application.js
2.59
KB
-rwxr-xr-x
adm_delete_data.js
3.05
KB
-rwxr-xr-x
admchallanpreparation.js
5.97
KB
-rwxr-xr-x
admdownloadexsheet.js
460
B
-rwxr-xr-x
admentry_nitte.js
137.48
KB
-rw-rw-r--
admission_approve.js
23.71
KB
-rwxr-xr-x
admission_approve_kus.js
29.13
KB
-rwxr-xr-x
admission_entry_reg.js
46.19
KB
-rwxr-xr-x
admission_entry_status.js
1.12
KB
-rwxr-xr-x
admissionapplist.js
3.9
KB
-rwxr-xr-x
admstuddate.js
4.22
KB
-rwxr-xr-x
admuploadexsheet.js
1.4
KB
-rwxr-xr-x
affliation_fee.js
24.58
KB
-rwxrwxrwx
attDegwiseReport.js
3.08
KB
-rw-r--r--
attTeachSum.js
4.16
KB
-rw-r--r--
attendance.js
10.68
KB
-rwxr-xr-x
attendanceReportForm.js
5.01
KB
-rw-rw-r--
attendance_freez.js
6.34
KB
-rwxr-xr-x
attendanceentrydaywise.js
26.78
KB
-rw-r--r--
attendenceshort.js
5.52
KB
-rw-rw-r--
attiacombined.js
3.07
KB
-rwxr-xr-x
attreport.js
3.26
KB
-rw-rw-r--
backup.js
7.98
KB
-rwxr-xr-x
backup_restore.js
1.33
KB
-rwxr-xr-x
batchSetup.js
10.76
KB
-rw-rw-r--
batch_setup.js
10.07
KB
-rwxr-xr-x
batchwisetimetable.js
16.77
KB
-rw-rw-r--
bill_details.js
1.02
KB
-rw-rw-r--
bundle_ack.js
1.5
KB
-rwxr-xr-x
bundle_dispatch.js
8.74
KB
-rwxr-xr-x
bundle_rec_ack.js
1.16
KB
-rwxr-xr-x
calendar-en.js
3.52
KB
-rwxr-xr-x
calendar-setup.js
8.83
KB
-rwxr-xr-x
calendar.js
51.74
KB
-rwxr-xr-x
calender.js
639
B
-rwxr-xr-x
candidate_list.js
33.92
KB
-rwxr-xr-x
centerdet.js
1.45
KB
-rw-rw-r--
challan_entries.js
4.08
KB
-rwxr-xr-x
challan_preparation.js
2.86
KB
-rwxr-xr-x
changeAdmDegree.js
4.01
KB
-rwxr-xr-x
changeMobile.js
3.15
KB
-rwxr-xr-x
checkbrowser.js
2.77
KB
-rwxr-xr-x
classtimetablerpt.js
1.91
KB
-rw-r--r--
cntrDeclaration.js
3.66
KB
-rwxr-xr-x
coll_exam_app_form.js
2.11
KB
-rwxr-xr-x
collbankdet.js
2.49
KB
-rwxr-xr-x
colldesp_ack.js
3.58
KB
-rw-rw-r--
college.js
4.64
KB
-rwxr-xr-x
college_approve.js
23.41
KB
-rwxr-xr-x
college_degree_status.js
3.32
KB
-rwxr-xr-x
collegedet.js
1.47
KB
-rwxr-xr-x
collegewisedownload.js
1.26
KB
-rw-rw-r--
collfundtransfer.js
5.16
KB
-rwxr-xr-x
collinfo_popup.js
10.32
KB
-rwxr-xr-x
colltransfer.js
7.87
KB
-rw-rw-r--
convdet.js
5.91
KB
-rwxr-xr-x
convo.js
13.55
KB
-rw-rw-r--
copomarksentryexternal.js
12.23
KB
-rw-r--r--
copomarkslist.js
2.69
KB
-rw-rw-r--
copomaxmarksentry.js
5.29
KB
-rw-r--r--
coporeport.js
2.37
KB
-rw-r--r--
coposurvey.js
4.53
KB
-rw-rw-r--
courserep.js
1.91
KB
-rw-r--r--
createAdmission.js
12.52
KB
-rwxr-xr-x
createClass.js
18.84
KB
-rw-rw-r--
createattclass.js
9.28
KB
-rw-rw-r--
createclass.js
20.93
KB
-rw-r--r--
daterange.js
7.74
KB
-rwxr-xr-x
deggrp.js
7.48
KB
-rw-rw-r--
deggrpwisepiechart.js
9.62
KB
-rw-rw-r--
degree.js
3.1
KB
-rwxr-xr-x
degree_Subject_Report.js
2.9
KB
-rw-rw-r--
degreegrpwisestud.js
1.72
KB
-rw-rw-r--
degreewisestdusn.js
1.25
KB
-rw-rw-r--
degstudymat.js
4.9
KB
-rwxr-xr-x
degstudymatdet.js
3.58
KB
-rwxr-xr-x
degwiseIAreport.js
5.8
KB
-rw-rw-r--
doc_verification.js
2.33
KB
-rwxr-xr-x
downloadStudentPhotos.js
1.13
KB
-rwxr-xr-x
download_misc_files.js
838
B
-rwxr-xr-x
download_misc_files_new.js
1.65
KB
-rwxr-xr-x
editstddet.js
5.83
KB
-rw-rw-r--
elementwisereport.js
5.42
KB
-rw-rw-r--
enableStudReg.js
6.6
KB
-rwxr-xr-x
enableprintapplication_ru.js
46.21
KB
-rw-rw-r--
entryexitevents.js
1.36
KB
-rwxr-xr-x
examAttendanceReport.js
2.38
KB
-rwxr-xr-x
examappfeereport.js
3.02
KB
-rw-rw-r--
export_import.js
1.62
KB
-rwxr-xr-x
export_import_setup.js
5.65
KB
-rwxr-xr-x
feepaidreports.js
2.08
KB
-rwxr-xr-x
feeupdation.js
5.83
KB
-rwxr-xr-x
finalCieMarks.js
2.62
KB
-rw-rw-r--
footer.js
6.73
KB
-rwxr-xr-x
form_submit.js
1.3
KB
-rwxr-xr-x
formatdate.js
13.87
KB
-rwxr-xr-x
freeze_Ad_Cl_Me.js
2.86
KB
-rwxr-xr-x
freeze_module_at_admin_college...
12.8
KB
-rwxr-xr-x
freeze_module_at_admin_college...
6.09
KB
-rwxr-xr-x
freeze_module_at_university_co...
4.85
KB
-rwxr-xr-x
freezeiaprici.js
13.76
KB
-rwxr-xr-x
grid_display.js
939
B
-rwxr-xr-x
gtransapi.js
398.2
KB
-rwxrwxrwx
htblk.js
5.18
KB
-rwxr-xr-x
iaMarksReport.js
6.91
KB
-rw-r--r--
iaMarksReportnew.js
6.99
KB
-rw-r--r--
iaSummaryReport.js
2.51
KB
-rw-r--r--
ia_invigilators_dairy.js
3.3
KB
-rwxr-xr-x
ia_room_allotment_datewise.js
5.99
KB
-rwxr-xr-x
ia_roomwise_regno.js
4.11
KB
-rw-r--r--
ia_subjectwise_invigilator_dai...
4.04
KB
-rwxr-xr-x
iaabsentEntry.js
7.21
KB
-rw-r--r--
iacombined.js
5.79
KB
-rw-r--r--
iamarks.js
2.3
KB
-rw-rw-r--
iaroomallotmantsummary.js
1.08
KB
-rwxr-xr-x
iaroomdeclaration.js
10.39
KB
-rwxr-xr-x
iasectionwise.js
5.6
KB
-rw-r--r--
iatimetable.js
4.07
KB
-rw-r--r--
identifyCoMarks.js
12.01
KB
-rw-rw-r--
identifyCoMarksNew.js
9.38
KB
-rw-rw-r--
import_marks.js
1.41
KB
-rwxr-xr-x
includeCSS.js
1.31
KB
-rwxr-xr-x
index.js
31.67
KB
-rwxr-xr-x
index_wait.js
29.59
KB
-rwxr-xr-x
invig_report.js
2.82
KB
-rw-rw-r--
invigilators_dairy.js
8.63
KB
-rwxr-xr-x
invigilators_dairy_gug.js
5.52
KB
-rwxr-xr-x
invigilators_dairy_new.js
8.91
KB
-rwxr-xr-x
invigilators_dairy_newone.js
10.72
KB
-rw-rw-r--
invigilators_dairy_stph.js
6.9
KB
-rw-rw-r--
jquery.color.js
4.5
KB
-rwxr-xr-x
jquery.js
29.42
KB
-rwxr-xr-x
lateralentry.js
4.92
KB
-rwxr-xr-x
load-report-js-files.js
11.17
KB
-rwxr-xr-x
load_js_files.js
676
B
-rwxr-xr-x
load_mannual_js_files.js
74.4
KB
-rwxr-xr-x
markentry_studentwise.js
9.95
KB
-rwxr-xr-x
markentry_subjectwise.js
18.8
KB
-rwxr-xr-x
markentry_subjectwise_bf_gcg.j...
17.73
KB
-rwxr-xr-x
marksEntryExt.js
4.3
KB
-rw-r--r--
marksentryexternal.js
11.09
KB
-rw-rw-r--
marksentryquestionwise.js
49.92
KB
-rw-rw-r--
marksentrytwo.js
9.43
KB
-rw-r--r--
marksentrytwonew.js
9.9
KB
-rw-r--r--
markslistelement_report.js
6.46
KB
-rwxr-xr-x
message_text.js
2.05
KB
-rwxr-xr-x
mobiscroll.jquery.min.js
429.36
KB
-rw-r--r--
module_setup.js
4.7
KB
-rwxr-xr-x
month_cal.js
74.26
KB
-rwxr-xr-x
oldqnpaper.js
4.27
KB
-rw-rw-r--
openPopUp.js
5.22
KB
-rwxr-xr-x
passwordshow.js
59
B
-rw-rw-r--
pendingcielist.js
3.32
KB
-rw-rw-r--
piecharttesting.js
64
B
-rw-rw-r--
popup.js
123.65
KB
-rw-rw-r--
popup_20102021.js
122.39
KB
-rwxr-xr-x
popupold.js
61.77
KB
-rwxr-xr-x
postnotification.js
10.25
KB
-rwxr-xr-x
practcalDailyReport.js
2.88
KB
-rw-rw-r--
practicalMarks.js
10.96
KB
-rw-rw-r--
prbillreport.js
2.82
KB
-rw-r--r--
principalfreezingsubject.js
7.31
KB
-rw-rw-r--
principleFreeze.js
7.88
KB
-rw-rw-r--
pwschange.js
1.08
KB
-rwxr-xr-x
qnwiseMarksStats.js
8.94
KB
-rw-rw-r--
qnwisemarksentrynew.js
13.59
KB
-rw-rw-r--
qpSummaryReport.js
2.09
KB
-rw-r--r--
qpissue.js
1.55
KB
-rwxr-xr-x
receive_rv_rt_application.js
2.87
KB
-rwxr-xr-x
receive_teach_transfer.js
5.08
KB
-rw-rw-r--
remove_exam_ack.js
1.07
KB
-rwxr-xr-x
remunerationEntry.js
14.77
KB
-rw-rw-r--
repeateriamarksentry.js
6.82
KB
-rw-rw-r--
report_Admission_Ticket_Jsstu....
5.11
KB
-rwxr-xr-x
report_SubjectListGeneral.js
3.49
KB
-rwxr-xr-x
report_admission_list_vku.js
2.82
KB
-rwxrwxrwx
report_exam_application_form.j...
2.78
KB
-rwxr-xr-x
report_reg_list_gcg.js
2.48
KB
-rw-rw-r--
report_setup.js
13.38
KB
-rwxr-xr-x
resetPasseordValidate.js
2.58
KB
-rw-rw-r--
resultsheet.js
15.67
KB
-rwxr-xr-x
revaluation.js
8.27
KB
-rwxr-xr-x
revaluation_withdegree.js
8.24
KB
-rwxr-xr-x
rommcreationnew.js
6.44
KB
-rw-rw-r--
room_allotment.js
3.97
KB
-rwxr-xr-x
room_allotment_datewise.js
8.63
KB
-rwxr-xr-x
room_allotment_datewise_stph.j...
8.05
KB
-rwxr-xr-x
room_allotment_datewise_stph_n...
6.08
KB
-rwxr-xr-x
room_allotment_shifiting.js
3.38
KB
-rw-r--r--
roomallotmantsummary.js
3.2
KB
-rwxr-xr-x
roomallotmantsummary_new.js
3.67
KB
-rwxr-xr-x
roomallotmentqpwise.js
21.32
KB
-rw-rw-r--
roomallotmentqpwisenew.js
22.03
KB
-rw-rw-r--
roomdeclaration.js
6.54
KB
-rwxr-xr-x
roomdeclaration_stph.js
11.6
KB
-rwxr-xr-x
roomwise_regno.js
6.22
KB
-rw-rw-r--
roomwiseinvigilatorsEntry.js
15.28
KB
-rw-rw-r--
rv_rt_guide_lines.js
466
B
-rwxr-xr-x
rv_rt_report.js
5.67
KB
-rwxrwxrwx
rvdates.js
8.94
KB
-rw-rw-r--
savesemster.js
5.13
KB
-rw-rw-r--
sectionwisepermission.js
4.98
KB
-rwxr-xr-x
semwiseresultanalysis.js
8.68
KB
-rw-rw-r--
shortLists.js
6.53
KB
-rw-rw-r--
std_register_det.js
9.56
KB
-rw-rw-r--
studSubIdent.js
5.34
KB
-rw-r--r--
stud_wise_report.js
4.4
KB
-rw-rw-r--
studdet.js
2.84
KB
-rw-rw-r--
student_entry.js
54.15
KB
-rwxr-xr-x
student_entry_kswu.js
50.1
KB
-rwxr-xr-x
student_entry_rur.js
121.59
KB
-rw-rw-r--
student_entry_rur_new.js
119.52
KB
-rw-rw-r--
student_entry_vku.js
116.63
KB
-rwxr-xr-x
studentphotolist.js
1.75
KB
-rw-rw-r--
studentreport.js
2.29
KB
-rw-rw-r--
studentres.js
770
B
-rw-r--r--
studnamecorr.js
8.13
KB
-rw-rw-r--
subIAMarksEntry.js
8.08
KB
-rw-rw-r--
subblock.js
4.97
KB
-rwxr-xr-x
subdet.js
20.4
KB
-rw-rw-r--
subdetails.js
30.32
KB
-rw-rw-r--
subjReg.js
6.08
KB
-rw-r--r--
subjectAppearing_PopUp.js
2.06
KB
-rwxr-xr-x
subject_freshExam.js
12.67
KB
-rwxr-xr-x
subjectfreez.js
12.3
KB
-rwxr-xr-x
subjectwisePiechart.js
10.97
KB
-rw-rw-r--
subjectwise_freezing_sectionwi...
7.97
KB
-rwxr-xr-x
subjectwise_invigilator_dairy....
4.29
KB
-rwxr-xr-x
subjectwise_invigilator_dairy_...
2.79
KB
-rwxr-xr-x
subshort.js
6.34
KB
-rw-rw-r--
system.js
12.41
KB
-rwxr-xr-x
system_utility.js
8.74
KB
-rwxr-xr-x
tatkal.js
1.23
KB
-rw-rw-r--
teachFreeze.js
8.78
KB
-rw-r--r--
teachOficerEntry.js
7.25
KB
-rwxr-xr-x
teacher_val_report.js
656
B
-rwxr-xr-x
teachers.js
34.27
KB
-rwxr-xr-x
teachersreport.js
1.25
KB
-rwxr-xr-x
testwiseMarksReport.js
4.08
KB
-rw-rw-r--
theorymarksentry.js
7.32
KB
-rw-rw-r--
thvalmarks.js
2.63
KB
-rw-r--r--
time_table_degreewise.js
3.65
KB
-rwxrwxrwx
topsheet.js
1.1
KB
-rwxr-xr-x
transaction-series.js
6.92
KB
-rwxr-xr-x
updateSection.js
7.09
KB
-rwxr-xr-x
updatecopo.js
22.77
KB
-rw-r--r--
updatedegreegroup.js
7.09
KB
-rw-rw-r--
updatefreshexam.js
1.52
KB
-rw-rw-r--
updatesspdetails.js
14.81
KB
-rw-rw-r--
updatetimetable.js
17.27
KB
-rw-r--r--
updateuvcms.js
6.2
KB
-rw-rw-r--
updmarks.js
837
B
-rwxr-xr-x
updnemp.js
827
B
-rwxr-xr-x
uploadStudentPhotos.js
5.15
KB
-rwxr-xr-x
upload_details.js
4.15
KB
-rwxr-xr-x
upload_doc_demo.js
2.03
KB
-rw-rw-r--
uploadcopo.js
3.16
KB
-rw-r--r--
uploadteachattend.js
8.56
KB
-rw-r--r--
userpasswordreset.js
6.5
KB
-rw-rw-r--
usersetup.js
37.94
KB
-rwxr-xr-x
usersetupNew.js
3.93
KB
-rwxr-xr-x
usersubj_identification.js
4.83
KB
-rwxr-xr-x
validate.js
9.84
KB
-rwxr-xr-x
viewNotifications.js
5.95
KB
-rw-rw-r--
view_ledger.js
7.89
KB
-rwxrwxrwx
yearmode.js
6.55
KB
-rw-rw-r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ack_adm_application.js
var gdegree = ""; var gappfrom = ""; var gappto = ""; var gstatus = ""; var gentrytype = ""; /* chnged address field updation */ function CallEnableAdmApplication() { $("#page_main_div").load( "../html_modules/ack_adm_application.html?v=22092018", function () { document.getElementById("display_module_name").innerHTML = "Acknowledge Admission Applications"; document.getElementById("module_name_for_save").value = "Acknowledge Admission Applications"; getDefaultHeadFooterLinks("Acknowledge Admission Challan"); // $(".ui-tabs .ui-tabs-panel").css("padding", "0px"); // $(".ui-tabs .ui-tabs-panel").css("padding-top", "21px"); loadAdmDegree(); } ); } function calleditapplication() { $("#page_main_div").load( "../html_modules/adm_edit_application.html", function () { document.getElementById("display_module_name").innerHTML = "Edit Application"; document.getElementById("module_name_for_save").value = "Edit Application"; getDefaultHeadFooterLinks("Edit Application"); loadAdmDegree(); } ); } function DisplayAdmentryApplication(type) { var adm_degree = $("#adm_degree").val(); if (empty(adm_degree)) { alert("Please Select Degree"); $("#adm_degree").focus(); return false; } gdegree = adm_degree; gentrytype = type; $.blockUI({ message: "<h1 class='h1' style='font-size:12px'><img src='img/ajax-loader.gif' border='0'></h1>", }); var parameters = `°ree=${$("#adm_degree").val()}+&type=+${type}`; $.ajax({ type: "POST", data: parameters, url: $host_url + "DisplayAdmentryApplication", success: DisplayAdmentryApplicationResponce, }); } function DisplayAdmentryApplicationResponce(responce) { responce = eval("(" + responce + ")"); $.unblockUI(); $("#adm_applications").html(""); $("#adm_applications").html(responce.data["html"]); } function loadAdmDegree() { $.ajax({ type: "POST", async: false, url: $host_url + "loaddegree", success: loaddegreeResponseAdm, }); } function loaddegreeResponseAdm($responceCat) { $responceCat = eval("(" + $responceCat + ")"); if ($responceCat.error_code == 0) { var optionsAsString = "<option value=''>--Select Degree--</option>"; for (var i = 0; i < $responceCat.data.length; i++) { optionsAsString += "<option value='" + $responceCat.data[i].internal_code + "'>" + $responceCat.data[i].internal_code + "-" + $responceCat.data[i].value + "</option>"; } $("#adm_degree").append(optionsAsString); } } function DisplayAdmApplication() { var adm_degree = $("#adm_degree").val(); var appfrom = $("#appfrom").val(); var appto = $("#appto").val(); var status = $("#status").val(); if (empty(adm_degree)) { alert("Please Select Degree"); $("#adm_degree").focus(); return false; } if (appfrom == "") { alert("Please Enter Application no. from"); $("#appfrom").focus(); return false; } if (appto == "") { alert("Please Enter Application no. to"); $("#appto").focus(); return false; } gdegree = adm_degree; gappfrom = appfrom; gappto = appto; gstatus = status; $.blockUI({ message: "<h1 class='h1' style='font-size:12px'><img src='img/ajax-loader.gif' border='0'></h1>", }); var parameters = `°ree=${$("#adm_degree").val()} &app_from=${$("#appfrom").val()} &app_to=${$("#appto").val()} &status=${$("#status").val()}`; $.ajax({ type: "POST", data: parameters, url: $host_url + "DisplayAdmApplication", success: DisplayAdmApplicationResponce, }); } function DisplayAdmApplicationResponce(responce) { responce = eval("(" + responce + ")"); $.unblockUI(); $("#adm_applications").html(""); $("#adm_applications").html(responce.data["html"]); } function EditStudentDetails(id, degree, type) { gentrytype = type; let url = ""; let pageurl = ""; if (db == "jssun") { url = "getappnostudentdetailsjssun.demo"; pageurl = EditStudentDetailsResponseJssun; } else { url = "getappnostudentdetails.demo"; pageurl = EditStudentDetailsResponse; } $.ajax({ type: "POST", async: true, url: $host_url + url, data: "app_no=" + id + "°ree=" + degree + "&type=" + type, success: pageurl, }); } function EditStudentDetailsResponse($responce) { $responce = eval("(" + $responce + ")"); document.getElementById("is_add_edit").value = "Edit"; console.log($responce); if ($responce.error_code == 0 || $responce.error_code == -1) { $("#page_main_div").load( "../html_modules/ack_adm_entry.html?v=22092018", function () { if (gentrytype == "EA") { document.getElementById("backButton").removeAttribute("onclick"); document .getElementById("backButton") .setAttribute("onclick", "calleditapplication()"); } var option = '<option value="">--Select--</option>'; var d = new Date(); var year = d.getFullYear(); for (var j = year; j > 1980; j--) { option += "<option value='" + j + "'>" + j + "</option>"; } $("#fyear").append(option); $("#receno").val($responce.data.perdetl["ffeenumber"]); $("#recedate").val($responce.data.perdetl["ffeedate"]); var serv_arr = $responce.data["mascomb"]; var serv_title = ""; FillDropdownValues(serv_arr, "combination", serv_title); var serv_arr = $responce.data["category"]; var serv_title = ""; FillDropdownValues(serv_arr, "degree_category", serv_title); var serv_arr = $responce.data["degree"]; var serv_title = ""; FillDropdownValues(serv_arr, "student_entry_degree_code", serv_title); $("#qalsemdet").hide(); if ($responce.data.deggrp == "PG" || $responce.data.deggrp == "PD") $("#qalsemdet").show(); /*var serv_arr = $responce.data['boards']; var serv_title = ''; FillDropdownValues(serv_arr,'seUniversityName',serv_title);*/ var gender = $responce.data.perdetl["student_entry_gender"]; var LT = $responce.data.perdetl["LT"]; $("#LT").val(LT); if (LT == "T") { $("#student_entry_exam").val("C"); } if (gender != "") { var $radios = $("input:radio[name=student_entry_gender]"); $radios.filter("[value=" + gender + "]").attr("checked", true); } $("#perdetl input[type=text],#perdet select").each(function (l) { $(this).val($responce.data.perdetl[$(this).attr("id")]); }); $("#univdetl input[type=text],#univdetl select").each(function (l) { $(this).val($responce.data.perdetl[$(this).attr("id")]); }); $("#subject_appearing").show(); $("#subject_appearing").html($responce.data.html); $("#student_entry_degree_code").val( $responce.data.perdetl["student_entry_degree_code"] ); $("#combination").val($responce.data.perdetl["combination"]); // document.getElementById('combination').disabled = true; // document.getElementById("combination").disabled = true; $("#degree_category").val($responce.data.perdetl["degree_category"]); $("#student_entry_photo").attr( "src", $responce.data.perdetl["student_entry_photo"] ); $("#student_signature_photo").attr( "src", $responce.data.perdetl["student_signature_photo"] ); $("#student_entry_blood_grp").val( $responce.data.perdetl["student_entry_blood_grp"] ); $("#farea").val($responce.data.perdetl["farea"]); $("#student_entry_religion").val( $responce.data.perdetl["student_entry_religion"] ); $("#seUniversityName").val($responce.data.perdetl["seUniversityName"]); $("#fadmquota").val($responce.data.perdetl["fadmquota"]); $("#fstudtype").val($responce.data.perdetl["fstudtype"]); let uploadtable = `<style type = "text/css"> .table-upd tbody tr td { padding : 2px; vertical-align:middle; text-align: left; } .table-upd tbody upd-file { display: inline !important; } .table-upd tbody input[type="file"] { display: inline; } .table-upd tbody button { padding : 7px; margin: 15px; } .table-upd thead tr td { text-align: center; } </style> <table class='table table-bordered table-striped table-upd' id = "uploaddet"> <thead> <tr class='ui-state-default ui-jqgrid-hdiv'> <td style='padding:2px; width:30px; border-left:1px solid #C5DBEC; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;' >Sl. No. </td> <td style='padding:2px; width:265px; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;' >Description</td> <td style='padding:2px; width:190px; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;'> Upload</td> <td style='padding:2px; width:65px; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;'> File</td> <td style='padding:2px; width:65px; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;'> Remove File</td> </tr> </thead> <tbody>`; var masdoc = $responce.data.masdoc; // console.log(masdoc); let z = 1; var alist = ""; $.each(masdoc, function (key, value) { alist = ""; if (value.file_path != "") { alist = `<a href = "${value.file_path}" target = '_blank'>${value.FFILENAME}</a>`; } uploadtable += `<tr class='ui-widget-content jqgrow'> <td class='tbl_row_new' align='center' style='border-left:1px solid #C5DBEC; border-right:1px solid #C5DBEC; padding:2px;'> ${z}</td> <td class='tbl_row_new' align='center' style='border-right:1px solid #C5DBEC; padding:2px;' id = "doc_upload_${value.int_code}">${value.doc_type}</td> <td class='tbl_row_new' align='center' style='border-right:1px solid #C5DBEC; padding:2px;' > <input type="file" name="${value.FFILENAME}" id="${value.FFILENAME}" class = "upd-file" style="width:100px;padding:5px 0px;" /> <input type = "hidden" id = "h_${value.FFILENAME}"> <span class="raval_submit" style="margin-top: 2px;width:50px; float:right;margin-left:0px;cursor: pointer;color:#545345; line-height: 25px;font-size:12px;font-weight:bold;" onclick= 'DisplayUserSelectedfile("${value.FFILENAME}")'>Upload</span> </td> <td class='tbl_row_new' style='border-right:1px solid #C5DBEC; padding:2px;' id="attach_td_${value.FFILENAME}">${alist}</td> <td class='tbl_row_new' align='center' style='border-right:1px solid #C5DBEC; padding:2px;' > <span class="raval_submit" style="margin-top: 2px;width:50px; float:right;margin-left:0px;cursor: pointer;color:#545345; line-height: 25px;font-size:12px;font-weight:bold;" onclick= 'removedocument("${value.FFILENAME}")'>Remove</span> </td> </tr>`; z++; }); $("#upddet").html(uploadtable); $("#fee_combination_div").show(); $("#fee_combination_div").html(""); $("#fee_combination_div").html($responce.data.fee_html); if ( $responce.data.deggrp == "PG" || $responce.data.deggrp == "MBA" || $responce.data.deggrp == "PD" ) { $("#qalsemdet").show(); var j = 0; var trRow = ""; for (var i = 1; i <= $responce.data.qualcount; i++, j++) { trRow += ` <tr style='font-size:12px;' id = "${i}" class='ui-widget-content jqgrow'> <td class='tbl_row_new tdfirst'>${i}.</td> <td class='tbl_row_new'> <input type="text" name="subsem1_${i}" value = "${$responce.data.qualdet[j]["fsubname"]}" id = "subsem1_${i}" style="width: 175px !important;"> </td> <td class='tbl_row_new'> <input type="text" name="subsem1mo_${i}" onchange = "gettoal('${i}')" value = "${$responce.data.qualdet[j]["fsecmarksa"]}" id = "subsem1mo_${i}"> </td> <td class='tbl_row_new'> <input type="text" name="subsem1mm_${i}" onchange = "gettoal('${i}')" value = "${$responce.data.qualdet[j]["fmaxmarksa"]}" id = "subsem1mm_${i}"> </td> <td class='tbl_row_new' > <input type="text" name="subsem2mo_${i}" onchange = "gettoal('${i}')" value = "${$responce.data.qualdet[j]["fsecmarksb"]}" id = "subsem2mo_${i}"> </td> <td class='tbl_row_new' width="50px"> <input type="text" name="subsem2mm_${i}" onchange = "gettoal('${i}')" value = "${$responce.data.qualdet[j]["fmaxmarksb"]}" id = "subsem2mm_${i}"> </td> <td class='tbl_row_new' > <input type="text" name="subsem3mo_${i}" onchange = "gettoal('${i}')" value = "${$responce.data.qualdet[j]["fsecmarksc"]}" id = "subsem3mo_${i}"> </td> <td class='tbl_row_new' > <input type="text" name="subsem3mm_${i}" onchange = "gettoal('${i}')" value = "${$responce.data.qualdet[j]["fmaxmarksc"]}" id = "subsem3mm_${i}"> </td> <td class='tbl_row_new' > <input type="text" name="subsem4mo_${i}" onchange = "gettoal('${i}')" value = "${$responce.data.qualdet[j]["fsecmarksd"]}" id = "subsem4mo_${i}"> </td> <td class='tbl_row_new' > <input type="text" name="subsem4mm_${i}" onchange = "gettoal('${i}')" value = "${$responce.data.qualdet[j]["fmaxmarksd"]}" id = "subsem4mm_${i}"> </td> <td class='tbl_row_new' > <input type="text" name="subsem5mo_${i}" onchange = "gettoal('${i}')" value = "${$responce.data.qualdet[j]["fsecmarkse"]}" id = "subsem5mo_${i}"> </td> <td class='tbl_row_new'> <input type="text" name="subsem5mm_${i}" onchange = "gettoal('${i}')" value = "${$responce.data.qualdet[j]["fmaxmarkse"]}" id = "subsem5mm_${i}"> </td> <td class='tbl_row_new' > <input type="text" name="subsem6mo_${i}" onchange = "gettoal('${i}')" value = "${$responce.data.qualdet[j]["fsecmarksf"]}" id = "subsem6mo_${i}"> </td> <td class='tbl_row_new' > <input type="text" name="subsem6mm_${i}" onchange = "gettoal('${i}')" value = "${$responce.data.qualdet[j]["fmaxmarksf"]}" id = "subsem6mm_${i}"> </td> <td class='tbl_row_new'> <input type="text" name="subtotalmo_${i}" readonly maxlength = '4' value = "${$responce.data.qualdet[j]["ftotsecmarks"]}" id = "subtotalmo_${i}"> </td> <td class='tbl_row_new'> <input type="text" name="subtotalmm_${i}" readonly maxlength = '4' value = "${$responce.data.qualdet[j]["ftotmaxmarks"]}" id = "subtotalmm_${i}"> </td> <td class='tbl_row_new'> <input type="text" name="subpercentagemm_${i}" readonly maxlength = '5' value = "${$responce.data.qualdet[j]["fsubpercent"]}" style="width: 40px !important;" id = "subpercentagemm_${i}"> </td> <td class='tbl_row_new'> <span onclick="adddyrow()"><img src='images/add.png' style="width:22px; height:25px;"></span> <span onclick="removedyrow('${i}')"> <img src='images/remove.png' style="float: right;width:22px;height:26px;"> </span> </td> </tr>`; } console.log($responce.data.qualdet); if ($responce.data.qualcount != 0) { $("#qalsemdet tbody tr").remove(); } $("#qalsemdet").append(trRow); // document.getElementById('combination').disabled = true; } } ); } 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 EditStudentDetailsResponseJssun($responce) { $responce = eval("(" + $responce + ")"); document.getElementById("is_add_edit").value = "Edit"; if ($responce.error_code == 0 || $responce.error_code == -1) { $("#page_main_div").load( "../html_modules/ack_adm_entry_jssun.html?v=22092018", function () { if (gentrytype == "EA") { document.getElementById("backButton").removeAttribute("onclick"); document .getElementById("backButton") .setAttribute("onclick", "calleditapplication()"); } var option = '<option value="">--Select--</option>'; var d = new Date(); var year = d.getFullYear(); for (var j = year; j > 1980; j--) { option += "<option value='" + j + "'>" + j + "</option>"; } console.log($responce.data); $("#fyear").append(option); $("#receno").val($responce.data.perdetl["ffeenumber"]); $("#recedate").val($responce.data.perdetl["ffeedate"]); var serv_arr = $responce.data["mascomb"]; var serv_title = ""; // FillDropdownValues(serv_arr, "combination", serv_title); var serv_arr = $responce.data["category"]; var serv_title = ""; FillDropdownValues(serv_arr, "degree_category", serv_title); var serv_arr = $responce.data["degree"]; var serv_title = ""; FillDropdownValues(serv_arr, "student_entry_degree_code", serv_title); $("#qalsemdet").hide(); if ($responce.data.deggrp == "PG" || $responce.data.deggrp == "PD") $("#qalsemdet").show(); var gender = $responce.data.perdetl["student_entry_gender"]; var LT = $responce.data.perdetl["LT"]; $("#LT").val(LT); if (LT == "T") { $("#student_entry_exam").val("C"); } if (gender != "") { var $radios = $("input:radio[name=student_entry_gender]"); $radios.filter("[value=" + gender + "]").attr("checked", true); } $("#perdetl input[type=text],#perdet select").each(function (l) { $(this).val($responce.data.perdetl[$(this).attr("id")]); }); $("#univdetl input[type=text],#univdetl select").each(function (l) { $(this).val($responce.data.perdetl[$(this).attr("id")]); }); $("#subject_appearing").show(); $("#subject_appearing").html($responce.data.html); $("#student_entry_degree_code").val( $responce.data.perdetl["student_entry_degree_code"] ); // $("#combination").val($responce.data.perdetl["combination"]); // document.getElementById('combination').disabled = true; // document.getElementById("combination").disabled = true; $("#degree_category").val($responce.data.perdetl["degree_category"]); $("#student_entry_photo").attr( "src", $responce.data.perdetl["student_entry_photo"] ); $("#student_signature_photo").attr( "src", $responce.data.perdetl["student_signature_photo"] ); $("#student_entry_blood_grp").val( $responce.data.perdetl["student_entry_blood_grp"] ); $("#farea").val($responce.data.perdetl["farea"]); $("#student_entry_religion").val( $responce.data.perdetl["student_entry_religion"] ); $("#seUniversityName").val($responce.data.perdetl["seUniversityName"]); $("#fadmquota").val($responce.data.perdetl["fadmquota"]); $("#fstudtype").val($responce.data.perdetl["fstudtype"]); let uploadtable = `<style type = "text/css"> .table-upd tbody tr td { padding : 2px; vertical-align:middle; text-align: left; } .table-upd tbody upd-file { display: inline !important; } .table-upd tbody input[type="file"] { display: inline; } .table-upd tbody button { padding : 7px; margin: 15px; } .table-upd thead tr td { text-align: center; } </style> <table class='table table-bordered table-striped table-upd' id = "uploaddet"> <thead> <tr class='ui-state-default ui-jqgrid-hdiv'> <td style='padding:2px; width:30px; border-left:1px solid #C5DBEC; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;' >Sl. No. </td> <td style='padding:2px; width:265px; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;' >Description</td> <td style='padding:2px; width:190px; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;'> Upload</td> <td style='padding:2px; width:65px; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;'> File</td> <td style='padding:2px; width:65px; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;'> Remove File</td> </tr> </thead> <tbody>`; var masdoc = $responce.data.masdoc; // console.log(masdoc); let z = 1; var alist = ""; $.each(masdoc, function (key, value) { alist = ""; if (value.file_path != "") { alist = `<a href = "${value.file_path}" target = '_blank'>${value.FFILENAME}</a>`; } uploadtable += `<tr class='ui-widget-content jqgrow'> <td class='tbl_row_new' align='center' style='border-left:1px solid #C5DBEC; border-right:1px solid #C5DBEC; padding:2px;'> ${z}</td> <td class='tbl_row_new' align='center' style='border-right:1px solid #C5DBEC; padding:2px;' id = "doc_upload_${value.int_code}">${value.doc_type}</td> <td class='tbl_row_new' align='center' style='border-right:1px solid #C5DBEC; padding:2px;' > <input type="file" name="${value.FFILENAME}" id="${value.FFILENAME}" class = "upd-file" style="width:100px;padding:5px 0px;" /> <input type = "hidden" id = "h_${value.FFILENAME}"> <span class="raval_submit" style="margin-top: 2px;width:50px; float:right;margin-left:0px;cursor: pointer;color:#545345; line-height: 25px;font-size:12px;font-weight:bold;" onclick= 'DisplayUserSelectedfile("${value.FFILENAME}")'>Upload</span> </td> <td class='tbl_row_new' style='border-right:1px solid #C5DBEC; padding:2px;' id="attach_td_${value.FFILENAME}">${alist}</td> <td class='tbl_row_new' align='center' style='border-right:1px solid #C5DBEC; padding:2px;' > <span class="raval_submit" style="margin-top: 2px;width:50px; float:right;margin-left:0px;cursor: pointer;color:#545345; line-height: 25px;font-size:12px;font-weight:bold;" onclick= 'removedocument("${value.FFILENAME}")'>Remove</span> </td> </tr>`; z++; }); $("#upddet").html(uploadtable); $("#fee_combination_div").show(); $("#fee_combination_div").html(""); $("#fee_combination_div").html($responce.data.fee_html); if ( $responce.data.deggrp == "PG" || $responce.data.deggrp == "MBA" || $responce.data.deggrp == "PD" ) { $("#qalsemdet").show(); var j = 0; var trRow = ""; for (var i = 1; i <= $responce.data.qualcount; i++, j++) { trRow += ` <tr style='font-size:12px;' id = "${i}" class='ui-widget-content jqgrow'> <td class='tbl_row_new tdfirst'>${i}.</td> <td class='tbl_row_new'> <input type="text" name="subsem1_${i}" value = "${$responce.data.qualdet[j]["fsubname"]}" id = "subsem1_${i}" style="width: 175px !important;"> </td> <td class='tbl_row_new'> <input type="text" name="subsem1mo_${i}" onchange = "gettoal('${i}')" value = "${$responce.data.qualdet[j]["fsecmarksa"]}" id = "subsem1mo_${i}"> </td> <td class='tbl_row_new'> <input type="text" name="subsem1mm_${i}" onchange = "gettoal('${i}')" value = "${$responce.data.qualdet[j]["fmaxmarksa"]}" id = "subsem1mm_${i}"> </td> <td class='tbl_row_new' > <input type="text" name="subsem2mo_${i}" onchange = "gettoal('${i}')" value = "${$responce.data.qualdet[j]["fsecmarksb"]}" id = "subsem2mo_${i}"> </td> <td class='tbl_row_new' width="50px"> <input type="text" name="subsem2mm_${i}" onchange = "gettoal('${i}')" value = "${$responce.data.qualdet[j]["fmaxmarksb"]}" id = "subsem2mm_${i}"> </td> <td class='tbl_row_new' > <input type="text" name="subsem3mo_${i}" onchange = "gettoal('${i}')" value = "${$responce.data.qualdet[j]["fsecmarksc"]}" id = "subsem3mo_${i}"> </td> <td class='tbl_row_new' > <input type="text" name="subsem3mm_${i}" onchange = "gettoal('${i}')" value = "${$responce.data.qualdet[j]["fmaxmarksc"]}" id = "subsem3mm_${i}"> </td> <td class='tbl_row_new' > <input type="text" name="subsem4mo_${i}" onchange = "gettoal('${i}')" value = "${$responce.data.qualdet[j]["fsecmarksd"]}" id = "subsem4mo_${i}"> </td> <td class='tbl_row_new' > <input type="text" name="subsem4mm_${i}" onchange = "gettoal('${i}')" value = "${$responce.data.qualdet[j]["fmaxmarksd"]}" id = "subsem4mm_${i}"> </td> <td class='tbl_row_new' > <input type="text" name="subsem5mo_${i}" onchange = "gettoal('${i}')" value = "${$responce.data.qualdet[j]["fsecmarkse"]}" id = "subsem5mo_${i}"> </td> <td class='tbl_row_new'> <input type="text" name="subsem5mm_${i}" onchange = "gettoal('${i}')" value = "${$responce.data.qualdet[j]["fmaxmarkse"]}" id = "subsem5mm_${i}"> </td> <td class='tbl_row_new' > <input type="text" name="subsem6mo_${i}" onchange = "gettoal('${i}')" value = "${$responce.data.qualdet[j]["fsecmarksf"]}" id = "subsem6mo_${i}"> </td> <td class='tbl_row_new' > <input type="text" name="subsem6mm_${i}" onchange = "gettoal('${i}')" value = "${$responce.data.qualdet[j]["fmaxmarksf"]}" id = "subsem6mm_${i}"> </td> <td class='tbl_row_new'> <input type="text" name="subtotalmo_${i}" readonly maxlength = '4' value = "${$responce.data.qualdet[j]["ftotsecmarks"]}" id = "subtotalmo_${i}"> </td> <td class='tbl_row_new'> <input type="text" name="subtotalmm_${i}" readonly maxlength = '4' value = "${$responce.data.qualdet[j]["ftotmaxmarks"]}" id = "subtotalmm_${i}"> </td> <td class='tbl_row_new'> <input type="text" name="subpercentagemm_${i}" readonly maxlength = '5' value = "${$responce.data.qualdet[j]["fsubpercent"]}" style="width: 40px !important;" id = "subpercentagemm_${i}"> </td> <td class='tbl_row_new'> <span onclick="adddyrow()"><img src='images/add.png' style="width:22px; height:25px;"></span> <span onclick="removedyrow('${i}')"> <img src='images/remove.png' style="float: right;width:22px;height:26px;"> </span> </td> </tr>`; } if ($responce.data.qualcount != 0) { $("#qalsemdet tbody tr").remove(); } $("#qalsemdet").append(trRow); // document.getElementById('combination').disabled = true; } } ); } 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 DisplaystudentSignature() { var valid_file_extentions = new Array("jpeg", "jpg"); var ext = $("#student_entry_signupload").val(); filepath = ext; ext = ext.substring(ext.length - 3, ext.length); ext = ext.toLowerCase(); if (ext != "" && !in_array(ext, valid_file_extentions)) { alert("Select valid photo!"); $("#student_entry_signupload").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 + "DiaplayStudentSignature&" + lstr_data; document .getElementById("form_module_image_upload") .setAttribute("action", $upload); return AIM.submit( document.getElementById("form_module_image_upload"), "report_display", { onComplete: DiaplayStudentSignatureResponse } ); } function DiaplayStudentSignatureResponse($responce) { $.unblockUI(); $responce = eval("(" + $responce + ")"); if ($responce.error_code == 0) { $("#student_signature_photo").attr("src", $responce.data); $("#student_entry_signupload_hidden").val($responce.data); } else if ($responce.error_code == -1) $("#student_signature_photo").attr("src", "images/sign_logo.png"); else if ($responce.error_code == -2) { alert($responce.data); $("#student_signature_photo").attr("src", "images/sign_logo.png"); $("#student_entry_signupload").val(""); } } function DiaplayStudentPhoto() { var valid_file_extentions = new Array("jpeg", "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("Select valid photo!"); $("#student_entry_upload").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 + "DiaplayStudentPhoto&" + lstr_data; document .getElementById("form_module_image_upload") .setAttribute("action", $upload); return AIM.submit( document.getElementById("form_module_image_upload"), "report_display", { onComplete: DiaplayStudentPhotoResponse } ); } function DiaplayStudentPhotoResponse($responce) { $.unblockUI(); $responce = eval("(" + $responce + ")"); if ($responce.error_code == 0) { $("#student_entry_photo").attr("src", $responce.data); $("#student_entry_photo_hidden").val($responce.data); } else if ($responce.error_code == -1) $("#student_entry_photo").attr("src", "images/default_photo.png"); else if ($responce.error_code == -2) { alert($responce.data); $("#student_entry_photo").attr("src", "images/default_photo.png"); $("#student_entry_photo").val(""); } } function DisplayUserSelectedfile(file_name) { var valid_file_extentions = new Array("jpeg", "jpg", "pdf"); var ext = $("#" + file_name).val(); filepath = ext; ext = ext.substring(ext.length - 3, ext.length); ext = ext.toLowerCase(); if (ext != "" && !in_array(ext, valid_file_extentions)) { alert("Select valid photo!"); $("#" + file_name).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 + "&file_name=" + file_name; $upload = $host_url + "DisplayUserSelectedfile&" + lstr_data; document .getElementById("form_module_image_upload") .setAttribute("action", $upload); return AIM.submit( document.getElementById("form_module_image_upload"), "report_display", { onComplete: DisplayUserSelectedfileResponse } ); } function DisplayUserSelectedfileResponse($responce) { $.unblockUI(); $responce = eval("(" + $responce + ")"); if ($responce.error_code == 0) { console.log($responce.data.path); console.log($responce.data.file_name); $("#h_" + $responce.data.file_name).val($responce.data.path); var str = `<a href = "${$responce.data.path}" target = "_blank">${$responce.data.file_name}</a>`; document.getElementById("attach_td_" + $responce.data.file_name).innerHTML = str; console.log($("#h_" + $responce.data.file_name).val()); } else if ($responce.error_code == -2) { alert($responce.data); return; } } function Upload(file_file) { var file_name = $("#" + file_file).val(); if (file_name == "") { alert("Please Select File."); return; } var file_size = $("#" + file_file)[0].files[0].size; var file_extn = file_name.split(".").pop(); var file_extn = file_extn.toLowerCase(); if (file_extn == "jpeg" || file_extn == "jpg" || file_extn == "pdf") { } else { alert("JPEG, JPG, PDF files are allowed!"); return false; } if (file_size >= 10000000) { alert("Upload files with size less then 2MB!"); return false; } var file_data = $("#" + file_file).prop("files")[0]; var form_data = new FormData(); form_data.append("file", file_data); $.blockUI({ message: "<h1 class='h1' style='font-size:12px'><img src='../images/ajax-loader.gif' border='0'></h1>", }); $.ajax({ type: "POST", url: "upload_file.php", data: form_data, cache: false, contentType: false, processData: false, success: function (data) { $.unblockUI(); $("#h_" + file_file).val(data); var str = `<a href = "${data}" target = "_blank">${file_file}</a>`; document.getElementById("attach_td_" + file_file).innerHTML = str; }, error: function (data) { alert(data); }, }); } function Uploadphotosignature(file_file) { var file_name = $("#" + file_file).val(); if (file_name == "") { alert("Please Select File."); return; } var file_size = $("#" + file_file)[0].files[0].size; var file_extn = file_name.split(".").pop(); var file_extn = file_extn.toLowerCase(); if (file_extn == "jpeg" || file_extn == "jpg" || file_extn == "pdf") { } else { alert("JPEG, JPG, PDF files are allowed!"); return false; } if (file_size >= 10000000) { alert("Upload files with size less then 2MB!"); return false; } var file_data = $("#" + file_file).prop("files")[0]; var form_data = new FormData(); form_data.append("file", file_data); //$.blockUI({ message: "<h1 class='h1' style='font-size:12px'><img src='../images/ajax-loader.gif' border='0'></h1>" }); $.ajax({ type: "POST", url: "upload_file.php", data: form_data, cache: false, contentType: false, processData: false, success: function (data) { //$.unblockUI(); //$('#h_'+file_file).val(data); //var str = `<a href = "${data}" target = "_blank">${file_file}</a>`; //document.getElementById('attach_td_'+file_file).innerHTML = str; }, error: function (data) { alert(data); }, }); } function FillDropdownValues(arr, ele_name, def_title) { document.getElementById(ele_name).options.length = 0; var option = "<option value=''>--Select--</option>"; for (let value of arr) { option += "<option value='" + value.int_code + "'>" + value.val + "</option>"; } $("#" + ele_name).append(option); } 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 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 multifileUpload(degree) { var lstr_query_string = "degree=" + degree; $.ajax({ type: "POST", url: $host_url + "GetCMSAmountValue", data: lstr_query_string, success: function GetCMSAmountValueResponce(responce) { try { responce = eval("(" + responce + ")"); $("#sedocs_div").html(responce.data["doc_arr"]); $("#exam_table tbody input").inputmask({ mask: "9", repeat: 3, greedy: false, }); } catch (err) { txt = err.message; $.unblockUI(); } }, }); } var avgTotalPer = 0; function calcuPercent(index) { var secrmarks = $("#marks_sec" + index).val(); var maxmarks = $("#marks_total" + index).val(); if (parseInt(maxmarks) < parseInt(secrmarks)) { alert("Maximum marks should be greater than Secured marks"); $("#wghtAvgPer").val(""); $("#marks_per" + index).val(""); $("#marks_total" + index).val(""); $("#marks_total" + index).focus(); return false; } if (secrmarks != "" && maxmarks != "") { var pertage = (parseInt(secrmarks) / parseInt(maxmarks)) * 100; pertage = pertage.toFixed(2); $("#marks_per" + index).val(pertage); } var yscnt = $("#nosemYear").val(); var secureTotal = 0; var maxTotal = 0; for (var j = 1; j <= yscnt; j++) { var secureVal = 0; var secure = $("#marks_sec" + j).val(); if (secure != "") { secureVal = parseInt($("#marks_sec" + j).val()); } secureTotal += secureVal; $("#marks_secTot").val(secureTotal); var maxMarks = $("#marks_total" + j).val(); var maxVMarksVal = 0; if (maxMarks != "") { maxVMarksVal = parseInt($("#marks_total" + j).val()); } maxTotal += maxVMarksVal; $("#marks_subtotal").val(maxTotal); } if (maxTotal != 0 && secureTotal != 0) { var totalpertage = (parseInt(secureTotal) / parseInt(maxTotal)) * 100; totalpertage = totalpertage.toFixed(2); avgTotalPer = totalpertage; //$("#seWeightedAverage").html(totalpertage); $("#marks_Avgper").val(totalpertage); } } function acceptNumbersOnlyForModule(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(); } } } function SelectBoardCode() { var id = jQuery("#table_grid3").getGridParam("selrow"); if (id != null) { $.ajax({ type: "POST", async: false, url: $host_url + "getBoardNames.demo", data: "board_id=" + id, success: PopulateBoardResponse, }); $("#dialog").dialog("close"); } else { alert("Please select row"); } return; } var gtype = ""; function getBoardNames(type) { var id = null; gtype = type; if (type == "10") { id = $("#seUniversityid10").val(); } else if (type == "puc") { id = $("#seUniversityid").val(); } if (id != null) { $.ajax({ type: "POST", async: false, url: $host_url + "getBoardNames.demo", data: "board_id=" + id, success: PopulateBoardResponse, }); } else { alert("Please select row"); } return; } function GetCombinationFeeList() { var fdegree = $("#student_entry_degree_code").val(); if (empty(fdegree)) { alert("Please Select Degree"); $("#student_entry_degree_code").focus(); return false; } //var fexamno = "A"; var fexamno = $("#student_entry_exam").val(); var fcatcode = $("#degree_category").val(); var fstudtype = $("#fstudtype").val(); var fcombcode = $("#degree_combination").val(); var lstr_str = "&fdegree=" + fdegree; lstr_str += "&fexamno=" + fexamno; lstr_str += "&fcombcode=" + fcombcode; lstr_str += "&fcatcode=" + fcatcode; lstr_str += "&fsl_no=" + $("#student_entry_slno").val() + "&fstudtype=" + fstudtype; $.ajax({ type: "POST", async: false, url: $host_url + "GetCombinationFeeList", data: lstr_str, success: GetCombinationFeeListResponse, }); } function GetCombinationFeeListResponse($responce) { $responce = eval("(" + $responce + ")"); $("#fee_combination_div").html(""); $("#fee_combination_div").html($responce.data.html); CalculateTotalFeePaid(); } function loaddegree() { $.ajax({ type: "POST", async: false, url: $host_url + "loaddegree", success: loaddegreeResponse, }); } function loaddegreeResponse($responceCat) { $responceCat = eval("(" + $responceCat + ")"); if ($responceCat.error_code == 0) { var optionsAsString = "<option value=''> Select Degree </option>"; for (var i = 0; i < $responceCat.data.length; i++) { optionsAsString += "<option value='" + $responceCat.data[i].internal_code + "'>" + $responceCat.data[i].value + "</option>"; } $("#student_entry_degree_code").append(optionsAsString); } } function onlyAlphabets(e, t) { try { var charCode = e.which || e.keyCode; if ( (charCode > 47 && charCode < 58) || (charCode > 64 && charCode < 91) || (charCode > 96 && charCode < 123) || charCode == 32 || charCode == 190 || charCode == 8 || charCode == 188 || charCode == 9 || charCode == 46 || charCode == 35 || charCode == 36 || charCode == 44 ) { return true; } else { return false; } } catch (err) { alert(err.Description); } } function applicationdisplay() { $("#page_main_div").load( "../html_modules/ack_adm_application.html", function () { document.getElementById("display_module_name").innerHTML = "Acknowledge Admission Applications"; document.getElementById("module_name_for_save").value = "Acknowledge Admission Applications"; getDefaultHeadFooterLinks("Acknowledge Admission Challan"); // $(".ui-tabs .ui-tabs-panel").css("padding", "0px"); // $(".ui-tabs .ui-tabs-panel").css("padding-top", "21px"); loadAdmDegree(); $("#adm_degree").val(gdegree); $("#appfrom").val(gappfrom); $("#appto").val(gappto); $("#status").val(gstatus); DisplayAdmApplication(); } ); } function calcPercent() { var secrmarks = $("#secmarks").val(); var maxmarks = $("#maxmarks").val(); if (parseInt(maxmarks) < parseInt(secrmarks)) { alert("Maximum marks should be greater than Secured marks"); $("#secmarks").val(""); $("#maxmarks").val(""); $("#secmarks").focus(); return false; } if (secrmarks != "" && maxmarks != "") { var pertage = (parseInt(secrmarks) / parseInt(maxmarks)) * 100; pertage = pertage.toFixed(2); $("#percentage").val(pertage); } } function savestudentapplication() { jsonObj = []; gRgPerinfo = ""; subdet = []; feedet = []; // if ($("#total_fee_paid").html() == "0") { // alert("Please Enter Amount"); //$("#fee_paying_1").focus(); // return; // } if ($("#student_entry_admdate").val() == "") { alert("Please Admission Date"); $("#student_entry_admdate").focus(); return; } $("#uploaddet input[type=hidden]").each(function () { var item = {}; item["id"] = $(this).attr("id"); item["value"] = $(this).val(); jsonObj.push(item); }); $("#perdetl input[type=text],#perdetl select").each(function () { item = {}; item["id"] = $(this).attr("id"); item["value"] = $(this).val(); jsonObj.push(item); }); $("#univdetl input[type=text],#univdetl select").each(function () { item = {}; item["id"] = $(this).attr("id"); item["value"] = $(this).val(); jsonObj.push(item); }); perinfo = encodeURI(JSON.stringify(jsonObj)); $("#subject_appearing .subcode input[type=text]").each(function () { item = {}; item["id"] = $(this).attr("id"); item["value"] = $(this).val(); subdet.push(item); }); gRgPerinfo = encodeURI(JSON.stringify(jsonObj)); subdet = JSON.stringify(subdet); rgMultiMarks = []; $("#qalsemdet tr.ui-widget-content").each((i, el) => { var rgQal = $(el).find("td input"); var rgTr = []; $.each(rgQal, (j, val) => { var item = {}; item["name"] = val.name; item["value"] = val.value; rgTr.push(item); }); //console.log(rgTr); rgMultiMarks.push(rgTr); }); $("#fee_combination_div .tr_ventor_row input[type=text]").each(function () { item = {}; var id = $(this).attr("id"); console.log(id); var idarry = id.split("_"); console.log(idarry[2]); item["id"] = $(`#head_${idarry[2]}`).html(); item["value"] = $(this).val(); feedet.push(item); }); feedet = JSON.stringify(feedet); var fappno = $("#fappno").val(); var gender = $("input[name='student_entry_gender']:checked").val(); var student_photo = $("#student_entry_photo_hidden").val(); var student_sign = $("#student_entry_signupload_hidden").val(); var ffeedate = $("#recedate").val(); var ffeeno = $("#receno").val(); // console.log(ffeedate, ffeeno); // return; var datastring = "personal_info=" + gRgPerinfo + "&pRgSubjects=" + subdet + "&fappno=" + fappno + "&student_sign=" + student_sign + "&student_photo=" + student_photo + "&gender=" + gender + "&rgMultiMarks=" + JSON.stringify(rgMultiMarks) + "&feedet=" + feedet + "&ffeedate=" + ffeedate + "&ffeeno=" + ffeeno; // $.blockUI({ // message: // "<h1 class='h1' style='font-size:12px'><img src='img/ajax-loader.gif' border='0'></h1>", // }); let api = ""; if (db == "jssun") api = "savestudentapplicationJssun"; else api = "savestudentapplication"; $.ajax({ type: "POST", data: datastring, url: $host_url + api, success: function (responce) { responce = eval("(" + responce + ")"); $.unblockUI(); if (responce.error_code === -1) { alert(responce.data); return; } else { alert("Updated successfuly"); console.log(gentrytype + "--save"); if (gentrytype == "EA") { calleditapplication(); } else { applicationdisplay(); } return; } }, }); } function getcombinationsubjectdet() { var exam = "A"; if ($("#LT").val() == "T") { exam = "C"; } $.ajax({ type: "POST", //async:false, url: $host_url + "getcombinationsubjectdet", data: "degree_code=" + $("#student_entry_degree_code").val() + "&combination=" + $("#combination").val() + "&fexamno=" + exam + "&fappno=" + $("#student_entry_admno").val(), success: getcombinationsubjectdetlResponse, }); } function getcombinationsubjectdetlResponse(responce) { responce = eval("(" + responce + ")"); if (responce.error_code === -1) { } else { var LT = $("#LT").val(); var exam = "A"; if (LT == "T") exam = "C"; $("#student_entry_exam").val(exam); $("#subject_appearing").show(); $("#subject_appearing").html(responce.data.html); } } function removedocument(filename) { $.ajax({ type: "POST", //async:false, url: $host_url + "removedocument", data: "degree_code=" + $("#student_entry_degree_code").val() + "&fappno=" + $("#student_entry_admno").val() + "&filename=" + filename, success: removedocumentResponse, }); } function removedocumentResponse(responce) { responce = eval("(" + responce + ")"); if (responce.error_code === -1) { alert(responce.data); return; } else { alert(responce.data.msg); $("#attach_td_" + responce.data.filename).empty(); } } function printapplication(appno, degree) { var parameters = "&app_no=" + appno; window.open($host_url + "printApplication.demo" + parameters); } function RemoveApplication(appno, degree) { $.ajax({ type: "POST", //async:false, url: $host_url + "RemoveApplication", data: "appno=" + appno + "°ree=" + degree, success: RemoveApplicationResponse, }); } function RemoveApplicationResponse(responce) { responce = eval("(" + responce + ")"); if (responce.error_code === -1) { alert(responce.data); return; } else { alert(responce.data.msg); DisplayAdmApplication(); return; } } function DeleteApplication(appno, degree) { $.ajax({ type: "POST", //async:false, url: $host_url + "DeleteApplication", data: "appno=" + appno + "°ree=" + degree, success: DeleteApplicationResponse, }); } function DeleteApplicationResponse(responce) { responce = eval("(" + responce + ")"); if (responce.error_code === -1) { alert(responce.data); return; } else { alert(responce.data.msg); DisplayAdmApplication(); return; } } function adddyrow() { if ($("#qalsemdet tr").length > 0) var last_row_id = $("#qalsemdet tr.ui-widget-content td input"); var ids = $("#qalsemdet tr").length; var rowIncrId = parseInt(ids) - 1; var i = parseInt(ids) - 2; var semsub = parseInt($("#subsem1_" + i).val()); var semmo1 = parseInt($("#subsem1mo_" + i).val()); var semmm1 = parseInt($("#subsem1mm_" + i).val()); var semmo2 = parseInt($("#subsem2mo_" + i).val()); var semmm2 = parseInt($("#subsem2mm_" + i).val()); var semmo3 = parseInt($("#subsem3mo_" + i).val()); var semmm3 = parseInt($("#subsem3mm_" + i).val()); var semmo4 = parseInt($("#subsem4mo_" + i).val()); var semmm4 = parseInt($("#subsem4mm_" + i).val()); var semmo5 = parseInt($("#subsem5mo_" + i).val()); var semmm5 = parseInt($("#subsem5mm_" + i).val()); var semmo6 = parseInt($("#subsem6mo_" + i).val()); var semmm6 = parseInt($("#subsem6mm_" + i).val()); if ( semmo1 == "" || semmo2 == "" || semmo3 == "" || semmo4 == "" || semmo5 == "" || semmo6 == "" || semmm1 == "" || semmm2 == "" || semmm3 == "" || semmm4 == "" || semmm5 == "" || semmm6 == "" || semsub == "" ) { alert("Please enter all the details"); return; } var trRow = ` <tr style='font-size:12px;' id = "${rowIncrId}" class='ui-widget-content jqgrow'> <td class='tbl_row_new tdfirst'>${rowIncrId}.</td> <td class='tbl_row_new'> <input type="text" name="subsem1_${rowIncrId}" id = "subsem1_${rowIncrId}" style="width: 175px !important;"> </td> <td class='tbl_row_new'> <input type="text" name="subsem1mo_${rowIncrId}" onchange = "gettoal('${rowIncrId}')" maxlength="3" onkeypress="return acceptNumbersOnlyForModule(event);" id = "subsem1mo_${rowIncrId}"> </td> <td class='tbl_row_new'> <input type="text" name="subsem1mm_${rowIncrId}" onchange = "gettoal('${rowIncrId}')" maxlength="3" onkeypress="return acceptNumbersOnlyForModule(event);" id = "subsem1mm_${rowIncrId}"> </td> <td class='tbl_row_new' > <input type="text" name="subsem2mo_${rowIncrId}" onchange = "gettoal('${rowIncrId}')" maxlength="3" onkeypress="return acceptNumbersOnlyForModule(event);" id = "subsem2mo_${rowIncrId}"> </td> <td class='tbl_row_new' width="50px"> <input type="text" name="subsem2mm_${rowIncrId}" onchange = "gettoal('${rowIncrId}')" maxlength="3" onkeypress="return acceptNumbersOnlyForModule(event);" id = "subsem2mm_${rowIncrId}"> </td> <td class='tbl_row_new' > <input type="text" name="subsem3mo_${rowIncrId}" onchange = "gettoal('${rowIncrId}')" maxlength="3" onkeypress="return acceptNumbersOnlyForModule(event);" id = "subsem3mo_${rowIncrId}"> </td> <td class='tbl_row_new' > <input type="text" name="subsem3mm_${rowIncrId}" onchange = "gettoal('${rowIncrId}')" maxlength="3" onkeypress="return acceptNumbersOnlyForModule(event);" id = "subsem3mm_${rowIncrId}"> </td> <td class='tbl_row_new' > <input type="text" name="subsem4mo_${rowIncrId}" onchange = "gettoal('${rowIncrId}')" maxlength="3" onkeypress="return acceptNumbersOnlyForModule(event);" id = "subsem4mo_${rowIncrId}"> </td> <td class='tbl_row_new' > <input type="text" name="subsem4mm_${rowIncrId}" onchange = "gettoal('${rowIncrId}')" maxlength="3" onkeypress="return acceptNumbersOnlyForModule(event);" id = "subsem4mm_${rowIncrId}"> </td> <td class='tbl_row_new' > <input type="text" name="subsem5mo_${rowIncrId}" onchange = "gettoal('${rowIncrId}')" maxlength="3" onkeypress="return acceptNumbersOnlyForModule(event);" id = "subsem5mo_${rowIncrId}"> </td> <td class='tbl_row_new'> <input type="text" name="subsem5mm_${rowIncrId}" onchange = "gettoal('${rowIncrId}')" maxlength="3" onkeypress="return acceptNumbersOnlyForModule(event);" id = "subsem5mm_${rowIncrId}"> </td> <td class='tbl_row_new' > <input type="text" name="subsem6mo_${rowIncrId}" onchange = "gettoal('${rowIncrId}')" maxlength="3" onkeypress="return acceptNumbersOnlyForModule(event);" id = "subsem6mo_${rowIncrId}"> </td> <td class='tbl_row_new' > <input type="text" name="subsem6mm_${rowIncrId}" onchange = "gettoal('${rowIncrId}')" maxlength="3" onkeypress="return acceptNumbersOnlyForModule(event);" id = "subsem6mm_${rowIncrId}"> </td> <td class='tbl_row_new'> <input type="text" name="subtotalmo_${rowIncrId}" maxlength="4" onkeypress="return acceptNumbersOnlyForModule(event);" id = "subtotalmo_${rowIncrId}"> </td> <td class='tbl_row_new'> <input type="text" name="subtotalmm_${rowIncrId}" maxlength="4" onkeypress="return acceptNumbersOnlyForModule(event);" id = "subtotalmm_${rowIncrId}"> </td> <td class='tbl_row_new'> <input type="text" name="subpercentagemm_${rowIncrId}" maxlength="5" onkeypress="return acceptNumbersOnlyForModule(event);" style="width: 40px !important;" id = "subpercentagemm_${rowIncrId}"> </td> <td class='tbl_row_new'> <span onclick="adddyrow()"><img src='images/add.png' style="width:22px; height:25px;"></span> <span onclick="removedyrow('${rowIncrId}')"> <img src='images/remove.png' style="float: right;width:22px;height:26px;"> </span> </td> </tr>`; $("#qalsemdet").append(trRow); } function removedyrow(id) { var r = confirm("Are you sure you want to delete the Record"); if (r) { $("#" + id).remove(); } else { } $("#qalsemdet tr.ui-widget-content").each((i, el) => { $(el) .find("td.tdfirst") .html(++i + "."); }); } function gettoal(i) { var semmo1 = parseInt($("#subsem1mo_" + i).val()); var semmm1 = parseInt($("#subsem1mm_" + i).val()); if (semmo1 > semmm1 && semmm1 != "") { alert("sem 1 obtained marks is greater than the max. marks"); $("#subsem1mm_" + i).val(""); $("#subsem1mo_" + i).val(""); $("#subsem1mo_" + i).focus(); return; } var semmo2 = parseInt($("#subsem2mo_" + i).val()); var semmm2 = parseInt($("#subsem2mm_" + i).val()); if (semmo2 > semmm2 && semmm2 != "") { alert("sem 2 obtained marks is greater than the max. marks"); $("#subsem2mm_" + i).val(""); $("#subsem2mo_" + i).val(""); $("#subsem2mo_" + i).focus(); return; } var semmo3 = parseInt($("#subsem3mo_" + i).val()); var semmm3 = parseInt($("#subsem3mm_" + i).val()); if (semmo3 > semmm3 && semmm3 != "") { alert("sem 3 obtained marks is greater than the max. marks"); $("#subsem3mm_" + i).val(""); $("#subsem3mo_" + i).val(""); $("#subsem3mo_" + i).focus(); return; } var semmo4 = parseInt($("#subsem4mo_" + i).val()); var semmm4 = parseInt($("#subsem4mm_" + i).val()); if (semmo4 > semmm4 && semmm4 != "") { alert("sem 4 obtained marks is greater than the max. marks"); $("#subsem4mm_" + i).val(""); $("#subsem4mo_" + i).val(""); $("#subsem4mo_" + i).focus(); return; } var semmo5 = parseInt($("#subsem5mo_" + i).val()); var semmm5 = parseInt($("#subsem5mm_" + i).val()); if (semmo5 > semmm5 && semmm5 != "") { alert("sem 5 obtained marks is greater than the max. marks"); $("#subsem5mm_" + i).val(""); $("#subsem5mo_" + i).val(""); $("#subsem5mo_" + i).focus(); return; } var semmo6 = parseInt($("#subsem6mo_" + i).val()); var semmm6 = parseInt($("#subsem6mm_" + i).val()); if (semmo6 > semmm6 && semmm6 != "") { alert("sem 6 obtained marks is greater than the max. marks"); $("#subsem6mm_" + i).val(""); $("#subsem6mo_" + i).val(""); $("#subsem6mo_" + i).focus(); return; } var totobt = ""; var totmarks = ""; semmo1 = semmo1 == "" ? 0 : semmo1; semmo2 = semmo2 == "" ? 0 : semmo2; semmo3 = semmo3 == "" ? 0 : semmo3; semmo4 = semmo4 == "" ? 0 : semmo4; semmo5 = semmo5 == "" ? 0 : semmo5; semmo6 = semmo6 == "" ? 0 : semmo6; semmm1 = semmm1 == "" ? 0 : semmm1; semmm2 = semmm2 == "" ? 0 : semmm2; semmm3 = semmm3 == "" ? 0 : semmm3; semmm4 = semmm4 == "" ? 0 : semmm4; semmm5 = semmm5 == "" ? 0 : semmm5; semmm6 = semmm6 == "" ? 0 : semmm6; console.log(semmm1, semmm2, semmm3, semmm4, semmm5, semmm6); if ( semmo1 !== "" && semmo2 !== "" && semmo3 !== "" && semmo4 !== "" && semmo5 !== "" && semmo6 !== "" ) { totobt = parseFloat(semmo1) + parseFloat(semmo2) + parseFloat(semmo3) + parseFloat(semmo4) + parseFloat(semmo5) + parseFloat(semmo6); $("#subtotalmo_" + i).val(totobt); } if ( semmm1 !== "" && semmm2 !== "" && semmm3 !== "" && semmm4 !== "" && semmm5 !== "" && semmm6 !== "" ) { totmarks = parseFloat(semmm1) + parseFloat(semmm2) + parseFloat(semmm3) + parseFloat(semmm4) + parseFloat(semmm5) + parseFloat(semmm6); $("#subtotalmm_" + i).val(totmarks); console.log(totmarks, totobt); if (totmarks > 0 && totobt > 0) { var totpercetage = parseFloat( (parseFloat(totobt) / parseFloat(totmarks)) * 100 ); $("#subpercentagemm_" + i).val(totpercetage); } } }
Close