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.129.25.216
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 /
misc /
public_html /
nium /
js /
[ HOME SHELL ]
Name
Size
Permission
Action
mask
[ DIR ]
drwxr-xr-x
editapp.js
22.28
KB
-rwxr-xr-x
form_submit.js
1.36
KB
-rwxr-xr-x
formatdate.js
12.48
KB
-rwxr-xr-x
home.js
5.09
KB
-rwxr-xr-x
home11082016.js
5.11
KB
-rwxr-xr-x
index.js
31.01
KB
-rwxr-xr-x
index2.js
25.45
KB
-rwxr-xr-x
index_27082015.js
28
KB
-rwxr-xr-x
index_before_hallticket.js
27.56
KB
-rwxr-xr-x
jquery-1.4.2.min.js
70.48
KB
-rwxr-xr-x
jquery-ui-1.7.2.custom.min.js
188.23
KB
-rwxr-xr-x
jquery.cycle.all.min.js
31.29
KB
-rwxr-xr-x
jquery.cycle.js
42.99
KB
-rwxr-xr-x
jscript.js
25.71
KB
-rwxr-xr-x
jscript_old.js
25.4
KB
-rwxr-xr-x
login.js
2.76
KB
-rwxr-xr-x
spinner.js
13.84
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : index.js
var path=window.location.pathname.split('/')[1]; if(path=="index.html" || path=="MainPage.html" || path=="ApplicationStatus.html" || path=="ApplicationReprint.html" || path=="login.html" || path=="home.html") path=""; var $host_url="http://"+window.location.host+"/"+path+"/app.php?a="; $host_url=$host_url.replace("MainPage.html",""); //var $host_url="http://"+window.location.host+"/"+path+"/app.php?a="; var $image_path="http://"+window.location.host+"/"+path+"/jqGrid3.5/css/images/"; function trim($str) { return $str.replace(/^\s*|\s*$/g,""); } function loadwindowDetails() { $.ajax({ type: "POST", url: $host_url+"loadWindowHeaderdetails.demo", success: validateWindowHeaderResponse }); } function validateWindowHeaderResponse($responce) { $responce = eval('(' + $responce + ')'); if ($responce.error_code == 0) { $university_name=$responce.data['university_name']; $university_address=$responce.data['university_address']; $("#headers_name_dy").html($university_name); $("#header_subname_dy").html($university_address); } } function loadHomePageDetails() { document.forms['form_module_image_upload'].reset(); $("#student_entry_photo").attr("src", "img/default_photo.jpg"); loadwindowDetails(); loadCategoryList(); loadDomicileStateList(); $("#edit_applicationForm").hide(); document.getElementById('fname').focus(); document.getElementById('fph_disf').checked=true; document.getElementById('fgoi_nomf').checked=true; document.getElementById('gvt_serv_f').checked=true; } function loadDomicileStateList() { $.ajax({ type: "POST", url: $host_url+"loadDomicileStatedetails.demo", success:domicileStateListResponse }); } function domicileStateListResponse($responce) { $responce = eval('(' + $responce + ')'); if ($responce.error_code == 0) { document.getElementById("fdomicile_state").options.length = 0; var $lobj_Option = document.createElement("OPTION"); $lobj_Option.value = ""; $lobj_Option.text = "Select State"; document.getElementById("fdomicile_state").options[0]=($lobj_Option); for($i=0;$i < $responce.data.length;$i++) { var $obj_Option = document.createElement("OPTION"); $obj_Option.value = $responce.data[$i].fstatecode; $obj_Option.text = $responce.data[$i].fstatename; document.getElementById("fdomicile_state").options[$i+1] = ($obj_Option); } } } function loadCategoryList() { $.ajax({ type: "POST", url: $host_url+"loadCategoryListdetails.demo", success:categoryListResponse }); } function categoryListResponse($responce) { $responce = eval('(' + $responce + ')'); if ($responce.error_code == 0) { document.getElementById("fcategory").options.length = 0; var $lobj_Option = document.createElement("OPTION"); $lobj_Option.value = ""; $lobj_Option.text = "Select Category"; document.getElementById("fcategory").options[0]=($lobj_Option); for($i=0;$i < $responce.data.length;$i++) { var $obj_Option = document.createElement("OPTION"); $obj_Option.value = $responce.data[$i].fcatcode; $obj_Option.text = $responce.data[$i].fcatdesc; document.getElementById("fcategory").options[$i+1] = ($obj_Option); } } } function saveFormDetails() { var lmax1=document.getElementById('fmax_marks1').value; var lsec1=document.getElementById('fsecured_marks1').value; lmax1=parseFloat(lmax1); lsec1=parseFloat(lsec1); var lmax2=document.getElementById('fmax_marks2').value; var lsec2=document.getElementById('fsecured_marks2').value; lmax2=parseFloat(lmax2); lsec2=parseFloat(lsec2); var lmax3=document.getElementById('fmax_marks3').value; var lsec3=document.getElementById('fsecured_marks3').value; lmax3=parseFloat(lmax3); lsec3=parseFloat(lsec3); var lmax4=document.getElementById('fmax_marks4').value; var lsec4=document.getElementById('fsecured_marks4').value; lmax4=parseFloat(lmax4); lsec4=parseFloat(lsec4); var lmax5=document.getElementById('fmax_marks5').value; var lsec5=document.getElementById('fsecured_marks5').value; lmax5=parseFloat(lmax5); lsec5=parseFloat(lsec5); if(trim(document.getElementById('fname').value) == '' ) { alert('Please enter the Name'); document.getElementById('fname').focus(); return; } if(($("#fdob_date").val() == '' || $("#fdob_date").val() > 31) || ($("#fdob_month").val() == '' || $("#fdob_month").val() > 12) || ($("#fdob_year").val() == '' || $("#fdob_year").val() >2016) ) { alert('Please Enter the Valid Date of Birth..!'); document.getElementById('fdob_date').focus(); return; } if(document.getElementById('fmale').checked == false && document.getElementById('female').checked == false ) { alert('Please Select Gender'); document.getElementById('fname').focus(); return; } if(trim(document.getElementById('fcategory').value) == '' ) { alert('Please Select the Category'); document.getElementById('fcategory').focus(); return; } if(trim(document.getElementById('fnationality').value) == '' ) { alert('Please Enter the Nationality'); document.getElementById('fnationality').focus(); return; } if(trim(document.getElementById('fdomicile_state').value) == '' ) { alert('Please Select the Domicile state'); document.getElementById('fdomicile_state').focus(); return; } if(trim(document.getElementById('fmother').value) == '' ) { alert('Please enter the Mother\'s Name'); document.getElementById('fmother').focus(); return; } if(trim(document.getElementById('ffather').value) == '' ) { alert('Please enter the Father\' Name'); document.getElementById('ffather').focus(); return; } if(trim(document.getElementById('per_addr_corsp1').value) == '' ) { alert('Please enter the Permanent Address Correspondence'); document.getElementById('per_addr_corsp1').focus(); return; } if(trim(document.getElementById('per_addrs1').value) == '') { alert('Please enter the Permanent Address '); document.getElementById('per_addrs1').focus(); return; } if(trim(document.getElementById('fmobile').value) == '' || parseFloat(document.getElementById('fmobile').value) < 10) { alert('Please enter the Mobile No'); document.getElementById('fmobile').focus(); return; } if(trim(document.getElementById('fphoneno').value) == '' ) { alert('Please enter the Phone No'); document.getElementById('fphoneno').focus(); return; } if(trim(document.getElementById('femailid').value) == '' ) { alert('Please enter the Email Id'); document.getElementById('femailid').focus(); return; } if(trim(document.getElementById('fcollegecode').value) == '' ) { alert('Please enter the College Code'); document.getElementById('fcollegecode').focus(); return; } if(trim(document.getElementById('funiversity').value) == '' ) { alert('Please enter the University'); document.getElementById('funiversity').focus(); return; } if($("#fdate_of_compl_intership").val() == '' || parseFloat($("#fdate_of_compl_intership").val()) > 31 || $("#fmonth_of_compl_intership").val() == '' || parseFloat($("#fmonth_of_compl_intership").val()) > 12 || $("#fyear_of_compl_intership").val() == '') { alert('Please Enter the Valid Completion of Internship Date..!'); document.getElementById('fdate_of_compl_intership').focus(); return; } /* if(document.getElementById('fpercentage').value == '' ) { alert('Please enter the Percentage'); document.getElementById('fpercentage').focus(); return; } if(document.getElementById('fpercentage').value >100 ) { alert('Percentage Should not be greater than 100'); document.getElementById('fpercentage').focus(); return; }*/ if(document.getElementById('fmax_marks1').value == '' || document.getElementById('fsecured_marks1').value == '' || document.getElementById('fno_of_attempts1').value == '' || document.getElementById('fpassed_month1').value == '') { alert('Please enter the Examination I Details'); document.getElementById('fmax_marks1').focus(); return; } if(lsec1 > lmax1) { alert('Secured Marks in 1st Year Cannot be greater than Maximum Marks'); document.getElementById('fsecured_marks1').focus(); return; } if(document.getElementById('fno_of_attempts1').value <= 0) { alert('Number of Attempts should be Greater than or Equal to 1'); document.getElementById('fno_of_attempts1').focus(); return; } if(document.getElementById('fmax_marks2').value == '' || document.getElementById('fsecured_marks2').value == '' || document.getElementById('fno_of_attempts2').value == '' || document.getElementById('fpassed_month2').value == '') { alert('Please enter the Examination II Details'); document.getElementById('fmax_marks2').focus(); return; } if(lsec2 > lmax2) { alert('Secured Marks in 2nd Year Cannot be greater than Maximum Marks'); document.getElementById('fsecured_marks2').focus(); return; } if(document.getElementById('fno_of_attempts2').value <= 0) { alert('Number of Attempts should be Greater than or Equal to 1'); document.getElementById('fno_of_attempts2').focus(); return; } if(document.getElementById('fmax_marks3').value == '' || document.getElementById('fsecured_marks3').value == '' || document.getElementById('fno_of_attempts3').value == '' || document.getElementById('fpassed_month3').value == '') { alert('Please enter the Examination III Details'); document.getElementById('fmax_marks3').focus(); return; } if(lsec3 > lmax3) { alert('Secured Marks in 3rd Year Cannot be greater than Maximum Marks'); document.getElementById('fsecured_marks3').focus(); return; } if(document.getElementById('fno_of_attempts3').value <= 0) { alert('Number of Attempts should be Greater than or Equal to 1'); document.getElementById('fno_of_attempts3').focus(); return; } if(document.getElementById('fmax_marks4').value != '') { if(document.getElementById('fsecured_marks4').value =='' || document.getElementById('fno_of_attempts4').value =='' || document.getElementById('fpassed_month4').value =='') { alert('Please enter the Examination IV Details'); document.getElementById('fmax_marks4').focus(); return; } if(lsec4 > lmax4) { alert('Secured Marks in 4th Year Cannot be greater than Maximum Marks'); document.getElementById('fsecured_marks4').focus(); return; } if(document.getElementById('fno_of_attempts4').value <= 0) { alert('Number of Attempts should be Greater than or Equal to 1'); document.getElementById('fno_of_attempts4').focus(); return; } } if(document.getElementById('fmax_marks5').value != '') { if(document.getElementById('fsecured_marks5').value =='' || document.getElementById('fno_of_attempts5').value =='' || document.getElementById('fpassed_month5').value =='') { alert('Please enter the Examination V Details'); document.getElementById('fmax_marks5').focus(); return; } if(lsec5 > lmax5) { alert('Secured Marks in 5th Year Cannot be greater than Maximum Marks'); document.getElementById('fsecured_marks5').focus(); return; } if(document.getElementById('fno_of_attempts5').value <= 0) { alert('Number of Attempts should be Greater than or Equal to 1'); document.getElementById('fno_of_attempts5').focus(); return; } } /* if(document.getElementById('fchallan_no').value == '') { alert('Please enter the Challan No'); document.getElementById('fchallan_no').focus(); return; } if(($("#fchall_date").val() == '' || $("#fchall_date").val() > 31) || ($("#fchall_month").val() == '' || $("#fchall_month").val() > 12) || $("#fchall_year").val() == '' || $("#fchall_year").val() > 2016) { alert('Please Enter the Valid Challan Date..!'); document.getElementById('fchall_date').focus(); return; } if(document.getElementById('fchall_amount').value == '') { alert('Challen Amount Cannot Be Blank'); document.getElementById('fchall_amount').focus(); return; } if(document.getElementById('fname_of_bank').value == '') { alert('Please enter the Bank Name'); document.getElementById('fname_of_bank').focus(); return; } if(document.getElementById('fbranch_name_place').value == '') { alert('Please enter the Branch'); document.getElementById('fbranch_name_place').focus(); return; } */ if(document.getElementById('student_entry_upload').value == '' ) { alert('Please Upload Your Photo'); document.getElementById('student_entry_upload').focus(); return; } disableFormFields(); } function application_reprintDetails() { if(document.getElementById('fapplication_num').value =='' ) { alert('Please Enter the Application Number '); document.getElementById('fapplication_num').focus(); return; } if(($("#fpdob_date").val() == '' || $("#fpdob_date").val() > 31) || ($("#fpdob_month").val() == '' || $("#fpdob_month").val() > 12) || ($("#fpdob_year").val() == '' || $("#fpdob_year").val() >2016) ) { alert('Please Enter the Valid Date of Birth..!'); document.getElementById('fpdob_date').focus(); return; } var app_prstr_data="fapplication_num="+encodeURIComponent($("#fapplication_num").val()); app_prstr_data+="&date_of_birth="+encodeURIComponent($("#fpdob_year").val()+"-"+$("#fpdob_month").val()+"-"+$("#fpdob_date").val()); $.ajax({ type: "POST", //async:false, url: $host_url+"validateApplicationFrprint.demo", data:app_prstr_data, success:savealidateApplicationResponse }); } function savealidateApplicationResponse($responce) { $responce = eval('(' + $responce + ')'); if ($responce.error_code == 0) { generateApplicationPdf($responce.data); } else { alert($responce.data); } } function saveApplicationDetails() { if (confirm(" Are you sure you want to Save, Then Press 'OK' Else 'Cancel' ") == true) { $lstr_data="fname="+encodeURIComponent($("#fname").val()); $lstr_data+="&fcategory="+encodeURIComponent($("#fcategory").val()); $lstr_data+="&ffather="+encodeURIComponent($("#ffather").val()); $lstr_data+="&fmother="+encodeURIComponent($("#fmother").val()); $lstr_data+="&fnationality="+encodeURIComponent($("#fnationality").val()); var fgender_check = ""; for (i = 0; i < document.getElementsByName('fgender').length; i++) { if (document.getElementsByName('fgender')[i].checked) { fgender_check = document.getElementsByName('fgender')[i].value; } } $lstr_data+="&fgender="+encodeURIComponent(fgender_check); var fphysically_disable = ""; for (i = 0; i < document.getElementsByName('fphysically_disable').length; i++) { if (document.getElementsByName('fphysically_disable')[i].checked) { fphysically_disable = document.getElementsByName('fphysically_disable')[i].value; } } $lstr_data+="&fph_disabled="+encodeURIComponent(fphysically_disable); var fgoi_nominee_chk = ""; for (i = 0; i < document.getElementsByName('fgoi_nominee').length; i++) { if (document.getElementsByName('fgoi_nominee')[i].checked) { fgoi_nominee_chk = document.getElementsByName('fgoi_nominee')[i].value; } } $lstr_data+="&fgoi_nominee="+encodeURIComponent(fgoi_nominee_chk); var fwhether_govt_service_candt_chk = ""; for (i = 0; i < document.getElementsByName('fwhether_govt_service_candidate').length; i++) { if (document.getElementsByName('fwhether_govt_service_candidate')[i].checked) { fwhether_govt_service_candt_chk = document.getElementsByName('fwhether_govt_service_candidate')[i].value; } } $lstr_data+="&fwhether_govt_service_candidate="+encodeURIComponent(fwhether_govt_service_candt_chk); $lstr_data+="&date_of_birth="+encodeURIComponent($("#fdob_year").val()+"-"+$("#fdob_month").val()+"-"+$("#fdob_date").val()); $lstr_data+="&complt_internship_date="+encodeURIComponent($("#fyear_of_compl_intership").val()+"-"+$("#fmonth_of_compl_intership").val()+"-"+$("#fdate_of_compl_intership").val()); $lstr_data+="&fdomicile_state="+encodeURIComponent($("#fdomicile_state").val()); $lstr_data+="&fpermanent_address_Corresp="+encodeURIComponent($("#fpermanent_address_Corresp").val()); $lstr_data+="&fpermanent_address="+encodeURIComponent($("#fpermanent_address").val()); $lstr_data+="&fmobile="+encodeURIComponent($("#fmobile").val()); $lstr_data+="&faltmobile="+encodeURIComponent($("#faltmobile").val()); $lstr_data+="&fphoneno="+encodeURIComponent($("#fphoneno").val()); $lstr_data+="&femailid="+encodeURIComponent($("#femailid").val()); $lstr_data+="&fcollegecode="+encodeURIComponent($("#fcollegecode").val()); $lstr_data+="&funiversity="+encodeURIComponent($("#funiversity").val()); //$lstr_data+="&fpercentage="+encodeURIComponent($("#fpercentage").val()); $lstr_data+="&per_addr_corsp1="+encodeURIComponent($("#per_addr_corsp1").val()); $lstr_data+="&per_addr_corsp2="+encodeURIComponent($("#per_addr_corsp2").val()); $lstr_data+="&per_addr_corsp3="+encodeURIComponent($("#per_addr_corsp3").val()); $lstr_data+="&per_addr_corsp4="+encodeURIComponent($("#per_addr_corsp4").val()); $lstr_data+="&per_addrs1="+encodeURIComponent($("#per_addrs1").val()); $lstr_data+="&per_addrs2="+encodeURIComponent($("#per_addrs2").val()); $lstr_data+="&per_addrs3="+encodeURIComponent($("#per_addrs3").val()); $lstr_data+="&per_addrs4="+encodeURIComponent($("#per_addrs4").val()); $lstr_data+="&fchallan_date="+encodeURIComponent($("#fchall_year").val()+"-"+$("#fchall_month").val()+"-"+$("#fchall_date").val()); $lstr_data+="&fchallan_no="+encodeURIComponent($("#fchallan_no").val()); $lstr_data+="&fchall_amount="+encodeURIComponent($("#fchall_amount").val()); $lstr_data+="&fname_of_bank="+encodeURIComponent($("#fname_of_bank").val()); $lstr_data+="&fbranch_name_place="+encodeURIComponent($("#fbranch_name_place").val()); $lstr_data+="&fexam1="+encodeURIComponent($("#fexam1").val()); $lstr_data+="&fmax_marks1="+encodeURIComponent($("#fmax_marks1").val()); $lstr_data+="&fpercnt1="+encodeURIComponent($("#fpercnt1").val()); $lstr_data+="&fsecured_marks1="+encodeURIComponent($("#fsecured_marks1").val()); $lstr_data+="&fno_of_attempts1="+encodeURIComponent($("#fno_of_attempts1").val()); $lstr_data+="&fpassed_month1="+encodeURIComponent($("#fpassed_month1").val()); $lstr_data+="&fexam2="+encodeURIComponent($("#fexam2").val()); $lstr_data+="&fmax_marks2="+encodeURIComponent($("#fmax_marks2").val()); $lstr_data+="&fpercnt2="+encodeURIComponent($("#fpercnt2").val()); $lstr_data+="&fsecured_marks2="+encodeURIComponent($("#fsecured_marks2").val()); $lstr_data+="&fno_of_attempts2="+encodeURIComponent($("#fno_of_attempts2").val()); $lstr_data+="&fpassed_month2="+encodeURIComponent($("#fpassed_month2").val()); $lstr_data+="&fexam3="+encodeURIComponent($("#fexam3").val()); $lstr_data+="&fmax_marks3="+encodeURIComponent($("#fmax_marks3").val()); $lstr_data+="&fpercnt3="+encodeURIComponent($("#fpercnt3").val()); $lstr_data+="&fsecured_marks3="+encodeURIComponent($("#fsecured_marks3").val()); $lstr_data+="&fno_of_attempts3="+encodeURIComponent($("#fno_of_attempts3").val()); $lstr_data+="&fpassed_month3="+encodeURIComponent($("#fpassed_month3").val()); $lstr_data+="&fexam4="+encodeURIComponent($("#fexam4").val()); $lstr_data+="&fmax_marks4="+encodeURIComponent($("#fmax_marks4").val()); $lstr_data+="&fpercnt4="+encodeURIComponent($("#fpercnt4").val()); $lstr_data+="&fsecured_marks4="+encodeURIComponent($("#fsecured_marks4").val()); $lstr_data+="&fno_of_attempts4="+encodeURIComponent($("#fno_of_attempts4").val()); $lstr_data+="&fpassed_month4="+encodeURIComponent($("#fpassed_month4").val()); $lstr_data+="&fexam5="+encodeURIComponent($("#fexam5").val()); $lstr_data+="&fmax_marks5="+encodeURIComponent($("#fmax_marks5").val()); $lstr_data+="&fpercnt5="+encodeURIComponent($("#fpercnt5").val()); $lstr_data+="&fsecured_marks5="+encodeURIComponent($("#fsecured_marks5").val()); $lstr_data+="&fno_of_attempts5="+encodeURIComponent($("#fno_of_attempts5").val()); $lstr_data+="&fpassed_month5="+encodeURIComponent($("#fpassed_month5").val()); $lstr_data+="&ftotalmax="+encodeURIComponent($("#ftotalmax").val()); $lstr_data+="&ftotalsecured="+encodeURIComponent($("#ftotalsecured").val()); $lstr_data+="&ftotalpercnt="+encodeURIComponent($("#ftotalpercnt").val()); $lstr_data+="&student_entry_photo_path="+encodeURIComponent($("#student_entry_photo").attr("src")); $.ajax({ type: "POST", //async:false, url: $host_url+"saveFormEntry.demo", data:$lstr_data, success:saveFormEntryResponse }); } } function disableFormFields() { $("#edit_link").show(); $("#save_link").show(); $("#preview_link").hide(); $("#error_notify_msg").show(); var inputBoxes = document.getElementsByTagName('input'); for (var counter=0; counter < inputBoxes.length; counter++) { inputBoxes[counter].disabled=true; } } function enableApplicationFields() { var inputBoxes = document.getElementsByTagName('input'); for (var counter=0; counter < inputBoxes.length; counter++) { inputBoxes[counter].disabled=false; } document.getElementById('fexam1').disabled=true; document.getElementById('fexam2').disabled=true; document.getElementById('fexam3').disabled=true; document.getElementById('fexam4').disabled=true; document.getElementById('fexam5').disabled=true; document.getElementById('fchall_amount').disabled=true; document.getElementById("fname").focus(); $("#edit_link").hide(); $("#save_link").hide(); $("#preview_link").show(); $("#error_notify_msg").hide(); } function saveFormEntryResponse($responce) { $responce = eval('(' + $responce + ')'); if ($responce.error_code == 0) { /* $("#contents_main").hide(); $("#form_appear").show(); document.getElementById('form_appear').innerHTML='Your Application Number : '+$responce.data+'Click here take print out';*/ alert("Your Application Number :"+" "+$responce.data); generateApplicationPdf($responce.data); enableApplicationFields(); loadHomePageDetails(); } } function generateApplicationPdf($application_number) { window.location.href = $host_url+"writeApplicationDetailsTopdf.demo&application_number="+$application_number; } function loadFeeDetails(categryCode) { if(categryCode != 0) { $.ajax({ type: "POST", //async:false, url: $host_url+"loadCategryFeeDetails.demo", data:"categryCode="+categryCode, success:loadCategryFeeResponse }); } } function loadCategryFeeResponse($responce) { $responce = eval('(' + $responce + ')'); if ($responce.error_code == 0) { document.getElementById('fchall_amount').value=$responce.data; } } function validateNumber(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 validatePercentage(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 && keyCode != 46) { ev.preventDefault(); } } } function validateMarks(ev,id1,id2) { validateNumber(ev); } function validateAttempts(ev,id) { validateNumber(ev) } function validateEmail() { var x = document.forms["admission_form"]["femailid"].value; var atpos = x.indexOf("@"); var dotpos = x.lastIndexOf("."); if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length) { alert("Not a valid e-mail address"); return false; } } function CheckIE6Version() { var BrowserType = BrowserDetect.browser; var BrowserVersion = BrowserDetect.version; if(BrowserType=="Explorer" && BrowserVersion==6) { alert(" You are using IE6 Version,Use Mozilla Firefox or IE8"); return false; } return true; } var $Happlication_no = 0; function application_viewStatus() { $Happlication_no = 0; if(document.getElementById('fvapplication_num').value =='' ) { alert('Enter Application Number '); document.getElementById('fvapplication_num').focus(); return; } if($("#fvdob_date").val() != '') { if(($("#fvdob_date").val() > 31) || ($("#fvdob_month").val() == '' || $("#fvdob_month").val() > 12) || ($("#fvdob_year").val() == '' || $("#fvdob_year").val() >2016) ) { alert('Enter Valid Date of Birth'); document.getElementById('fvdob_date').focus(); return; } } else { alert('Enter Date of Birth'); document.getElementById('fvdob_date').focus(); return; } var app_prstr_data="fvapplication_num="+encodeURIComponent($("#fvapplication_num").val()); app_prstr_data+="&date_of_birth="+encodeURIComponent($("#fvdob_year").val()+"-"+$("#fvdob_month").val()+"-"+$("#fvdob_date").val()); $.ajax({ type: "POST", //async:false, url: $host_url+"viewApplicationStatus.demo", data:app_prstr_data, success:viewApplicationStatusResponse }); } function viewApplicationStatusResponse($responce) { $responce = eval('(' + $responce + ')'); if ($responce.error_code == 0) { $Happlication_no = $responce.data['fappno']; $('#vapp_no').html($responce.data['fappno']); $('#vapp_name').html($responce.data['fname']); $('#vapp_dob').html($responce.data['fdob']); $('#vapp_category').html($responce.data['fcatcode']); $('#vapp_fathername').html($responce.data['ffatname']); $('#vapp_mothername').html($responce.data['fmotname']); $('#appreg_date').html($responce.data['flogdate']); var appAckdate = $responce.data['fackdate']; $('#apprecv_date').html(appAckdate); $('#appstatus_date').html(appAckdate); if(appAckdate != null) { $('#apprecv_remarks').html("<span style='color:green;'>Received</span>"); } else { var er_remarks ="<span style='color:red;'>Not Received</span>"; $('#apprecv_remarks').html(er_remarks); } //$('#appstatus_date').html($responce.data['ffatname']); var halltckt = $responce.data['fht']; var regno = $responce.data['fregno']; var halltckt_status; if(halltckt !='T') { halltckt_status = ''; } else { if(regno) { halltckt_status = "<a href='#' onclick='javascript:generateHallTicketPdf();'>Download Hall Ticket</a>"; } else { halltckt_status = 'Register No. not Generated'; } } var appAckStatus = $responce.data['fappstatus']; if(appAckStatus == 'D') { var remark_msg = "<span style='color:red;'>Deficiency : "+$responce.data['fappremark']+"</span><br>"+halltckt_status; $('#appstatus_remarks').html(remark_msg); } else if(appAckStatus == 'A') { $('#appstatus_remarks').html("<span style='color:green;'>Accepted </span><br>"+halltckt_status); } var stdpic_path=$responce.data['photo_path']; $.ajax({ url:stdpic_path, //or your url success: function(data){ image = document.getElementById('vapplicant_photo'); image.src =stdpic_path; }, error: function(data){ var photo_path="img/default_photo.jpg"; image = document.getElementById('vapplicant_photo'); image.src =photo_path; }, }) var appStatus=$responce.data['fappstatus']; var appRemarks=$responce.data['fappremark']; var stdpic_path=$responce.data['photo_path']; $("#view_apply_requ").hide(); $("#viw_application_details").show(); document.forms['view_app_form'].reset(); } else { alert($responce.data); document.getElementById('fvapplication_num').focus(); } } function generateHallTicketPdf() { window.location.href = $host_url+"generateHallticketpdf.demo&application_number="+$Happlication_no; } function calculatepercnt(evet,fsecur,fmax,fpercnt) { var secrmarks = $("#"+fsecur).val(); var maxmarks = $("#"+fmax).val(); if(secrmarks !='') { var pertage = (parseInt(secrmarks) / parseInt(maxmarks)) * 100; pertage = pertage.toFixed(2); $("#"+fpercnt).val(pertage); } var secureTotal = 0; var secure1=$("#fsecured_marks1").val(); var secure2=$("#fsecured_marks2").val(); var secure3 =$("#fsecured_marks3").val(); var secure4 =$("#fsecured_marks4").val(); var secure5 =$("#fsecured_marks5").val(); var secureVal1 = 0; var secureVal2 =0; var secureVal3 = 0; var secureVal4 = 0; var secureVal5 =0; if(secure1 !='') { secureVal1=parseInt($("#fsecured_marks1").val()); } if(secure2 !='') { secureVal2=parseInt($("#fsecured_marks2").val()); } if(secure3 !='') { secureVal3=parseInt($("#fsecured_marks3").val()); } if(secure4 !='') { secureVal4=parseInt($("#fsecured_marks4").val()); } if(secure5 !='') { secureVal5=parseInt($("#fsecured_marks5").val()); } secureTotal = secureVal1+secureVal2+secureVal3+secureVal4+secureVal5; $("#ftotalsecured").val(secureTotal); var maxTotal = 0; var maxMarks1=$("#fsecured_marks1").val(); var maxMarks2=$("#fsecured_marks2").val(); var maxMarks3 =$("#fsecured_marks3").val(); var maxMarks4 =$("#fsecured_marks4").val(); var maxMarks5 =$("#fsecured_marks5").val(); var maxVMarksVal1 = 0; var maxVMarksVal2 =0; var maxVMarksVal3 = 0; var maxVMarksVal4 = 0; var maxVMarksVal5 =0; if(maxMarks1 !='') { maxVMarksVal1=parseInt($("#fmax_marks1").val()); } if(maxMarks2 !='') { maxVMarksVal2=parseInt($("#fmax_marks2").val()); } if(maxMarks3 !='') { maxVMarksVal3=parseInt($("#fmax_marks3").val()); } if(maxMarks4 !='') { maxVMarksVal4=parseInt($("#fmax_marks4").val()); } if(maxMarks5 !='') { maxVMarksVal5=parseInt($("#fmax_marks5").val()); } maxTotal = maxVMarksVal1+maxVMarksVal2+maxVMarksVal3+maxVMarksVal4+maxVMarksVal5; $("#ftotalmax").val(maxTotal); if(maxTotal != 0 && secureTotal != 0) { var totalpertage = (parseInt(secureTotal) / parseInt(maxTotal)) * 100; totalpertage = totalpertage.toFixed(2); $("#ftotalpercnt").val(totalpertage); } }
Close