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.145.37.211
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 /
kusdde /
adm /
admin /
js /
[ HOME SHELL ]
Name
Size
Permission
Action
pages
[ DIR ]
drwxr-xr-x
MainPage.js
47.64
KB
-rwxr-xr-x
MainPage2.js
45.7
KB
-rwxr-xr-x
MainPage2_17122018.js
35.07
KB
-rwxr-xr-x
MainPage_11302018.js
44.39
KB
-rwxr-xr-x
admin.js
15.51
KB
-rwxr-xr-x
advanced-form-elements.js
5.41
KB
-rwxr-xr-x
apprCandidList.js
10.2
KB
-rwxr-xr-x
demo.js
3.33
KB
-rwxr-xr-x
forgot-password.js
520
B
-rwxr-xr-x
form-wizard.js
2.9
KB
-rwxr-xr-x
form_submit.js
1.3
KB
-rwxr-xr-x
getautofill.php
438
B
-rwxr-xr-x
helpers.js
576
B
-rwxr-xr-x
registration.js
5.97
KB
-rwxr-xr-x
script.js
3
B
-rwxr-xr-x
sign-in.js
1.07
KB
-rwxr-xr-x
sign-up.js
2.83
KB
-rwxr-xr-x
updateFeeDet.js
3.7
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : MainPage.js
var USER,USERTYPE; function loadMaster() { //loaddashboard(); $.ajax({ type: 'post', url: 'src1/login.php', //data:parameters, success: function(response) { response = JSON.parse(response); var {status} = response; if(status === 'loggedin') { ({ USER,USERTYPE } = response); if(USERTYPE === 'usr') { $('.createUserMenu').hide(); $('#createUserMenu').show(); $('#rcreateUserMenu').show(); $('#gst').hide(); $('#rgst').hide(); loaddashboard(); } else if(USERTYPE === 'gst') { $('.createUserMenu').hide(); $('.gst').hide(); $('#gst').show(); $('#rgst').show(); }else { loaddashboard(); } } else { alert("please login"); window.location.href = 'index.html'; } } }); } var photo_filename; var sign_filename; function loadAppRep() { $('#loadtab').load('html_modules/application_rep.html'); } function getReAddDet() { if(!$('#createUserForm').valid()){ return; } var datastring = `&pRegno=${$('#idRegno').val()}&page=registration`; $.ajax({ type: "POST", async: false, data:datastring, url:$host_url+'getRerigistrationDetails', success: function getsubjectdetResponce(responce) { response = JSON.parse(responce); if(response.error_code == 0) { $('#idLoadApp').load('html_modules/application.html',function(){ $('#subject_det').hide(); $('#fee_det').hide(); $('#personal_det').show(); $('#success_card').hide(); $.ajax({ type: "POST", async: false, url:$host_url+'getcmsdropdownmenuvalues', success: function GetCMSDropDownMenuValuesResponce(responce) { responce = eval('(' + responce + ')'); var serv_arr = responce.data['category']; var serv_title = ''; FillDropdownValues(serv_arr,'category',serv_title); } }); getRegnoDetails_give_edit('page', undefined); }); } else { alert(response.data.msg); } } }); } function loadAppFresh() { $('#loadtab').load('html_modules/application.html',function(){ $('#subject_det').hide(); $('#fee_det').hide(); $('#personal_det').show(); $('#success_card').hide(); $('#dee').hide(); $('#passuniv').hide(); $('#lyear').hide(); verify = 1; $.ajax({ type: "POST", async: false, url:$host_url+'getcmsdropdownmenuvalues', success: function GetCMSDropDownMenuValuesResponce(responce) { responce = eval('(' + responce + ')'); var serv_arr = responce.data['category']; var serv_title = ''; FillDropdownValues(serv_arr,'category',serv_title); } }); var $demoMaskedInput = $('.daterange'); //Date $demoMaskedInput.find('.date').inputmask('dd/mm/yyyy', { placeholder: '__/__/____' }); var photo = $("#frmFileUpload").dropzone({ paramName: "file", maxFiles: 1, acceptedFiles: ".jpeg,.jpg", resizeWidth: 190, resizeHeight: 220, thumbnailWidth: 190, thumbnailHeight: 220, maxFilesize: 0.2, init: function() { this.on("maxfilesexceeded", function(file){ alert("No more files please!"); }); this.on('success', function(file, response) { photo_filename = file.name; }); }, addRemoveLinks: true, removedfile: function(file) { photo_filename = undefined; var _ref; return (_ref = file.previewElement) != null ? _ref.parentNode.removeChild(file.previewElement) : void 0; }, resize: function(file) { var resizeInfo = { srcX: 0, srcY: 0, trgX: 0, trgY: 0, srcWidth: file.width, srcHeight: file.height, trgWidth: this.options.thumbnailWidth, trgHeight: this.options.thumbnailHeight }; return resizeInfo; } }); var sign = $("#signatureUpload").dropzone({ paramName: "file", maxFiles: 1, acceptedFiles: ".jpeg,.jpg", resizeWidth: 190, resizeHeight: 60, thumbnailWidth: 190, thumbnailHeight: 60, maxFilesize: 0.1, init: function() { this.on("maxfilesexceeded", function(file){ alert("No more files please!"); }); this.on('success', function(file, response) { sign_filename = file.name; }); }, addRemoveLinks: true, removedfile: function(file) { sign_filename = undefined; var _ref; return (_ref = file.previewElement) != null ? _ref.parentNode.removeChild(file.previewElement) : void 0; }, resize: function(file) { var resizeInfo = { srcX: 0, srcY: 0, trgX: 0, trgY: 0, srcWidth: file.width, srcHeight: file.height, trgWidth: this.options.thumbnailWidth, trgHeight: this.options.thumbnailHeight }; return resizeInfo; } }); }); } function loadAsignApplications() { $('#loadtab').load('html_modules/asignApplication.html',function() { $('#appdetl').hide(); $.ajax({ type: 'post', async:true, url: 'src1/getautofill.php', success: function(response) { response = JSON.parse(response); var { college, degree } = response; $( "#fromdeg" ).autocomplete({ source: degree }).focus(function(){ $(this).data("uiAutocomplete").search($(this).val()); }); $( "#todeg" ).autocomplete({ source: degree }).focus(function(){ $(this).data("uiAutocomplete").search($(this).val()); }); $( "#fromcoll" ).autocomplete({ source: college }).focus(function(){ $(this).data("uiAutocomplete").search($(this).val()); }); $( "#tocoll" ).autocomplete({ source: college }).focus(function(){ $(this).data("uiAutocomplete").search($(this).val()); }); } }); }); } function loadApplications() { $('#loadtab').load('html_modules/apprApplications.html',function() { $('#appdetl').hide(); $.ajax({ type: 'post', async:true, url: 'src1/getautofill.php', success: function(response) { response = JSON.parse(response); var { college, degree } = response; $( "#fromdeg" ).autocomplete({ source: degree }).focus(function(){ $(this).data("uiAutocomplete").search($(this).val()); }); $( "#todeg" ).autocomplete({ source: degree }).focus(function(){ $(this).data("uiAutocomplete").search($(this).val()); }); $( "#fromcoll" ).autocomplete({ source: college }).focus(function(){ $(this).data("uiAutocomplete").search($(this).val()); }); $( "#tocoll" ).autocomplete({ source: college }).focus(function(){ $(this).data("uiAutocomplete").search($(this).val()); }); } }); }); } function loadadmlaste() { $('#loadtab').load('html_modules/admlastdate.html',function() { $('#appdetl').hide(); $.ajax({ type: 'post', async:true, url: 'src1/getautofill.php', success: function(response) { response = JSON.parse(response); var { college, degree } = response; $( "#fromdeg" ).autocomplete({ source: degree }).focus(function(){ $(this).data("uiAutocomplete").search($(this).val()); }); $( "#todeg" ).autocomplete({ source: degree }).focus(function(){ $(this).data("uiAutocomplete").search($(this).val()); }); $( "#fromcoll" ).autocomplete({ source: college }).focus(function(){ $(this).data("uiAutocomplete").search($(this).val()); }); $( "#tocoll" ).autocomplete({ source: college }).focus(function(){ $(this).data("uiAutocomplete").search($(this).val()); }); } }); }); } function loadIdcards() { $('#loadtab').load('html_modules/idcard.html',function() { $('#appdetl').hide(); $.ajax({ type: 'post', async:true, url: 'src1/getautofill.php', success: function(response) { response = JSON.parse(response); var { college, degree } = response; $( "#fromdeg" ).autocomplete({ source: degree }).focus(function(){ $(this).data("uiAutocomplete").search($(this).val()); }); $( "#todeg" ).autocomplete({ source: degree }).focus(function(){ $(this).data("uiAutocomplete").search($(this).val()); }); $( "#fromcoll" ).autocomplete({ source: college }).focus(function(){ $(this).data("uiAutocomplete").search($(this).val()); }); $( "#tocoll" ).autocomplete({ source: college }).focus(function(){ $(this).data("uiAutocomplete").search($(this).val()); }); } }); }); } // allow or block study centres function loadABCentre() { $('#loadtab').load('html_modules/abcentre.html',function() { $('#appdetl').hide(); $.ajax({ type: 'post', async:true, url: 'src1/getautofill.php', success: function(response) { response = JSON.parse(response); var { college, degree } = response; $( "#idFromcoll" ).autocomplete({ source: college }).focus(function(){ $(this).data("uiAutocomplete").search($(this).val()); }); $( "#idTocoll" ).autocomplete({ source: college }).focus(function(){ $(this).data("uiAutocomplete").search($(this).val()); }); } }); }); } function getCentreDetails() { if(!$('#abCentreForm').valid()){ return; } var parameters = "pAction=display&pFromcoll="+getcodes($('#idFromcoll').val()); parameters += "&pTocoll="+getcodes($('#idTocoll').val()); parameters += "&pType="+$('#idType').val(); $.ajax({ type: 'post', url: 'src1/abcolleges.php', data:parameters, success: function(response) { response = JSON.parse(response); if(response.status == 'error') { alert(response.msg); return; } var { colleges } = response; $('.js-exportable').html(''); $('#appdetl').show(); var coll_arr = []; //get array of applications for(var i in colleges){ var arr = $.map(colleges[i], function(el) { return el }); coll_arr.push(arr); } table = $('.js-exportable').DataTable( { dom: 'Bfrtip', destroy: true, responsive: true, data: coll_arr, columnDefs: [ { targets: 0, // your case first column className: "text-center", width: "8%" }, { targets: 3, // your case first column className: "text-center", width: "10%" }, { targets: 4, searchable: false, orderable: false, className: 'dt-body-center', render: function (data, type, full, meta) { return '<center><input type="checkbox" name="id[]" class="filled-in chk-col-light-blue" id="'+ $('<div/>').text(data).html()+'" value="'+ $('<div/>').text(data).html()+'"> <lable for="'+ $('<div/>').text(data).html()+'"> </label></center>'; } }], order: [[1, 'asc']], columns: [ { title: "<center>College Code</center>" }, { title: "<center>College Name</center>" }, { title: "<center>Town</center>" }, { title: "<center>Permission</center>"}, { title: "<center><input type='checkbox' name='select_all' value='1' id='select-all'/></center>" } ], "lengthMenu": [ [2, 4, 8, -1], [2, 4, 8, "All"] ], "pageLength": 15, buttons: [ 'copy', 'csv', 'excel', 'pdf', 'print' ] }); //check already assigned user var rows = table.rows({ 'search': 'applied' }).nodes(); $('input[type="checkbox"]', rows).prop('checked', this.checked); $('#select-all').on('click', function(){ // Check/uncheck all checkboxes in the table var rows = table.rows({ 'search': 'applied' }).nodes(); $('input[type="checkbox"]', rows).prop('checked', this.checked); }); } }); } function allowBlockCentres(perm) { var selected_colls = []; table.$('input[type="checkbox"]').each(function(){ if(this.checked){ // Create an array of applications selected_colls.push(this.value); } }); if (typeof selected_colls !== 'undefined' && selected_colls.length > 0) { // the array is defined and has at least one element var user = $('#user').val(); var parameters = `pAction=save&pPerm=${perm}&pColls=${selected_colls}`; $.ajax({ type: 'post', url: 'src1/abcolleges.php', data: parameters, success: function(response) { response = JSON.parse(response); var {status,msg} = response; if(status == "success"){ alert(msg); } else { alert(msg); } } }); } else { alert("No college selected"); } } //loadChangeCollege function loadChangeCollege() { $('#loadtab').load('html_modules/changeStudyCentre.html',function() { $('#idRegno').focus(); $('#idPerinfo').hide();//changeStudyForm $('#changeStudyForm').hide(); }); } function dispChangeStudyCentre() { if(!$('#dispChangeStudyForm').valid()){ return; } var parameters = `pAction=display&pRegno=${$('#idRegno').val()}`; $.ajax({ type: 'post', url: 'src1/changeStudyCentre.php', data:parameters, success: function(response) { var resp = JSON.parse(response); var { status } = JSON.parse(response); if( status == 'success') { var { data, college } = JSON.parse(response); $('#studinfo').html(`<tr> <td width="15%"><b>Student Name</b></td><td width="2%"> : </td><td> ${ data.fname }</td> </tr> <tr> <td><b>Degree</b></td><td width="2%"> : </td><td>${ data.degree }</td> </tr> <tr> <td><b>Exam</b></td><td width="2%"> : </td><td> ${ data.examno } </td> </tr> <tr> <td><b>Existing Centre </b></td><td width="2%"> : </td><td> ${ data.college } </td> </tr>`); $( "#idCollege" ).autocomplete({ source: college }).focus(function(){ $(this).data("uiAutocomplete").search($(this).val()); }); $('#idPerinfo').show(); $('#changeStudyForm').show(); $('#idCollege').focus(); } else { alert(resp.msg); } } }); } function changeStudyCentre() { if(!$('#changeStudyForm').valid()){ return; } var parameters = `pAction=change &pCollcode=${getcodes($('#idCollege').val())} &pRegno=${$('#idRegno').val()}`; $.ajax({ type: 'post', url: 'src1/changeStudyCentre.php', data:parameters, success: function(response) { var { status, msg } = JSON.parse(response); if( status == 'success') { alert( msg ); } else { alert( msg ); } } }); } function loadGapStudent() { $('#loadtab').load('html_modules/gapstudent.html',function() { $('#regno').focus(); $('#idPerinfo').hide(); $('#idSaveGapForm').hide(); }); } function getgapstudentdet() { var parameters = `pRegno=${$('#idRegno').val()}&pAction=display`; $.ajax({ type: 'post', url: 'src1/getgapstudent.php', data:parameters, success: function(response) { response = JSON.parse(response); var {status} = response; if(status == "success") { var { data } = response; $('#studinfo').html(`<tr> <td width="15%"><b>Student Name</b></td><td width="2%"> : </td><td> ${ data.fname }</td> </tr> <tr> <td><b>Degree</b></td><td width="2%"> : </td><td>${ data.degree }</td> </tr> <tr> <td><b>Exam</b></td><td width="2%"> : </td><td> ${ data.examno } </td> </tr> <tr> <td><b>Centre </b></td><td width="2%"> : </td><td> ${ data.college } </td> </tr>`); $('#idPerinfo').show(); $('#idSaveGapForm').show(); } else { var { msg } = response; alert(msg); } } }); } function updateGapStudent() { var regno = $('#idRegno').val(); var year = $('#year').val(); var fee = $('#fee').val(); var parameters = `regno=${regno}&year=${year}&pAction=save&fee=${fee}`; $.ajax({ type: 'post', url: 'src1/getgapstudent.php', data:parameters, success: function(response) { response = JSON.parse(response); var {status,msg} = response; alert(msg); $('#regno').val(''); $('#year').val(''); $('#fee').val(''); $('#idPerinfo').hide(); $('#idSaveGapForm').hide(); $('#regno').focus(); } }); } function loaddashboard() { $('#loadtab').load('html_modules/dashboard.html',function() { var parameters = `usertype=${USERTYPE}&user=${USER}`; $.ajax({ type: 'post', url: 'src1/dashboard.php', data:parameters, success: function(response) { response = JSON.parse(response); var {totalappcount, approvecount, notapprovecount, onlinepaysuccesscount, onlinepaycount, challanpaycount} = response; $('#tot_app').attr('data-to',totalappcount); $('#appr_app').attr('data-to',approvecount); $('#pend_app').attr('data-to',notapprovecount); $('#online_app').attr('data-to',onlinepaycount); $('#sbm_app').attr('data-to',challanpaycount); var {freshstudcount, secondstudcount, trirdstudcount, lateralstudcount} = response; $('#first_year').attr('data-to',freshstudcount); $('#second_year').attr('data-to',secondstudcount); $('#third_year').attr('data-to',trirdstudcount); $('#lateral_entry').attr('data-to',lateralstudcount); $('.count-to').countTo(); var {onlinepaymentdone, onlinepaymentpending, sbmpaymentdone, sbmpaymentpending, challanpayackcount, challanpayackpencount} = response; var totamt = parseInt(onlinepaymentdone)+ parseInt(onlinepaymentpending)+parseInt(sbmpaymentdone)+parseInt(sbmpaymentpending); var totpaid = parseInt(onlinepaymentdone)+parseInt(sbmpaymentdone); var totpend = parseInt(onlinepaymentpending)+parseInt(sbmpaymentpending); $('#tot_paid').html(formartCurrency(totpaid)); $('#challan_paid').html(formartCurrency(sbmpaymentdone)); $('#online_paid').html(formartCurrency(onlinepaymentdone)); //Sales count to $('.sales-count-to').countTo( { formatter: function (value, options) { return '$' + value.toFixed(2).replace(/(\d)(?=(\d\d\d)+(?!\d))/g, ' ').replace('.', ','); } }); initCharts() function getChartJs(type) { var config = null; if (type === 'bara') { config = { type: 'bar', data: { labels: ["Challan Payments", "Online Payments"], datasets: [{ label: "Total", data: [challanpaycount, onlinepaycount], backgroundColor: 'rgba(0, 188, 212, 0.8)' }, { label: "Done", data: [challanpayackcount, onlinepaysuccesscount], backgroundColor: 'rgba(80, 244, 66, 0.8)' }, { label: "Pending", data: [challanpayackpencount, parseInt(onlinepaycount)-parseInt(onlinepaysuccesscount)], backgroundColor: 'rgba(233, 30, 99, 0.8)' }] }, options: { responsive: true, legend: false } } } return config; } new Chart(document.getElementById("bar_chart_app").getContext("2d"), getChartJs('bara')); } }); }); } function formartCurrency(x) { x=x.toString(); var lastThree = x.substring(x.length-3); var otherNumbers = x.substring(0,x.length-3); if(otherNumbers != '') lastThree = ',' + lastThree; var res = otherNumbers.replace(/\B(?=(\d{2})+(?!\d))/g, ",") + lastThree; return 'Rs.'+res; } //Charts function initCharts() { //Chart Bar $('.chart.chart-bar').sparkline(undefined, { type: 'bar', barColor: '#fff', negBarColor: '#fff', barWidth: '4px', height: '34px' }); //Chart Pie $('.chart.chart-pie').sparkline(undefined, { type: 'pie', height: '50px', sliceColors: ['rgba(255,255,255,0.70)', 'rgba(255,255,255,0.85)', 'rgba(255,255,255,0.95)', 'rgba(255,255,255,1)'] }); //Chart Line $('.chart.chart-line').sparkline(undefined, { type: 'line', width: '60px', height: '45px', lineColor: '#fff', lineWidth: 1.3, fillColor: 'rgba(0,0,0,0)', spotColor: 'rgba(255,255,255,0.40)', maxSpotColor: 'rgba(255,255,255,0.40)', minSpotColor: 'rgba(255,255,255,0.40)', spotRadius: 3, highlightSpotColor: '#fff' }); } function loadCreateUser() { $('#loadtab').load('html_modules/createUser.html'); } function createUser() { if(!$('#createUserForm').valid()){ return; } var usrname = $('#usrname').val(); var password = $("#password").val(); var parameters = `&usrname=${usrname}&password=${password}`; $.ajax({ type: 'post', url: 'src1/createUser.php', data: parameters, success: function(response) { response = JSON.parse(response); var {status,msg} = response; if(status == "success"){ alert(msg); } else { alert(msg); } } }); } var table; function getcodes(param){ res = param.split('-'); return res[0]; } function getApprAppDetails() { if(!$('#appRangeForm').valid()){ return; } var parameters = "fromdeg="+getcodes($('#fromdeg').val()); parameters += "&todeg="+getcodes($('#todeg').val()); parameters += "&fromcoll="+getcodes($('#fromcoll').val()); parameters += "&tocoll="+getcodes($('#tocoll').val()); parameters += "&fromapp="+$('#fromapp').val(); parameters += "&toapp="+$('#toapp').val(); parameters += "&fromdate="+$('#fromdate').val(); parameters += "&todate="+$('#todate').val(); parameters += "&year="+$('#year').val(); parameters += "&pAprtype="+$('#idAprtype').val(); $.ajax({ type: 'post', url: 'src1/getapprapps.php', data:parameters, success: function(response) { response = JSON.parse(response); if(response.status == 'error') { alert(response.msg); return; } var {apps : app_obj_arr, users } = response; /*if(USERTYPE === 'usr') $('#saveAssignForm').hide()*/ $('.js-exportable').html(''); $('#appdetl').show(); var app_arr = []; //user option creation var usr_arr = Object.values(users); var options = usr_arr.map((usr) => { return `<option value='${usr}'>${usr}</option>` }); $('#user').html(options.join('')); //get array of applications for(var i in app_obj_arr){ var arr = $.map(app_obj_arr[i], function(el) { return el }); app_arr.push(arr); } table = $('.js-exportable').DataTable( { dom: 'Bfrtip', destroy: true, responsive: true, data: app_arr, columnDefs: [{ targets: 0, searchable: false, orderable: false, className: 'dt-body-center', render: function (data, type, full, meta) { return '<center><input type="checkbox" name="id[]" class="filled-in chk-col-light-blue" id="'+ $('<div/>').text(data).html()+'" value="'+ $('<div/>').text(data).html()+'"> <lable for="'+ $('<div/>').text(data).html()+'"> </label></center>'; } }, { targets: 3, searchable: false, orderable: false, className: 'dt-body-center', render: function (data, type, full, meta) { return '<center><img width = "60px" height = "80px" src="'+data+'"></img></center>'; } }, { targets: 5, className: "text-center", width: "5%" }, { targets: 7, className: "text-center", width: "5%" }, { targets: 8, className: "text-right", width: "5%" }, { targets: 9, className: "text-right", width: "5%" }, { targets: 10, className: "text-center", width: "5%", render: function (data, type, full, meta) { if(data == 'PENDING') var color = "#c6b601"; else if(data == "APPROVED") var color = "green"; else if(data == "REJECTED") var color = "red"; else var color = "black"; return `<span style="color:${ color };font-weight:700">${data}</span>`; } }, { targets: 11, searchable: false, orderable: false, className: 'dt-body-center', render: function (data, type, full, meta) { return `<center><button class = "btn btn-primary details" onclick="getStudentDetails('${$('<div/>').text(data).html()}')">Details</button></center>`; } }], order: [[1, 'asc']], columns: [ { title: "<center><input type='checkbox' name='select_all' value='1' id='select-all'/></center>" }, { title: "<center>App. No.</center>" }, { title: "<center>Applied Date</center>" }, { title: "<center>Photo</center>" }, { title: "<center>Name</center>" }, { title: "<center>Cntr. Code</center>" }, { title: "<center>Degree</center>" }, { title: "<center>Pay. mode</center>" }, { title: "<center>Fee Paid</center>" }, { title: "<center>Adm. Fee</center>" }, { title: "<center>Status</center>" }, { title: "<center>Details</center>" } ], "lengthMenu": [ [2, 4, 8, -1], [2, 4, 8, "All"] ], "pageLength": 15, buttons: [ 'csv', 'excel', 'pdf' ] }); //check already assigned user var rows = table.rows({ 'search': 'applied' }).nodes(); $('input[type="checkbox"]', rows).prop('checked', this.checked); $('#select-all').on('click', function(){ // Check/uncheck all checkboxes in the table var rows = table.rows({ 'search': 'applied' }).nodes(); $('input[type="checkbox"]', rows).prop('checked', this.checked); }); $('#idAckTable >tbody > tr > td').css("border", "0px"); } }); } function generateidcards() { if(!$('#appRangeForm').valid()){ return; } var parameters = "fromdeg="+getcodes($('#fromdeg').val()); parameters += "&todeg="+getcodes($('#todeg').val()); parameters += "&fromcoll="+getcodes($('#fromcoll').val()); parameters += "&tocoll="+getcodes($('#tocoll').val()); parameters += "&fromapp="+$('#fromapp').val(); parameters += "&toapp="+$('#toapp').val(); parameters += "&year="+$('#year').val(); parameters += "&pType="+$('#idType').val(); window.location.href=$host_url+"reportidcard&"+parameters; } function getAsignAppDetails() { if(!$('#appRangeForm').valid()){ return; } var parameters = "fromdeg="+getcodes($('#fromdeg').val()); parameters += "&todeg="+getcodes($('#todeg').val()); parameters += "&fromcoll="+getcodes($('#fromcoll').val()); parameters += "&tocoll="+getcodes($('#tocoll').val()); parameters += "&fromapp="+$('#fromapp').val(); parameters += "&toapp="+$('#toapp').val(); parameters += "&fromdate="+$('#fromdate').val(); parameters += "&todate="+$('#todate').val(); parameters += "&year="+$('#year').val(); parameters += "&pType="+$('#idType').val(); $.ajax({ type: 'post', url: 'src1/getassignapps.php', data:parameters, success: function(response) { response = JSON.parse(response); if(response.status == 'error') { alert(response.msg); return; } var {apps : app_obj_arr, users } = response; $('.js-exportable').html(''); $('#appdetl').show(); var app_arr = []; //user option creation var usr_arr = Object.values(users); var options = usr_arr.map((usr) => { return `<option value='${usr}'>${usr}</option>` }); $('#user').html(options.join('')); //get array of applications for(var i in app_obj_arr){ var arr = $.map(app_obj_arr[i], function(el) { return el }); app_arr.push(arr); } table = $('.js-exportable').DataTable( { dom: 'Bfrtip', destroy: true, responsive: true, data: app_arr, columnDefs: [{ targets: 0, searchable: false, orderable: false, className: 'dt-body-center', render: function (data, type, full, meta) { return '<center><input type="checkbox" name="id[]" class="filled-in chk-col-light-blue" id="'+ $('<div/>').text(data).html()+'" value="'+ $('<div/>').text(data).html()+'"> <lable for="'+ $('<div/>').text(data).html()+'"></label></center>'; } }, { targets: 0, className: "text-center", width: "5%" }, { targets: 2, className: "text-center", width: "8%" }, { targets: 4, className: "text-center", width: "5%" }, { targets: 5, className: "text-center", width: "5%" }, { targets: 6, className: "text-center", width: "5%" }, { targets: 7, className: "text-center", width: "5%" }, { targets: 8, className: "text-right", width: "5%" }, { targets: 9, className: "text-right", width: "5%" }], order: [[1, 'asc']], columns: [ { title: "<center><input type='checkbox' name='select_all' value='1' id='select-all'></center>" }, { title: "<center>App. No.</center>" }, { title: "<center>Applied Date</center>" }, { title: "<center>Name</center>" }, { title: "<center>Cntr. Code</center>" }, { title: "<center>Degree</center>" }, { title: "<center>Pay. mode</center>" }, { title: "<center>Fee Paid</center>" }, { title: "<center>Adm. Fee</center>" }, { title: "<center>Fine</center>" }, { title: "<center>User</center>" } ], "lengthMenu": [ [2, 4, 8, -1], [2, 4, 8, "All"] ], "pageLength": 15, buttons: [ 'csv', 'excel', 'pdf' ] }); //check already assigned user var rows = table.rows({ 'search': 'applied' }).nodes(); $('input[type="checkbox"]', rows).prop('checked', this.checked); $('#select-all').on('click', function(){ // Check/uncheck all checkboxes in the table var rows = table.rows({ 'search': 'applied' }).nodes(); $('input[type="checkbox"]', rows).prop('checked', this.checked); }); } }); } function getStudentDetails(studappno) { var parameters = "&appno="+studappno; $.ajax({ type: 'post', url: 'src1/studdet.php', data:parameters, async: false, success: function(response) { response = JSON.parse(response); var user = response.user; var disabled = "disabled"; if(user == 'admx') disabled = ''; var subjectarry = ``; var z = 1; var sub = response.subjdet.split('~'); jQuery.each(sub, function( i, val ) { subject = val.split('->'); subjectarry += `<tr> <td> ${z} </td> <td> ${subject[1]} </td> <td> ${subject[0]} </td> </tr>`; z++; }); $("#idModal2" ).empty(); $("#idModal2").append(`<div class="body" id="body" style="padding:2%;"> <table id="idModalTable" class = "table" style="border : 0px !important;"> <tr style="background-color: #81D4FA;"> <th> Personal Information </th><th> </th><th> </th> <th> </th> </tr> <tr> <td><b>Name </b></td> <td><input id = "name" class = "form-control" ${disabled} type = 'text' value = "${response.name}"></td> <td><b>Father Name</b></td> <td><input id = "fname" class = "form-control" ${disabled} type = 'text' value = "${response.FFATNAME}"></td> </tr> <tr> <td><b>Occupation</b></td> <td><input id = "fatocc" class = "form-control" ${disabled} type = 'text' value = "${response.FFAT_OCC}"> </td> <td><b>Category</b></td> <td><input id = "fcaste" class = "form-control" ${disabled} type = 'text' value = "${response.FCASTE}"> </td> </tr> <tr> <td><b>Gender</b></td> <td><input id = "fsex" class = "form-control" ${disabled} type = 'text' value = "${response.FSEX}"> </td> <td><b>Handicap</b></td> <td><input id = "fhandicap" class = "form-control" ${disabled} type = 'text' value = "${response.FHANDICAP}"> </td> </tr> <tr> <td><b>Date Of Birth</b></td> <td><input id = "fdob" class = "form-control" ${disabled} type = 'text' value = "${response.fdob}"> </td> <td><b>Aadhar Number</b></td> <td><input id = "fadar" class = "form-control" ${disabled} type = 'text' value = "${response.FAADHARNO}"> </td> </tr> <tr> <td><b>Mobile Numbe</b></td> <td><input id = "fmobile" class = "form-control" ${disabled} type = 'text' value = "${response.FCONTACT_NO}"> </td> <td><b>LandLine Number</b></td> <td><input id = "flandline" class = "form-control" ${disabled} type = 'text' value = "${response.FLANDLINE}"> </td> </tr> <tr> <td><b>Email Address</b></td> <td><input id = "femail" class = "form-control" ${disabled} type = 'text' value = "${response.FEMAIL}"> </td> <td><b>Annual Income</b></td> <td><input id = "fincome" class = "form-control" ${disabled} type = 'text' value = "${response.FINCOME}"> </td> </tr> <tr> <td><b>Permanent Address</b></td> <td><input id = "fperadd1" class = "form-control" ${disabled} type = 'text' value = "${response.FPERMADD1}"> </td> <td><b>Communication Address</b></td> <td><input id = "fcuradd1" class = "form-control" ${disabled} type = 'text' value = "${response.FCURRADD1}"> </td> </tr> <tr> <td></td> <td><input id = "fperadd2" class = "form-control" ${disabled} type = 'text' value = "${response.FPERMADD2}"> </td> <td></td> <td><input id = "fcuradd2" class = "form-control" ${disabled} type = 'text' value = "${response.FCURRADD2}"> </td> </tr> <tr> <td></td> <td><input id = "fperadd3" class = "form-control" ${disabled} type = 'text' value = "${response.FPERMADD3}"> </td> <td></td> <td><input id = "fcuradd3" class = "form-control" ${disabled} type = 'text' value = "${response.FCURRADD3}"> </td> </tr> <tr> <td><b>District</b></td> <td><input id = "fperdistrict" class = "form-control" ${disabled} type = 'text' value = "${response.FPERDISTRICT}"> </td> <td><b>District</b></td> <td><input id = "fcurdistrict" class = "form-control" ${disabled} type = 'text' value = "${response.FCURDISTRICT}"> </td> </tr> <tr> <td><b>Pincode</b></td> <td><input id = "fperpincode" class = "form-control" ${disabled} type = 'text' value = "${response.FPERPINCODE}"> </td> <td><b>Pincode</b></td> <td><input id = "fcurpincode" class = "form-control" ${disabled} type = 'text' value = "${response.FCURPINCODE}"> </td> </tr> <tr> <td><b>State</b></td> <td><input id = "fperstate" class = "form-control" ${disabled} type = 'text' value = "${response.FPERSTATE}"> </td> <td><b>State</b></td> <td><input id = "fcurstate" class = "form-control" ${disabled} type = 'text' value = "${response.FCURSTATE}"> </td> </tr> </table> <table class = "table"> <tr style="background-color: #81D4FA;"> <th> Opted Course Details </th><th> </th><th> </th><th> </th> </tr> <tr> <td style="width:21%;"><b>Course</b></td> <td><input id = "fdegree" class = "form-control" ${disabled} type = 'text' value = "${response.fdegname }"> </td> <td style="width:23%;"><b>Medium</b></td> <td><input id = "fmoe" class = "form-control" ${disabled} type = 'text' value = "${response.FENGLISH}"> </td> </tr> </table> <table class = "table table-striped"> <tr style="background-color: #81D4FA;"> <th> Subject Deatils </th><th> </th><th> </th><th> </th> </tr> <tr style="background-color: #c6c6c6;" > <th> Sl. No. </th> <th> Subject Name </th> <th> Subject Short Name </th> </tr> ${subjectarry} </table> <table class = "table"> <tr style="background-color: #81D4FA;"> <th> Contact Centre Details </th><th> </th><th> </th><th> </th> </tr> <tr> <td style="width:21%;"><b>Code</b></td> <td><input id = "fcollcode" class = "form-control" ${disabled} type = 'text' value = "${response.FCOLLCODE }"> </td> <td style="width:23%;"><b>District</b></td> <td><input id = "fmoe" class = "form-control" ${disabled} type = 'text' value = "${response.FCENDISTRICT}"> </td> </tr> <tr> <td><b>Centre Name</b></td> <td colspan= "3"><input id = "fmoe" class = "form-control" ${disabled} type = 'text' value = "${response.FCOLLNAME}"> </td> </tr> </table> <table class = "table"> <tr style="background-color: #81D4FA;"> <th> Fee Details </th><th> </th><th> </th><th> </th> </tr> <tr> <td style="width:21%;"><b>Payment Mode</b></td> <td><input id = "fcollcode" class = "form-control" ${disabled} type = 'text' value = "${response.FPAYMENTTYPE }"> </td> <td style="width:23%;"><b>Amount</b></td> <td><input id = "fmoe" class = "form-control" ${disabled} type = 'text' value = "${response.FTOTFEE}"> </td> </tr> <tr> <td><b>Register No</b></td> <td><input id = "fmoe" class = "form-control" ${disabled} type = 'text' value = "${response.fregno}"> </td> <td><b>Reference No</b></td> <td><input id = "fmoe" class = "form-control" ${disabled} type = 'text' value = "${response.fappno}"> </td> </tr> </table> <table class = "table"> <tr style="background-color: #81D4FA;"> <th> Acknowledgement </th><th> </th><th> </th><th> </th> </tr> <tr> <td><b>Journal Number</b></td> <td><input id = "idJorNo" class = "form-control" ${ response.FPAYMENTREMARKS != '' ? "disabled" : ""} type = 'text' value="${response.FPAYMENTREMARKS}"></td> <td style="width:23%;"><b>Status</b></td> <td style="width:28%;"> <select id = "status" class="form-control show-tick"> <option value = "PENDING"> Pending </option> <option value = "APPROVED"> Approved </option> <option value = "REJECTED"> Reject </option> </select> </td> </tr> <tr> <td style="width:21%;"> <b>Remarks</b> </td> <td colspan = "3"> <textarea id="remarks" class = "form-control"> ${response.fremarks}</textarea> </td> </tr> </table> <div class='p-b-20 p-t-20'> <center> <button type='button' class='btn btn-primary m-r-20' onclick='saveApplication("${response.fappno}")'>Save</button> <button type='button' class='btn btn-primary' data-dismiss='modal'>Close</button> </center> </div> </div>`); $('#status').val(response.fapprstatus); $('#idModal1').modal(); }, complete : function(){ $('#idModalTable >tbody > tr > td').css("border", "0px"); } }); } function saveApprAppDetails() { var selected_apps = []; table.$('input[type="checkbox"]').each(function(){ if(this.checked){ // Create an array of applications selected_apps.push(this.value); } }); if (typeof selected_apps !== 'undefined' && selected_apps.length > 0) { // the array is defined and has at least one element var remarks = $('#idRemarks').val(); var status = $('#idStatus').val(); if($('#idJourNo').val() =="") { alert("Journal No is required"); return; } var parameters = "&appno="+selected_apps+"&status="+status+"&remarks="+remarks +"&pJorno="+$('#idJourNo').val(); $.ajax({ type: 'post', url: 'src1/savestuddet.php', data:parameters, success: function(response) { response = JSON.parse(response); var {status,msg} = response; if(status == "success") { alert(msg); table.$('input[type="checkbox"]').each(function(){ if(this.checked) { $(this).attr("checked", false); $(this).closest("tr").css("display", 'none'); } }); $('#idRemarks').val(''); $('#idStatus').val('PENDING'); $('#idJourNo').val(''); } else { alert(msg); } } }); } else { alert("No Application selected"); } } function saveApplication(appno) { var remarks = $('#remarks').val(); var status = $('#status').val(); var parameters = "&appno="+appno+"&status="+status+"&remarks="+remarks +"&pJorno="+$('#idJorNo').val(); $.ajax({ type: 'post', url: 'src1/savestuddet.php', data:parameters, success: function(response) { response = JSON.parse(response); var {status,msg} = response; if(status == "success") { alert(msg); $('#idModal1').modal('toggle'); return; } else { alert(msg); $('#idModal1').modal('toggle'); return; } } }); } function saveAssignDetails() { var selected_apps = []; table.$('input[type="checkbox"]').each(function(){ if(this.checked){ // Create an array of applications selected_apps.push(this.value); } }); if (typeof selected_apps !== 'undefined' && selected_apps.length > 0) { // the array is defined and has at least one element var user = $('#user').val(); var parameters = `user=${user}&apps=${selected_apps}`; $.ajax({ type: 'post', url: 'src1/saveapps.php', data:parameters, success: function(response) { response = JSON.parse(response); var {status,msg} = response; if(status == "success"){ alert(msg); } else { alert(msg); } } }); } else { alert("No Application selected"); } } function signOut() { $.ajax({ type: 'post', url: 'src1/logout.php', //data:parameters, success: function(response) { if(response === 'logout') { window.location.href = 'index.html'; } } }); } function getDate() { var today = new Date(); var dd = today.getDate(); var mm = today.getMonth()+1; //January is 0! var yyyy = today.getFullYear(); if(dd<10){ dd='0'+dd; } if(mm<10){ mm='0'+mm; } var today = dd+'/'+mm+'/'+yyyy; return today; } function reportAppDetails() { var parameters = "fromdeg="+getcodes($('#fromdeg').val()); parameters += "&todeg="+getcodes($('#todeg').val()); parameters += "&fromcoll="+getcodes($('#fromcoll').val()); parameters += "&tocoll="+getcodes($('#tocoll').val()); parameters += "&fromapp="+$('#fromapp').val(); parameters += "&toapp="+$('#toapp').val(); parameters += "&fromdate="+$('#fromdate').val(); parameters += "&todate="+$('#todate').val(); parameters += "&year="+$('#year').val(); parameters += "&pAprtype="+$('#idAprtype').val(); parameters += "&rtype="+$('#rtype').val(); window.location.href=$host_url+"reportAdminApprove&"+parameters; } function updatelastdate() { var degfrom = $('#fromdeg').val(); var todeg = $('#todeg').val(); var fromcoll = $('#fromcoll').val(); var tocoll = $('#tocoll').val(); var fromdate = $('#fromdate').val(); var todate = $('#todate').val(); var parameters = "fromdeg="+getcodes($('#fromdeg').val()); parameters += "&todeg="+getcodes($('#todeg').val()); parameters += "&fromcoll="+getcodes($('#fromcoll').val()); parameters += "&tocoll="+getcodes($('#tocoll').val()); parameters += "&fromdate="+$('#fromdate').val(); parameters += "&todate="+$('#todate').val(); parameters += "&fromexam="+$('#fromexam').val(); parameters += "&toexam="+$('#toexam').val(); $.ajax({ type: 'post', url: 'src1/admlastdate.php', data:parameters, success: function(response) { response = JSON.parse(response); var {status,msg} = response; if(status == "success"){ alert(msg); } else { alert(msg); } } }); }
Close