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 | : 13.59.69.58
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_old /
[ HOME SHELL ]
Name
Size
Permission
Action
Report
[ DIR ]
drwxr-sr-x
base_file
[ DIR ]
drwxr-sr-x
events
[ DIR ]
drwxr-sr-x
popups
[ DIR ]
drwxr-sr-x
AbsentEntrySubjectWise.js
15.63
KB
-rwxr-xr-x
AllkeyEvent.js
38.37
KB
-rwxr-xr-x
Dispatch_answer_script.js
18.98
KB
-rwxr-xr-x
Dispatch_answer_script_qp.js
17.24
KB
-rwxr-xr-x
ECHblk.js
6.49
KB
-rwxr-xr-x
IdentifyTransactions.js
2.22
KB
-rwxr-xr-x
MainPage.js
18.24
KB
-rwxr-xr-x
Message_board.js
5.24
KB
-rwxr-xr-x
Registrationpage.js
2.22
KB
-rwxr-xr-x
UpdateCollDet.js
7.24
KB
-rwxr-xr-x
absententrysubjectwiseQP.js
17.99
KB
-rwxr-xr-x
ack_adm_application.js
45.7
KB
-rwxr-xr-x
ack_admentry_application.js
58.39
KB
-rwxr-xr-x
ack_application.js
4.37
KB
-rwxr-xr-x
ack_chalentries.js
4.16
KB
-rwxr-xr-x
ack_exam_app_form.js
3.24
KB
-rwxr-xr-x
ack_exam_app_form_bulk.js
2.28
KB
-rwxr-xr-x
ack_registration.js
2.36
KB
-rwxr-xr-x
ack_rv_rt_application.js
2.68
KB
-rwxr-xr-x
ack_rv_rt_report.js
3.63
KB
-rwxr-xr-x
adm_delete_data.js
3.44
KB
-rwxr-xr-x
admchallanpreparation.js
6.17
KB
-rwxr-xr-x
admdownloadexsheet.js
472
B
-rwxr-xr-x
admission_approve.js
21.33
KB
-rwxr-xr-x
admission_entry_reg.js
47.43
KB
-rwxr-xr-x
admission_entry_status.js
1.15
KB
-rwxr-xr-x
admissionapplist.js
3.97
KB
-rwxr-xr-x
admstuddate.js
4.36
KB
-rwxr-xr-x
admuploadexsheet.js
1.45
KB
-rwxr-xr-x
ansbookcancel.js
13.49
KB
-rwxr-xr-x
answer_book_issued.js
12.43
KB
-rwxr-xr-x
apprCandidList.js
1.07
KB
-rwxr-xr-x
appstatus.js
2.91
KB
-rwxr-xr-x
attendance.js
7.13
KB
-rwxr-xr-x
attendance_freez.js
6.15
KB
-rwxr-xr-x
attendance_freez_mth.js
7.77
KB
-rwxr-xr-x
attshort.js
1.73
KB
-rwxr-xr-x
backup.js
3.15
KB
-rwxr-xr-x
backup_restore.js
1.38
KB
-rwxr-xr-x
bcuregn.js
7.39
KB
-rwxr-xr-x
boeselection.js
8.27
KB
-rwxr-xr-x
bundle_ack.js
1.55
KB
-rwxr-xr-x
bundle_dispatch.js
8.75
KB
-rwxr-xr-x
bundle_rec_ack.js
1.19
KB
-rwxr-xr-x
bundledispatchdatewise.js
2.04
KB
-rwxr-xr-x
bundlereceive.js
1.01
KB
-rwxr-xr-x
bundlestatus.js
1.46
KB
-rwxr-xr-x
calendar-en.js
3.64
KB
-rwxr-xr-x
calendar-setup.js
8.84
KB
-rwxr-xr-x
calendar.js
49.85
KB
-rwxr-xr-x
calender.js
922
B
-rwxr-xr-x
candidate_list.js
36.74
KB
-rwxr-xr-x
centerdet.js
1.54
KB
-rwxr-xr-x
challan_entries.js
4.21
KB
-rwxr-xr-x
challan_preparation.js
2.94
KB
-rwxr-xr-x
changeAdmDegree.js
4.3
KB
-rwxr-xr-x
changeMobile.js
3.26
KB
-rwxr-xr-x
checkbrowser.js
2.58
KB
-rwxr-xr-x
cntrDeclaration.js
3.6
KB
-rwxr-xr-x
coll_exam_app_form.js
1017
B
-rwxr-xr-x
collbankdet.js
2.1
KB
-rwxr-xr-x
colldesp_ack.js
3.7
KB
-rwxr-xr-x
college.js
4.76
KB
-rwxr-xr-x
college_BEFORE_LOGINPOPUP.js
2.44
KB
-rwxr-xr-x
college_approve.js
23.99
KB
-rwxr-xr-x
college_degree_status.js
3.41
KB
-rwxr-xr-x
college_wise_degree_status.js
1.08
KB
-rwxr-xr-x
collegedet.js
1.47
KB
-rwxr-xr-x
collfundtransfer.js
5.16
KB
-rwxr-xr-x
collinfo_popup.js
12.03
KB
-rwxr-xr-x
control.js
17.74
KB
-rwxr-xr-x
convdet.js
5.9
KB
-rwxr-xr-x
createAdmission.js
4.61
KB
-rwxr-xr-x
daterange.js
10.38
KB
-rwxr-xr-x
degree.js
3.02
KB
-rwxr-xr-x
degstudymat.js
4.89
KB
-rwxr-xr-x
degstudymatdet.js
3.47
KB
-rwxr-xr-x
doc_verification.js
2.34
KB
-rwxr-xr-x
downloadFeeStatement.js
907
B
-rwxr-xr-x
downloadStudentPhotos.js
1.13
KB
-rwxr-xr-x
download_misc_files.js
1.7
KB
-rwxr-xr-x
entryexitevents.js
1.27
KB
-rwxr-xr-x
examAppChallan.js
6.7
KB
-rwxr-xr-x
examAttendanceReport.js
2.37
KB
-rwxr-xr-x
export_import.js
1.66
KB
-rwxr-xr-x
export_import_setup.js
5.81
KB
-rwxr-xr-x
fee_report.js
4.91
KB
-rwxr-xr-x
fee_report_lsys.js
1.28
KB
-rwxr-xr-x
feepaidreports.js
2.02
KB
-rwxr-xr-x
feeupdation.js
5.88
KB
-rwxr-xr-x
feeupdation_bulk.js
6.98
KB
-rwxr-xr-x
footer.js
6.59
KB
-rwxr-xr-x
form_submit.js
1.36
KB
-rwxr-xr-x
formatdate.js
12.48
KB
-rwxr-xr-x
freeze_Ad_Cl_Me.js
2.95
KB
-rwxr-xr-x
freeze_module_at_admin_college...
6.14
KB
-rwxr-xr-x
freeze_module_at_university_co...
4.99
KB
-rwxr-xr-x
freezeiaprici.js
5.66
KB
-rwxr-xr-x
grid_display.js
939
B
-rwxr-xr-x
import_marks.js
1.45
KB
-rwxr-xr-x
includeCSS.js
1.34
KB
-rwxr-xr-x
index.js
30.96
KB
-rwxr-xr-x
index_BEFORE_LOGINPOPUP.js
5.05
KB
-rwxr-xr-x
invigilators_dairy.js
5.65
KB
-rwxr-xr-x
jquery.color.js
3.69
KB
-rwxr-xr-x
jquery.js
29.16
KB
-rwxr-xr-x
load-report-js-files.js
10.98
KB
-rwxr-xr-x
load_js_files.js
736
B
-rwxr-xr-x
load_mannual_js_files.js
39.51
KB
-rwxr-xr-x
markentry_studentwise.js
10.26
KB
-rwxr-xr-x
markentry_subjectwise.js
19.5
KB
-rwxr-xr-x
markslistelement_report.js
6.72
KB
-rwxr-xr-x
mascomb.js
17.08
KB
-rwxr-xr-x
message_text.js
1.45
KB
-rwxr-xr-x
module_setup.js
4.83
KB
-rwxr-xr-x
month_cal.js
64.55
KB
-rwxr-xr-x
month_cal1.js
2.11
KB
-rwxr-xr-x
openPopUp.js
5.11
KB
-rwxr-xr-x
photoupload.js
4.78
KB
-rwxr-xr-x
popup.js
126.47
KB
-rwxr-xr-x
popupold.js
59.11
KB
-rwxr-xr-x
postnotification.js
9.57
KB
-rwxr-xr-x
printExamform.js
817
B
-rwxr-xr-x
push_data_to_studentportal.js
845
B
-rwxr-xr-x
qpindent.js
1.21
KB
-rwxr-xr-x
qpissue.js
1.48
KB
-rwxr-xr-x
receive_rv_rt_application.js
2.95
KB
-rwxr-xr-x
recociliaton.js
1.25
KB
-rwxr-xr-x
remove_exam_ack.js
1.11
KB
-rwxr-xr-x
report_SubjectListGeneral.js
3.59
KB
-rwxr-xr-x
report_exam_application_form.j...
2.57
KB
-rwxr-xr-x
report_setup.js
13.77
KB
-rwxr-xr-x
results_pdf.js
953
B
-rwxr-xr-x
resultsheet.js
3.36
KB
-rwxr-xr-x
revaluation.js
8.52
KB
-rwxr-xr-x
revaluation_oldtype.js
5.14
KB
-rwxr-xr-x
revaluation_withdegree.js
8.48
KB
-rwxr-xr-x
room_allotment.js
3.21
KB
-rwxr-xr-x
room_allotment_datewise.js
6.74
KB
-rwxr-xr-x
roomallotmantsummary.js
975
B
-rwxr-xr-x
roomdeclaration.js
6.23
KB
-rwxr-xr-x
rv_rt_guide_lines.js
477
B
-rwxr-xr-x
rvdates.js
9.23
KB
-rwxr-xr-x
sectionwisepermission.js
5.15
KB
-rwxr-xr-x
sendnotification.js
3.64
KB
-rwxr-xr-x
servicehead.js
9.98
KB
-rwxr-xr-x
serviceheadfee.js
11.71
KB
-rwxr-xr-x
services.js
8.84
KB
-rwxr-xr-x
studentWiseIAMarksPending.js
930
B
-rwxr-xr-x
student_entry.js
96.12
KB
-rwxr-xr-x
studentphotolist.js
910
B
-rwxr-xr-x
studentportal_remove.js
3.12
KB
-rwxr-xr-x
subjectAppearing_PopUp.js
1.97
KB
-rwxr-xr-x
subject_freshExam.js
12.21
KB
-rwxr-xr-x
subjectfreez.js
12.67
KB
-rwxr-xr-x
subjectwise_freezing_sectionwi...
6.3
KB
-rwxr-xr-x
subjectwise_invigilator_dairy....
1.41
KB
-rwxr-xr-x
subshort.js
4.26
KB
-rwxr-xr-x
system.js
13.49
KB
-rwxr-xr-x
system_utility.js
9.05
KB
-rwxr-xr-x
teachOficerEntry.js
3.02
KB
-rwxr-xr-x
teachers.js
32.59
KB
-rwxr-xr-x
teachersreport.js
1.28
KB
-rwxr-xr-x
topsheet.js
845
B
-rwxr-xr-x
transaction-series.js
7.11
KB
-rwxr-xr-x
updateSection.js
3.05
KB
-rwxr-xr-x
updateexamcnt.js
3.76
KB
-rwxr-xr-x
uploadStudentPhotos.js
4.03
KB
-rwxr-xr-x
upload_details.js
4.15
KB
-rwxr-xr-x
uploadzip.js
4.32
KB
-rwxr-xr-x
usersetup.js
34.35
KB
-rwxr-xr-x
usersubj_identification.js
5.93
KB
-rwxr-xr-x
validate.js
10.54
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ack_admentry_application.js
var gentrydegree = ""; var gentrytype = ""; function Calladmissionentry() { $("#page_main_div").load( "../html_modules/ack_admentry_application.html", function() { document.getElementById("display_module_name").innerHTML = "Admission Entry"; document.getElementById("module_name_for_save").value = "Admission Entry"; //getDefaultHeadFooterLinks('Acknowledge Admission Challan'); getDefaultHeadFooterLinks("Admission Entry"); $(".ui-tabs .ui-tabs-panel").css("padding", "0px"); $(".ui-tabs .ui-tabs-panel").css("padding-top", "21px"); loadAdmDegree(); } ); } function Calladmissionentrywom() { $("#page_main_div").load( "../html_modules/ack_admentrywom_application.html", function() { document.getElementById("display_module_name").innerHTML = "Admission Entry"; document.getElementById("module_name_for_save").value = "Admission Entry"; getDefaultHeadFooterLinks("Admission Entry WOM"); $(".ui-tabs .ui-tabs-panel").css("padding", "0px"); $(".ui-tabs .ui-tabs-panel").css("padding-top", "21px"); loadgetdetails(); } ); } function loadgetdetails() { $.ajax({ type: "POST", async: false, url: $host_url + "loaddegree", success: function($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 CallAdmentry() { $("#page_main_div").load("../html_modules/adm_entry.html", function() { document.getElementById("display_module_name").innerHTML = "Admission Entry"; document.getElementById("module_name_for_save").value = "Admission Entry"; getDefaultHeadFooterLinks("Admission Entry"); loadAdmDeg(); }); } function loadAdmDegree() { $.ajax({ type: "POST", async: false, url: $host_url + "loaddegree", success: loaddegreeResponseAdm }); } function loadAdmDeg() { $.ajax({ type: "POST", async: false, url: $host_url + "loaddegree", success: function($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>"; } $("#student_entry_degree_code").append(optionsAsString); } } }); } function GetCombinationdeg() { $.ajax({ type: "POST", async: false, url: $host_url + "GetCombinationdeg", data: "°ree=" + $("#student_entry_degree_code").val(), success: function($responce) { $responce = eval("(" + $responce + ")"); if ($responce.error_code == 0) { 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); 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['boards']; var serv_title = ''; FillDropdownValues(serv_arr,'seUniversityName',serv_title);*/ 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> </tr> </thead> <tbody>`; var masdoc = $responce.data.masdoc; let z = 1; var alist = ""; $.each(masdoc, function(key, value) { alist = ""; 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;text-align:center;'> ${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> </tr>`; z++; }); $("#upddet").html(uploadtable); } } }); } 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 DisplayAdmentryApplication(type) { var adm_degree = $("#adm_degree").val(); if (empty(adm_degree)) { alert("Please Select Degree"); $("#adm_degree").focus(); return false; } gentrydegree = 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 AddEditStudentDetails(degree, mobile, name, type) { $.ajax({ type: "POST", //async:false, url: $host_url + "getAdmentryApplication.demo", data: "mobile=" + mobile + "°ree=" + degree + "&name=" + name + "&type=" + type, success: getAdmentryApplicationResponse }); } function getAdmentryApplicationResponse($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/adm_entry.html", function() { 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); 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); /*var serv_arr = $responce.data['boards']; var serv_title = ''; FillDropdownValues(serv_arr,'seUniversityName',serv_title);*/ // $("#subject_appearing").show(); // $("#subject_appearing").html($responce.data.html); //gentrytype = $responce.data.perdetl['type']; if (gentrytype == "EA") { var gender = $responce.data.perdetl["student_entry_gender"]; 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"]); $("#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"] ); } else { $("#student_entry_degree_code").val($responce.data.perdetl["degree"]); $("#student_entry_name").val($responce.data.perdetl["name"]); $("#student_entry_mobile").val($responce.data.perdetl["mobile"]); } document.getElementById("student_entry_mobile").disabled = true; 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> </tr> </thead> <tbody>`; var masdoc = $responce.data.masdoc; let z = 1; var alist = ""; $.each(masdoc, function(key, value) { alist = ""; 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;text-align:center;'> ${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> </tr>`; z++; }); $("#upddet").html(uploadtable); $("#fee_combination_div").show(); $("#fee_combination_div").html(""); $("#fee_combination_div").html($responce.data.fee_html); }); } 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", "JPEG", "JPG"); var ext = $("#student_entry_signupload").val(); filepath = ext; ext = ext.substring(ext.lastIndexOf(".") + 1); 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 GetCombinationSubjectList() { if (jQuery.trim($("#student_entry_degree_code").val()) != "") { $sl_no = ""; $sl_no = encodeURIComponent(trim($("#student_entry_admno").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())) + "&combination=" + $("#combination").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); } function DiaplayStudentPhoto() { //var valid_file_extentions = new Array("jpeg", "jpg",); var valid_file_extentions = new Array("jpeg", "jpg", "JPEG", "JPG"); var ext = $("#student_entry_upload").val(); filepath = ext; // ext = ext.substring(ext.length - 3, ext.length); ext = ext.substring(ext.lastIndexOf(".") + 1); 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", "JPEG", "JPG"); var ext = $("#" + file_name).val(); filepath = ext; // ext = ext.substring(ext.length - 3, ext.length); ext = ext.substring(ext.lastIndexOf(".") + 1); ext = ext.toLowerCase(); if (ext != "" && !in_array(ext, valid_file_extentions)) { alert("Select valid File"); $("#" + 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; } 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 fcatcode = $("#degree_category").val(); var fcombcode = $("#combination").val(); var fstudtype = $("#fstudtype").val(); var lstr_str = "&fdegree=" + fdegree; lstr_str += "&fexamno=" + fexamno; lstr_str += "&fcombcode=" + fcombcode; lstr_str += "&fstudtype=" + fstudtype; 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(""); $("#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 admentrydisplay() { var html = ""; if (gentrytype == "wm") html = "../html_modules/ack_admentry_application.html"; if (gentrytype == "wom") html = "../html_modules/ack_admentrywom_application.html"; if (gentrytype == "EA") html = "../html_modules/adm_edit_application.html"; $("#page_main_div").load(`${html}`, function() { if (gentrytype == "EA") { document.getElementById("display_module_name").innerHTML = "Admission Entry"; document.getElementById("module_name_for_save").value = "Admission Entry"; } else { document.getElementById("display_module_name").innerHTML = "Edit Application"; document.getElementById("module_name_for_save").value = "Edit Application"; } loadAdmDegree(); $("#adm_degree").val(gentrydegree); DisplayAdmentryApplication(gentrytype); }); } function SaveStudentEntry() { jsonObj = []; gRgPerinfo = ""; subdet = []; var missing_fields = []; if (document.getElementById("student_entry_upload").value == "") { missing_fields.push("Student Photo"); } /*if(document.getElementById("student_entry_signupload").value == '' ) { missing_fields.push("Student Signature"); }*/ $("#perdetl input[type=text],#perdetl select,#perdetl textarea").each( function() { item = {}; item["id"] = $(this).attr("id"); item["value"] = $(this).val(); jsonObj.push(item); if ( $(this).val() == "" && $(this).attr("id") != "student_entry_admno" && $(this).attr("id") != "student_entry_national" && $(this).attr("id") != "seAadharNumber" && $(this).attr("id") != "student_entry_phone" && $(this).attr("id") != "contactno" && $(this).attr("id") != "student_entry_fincome" ) { missing_fields.push($(this).attr("name")); } } ); var radio_names = ["student_entry_gender"]; for (var i = 0; i < radio_names.length; i++) { if (!$('input[name="' + radio_names[i] + '"]').is(":checked")) { missing_fields.push(radio_names[i]); } } $("#subject_appearing .subcode input[type=text]").each(function() { if ($(this).val() == "") { missing_fields.push("Subject " + i); } }); /*$("#univdetl input[type=text],#univdetl select").each(function() { if($(this).val() == '') { missing_fields.push($(this).attr('name')); } });*/ var html_string = ""; var i = 1; for (let field of missing_fields) { html_string += `\t ${i} ${field} \n`; i++; } var msg = "The Following fields are missing \n"; if (missing_fields.length > 0) { msg += ` ${html_string}`; alert(msg); } else { $("#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); }); if ($("#fee_paying_1").val() == "0") { alert("Please Enter Amount"); $("#fee_paying_1").focus(); return; } var fappno = ""; var phpfile = "savestudententryapplication"; if (gentrytype == "EA") { phpfile = "savestudentapplication"; fappno = $("#student_entry_admno").val(); } 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); }); 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 datastring = "personal_info=" + gRgPerinfo + "&pRgSubjects=" + subdet + "&student_sign=" + student_sign + "&student_photo=" + student_photo + "&type=" + gentrytype + "&gender=" + gender + "&fappno=" + fappno + "&rgMultiMarks=" + JSON.stringify(rgMultiMarks); $.blockUI({ message: "<h1 class='h1' style='font-size:12px'><img src='img/ajax-loader.gif' border='0'></h1>" }); $.ajax({ type: "POST", data: datastring, url: $host_url + phpfile, success: function(responce) { responce = eval("(" + responce + ")"); $.unblockUI(); if (responce.error_code === -1) { alert("Updation Failed"); return; } else { alert( "Updated successfuly. Application Number is : " + responce.data ); var r = confirm("Do You Want to print the application?"); if (r) { var parameters = "&app_no=" + trim(responce.data); window.location.href = $host_url + "printApplication.demo" + parameters; } //CallAdmentry(); Calladmissionentrywom(); return; } } }); } } 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 getcombinationsubjectdetdeg() { var LT = $("#LT").val(); var exam = "A"; if (LT == "T") exam = "C"; $.ajax({ type: "POST", //async:false, url: $host_url + "getcombinationsubjectdetdeg", data: "degree_code=" + $("#student_entry_degree_code").val() + "&combination=" + $("#combination").val() + "&exam=" + exam, success: getcombinationsubjectdetdegResponse }); } function getcombinationsubjectdetdegResponse(responce) { responce = eval("(" + responce + ")"); if (responce.error_code === -1) { } else { var LT = $("#LT").val(); var exam = "A"; if (LT == "T") exam = "C"; console.log(exam); $("#student_entry_exam").val(exam); $("#subject_appearing").show(); $("#subject_appearing").html(""); $("#subject_appearing").html(responce.data.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: ["App. No.", "Degree", "Branch", "Exam", "Name", "Created By"], colModel: [ { name: "grid_sl_no", index: "grid_sl_no", width: 70 }, { 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: 200, rowList: [200, 300, 400, 600], 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) { 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 = dataset["grid_sl_no"]; //$geditinternalcode=id; EditAdmStudentDetails($geditinternalcode, $g_se_degree); } else { alert("Please select row in grid"); return; } } function EditAdmStudentDetails(id, degree) { $.blockUI({ message: "<h1 class='h1' style='font-size:12px'><img src='img/ajax-loader.gif' border='0'></h1>" }); $.ajax({ type: "POST", //async:false, url: $host_url + "getappnostudentdetails.demo", data: "app_no=" + id + "°ree=" + degree, success: function($responce) { $.unblockUI(); $responce = eval("(" + $responce + ")"); $("#page_main_div").load( "../html_modules/adm_entry.html?v=22092018", function() { 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); 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); var serv_arr = $responce.data["boards"]; var serv_title = ""; FillDropdownValues(serv_arr, "seUniversityName", serv_title); var gender = $responce.data.perdetl["student_entry_gender"]; 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"]); $("#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"] ); 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; 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); } ); } }); } 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 = $("#subsem1_" + i).val(); var semmo1 = $("#subsem1mo_" + i).val(); var semmm1 = $("#subsem1mm_" + i).val(); var semmo2 = $("#subsem2mo_" + i).val(); var semmm2 = $("#subsem2mm_" + i).val(); var semmo3 = $("#subsem3mo_" + i).val(); var semmm3 = $("#subsem3mm_" + i).val(); var semmo4 = $("#subsem4mo_" + i).val(); var semmm4 = $("#subsem4mm_" + i).val(); var semmo5 = $("#subsem5mo_" + i).val(); var semmm5 = $("#subsem5mm_" + i).val(); var semmo6 = $("#subsem6mo_" + i).val(); var semmm6 = $("#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 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;"> <input type="hidden" name="subcode_${rowIncrId}" id = "subcode_${rowIncrId}" value="S0${rowIncrId}"> </td> <td class='tbl_row_new'> <input type="text" name="subsem1mo_${rowIncrId}" onchange = "gettoal('${rowIncrId}')" maxlength="4" onkeypress="return acceptNumbersOnlyForModule(event);" id = "subsem1mo_${rowIncrId}"> </td> <td class='tbl_row_new'> <input type="text" name="subsem1mm_${rowIncrId}" onchange = "gettoal('${rowIncrId}')" maxlength="4" onkeypress="return acceptNumbersOnlyForModule(event);" id = "subsem1mm_${rowIncrId}"> </td> <td class='tbl_row_new' > <input type="text" name="subsem2mo_${rowIncrId}" onchange = "gettoal('${rowIncrId}')" maxlength="4" onkeypress="return acceptNumbersOnlyForModule(event);" id = "subsem2mo_${rowIncrId}"> </td> <td class='tbl_row_new'> <input type="text" name="subsem2mm_${rowIncrId}" onchange = "gettoal('${rowIncrId}')" maxlength="4" onkeypress="return acceptNumbersOnlyForModule(event);" id = "subsem2mm_${rowIncrId}"> </td> <td class='tbl_row_new' > <input type="text" name="subsem3mo_${rowIncrId}" onchange = "gettoal('${rowIncrId}')" maxlength="4" onkeypress="return acceptNumbersOnlyForModule(event);" id = "subsem3mo_${rowIncrId}"> </td> <td class='tbl_row_new' > <input type="text" name="subsem3mm_${rowIncrId}" onchange = "gettoal('${rowIncrId}')" maxlength="4" onkeypress="return acceptNumbersOnlyForModule(event);" id = "subsem3mm_${rowIncrId}"> </td> <td class='tbl_row_new' > <input type="text" name="subsem4mo_${rowIncrId}" onchange = "gettoal('${rowIncrId}')" maxlength="4" onkeypress="return acceptNumbersOnlyForModule(event);" id = "subsem4mo_${rowIncrId}"> </td> <td class='tbl_row_new' > <input type="text" name="subsem4mm_${rowIncrId}" onchange = "gettoal('${rowIncrId}')" maxlength="4" onkeypress="return acceptNumbersOnlyForModule(event);" id = "subsem4mm_${rowIncrId}"> </td> <td class='tbl_row_new' > <input type="text" name="subsem5mo_${rowIncrId}" onchange = "gettoal('${rowIncrId}')" maxlength="4" onkeypress="return acceptNumbersOnlyForModule(event);" id = "subsem5mo_${rowIncrId}"> </td> <td class='tbl_row_new'> <input type="text" name="subsem5mm_${rowIncrId}" onchange = "gettoal('${rowIncrId}')" maxlength="4" onkeypress="return acceptNumbersOnlyForModule(event);" id = "subsem5mm_${rowIncrId}"> </td> <td class='tbl_row_new' > <input type="text" name="subsem6mo_${rowIncrId}" onchange = "gettoal('${rowIncrId}')" maxlength="4" onkeypress="return acceptNumbersOnlyForModule(event);" id = "subsem6mo_${rowIncrId}"> </td> <td class='tbl_row_new' > <input type="text" name="subsem6mm_${rowIncrId}" onchange = "gettoal('${rowIncrId}')" maxlength="4" onkeypress="return acceptNumbersOnlyForModule(event);" id = "subsem6mm_${rowIncrId}"> </td> <td class='tbl_row_new'> <input type="text" name="subtotalmo_${rowIncrId}" maxlength="4" readonly onkeypress="return acceptNumbersOnlyForModule(event);" id = "subtotalmo_${rowIncrId}"> </td> <td class='tbl_row_new'> <input type="text" name="subtotalmm_${rowIncrId}" maxlength="4" readonly onkeypress="return acceptNumbersOnlyForModule(event);" id = "subtotalmm_${rowIncrId}"> </td> <td class='tbl_row_new'> <input type="text" name="subpercentagemm_${rowIncrId}" maxlength="5" readonly onkeypress="return acceptNumbersOnlyForModule(event);" style="max-width: 70px !important;" id = "subpercentagemm_${rowIncrId}"> </td> <td class='tbl_row_new'> <span onclick="adddyrow()"> <img src='images/add.png' style="width:19px; height:17px;"> </span> <span onclick="removedyrow('${rowIncrId}')"> <img src='images/remove.png' style="float: right;width:19px;height:19px;"> </span> </td> </tr>`; $("#qalsemdet").append(trRow); } function removedyrow(id) { var r = confirm("Are you sure you want to delete the Record"); if (r) { if ($("#qalsemdet tr.ui-widget-content").length == 1) { alert("You cannot remove the last row"); } else { $("#" + id).remove(); } } else { } $("#qalsemdet tr.ui-widget-content").each((i, el) => { $(el) .find("td.tdfirst") .html(++i + "."); }); } function calcPercent10() { if ($("#maxmarks10").val() == "") { alert("Enter SSLC Maximum Marks"); return; } if ($("#secmarks10").val() == "") { alert("Enter Secured Marks"); return; } $("#percentage10").val( ( (parseFloat($("#secmarks10").val()) * 100) / parseFloat($("#maxmarks10").val()) ).toFixed(2) ); } function gettoal(i) { var semmo1 = parseInt($("#subsem1mo_" + i).val()); var semmm1 = parseInt($("#subsem1mm_" + i).val()); if (semmo1 > semmm1 && !isNaN(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 && !isNaN(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 && !isNaN(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 && !isNaN(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 && !isNaN(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 && !isNaN(semmm6)) { alert("sem 6 obtained marks is greater than the max. marks"); $("#subsem6mm_" + i).val(""); $("#subsem6mo_" + i).val(""); $("#subsem6mo_" + i).focus(); return; } var totobt = 0; var totmarks = 0; if ( !isNaN(semmo1) && !isNaN(semmo2) && !isNaN(semmo3) && !isNaN(semmo4) && !isNaN(semmo5) && !isNaN(semmo6) ) { totobt = parseInt(semmo1) + parseInt(semmo2) + parseInt(semmo3) + parseInt(semmo4) + parseInt(semmo5) + parseInt(semmo6); $("#subtotalmo_" + i).val(totobt); } if ( !isNaN(semmm1) && !isNaN(semmm2) && !isNaN(semmm3) && !isNaN(semmm4) && !isNaN(semmm5) && !isNaN(semmm6) ) { totmarks = parseInt(semmm1) + parseInt(semmm2) + parseInt(semmm3) + parseInt(semmm4) + parseInt(semmm5) + parseInt(semmm6); $("#subtotalmm_" + i).val(totmarks); var totpercetage = (parseInt(totobt) / parseInt(totmarks)) * 100; $("#subpercentagemm_" + i).val(Math.round(totpercetage * 100) / 100); } }
Close