Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Apache
: 172.26.7.228 | : 18.223.3.50
Cant Read [ /etc/named.conf ]
5.6.40-24+ubuntu18.04.1+deb.sury.org+1
www-data
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
html /
reva /
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
AbsentEntrySubjectWise.js
14.12
KB
-rwxr-xr-x
AbsentEntrySubjectWise_old.js
13.91
KB
-rwxr-xr-x
AllkeyEvent.js
31.73
KB
-rwxr-xr-x
AllkeyEvent_18082017.js
31.73
KB
-rwxr-xr-x
Dispatch_answer_script.js
17.91
KB
-rwxr-xr-x
Dispatch_answer_script_qp.js
16.33
KB
-rwxr-xr-x
ECHblk.js
6.53
KB
-rwxr-xr-x
IdentifyTransactions.js
2.13
KB
-rwxr-xr-x
MainPage.js
15.85
KB
-rwxr-xr-x
MainPage1.js
13.52
KB
-rwxr-xr-x
Message_board.js
5.02
KB
-rwxr-xr-x
abmpreport.js
903
B
-rw-r--r--
absententrysubjectwiseQP.js
16.33
KB
-rwxr-xr-x
ack_exam_app_form.js
2.3
KB
-rwxr-xr-x
ack_rv_rt_application.js
1.89
KB
-rwxr-xr-x
admission_entry_status.js
1.06
KB
-rwxr-xr-x
ansbookentry.js
3.98
KB
-rwxr-xr-x
attendance.js
4.52
KB
-rwxr-xr-x
attendanceentrydaywise.js
25.44
KB
-rw-rw-r--
attreport.js
3.06
KB
-rw-rw-r--
backup.js
7.71
KB
-rwxr-xr-x
backup_restore.js
1.36
KB
-rwxr-xr-x
bundle_ack.js
1.42
KB
-rwxr-xr-x
bundle_dispatch.js
7.82
KB
-rwxr-xr-x
calendar-en.js
3.52
KB
-rwxr-xr-x
calendar-setup.js
8.65
KB
-rwxr-xr-x
calendar.js
48.08
KB
-rwxr-xr-x
calender.js
903
B
-rwxr-xr-x
candidate_list.js
29.59
KB
-rwxr-xr-x
candidate_list.js0104
19.41
KB
-rwxr-xr-x
candidate_list.jsMOHAN
19.42
KB
-rwxr-xr-x
candidate_list1.js
25.96
KB
-rwxr-xr-x
challan_entries.js
3.92
KB
-rwxr-xr-x
challan_preparation.js
2.77
KB
-rwxr-xr-x
checkbrowser.js
2.46
KB
-rwxr-xr-x
college.js
4.56
KB
-rwxr-xr-x
college_BEFORE_LOGINPOPUP.js
2.33
KB
-rwxr-xr-x
college_degree_status.js
3.29
KB
-rwxr-xr-x
collinfo_popup.js
11.62
KB
-rwxr-xr-x
control.js
17.13
KB
-rwxr-xr-x
copomarksentryexternal.js
5.95
KB
-rw-r--r--
copomaxmarksentry.js
5.29
KB
-rw-r--r--
coporeport.js
2.46
KB
-rw-r--r--
createattclass.js
6.83
KB
-rw-rw-r--
createclass.js
18.67
KB
-rw-rw-r--
daterange.js
7.94
KB
-rwxr-xr-x
degree.js
2.86
KB
-rwxr-xr-x
degree1.js
2.86
KB
-rwxr-xr-x
downloadStudentPhotos.js
1.08
KB
-rwxr-xr-x
download_misc_files.js
817
B
-rwxr-xr-x
entryexitevents.js
1.23
KB
-rwxr-xr-x
export_import.js
1.83
KB
-rwxr-xr-x
export_import_setup.js
5.47
KB
-rwxr-xr-x
ext_freeze_module_at_admin_col...
5.91
KB
-rwxr-xr-x
ext_markentry_subjectwise.js
15.64
KB
-rwxr-xr-x
feeupdation.js
5.48
KB
-rwxr-xr-x
footer.js
6.32
KB
-rwxr-xr-x
form_submit.js
1.3
KB
-rwxr-xr-x
formatdate.js
12.14
KB
-rwxr-xr-x
freeze_Ad_Cl_Me.js
2.83
KB
-rwxr-xr-x
freeze_module_at_admin_college...
5.42
KB
-rwxr-xr-x
freeze_module_at_admin_college...
5.43
KB
-rwxr-xr-x
freeze_module_at_university_co...
4.55
KB
-rwxr-xr-x
grid_display.js
901
B
-rwxr-xr-x
ia_invigilators_dairy.js
1.1
KB
-rwxr-xr-x
ia_room_allotment_datewise.js
5.98
KB
-rwxr-xr-x
ia_roomwise_regno.js
1.15
KB
-rw-r--r--
ia_subjectwise_invigilator_dai...
1.11
KB
-rwxr-xr-x
iaabsentEntry.js
7.21
KB
-rw-rw-r--
iaroomallotmantsummary.js
1.08
KB
-rwxr-xr-x
iaroomdeclaration.js
10.39
KB
-rwxr-xr-x
iatimetable.js
4.07
KB
-rw-r--r--
import_marks.js
1.37
KB
-rwxr-xr-x
includeCSS.js
1.28
KB
-rwxr-xr-x
index.js
14.81
KB
-rwxr-xr-x
index1.js
14.55
KB
-rwxr-xr-x
index_BEFORE_LOGINPOPUP.js
4.88
KB
-rwxr-xr-x
invigilators_dairy.js
6.66
KB
-rwxr-xr-x
jquery.color.js
3.57
KB
-rwxr-xr-x
jquery.js
29.15
KB
-rwxr-xr-x
load-report-js-files.js
10.16
KB
-rwxr-xr-x
load_js_files.js
622
B
-rwxr-xr-x
load_mannual_js_files.js
45.33
KB
-rwxr-xr-x
load_mannual_js_files01032017....
18.18
KB
-rwxr-xr-x
load_mannual_js_files24042015....
12.28
KB
-rwxr-xr-x
load_mannual_js_files_19102019...
23.29
KB
-rwxr-xr-x
load_mannual_js_files_before_u...
11.57
KB
-rwxr-xr-x
markentry_studentwise.js
9.32
KB
-rwxr-xr-x
markentry_subjectwise.js
14.61
KB
-rwxr-xr-x
markentry_subjectwise2.js
16.98
KB
-rwxr-xr-x
markentry_subjectwise20092016....
14.54
KB
-rwxr-xr-x
markslistelement_report.js
5.92
KB
-rwxr-xr-x
message_text.js
1.33
KB
-rwxr-xr-x
module_setup.js
4.44
KB
-rwxr-xr-x
month_cal.js
63.03
KB
-rwxr-xr-x
month_cal1.js
1.96
KB
-rwxr-xr-x
openPopUp.js
4.94
KB
-rwxr-xr-x
popup.js
96.44
KB
-rwxr-xr-x
popup_18022017.js
96.13
KB
-rwxr-xr-x
popupold.js
57.4
KB
-rwxr-xr-x
prentrpeng.js
3.13
KB
-rw-r--r--
prsubcnt.js
2.83
KB
-rw-r--r--
qpCntReport.js
2.7
KB
-rw-rw-r--
qppattern.js
33.77
KB
-rw-r--r--
qptable_not_upd_Report.js
2.76
KB
-rw-r--r--
receive_rv_rt_application.js
1.92
KB
-rwxr-xr-x
report_SubjectListGeneral.js
3.26
KB
-rwxr-xr-x
report_setup.js
12.46
KB
-rwxr-xr-x
resultsheet.js
4.02
KB
-rw-rw-r--
revaluation.js
7.56
KB
-rwxr-xr-x
revaluation_oldtype.js
4.65
KB
-rwxr-xr-x
revaluation_withdegree.js
7.5
KB
-rwxr-xr-x
room_allotment.js
2.94
KB
-rwxr-xr-x
room_allotment_19102019.js
2.94
KB
-rwxr-xr-x
room_allotment_datewise.js
6.87
KB
-rwxr-xr-x
roomallotmantsummary.js
1.53
KB
-rwxr-xr-x
roomdeclaration.js
8.59
KB
-rwxr-xr-x
roomwise_regno.js
5.24
KB
-rwxr-xr-x
rv_rt_guide_lines.js
428
B
-rwxr-xr-x
rvdates.js
8.08
KB
-rwxr-xr-x
studSubIdent.js
5.33
KB
-rw-rw-r--
student_entry.js
38.02
KB
-rwxr-xr-x
student_entryold.js
33.98
KB
-rwxr-xr-x
studresult.js
1.58
KB
-rwxr-xr-x
subIAMarksEntry.js
7.59
KB
-rw-rw-r--
subjectAppearing_PopUp.js
1.92
KB
-rwxr-xr-x
subject_freshExam.js
12.57
KB
-rwxr-xr-x
subjectfreez.js
3.79
KB
-rwxr-xr-x
subjectwise_freezing_sectionwi...
5.79
KB
-rwxr-xr-x
subjectwise_invigilator_dairy....
2.74
KB
-rwxr-xr-x
system.js
12.41
KB
-rwxr-xr-x
system_utility.js
8.69
KB
-rwxr-xr-x
teachers.js
13.71
KB
-rwxr-xr-x
transaction-series.js
6.5
KB
-rwxr-xr-x
updateSection.js
2.74
KB
-rwxr-xr-x
updatecopo.js
22.76
KB
-rw-r--r--
updateexamcnt.js
3.55
KB
-rwxr-xr-x
updateqpdet.js
20.13
KB
-rw-rw-r--
updatesspdetails.js
13.95
KB
-rw-rw-r--
uploadStudentPhotos.js
3.7
KB
-rwxr-xr-x
uploadStudentPhotos02062015.js
4.4
KB
-rwxr-xr-x
uploadStudentPhotos_beforedown...
3.52
KB
-rwxr-xr-x
upload_details.js
4.03
KB
-rwxr-xr-x
uploadcopo.js
3.16
KB
-rw-rw-r--
usersetup.js
29.89
KB
-rwxr-xr-x
usersubj_identification.js
4.21
KB
-rwxr-xr-x
validate.js
9.1
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : attendanceentrydaywise.js
const { Alert } = require("react-native"); function attendanceentrydaywise() { $("#page_main_div").load( "../html_modules/attendanceentrydaywise.html?v=1123", function () { document.getElementById("display_module_name").innerHTML = "Attendance Entry Daywise"; document.getElementById("module_name_for_save").value = "Attendance Entry Daywise"; getDefaultHeadFooterLinks("Attendance Entry Daywise"); } ); loaddayteachcode(); if(db == 'demo') { console.log(db); $('#period').val("2"); $('#classcnt').val("3"); $('#syllabus').val("Kannada 1st Chapter Completed"); } // loadclassname1(); } function loaddayteachcode() { $.ajax({ type: "GET", url: $host_url + "loaddayteachcode", success: function (response) { var res = JSON.parse(response); // if (res.data.length == 1) { // var teachnameday = ""; // $("#teachnameday").prop("disabled", true); // } else { // $("#teachnameday").prop("disabled", false); // } var teachnameday = "<option value=''>---Select Teacher---</option>"; for (var i = 0; i < res.data.length; i++) { teachnameday += `<option value='${res.data[i].fteachcode}'>${res.data[i].fteachcode} - ${res.data[i].fteachname}</option>`; } $("#teachnameday").html(teachnameday); }, }); if(db == 'demo') { console.log(db); $('#period').val("2"); $('#classcnt').val("3"); $('#syllabus').val("Kannada 1st Chapter Completed"); } } function changedayteachcode() { var teachcode = document.getElementById("teachnameday").value; $.ajax({ type: "GET", url: $host_url + "loadclassnameday", data: "&teachcode=" + teachcode, success: function (response) { var res = JSON.parse(response); var classnameoptions = "<option value=''>---Select Class Name---</option>"; for (var i = 0; i < res.data.length; i++) { classnameoptions += `<option value='${res.data[i].fclassid}'>${res.data[i].fclassname}</option>`; } $("#classnameoption").html(classnameoptions); }, }); } function loaddegreedaywise() { var todaydate = new Date(); var day = todaydate.getDate(); var month = todaydate.getMonth() + 1; var year = todaydate.getFullYear(); var datestring = day + "/" + month + "/" + year; // document.getElementById("date").value = datestring; $("#date").html(datestring); $.ajax({ type: "POST", url: $host_url + "getDegreeDaywise", success: function (response) { var res = JSON.parse(response); var degreeOptions = "<option value=''>---Select---</option>"; for (var i = 0; i < res.data.length; i++) { degreeOptions += `<option value='${res.data[i].fdegree}'>${res.data[i].fdegree}-${res.data[i].fdescpn}</option>`; } $("#degree").html(degreeOptions); }, }); } function getexamno() { var degree = document.getElementById("degree").value; $.ajax({ type: "POST", data: "°ree=" + degree, url: $host_url + "getExamnoDaywise", success: function (response) { var res = JSON.parse(response); var examnoOptions = "<option value=''>---Select---</option>"; for (var i = 0; i < res.data.length; i++) { examnoOptions += `<option value='${res.data[i].fexamno}'>${res.data[i].fexamno}-${res.data[i].fexamname}</option>`; } $("#examno").html(examnoOptions); }, }); } function getsubjects() { var degree = document.getElementById("degree").value; var examno = document.getElementById("examno").value; $.ajax({ type: "POST", data: "°ree=" + degree + "&examno=" + examno, url: $host_url + "getSubjectDaywise", success: function (response) { var res = JSON.parse(response); var subjectOptions = "<option value=''>---Select---</option>"; for (var i = 0; i < res.data.length; i++) { subjectOptions += `<option value='${res.data[i].fsubcode}'>${res.data[i].fsubcode}-${res.data[i].fsubname}</option>`; } $("#subject").html(subjectOptions); }, }); } function viewattendanceentry() { var period = document.getElementById("period").value; var date = document.getElementById("date").value; var noofclass = document.getElementById("classcnt").value; var classnameoption = document.getElementById("classnameoption").value; // var split = classnameoption.split("-"); if (period == "") { alert("Select period"); $("#period").focus(); return; } if (date == "") { alert("Enter Date"); $("#date").focus(); return; } if (noofclass == "") { alert("Enter Number of Classes"); $("#classcnt").focus(); return; } if (classnameoption == "") { alert("Enter Class Name"); $("#classnameoption").focus(); return; } $.ajax({ type: "POST", data: "&noofclass=" + noofclass + "&period=" + period + "&date=" + date + "&fclassid=" + classnameoption, url: $host_url + "viewattendanceentry", success: function (response) { var res = JSON.parse(response); var slno = 1; var table = `<table align="center" width="100%" cellspacing="0" cellpadding="1" border="1" style="border-radius:5px"> <tbody> <tr> <th align="left" colspan="7" class="ui-jqgrid-titlebar ui-widget-header ui-corner-tl ui-corner-tr ui-helper" style="font-size:12px; padding-left:6px; height:24px;">Attendance Entry Daywise</th> </tr> <tr class="ui-state-default ui-jqgrid-hdiv"> <th align="center" style="width:30px; font-size:12px; border-left:1px solid #C5DBEC;border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;">Sl. No.</th> <th align="center" style="width:50px; font-size:12px; padding:5px 5px; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;">Degree</th> <th align="center" style="width:50px; font-size:12px; padding:5px 5px; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;">Semester</th> <th align="center" style="width:85px; font-size:12px; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;">USN</th> <th align="center" style="width:255px; font-size:12px; padding:5px 5px; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;">Name</th> <th align="center" style="width:70px; font-size:12px; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;">Action</th> </tr>`; if (res.error_code == 0) { for (var i = 0; i < res.data.length; i++) { if (res.data[i].fpresent == "A") { checked = ""; } else { checked = "checked"; } table += `<tr class="ui-widget-content jqgrow"> <td class="tbl_row_new" style="border-left:1px solid #C5DBEC; border-right:1px solid #C5DBEC; padding:2px; font-size:12px;text-align:center;">${slno++}</td> <td class="tbl_row_new" style="text-align:center !important; text-align:initial; border-right:1px solid #C5DBEC; padding:2px; font-size:12px;">${ res.data[i].fdegree }</td> <td class="tbl_row_new" style="text-align:center !important; text-align:initial; border-right:1px solid #C5DBEC; padding:2px; font-size:12px;">${ res.data[i].fexamno }</td> <td class="tbl_row_new" style="text-align:initial;border-right:1px solid #C5DBEC; padding:2px; font-size:12px;text-align:center;">${ res.data[i].fregno }</td> <td class="tbl_row_new" style="text-align:initial; border-right:1px solid #C5DBEC; padding:2px; font-size:12px;">${ res.data[i].fname }</td> <td id = "present" class="tbl_row_new" style="text-align:center; border-right:1px solid #C5DBEC; padding:2px; font-size:12px;"> <input type="checkbox" ${checked} id="present_${ res.data[i].fregno }" ></td>`; table += `</tr>`; } table += `</table>`; $("#daywisedata").html(table); }else { alert(res.data); return; } } }); } function saveattendanceentry() { var syllabus = trim(document.getElementById("syllabus").value); if(syllabus == '') { alert("Enter Syllabus Covered Today"); document.getElementById("syllabus").focus(); return; } var win_width = window.screen.width; $("#batch_dialog").dialog("open"); $("#batch_dialog").data("width.dialog", 400); $("#batch_dialog").data("position.dialog", [(win_width - 400) / 2, 90]); $("#ui-dialog-title-batch_dialog").html("Attendance Summary"); var path = "../html_modules/attend_popup.html"; $("#batch_dialog").load(path, function () { var classnameoption = document.getElementById("classnameoption").value; var convertedIntoArray = []; $("#daywisedata tr").each(function () { var rowDataArray = {}; var actualData = $(this).find("td"); let i = 0; if (actualData.length > 0) { let regno = ""; actualData.each(function () { if (i == 3) { regno = $(this).text(); rowDataArray["regno"] = $(this).text(); } if (i == 4) { rowDataArray["name"] = $(this).text(); } if (i == 5) { if (document.getElementById(`present_${regno}`).checked == true) rowDataArray["present"] = "P"; else rowDataArray["present"] = "A"; } i++; }); convertedIntoArray.push(rowDataArray); } }); var confirmregno = []; var countabsent; for (var i = 0; i < convertedIntoArray.length; i++) { if (convertedIntoArray[i]["present"] == "A") { let tmpobj = {}; tmpobj.name = convertedIntoArray[i]["name"]; tmpobj.regno = convertedIntoArray[i]["regno"]; confirmregno.push(tmpobj); } } console.log("gjhgjg: ", confirmregno); var totalcount = convertedIntoArray.length; var countabsent = confirmregno.length; var countpresent = parseInt(totalcount) - parseInt(countabsent); let regno = confirmregno.toString(); var fregno = ""; if (countabsent !== 0) { fregno = `Reg No. : ${regno}`; } else { fregno = ""; } let text = `Total No. of Students : ${totalcount} | Total Present : ${countpresent} | Total Absent : ${countabsent} ${fregno}`; let table = ``; table = ` <h4>Following are Absentees<h4> <table border = '1'> <tr> <th>Sl. No.</th> <th>USN No.</th> <th>Name</th> </tr>`; if (countabsent !== 0) { let x = 1; for (let i = 0; i < confirmregno.length; i++) { table += `<tr > <td style = 'text-align: center;'>${x}</td> <td>${confirmregno[i].regno}</td> <td>${confirmregno[i].name}</td> </tr>`; x++; } table += `</table>`; } else { table += `<tr colspan="3"> <th colspan="3">No Absentees</th> </tr></table>`; } table += `<br> <table border = '1'> <tr> <th>Total Students</th> <th>Total Present</th> <th>Total Absent</th> </tr> <tr> <td style = 'text-align: center;'>${totalcount}</td> <td style = 'text-align: center;'>${countpresent}</td> <td style = 'text-align: center;'>${countabsent}</td> </tr></table>`; $("#attsum").html(table); }); } function saveAttendDaewsie() { $("#batch_dialog").dialog("close"); var period = document.getElementById("period").value; var date = document.getElementById("date").value; var syllabus = trim(document.getElementById("syllabus").value); var noofclass = document.getElementById("classcnt").value; var classnameoption = document.getElementById("classnameoption").value; // var split = classnameoption.split("-"); syllabus = syllabus.replace("'","`"); syllabus = syllabus.replace("&","and"); if(syllabus == '') { alert("Enter Syllabus Covered Today"); document.getElementById("syllabus").focus(); return; } var convertedIntoArray = []; $("#daywisedata tr").each(function () { var rowDataArray = {}; var actualData = $(this).find("td"); let i = 0; if (actualData.length > 0) { let regno = ""; actualData.each(function () { if (i == 3) { regno = $(this).text(); rowDataArray["regno"] = $(this).text(); } if (i == 5) { if (document.getElementById(`present_${regno}`).checked == true) rowDataArray["present"] = "P"; else rowDataArray["present"] = "A"; } i++; }); convertedIntoArray.push(rowDataArray); } }); var confirmregno = []; var countabsent; for (var i = 0; i < convertedIntoArray.length; i++) { if (convertedIntoArray[i]["present"] == "A") { confirmregno.push(convertedIntoArray[i]["regno"]); } } var totalcount = convertedIntoArray.length; var countabsent = confirmregno.length; var countpresent = parseInt(totalcount) - parseInt(countabsent); let regno = confirmregno.toString(); var fregno = ""; if (countabsent !== 0) { fregno = `Reg No. : ${regno}`; } else { fregno = ""; } console.log( "&noofclass=" + noofclass + "&fclassid=" + classnameoption + "&period=" + period + "&date=" + date + "&data=" + JSON.stringify(convertedIntoArray) ); $.ajax({ type: "POST", data: "&noofclass=" + noofclass + "&fclassid=" + classnameoption + "&period=" + period + "&date=" + date + "&data=" + JSON.stringify(convertedIntoArray)+"&syllabus="+syllabus, url: $host_url + "saveattendanceentry", success: function (response) { var res = JSON.parse(response); console.log(res); if (res.error_code == 0) { alert(res.data.msg); attendanceentrydaywise(); } else { alert(res.data.msg); return; } }, }); } function deleteattendanceentry() { $("#page_main_div").load( "../html_modules/deleteattendanceentrydaywise.html?v=1122", function () { document.getElementById("display_module_name").innerHTML = "Delete Attendance Entry Daywise"; document.getElementById("module_name_for_save").value = "Delete Attendance Entry Daywise"; getDefaultHeadFooterLinks("Attendance Entry Daywise"); viewDeleteAddStudDet(); } ); } function viewDeleteAddStudDet() { let teachfrom = $("#dteachfrom").val(); let teachto = $("#dteachto").val(); console.log(teachfrom, teachto); $.ajax({ type: "POST", data: "&teachfrom=" + teachfrom + "&teachto=" + teachto, url: $host_url + "viewDeleteAddStudDet", success: function (response) { var res = JSON.parse(response); console.log(res); var slno = 1; var table = `<table align="center" width="100%" cellspacing="0" cellpadding="1" border="1" style="border-radius:5px"> <tbody> <tr> <th align="left" colspan="10" class="ui-jqgrid-titlebar ui-widget-header ui-corner-tl ui-corner-tr ui-helper" style="font-size:12px; padding-left:6px; height:24px;">Delete Attendance Entry Daywise</th> </tr> <tr class="ui-state-default ui-jqgrid-hdiv"> <th align="center" style="width:30px; font-size:12px; border-left:1px solid #C5DBEC;border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;">Sl. No.</th> <th align="center" style="width:350px; font-size:12px; padding:5px 5px; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;">Teacher name</th> <th align="center" style="width:50px; font-size:12px; padding:5px 5px; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;">Class ID</th> <th align="center" style="width:250px; font-size:12px; padding:5px 5px; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;">Class Name</th> <th align="center" style="width:70px; font-size:12px; padding:5px 5px; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;">Date</th> <th align="center" style="width:30px; font-size:12px; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;">Period</th> <th align="center" style="width:30px; font-size:12px; padding:5px 5px; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;">No. of Class</th> <th align="center" style="width:30px; font-size:12px; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;">Present</th> <th align="center" style="width:30px; font-size:12px; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;">Absent</th> <th align="center" style="width:30px; font-size:12px; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;">Delete</th> </tr>`; if (res.error_code == 0) { for (var i = 0; i < res.data.length; i++) { table += `<tr class="ui-widget-content jqgrow"> <td class="tbl_row_new" style="border-left:1px solid #C5DBEC; border-right:1px solid #C5DBEC; padding:2px; font-size:12px;text-align:center;">${slno++}</td> <td class="tbl_row_new" style=" text-align:initial; border-right:1px solid #C5DBEC; padding:2px; font-size:12px;">${ res.data[i].fteach }</td> <td class="tbl_row_new" style="text-align:center !important; border-right:1px solid #C5DBEC; padding:2px; font-size:12px;">${ res.data[i].fclassid }</td> <td class="tbl_row_new" style="text-align:center !important; text-align:initial; border-right:1px solid #C5DBEC; padding:2px; font-size:12px;">${ res.data[i].fclassname }</td> <td class="tbl_row_new" style="text-align:center !important;border-right:1px solid #C5DBEC; padding:2px; font-size:12px;">${ res.data[i].fdate }</td> <td class="tbl_row_new" style="text-align:initial;border-right:1px solid #C5DBEC; padding:2px; font-size:12px;text-align:center;">${ res.data[i].fperiod }</td> <td class="tbl_row_new" style="text-align:center; border-right:1px solid #C5DBEC; padding:2px; font-size:12px;">${ res.data[i].fnoclass }</td> <td class="tbl_row_new" style="text-align:center; border-right:1px solid #C5DBEC; padding:2px; font-size:12px;">${ res.data[i].pcnt }</td> <td class="tbl_row_new" style="text-align:center; border-right:1px solid #C5DBEC; padding:2px; font-size:12px;">${ res.data[i].acnt }</td> <td class="tbl_row_new" style="text-align:center; border-right:1px solid #C5DBEC; padding:2px; font-size:12px;"> <span style=" background-color: red; border: none; color: white; padding: 5px 20px; text-align: center; text-decoration: none; display: inline-block; font-size: 12px; cursor: pointer; " onclick="deleteAddstudentry('${res.data[i].fclassid}','${ res.data[i].fperiod }','${res.data[i].fnoclass}','${res.data[i].fdate}')" >Delete</span> <span style=" background-color: green; border: none; color: white; padding: 5px 20px; text-align: center; text-decoration: none; display: inline-block; font-size: 12px; cursor: pointer; " onclick="modifyAddstudentry('${res.data[i].fteachcode}','${ res.data[i].fteachname }','${res.data[i].fclassid}','${res.data[i].fperiod}','${ res.data[i].fnoclass }','${res.data[i].fdate}','${res.data[i].fclassname}')" >Modify</span> </td>`; table += `</tr>`; } table += `</table>`; $("#deletedaywisedata").html(table); } }, }); } function deleteAddstudentry(fclassid, fperiod, fnoclass, fdate) { let parameters = "&fclassid=" + fclassid + "&fperiod=" + fperiod + "&fnoclass=" + fnoclass + "&fdate=" + fdate; let text = "Are You Sure...!"; if (confirm(text) == true) { $.ajax({ type: "GET", url: $host_url + "deleteAddstudentry", data: parameters, success: function (response) { var res = JSON.parse(response); console.log(res.error_code); if (res.error_code == 0) { alert("Deleted Successfully...!"); deleteattendanceentry(); } else { alert("Failed to Delete...!"); return; } }, }); } else { return; } } function modifyAddstudentry( fteachcode, fteachname, fclassid, fperiod, fnoclass, fdate, fclassname ) { let parameters = "&fteachcode=" + fteachcode + "&fclassid=" + fclassid + "&fperiod=" + fperiod + "&fnoclass=" + fnoclass + "&fdate=" + fdate; $.ajax({ type: "GET", url: $host_url + "modifyAddstudentry", data: parameters, success: function (response) { var res = JSON.parse(response); if (res.error_code == 0) { $("#page_main_div").load( "../html_modules/attendanceentrydaywise.html?v=1122", function () { document.getElementById("display_module_name").innerHTML = "Attendance Entry Daywise"; document.getElementById("module_name_for_save").value = "Attendance Entry Daywise"; getDefaultHeadFooterLinks("Attendance Entry Daywise"); $("#teachnameday").append( `<option value="${fteachcode}">${fteachcode} - ${fteachname}</option>` ); $("#classnameoption").append( `<option value="${fclassid}">${fclassid} - ${fclassname}</option>` ); $("#period").val(fperiod); var dateAr = fdate.split("/"); var newDate = dateAr[2] + "-" + dateAr[1] + "-" + dateAr[0].slice(-2); $("#date").val(newDate); $("#classcnt").val(fnoclass); var slno = 1; var table = `<table align="center" width="100%" cellspacing="0" cellpadding="1" border="1" style="border-radius:5px"> <tbody> <tr> <th align="left" colspan="7" class="ui-jqgrid-titlebar ui-widget-header ui-corner-tl ui-corner-tr ui-helper" style="font-size:12px; padding-left:6px; height:24px;">Attendance Entry Daywise</th> </tr> <tr class="ui-state-default ui-jqgrid-hdiv"> <th align="center" style="width:30px; font-size:12px; border-left:1px solid #C5DBEC;border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;">Sl. No.</th> <th align="center" style="width:50px; font-size:12px; padding:5px 5px; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;">Degree</th> <th align="center" style="width:50px; font-size:12px; padding:5px 5px; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;">Semester</th> <th align="center" style="width:85px; font-size:12px; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;">USN</th> <th align="center" style="width:255px; font-size:12px; padding:5px 5px; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;">Name</th> <th align="center" style="width:70px; font-size:12px; border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;">Action</th> </tr>`; let fsyllabus = ''; if (res.error_code == 0) { for (var i = 0; i < res.data.length; i++) { if (res.data[i].fpresent == "A") { checked = ""; } else { checked = "checked"; } fsyllabus = res.data[i].fsyllabus; table += `<tr class="ui-widget-content jqgrow"> <td class="tbl_row_new" style="border-left:1px solid #C5DBEC; border-right:1px solid #C5DBEC; padding:2px; font-size:12px;text-align:center;">${slno++}</td> <td class="tbl_row_new" style="text-align:center !important; text-align:initial; border-right:1px solid #C5DBEC; padding:2px; font-size:12px;">${ res.data[i].fdegree }</td> <td class="tbl_row_new" style="text-align:center !important; text-align:initial; border-right:1px solid #C5DBEC; padding:2px; font-size:12px;">${ res.data[i].fexamno }</td> <td class="tbl_row_new" style="text-align:initial;border-right:1px solid #C5DBEC; padding:2px; font-size:12px;text-align:center;">${ res.data[i].fregno }</td> <td class="tbl_row_new" style="text-align:initial; border-right:1px solid #C5DBEC; padding:2px; font-size:12px;">${ res.data[i].fname }</td> <td id = "present" class="tbl_row_new" style="text-align:center; border-right:1px solid #C5DBEC; padding:2px; font-size:12px;"> <input type="checkbox" ${checked} id="present_${ res.data[i].fregno }" ></td>`; table += `</tr>`; } table += `</table>`; $("#daywisedata").html(table); } $("#syllabus").val(fsyllabus); } ); } }, }); }
Close