Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Apache
: 172.26.7.228 | : 13.58.211.135
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 /
sikkim /
adm /
custom_js /
[ HOME SHELL ]
Name
Size
Permission
Action
cms.js
130.04
KB
-rwxr-xr-x
cms_19082019.js
45.42
KB
-rwxr-xr-x
cms_old.js
34.79
KB
-rwxr-xr-x
include_js.js
606
B
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : cms_19082019.js
var $g_subject_appearing= ''; var $g_remaining_counter_inc=''; var str = ''; CMS={ getcollname : function () { $("#dob").inputmask("d/m/y", { "placeholder": "dd/mm/yyyy" }); $("#passport_expiry_date").inputmask("d/m/y", { "placeholder": "dd/mm/yyyy" }); $("#visa_expiry_date").inputmask("d/m/y", { "placeholder": "dd/mm/yyyy" }); $("#p_dob").inputmask("d/m/y", { "placeholder": "dd/mm/yyyy" }); $("#c_dob").inputmask("d/m/y", { "placeholder": "dd/mm/yyyy" }); $("#draftdate").inputmask("d/m/y", { "placeholder": "dd/mm/yyyy" }); //var lstr_query_string = $("#college").val();// var lstr_query_string = ''; //alert($host_url); var lstr_query_string = window.location.href; lstr_query_string = lstr_query_string.split("="); lstr_query_string = lstr_query_string[1]; $.ajax({ type: "POST", async:false, url:$host_url+'getcollname', error:AjaxErrorMessage, data: "&lstr_query_string="+lstr_query_string, success: function GetCMSDropDownMenuValuesResponce(responce) { try { responce = eval('(' + responce + ')'); var category_arr=responce.data['category']; var statename_arr=responce.data['statename']; var college_arr=responce.data['college']; //alert(responce.data['college']); var lastinst_arr=responce.data['lastinst']; CMS.FillDropdownValues(statename_arr,'perstate'); CMS.FillDropdownValues(college_arr,'fcollcode'); CMS.FillDropdownValues(lastinst_arr,'lastinst'); CMS.FillDropdownValues(category_arr,'category'); if(lstr_query_string == 'ug') { $("#feedetails").show(); document.getElementById('rf').value = 200; document.getElementById('msf').value = 200; document.getElementById('dcf').value = 300; document.getElementById('amount').value = 700; } //CMS.HideShowPassportDetails(); $("#lastexampas").hide(); $("#lastinstname").hide(); $("#lastinstname").hide(); $("#nationalname").hide(); $("#state").hide(); $("#board").hide(); $("#edite").hide(); } catch(err) { txt= err.message; $.unblockUI(); bootbox.alert(txt); } } }); }, getdegname : function () { var fcollcode = $("#fcollcode").val(); $.ajax({ type: "POST", //async:false, url:$host_url+'getdegname', error:AjaxErrorMessage, data: "&fcollcode="+fcollcode, success: function GetCMSDropDownMenuValuesResponce(responce) { try { responce = eval('(' + responce + ')'); var degree_arr=responce.data['degree']; CMS.FillDropdownValues(degree_arr,'fdegree'); } catch(err) { txt= err.message; $.unblockUI(); bootbox.alert(txt); } } }); }, checkregno : function() { var roll_number = $("#roll_number").val(); var fcollcode = $("#fcollcode").val(); if(roll_number != '') { if(roll_number.length != '8') { alert('Roll Number Shoud be 8 character.'); document.getElementById('roll_number').value = ''; document.getElementById('roll_number').focus(); return false; } $.ajax({ type: "POST", //async:false, url:$host_url+'checkregno', error:AjaxErrorMessage, data: "&roll_number="+roll_number+"&fcollcode="+fcollcode, success: function checkregnoResponce(responce) { try { responce = eval('(' + responce + ')'); if(responce.data != '') { //alert(responce.data['fname']); alert("The Roll number "+responce.data['frollno']+ " has already been entered by\r\nstudent name : "+responce.data['fname']+"\r\ncollege code : "+responce.data['fcollcode']+"\r\ndegree : "+responce.data['fdegree']+ " Please enter the correct roll number.\r\n"); //alert('your roll no. already given to another stydent plz contact to the college'); document.getElementById('roll_number').value = ''; document.getElementById('roll_number').focus(); return false; } //var degree_arr=responce.data['degree']; //CMS.FillDropdownValues(degree_arr,'fdegree'); } catch(err) { txt= err.message; $.unblockUI(); bootbox.alert(txt); } } }); } }, nationality :function() { $("#nationalname").hide(); var nationality = $("#nationality").val(); if(nationality == 'others') { $("#nationalname").show(); document.getElementById('nationalname').focus(); return; } }, lastexampassed : function() { $("#lastexampas").hide(); var level = $("#level").val(); if(level == 'others') { $("#lastexampas").show(); document.getElementById('lastexampas').focus(); return; } }, Universityname : function() { $("#board").hide(); var univname = $("#univname").val(); document.getElementById('regnno').value =''; document.getElementById('regnno').disabled =false; var lstr_query_string = window.location.href; lstr_query_string = lstr_query_string.split("="); lstr_query_string = lstr_query_string[1]; if(lstr_query_string == 'ug') { if(univname == 'others') { $("#board").show(); document.getElementById('regnno').value ='NOT APPLICABLE'; document.getElementById('regnno').disabled =true; document.getElementById('board').focus(); document.getElementById('rf').value = 200; document.getElementById('msf').value = 200; document.getElementById('dcf').value = 300; document.getElementById('amount').value = 700; return; }else { document.getElementById('rf').value = 0; document.getElementById('msf').value = 200; document.getElementById('dcf').value = 300; document.getElementById('amount').value = 500; } }else { var univname = $("#univname").val(); document.getElementById('regnno').value =''; document.getElementById('regnno').disabled =false; if(univname == 'others') { $("#board").show(); document.getElementById('regnno').value ='NOT APPLICABLE'; document.getElementById('regnno').disabled =true; document.getElementById('board').focus(); } document.getElementById('rf').value = 0; document.getElementById('msf').value = 0; document.getElementById('dcf').value = 0; document.getElementById('amount').value = 0; } }, institutionname :function() { $("#lastinstname").hide(); $("#regnnoform").show(); var lastinst = $("#lastinst").val(); //document.getElementById('regnno').value =''; //document.getElementById('regnno').disabled =false; if(lastinst == 'others') { $("#lastinstname").show(); //$("#regnnoform").hide(); //document.getElementById('regnno').value ='NOT APPLICABLE'; //document.getElementById('regnno').disabled =true; document.getElementById('lastinstname').focus(); return; } }, statevalue : function() { $("#state").hide(); var perstate = $("#perstate").val(); if(perstate == 'others') { $("#state").show(); document.getElementById('state').focus(); return; } }, disp_sub: function() { var fdegree = $("#fdegree").val(); var fcollcode = $("#fcollcode").val(); $.ajax({ type: "POST", async:false, url:$host_url+'disp_sub', error:AjaxErrorMessage, data: "&fdegree="+fdegree+"&fcollcode="+fcollcode, success: function dis_subResponce(responce) { try { responce = eval('(' + responce + ')'); var degree_arr=responce.data['html']; $g_subject_appearing=responce.data.total_count; $g_remaining_counter_inc=(responce.data.remaining_count); var remaining_count=responce.data['remaining_count']; document.getElementById('tabledtetails').innerHTML =degree_arr; //tabledtetails } catch(err) { txt= err.message; $.unblockUI(); bootbox.alert(txt); } } }); }, getsubcode: function(e,id) { var fsubname = id; var key = e.substring(9); var fscode ="fsubcode_"+key; var fsshort ="fsubshort_"+key; $check_dup_flag=0; for($m=0;$m<$g_subject_appearing;$m++) { if($m!=key && (fsubname == $("#fsubname_"+$m).val() || fsubname==$("#se_sub_code_"+$m).html()) ) $check_dup_flag=1; } if($check_dup_flag==1) { alert('Sub Code '+fsubname+' already Selected'); $("#fsubname_"+key).focus(); $("#fsubname_"+key).val(''); $("#fsubcode_"+key).val(''); $("#fsubshort_"+key).val(''); return; } else { var fdegree = $("#fdegree").val(); $.ajax({ type: "POST", //async:false, url:$host_url+'getsubcode', error:AjaxErrorMessage, data: "&fsubname="+fsubname+"&fdegree="+fdegree, success:function getsubcodeResponce(responce) { try { responce = eval('(' + responce + ')'); var fsubcode =responce.data['FSUBCODE']; var fsubshort=responce.data['FSUBSHORT']; document.getElementById(fscode).value =fsubcode; document.getElementById(fsshort).value =fsubshort; } catch(err) { txt= err.message; $.unblockUI(); bootbox.alert(txt); } } }); } }, getappno:function() { var approllno = $("#approllno").val(); $.ajax({ type: "POST", //async:false, url:$host_url+'getappno', error:AjaxErrorMessage, data: "&approllno="+approllno, success:function getappnoResponce(responce) { try { responce = eval('(' + responce + ')'); //var fsubcode =responce.data['FSUBCODE']; document.getElementById('app_no').value =responce.data; } catch(err) { txt= err.message; $.unblockUI(); bootbox.alert(txt); } } }); }, checkhonours: function(id) { var checkboxes = document.getElementsByTagName('input'); for (var i = 0; i < checkboxes.length; i++) { if (checkboxes[i].type == 'checkbox' && id != checkboxes[i].id) { checkboxes[i].checked = false; } } }, FillDropdownValues:function (arr,ele_name) { /* document.getElementById(ele_name).options.length=1; jQuery.each(arr, function(k, v) { var op = new Option(v['val'], v['int_code']); op.id=v['int_code']; document.getElementById(ele_name).options.add(op); }); */ if(ele_name == 'lastinst') { document.getElementById(ele_name).options.length=2; jQuery.each(arr, function(k, v) { var op = new Option(v['val'], v['int_code']); op.id=v['int_code']; document.getElementById(ele_name).options.add(op); }); }else { document.getElementById(ele_name).options.length=1; jQuery.each(arr, function(k, v) { var op = new Option(v['val'], v['int_code']); op.id=v['int_code']; document.getElementById(ele_name).options.add(op); }); } }, HideShowPassportDetails:function () { var nationality=$("#nationality").val(); if(nationality=="INDIAN") { $("#passport_div").hide(); } else $("#passport_div").show(); }, StudentDetails : function() { var list_data=$host_url+"SavestudentDetails"; var fdegree = $("#fdegree").val();list_data+="&fdegree="+fdegree; var fcollcode = $("#fcollcode").val();list_data+="&fcollcode="+fcollcode; var candidate_name = encodeURIComponent($("#candidate_name").val());list_data+="&candidate_name="+candidate_name; var dob = date_format($("#dob").val());list_data+="&dob="+date_format($("#dob").val()); var gender = ($("#gender").val());list_data+="&gender="+gender; var nationality = ($("#nationality").val());list_data+="&nationality="+nationality; var father_name = ($("#father_name").val());list_data+="&father_name="+father_name; var father_Occupation = ($("#father_Occupation").val());list_data+="&father_Occupation="+father_Occupation; var mother_name = ($("#mother_name").val());list_data+="&mother_name="+mother_name; var mother_Occupation = ($("#mother_Occupation").val());list_data+="&mother_Occupation="+mother_Occupation; var email_id = encodeURIComponent($("#email_id").val());list_data+="&email_id="+email_id; //var moi = encodeURIComponent($("#moi").val());list_data+="&moi="+moi; var roll_number = encodeURIComponent($("#roll_number").val());list_data+="&roll_number="+roll_number; var Religion = encodeURIComponent($("#Religion").val());list_data+="&Religion="+Religion; var category = ($("#category").val());list_data+="&category="+category; var comm_addr1 = encodeURIComponent($("#comm_addr1").val());list_data+="&comm_addr1="+comm_addr1; var comm_addr2 = encodeURIComponent($("#comm_addr2").val());list_data+="&comm_addr2="+comm_addr2; var comm_addr3 = encodeURIComponent($("#comm_addr3").val());list_data+="&comm_addr3="+comm_addr3; var comm_addr4 = encodeURIComponent($("#comm_addr4").val());list_data+="&comm_addr4="+comm_addr4; var per_addr1 = encodeURIComponent($("#per_addr1").val());list_data+="&per_addr1="+per_addr1; var per_addr2 = encodeURIComponent($("#per_addr2").val());list_data+="&per_addr2="+per_addr2; var per_addr3 = encodeURIComponent($("#per_addr3").val());list_data+="&per_addr3="+per_addr3; var per_addr4 = encodeURIComponent($("#per_addr4").val());list_data+="&per_addr4="+per_addr4; var contact_no = encodeURIComponent($("#contact_no").val());list_data+="&contact_no="+contact_no; var Blood_Groop = encodeURIComponent($("#Blood_Groop").val());list_data+="&Blood_Groop="+Blood_Groop; //var draftno = encodeURIComponent($("#draftno").val());list_data+="&draftno="+draftno; var univname = encodeURIComponent($("#univname").val());list_data+="&univname="+univname; var level = encodeURIComponent($("#level").val());list_data+="&level="+level; var year = encodeURIComponent($("#year").val());list_data+="&year="+year; var rollno = encodeURIComponent($("#rollno").val());list_data+="&rollno="+rollno; var percentage = encodeURIComponent($("#percentage").val());list_data+="&percentage="+percentage; var Division = encodeURIComponent($("#Division").val());list_data+="&Division="+Division; var regnno = encodeURIComponent($("#regnno").val());list_data+="®nno="+regnno; var draftno = encodeURIComponent($("#draftno").val());list_data+="&draftno="+draftno; var draftamount = encodeURIComponent($("#draftamount").val());list_data+="&draftamount="+draftamount; //var draftdate = encodeURIComponent($("#draftdate").val());list_data+="&draftdate="+draftdate; var draftdate = date_format($("#draftdate").val());list_data+="&draftdate="+date_format($("#draftdate").val()); var issbank = encodeURIComponent($("#issbank").val());list_data+="&issbank="+issbank; var issbranch = encodeURIComponent($("#issbranch").val());list_data+="&issbranch="+issbranch; var lastinst = encodeURIComponent($("#lastinst").val());list_data+="&lastinst="+lastinst; var lastexampas = encodeURIComponent($("#lastexampas").val());list_data+="&lastexampas="+lastexampas; var board = encodeURIComponent($("#board").val());list_data+="&board="+board; var payment_type = encodeURIComponent($("#payment_type").val());list_data+="&payment_type="+payment_type; var amount = encodeURIComponent($("#amount").val());list_data+="&amount="+amount; var mcfee = encodeURIComponent($("#msf").val());list_data+="&mcfee="+mcfee; var dcfee = encodeURIComponent($("#dcf").val());list_data+="&dcfee="+dcfee; var admfee = encodeURIComponent($("#rf").val());list_data+="&admfee="+admfee; var lastinstname = encodeURIComponent($("#lastinstname").val());list_data+="&lastinstname="+lastinstname; var nationalname = encodeURIComponent($("#nationalname").val());list_data+="&nationalname="+nationalname; var perstate = encodeURIComponent($("#perstate").val());list_data+="&perstate="+perstate; if(fcollcode == 'None') { alert("select College"); $("#college").focus(); return false; } if(empty(roll_number)) { alert("Enter Roll Number"); $("#roll_number").focus(); return false; } if(empty(candidate_name)) { alert("Enter candidate name"); $("#candidate_name").focus(); return false; } if(dob=="0000-00-00") { alert("Enter valid date"); $("#dob").focus(); return false; } /* if(Blood_Groop == 'None') { alert("Select Blood_Groop"); $("#Blood_Groop").focus(); return false; } */ if(empty(mother_name)) { alert("Enter mother name"); $("#mother_name").focus(); return false; } if(empty(father_name)) { alert("Enter father name"); $("#father_name").focus(); return false; } if(empty(email_id)) { alert("Enter Email Id"); $("#email_id").focus(); return false; } if(perstate == 'None') { alert("please select the state"); $("#perstate").focus(); return false; } if(nationality == 'others') { if(nationalname == '') { alert('Please Enter Nationality'); document.getElementById("nationalname").focus(); return false; } } if(category == 'None') { alert("Enter category"); $("#category").focus(); return false; } if(empty(contact_no)) { alert("Enter contact number"); $("#contact_no").focus(); return false; } if(empty(comm_addr1)) { alert("Enter postal address"); $("#comm_addr1").focus(); return false; } if(empty(per_addr1)) { alert("Enter parmanent address"); $("#per_addr1").focus(); return false; } if(fdegree == 'None') { alert("select Degree"); $("#course").focus(); return false; } if(lastinst == 'others') { if(lastinstname == '') { alert('Please Enter Institution of Last Examination Name'); document.getElementById("lastinstname").focus(); return false; } } if(lastinst == 'None') { alert('Please Enter Institution of Last Examination Name'); document.getElementById("lastinst").focus(); return false; } var start_indx = ($g_subject_appearing)-($g_remaining_counter_inc); var subject_alert_flag=false; var alert_cnt=0; var honours = ''; for($m=start_indx;$m<$g_subject_appearing;$m++) { var subcode = document.getElementById('fsubcode_'+$m).value; if(trim(subcode)=='') { alert('Please Enter the All Subjects'); document.getElementById("fsubname_"+$m).focus(); return false; } } if(fdegree == 'BA14' || fdegree == 'BSC14') { for($m =start_indx;$m<$g_subject_appearing;$m++) { if(document.getElementById("honours_"+$m).checked==true) honours = trim($("#fsubcode_"+$m).val()); } if(honours == '') { alert('Please Select honours Subject'); return false; } } /* for($m =start_indx;$m<$g_subject_appearing;$m++) { if(document.getElementById("honours_"+$m).checked==true) honours = trim($("#fsubcode_"+$m).val()); } if(draftno == '') { alert('Please Enter Draft Number'); document.getElementById("draftno").focus(); return false; } */ if(univname == 'None') { alert('Please Enter Board/University Name'); document.getElementById("univname").focus(); return false; } if(univname == 'others') { if(board == '') { alert('Please Enter Board Name'); document.getElementById("board").focus(); return false; } } if(univname == 'Sikkim%20University') { if(regnno == '') { alert('Please Enter Registration number'); document.getElementById("regnno").focus(); return false; } } if(level == 'None') { alert('Please Enter Last Examination Passed'); document.getElementById("level").focus(); return false; } if(level == 'others') { if(lastexampas == '') { alert('Please Enter Last Examination Passed'); document.getElementById("lastexampas").focus(); return false; } } if(rollno == '') { alert('Enter Roll No. of Last Examination '); document.getElementById("rollno").focus(); return false; } if(year == '') { alert('Please Enter year'); document.getElementById("year").focus(); return false; } if(percentage == '') { alert('Please Enter percentage'); document.getElementById("percentage").focus(); return false; } if(Division == '') { alert('Please Enter Division'); document.getElementById("Division").focus(); return false; } if(payment_type == '') { alert('Select Payment Type'); document.getElementById("payment_type").focus(); return false; } if(amount == '') { alert('Amount cant be Zero.'); document.getElementById("amount").focus(); return false; } /* if(draftamount == '') { alert('Please Enter Draft Amount'); document.getElementById("draftamount").focus(); return false; } if(draftdate=="0000-00-00") { alert("Enter valid date"); $("#draftdate").focus(); return false; } if(issbank == '') { alert('Please Enter Bank Name'); document.getElementById("issbank").focus(); return false; } if(issbranch == '') { alert('Please Enter Bank Branch'); document.getElementById("issbranch").focus(); return false; } */ if (document.getElementById('student_entry_photo').getAttribute('src') == "img/default_photo.jpg") { alert("Upload photo"); $("#student_entry_photo").focus(); return false; } CMS.EnableDisableStudentFields('Disable'); $("#edite").show(); $("#submith").hide(); bootbox.alert("Please check the details entered carefully before submitting the form. After clicking on Submit no changes are possible. For any changes click on Edit"); }, EditestudentDetails : function() { CMS.EnableDisableStudentFields('Enable'); }, SavestudentDetails : function () { CMS.EnableDisableStudentFields('Enable'); //var list_data=""; //$("#edite").show(); //$("#submith").hide(); var list_data=$host_url+"SavestudentDetails"; var fdegree = $("#fdegree").val();list_data+="&fdegree="+fdegree; var fcollcode = $("#fcollcode").val();list_data+="&fcollcode="+fcollcode; var candidate_name = encodeURIComponent($("#candidate_name").val());list_data+="&candidate_name="+candidate_name; var dob = date_format($("#dob").val());list_data+="&dob="+date_format($("#dob").val()); var gender = ($("#gender").val());list_data+="&gender="+gender; var nationality = ($("#nationality").val());list_data+="&nationality="+nationality; var father_name = ($("#father_name").val());list_data+="&father_name="+father_name; var roll_number = encodeURIComponent($("#roll_number").val());list_data+="&roll_number="+roll_number; //var father_Occupation = ($("#father_Occupation").val());list_data+="&father_Occupation="+father_Occupation; var mother_name = ($("#mother_name").val());list_data+="&mother_name="+mother_name; //var mother_Occupation = ($("#mother_Occupation").val());list_data+="&mother_Occupation="+mother_Occupation; var email_id = encodeURIComponent($("#email_id").val());list_data+="&email_id="+email_id; var moi = encodeURIComponent($("#moi").val());list_data+="&moi="+moi; var Religion = encodeURIComponent($("#Religion").val());list_data+="&Religion="+Religion; var category = ($("#category").val());list_data+="&category="+category; var comm_addr1 = encodeURIComponent($("#comm_addr1").val());list_data+="&comm_addr1="+comm_addr1; var comm_addr2 = encodeURIComponent($("#comm_addr2").val());list_data+="&comm_addr2="+comm_addr2; var comm_addr3 = encodeURIComponent($("#comm_addr3").val());list_data+="&comm_addr3="+comm_addr3; var comm_addr4 = encodeURIComponent($("#comm_addr4").val());list_data+="&comm_addr4="+comm_addr4; var per_addr1 = encodeURIComponent($("#per_addr1").val());list_data+="&per_addr1="+per_addr1; var per_addr2 = encodeURIComponent($("#per_addr2").val());list_data+="&per_addr2="+per_addr2; var per_addr3 = encodeURIComponent($("#per_addr3").val());list_data+="&per_addr3="+per_addr3; var per_addr4 = encodeURIComponent($("#per_addr4").val());list_data+="&per_addr4="+per_addr4; var contact_no = encodeURIComponent($("#contact_no").val());list_data+="&contact_no="+contact_no; var Blood_Groop = encodeURIComponent($("#Blood_Groop").val());list_data+="&Blood_Groop="+Blood_Groop; var perstate = encodeURIComponent($("#perstate").val());list_data+="&perstate="+perstate; var regnno = encodeURIComponent($("#regnno").val());list_data+="®nno="+regnno; //var draftno = encodeURIComponent($("#draftno").val());list_data+="&draftno="+draftno; var univname = encodeURIComponent($("#univname").val());list_data+="&univname="+univname; var level = encodeURIComponent($("#level").val());list_data+="&level="+level; var year = encodeURIComponent($("#year").val());list_data+="&year="+year; var rollno = encodeURIComponent($("#rollno").val());list_data+="&rollno="+rollno; var percentage = encodeURIComponent($("#percentage").val());list_data+="&percentage="+percentage; var Division = encodeURIComponent($("#Division").val());list_data+="&Division="+Division; var payment_type = encodeURIComponent($("#payment_type").val());list_data+="&payment_type="+payment_type; var amount = encodeURIComponent($("#amount").val());list_data+="&amount="+amount; var mcfee = encodeURIComponent($("#msf").val());list_data+="&mcfee="+mcfee; var dcfee = encodeURIComponent($("#dcf").val());list_data+="&dcfee="+dcfee; var admfee = encodeURIComponent($("#rf").val());list_data+="&admfee="+admfee; //var draftno = encodeURIComponent($("#draftno").val());list_data+="&draftno="+draftno; //var draftamount = encodeURIComponent($("#draftamount").val());list_data+="&draftamount="+draftamount; //var issbank = encodeURIComponent($("#issbank").val());list_data+="&issbank="+issbank; //var issbranch = encodeURIComponent($("#issbranch").val());list_data+="&issbranch="+issbranch; var nationalname = encodeURIComponent($("#nationalname").val());list_data+="&nationalname="+nationalname; var lastinst = encodeURIComponent($("#lastinst").val());list_data+="&lastinst="+lastinst; var lastinstname = encodeURIComponent($("#lastinstname").val());list_data+="&lastinstname="+lastinstname; //var draftdate = date_format($("#draftdate").val());list_data+="&draftdate="+draftdate; var lastexampas = encodeURIComponent($("#lastexampas").val());list_data+="&lastexampas="+lastexampas; var board = encodeURIComponent($("#board").val());list_data+="&board="+board; var state = encodeURIComponent($("#state").val());list_data+="&state="+state; if(fcollcode == 'None') { alert("select College"); $("#college").focus(); return false; } if(empty(roll_number)) { alert("Enter Roll Number"); $("#roll_number").focus(); return false; } if(fdegree == 'None') { alert("select Degree"); $("#course").focus(); return false; } if(empty(candidate_name)) { alert("Enter candidate name"); $("#candidate_name").focus(); return false; } if(dob=="0000-00-00") { alert("Enter valid date"); $("#dob").focus(); return false; } /* if(lastinst != 'others') { if(regnno == '') alert("Enter Registration number"); $("#regnno").focus(); return false; } */ if(empty(father_name)) { alert("Enter father name"); $("#father_name").focus(); return false; } if(empty(mother_name)) { alert("Enter mother name"); $("#mother_name").focus(); return false; } if(empty(email_id)) { alert("Enter Email Id"); $("#email_id").focus(); return false; } /* if(empty(Religion)) { alert("Enter Religion"); $("#Religion").focus(); return false; } */ if(category == 'None') { alert("Enter category"); $("#category").focus(); return false; } if(contact_no == '') { alert("Enter contact number"); $("#contact_no").focus(); return false; } if(empty(comm_addr1)) { alert("Enter postal address"); $("#comm_addr1").focus(); return false; } if(empty(per_addr1)) { alert("Enter parmanent address"); $("#per_addr1").focus(); return false; } if(perstate == 'None') { alert("please select the state"); $("#perstate").focus(); return false; } /*if(draftno == '') { alert('Please Enter Draft Number'); document.getElementById("draftno").focus(); return false; } if(univname == '') { alert('Please Enter Board/University Name'); document.getElementById("univname").focus(); return false; } */ /* if(level == '') { alert('Please Enter level'); document.getElementById("level").focus(); return false; } */ if(univname == 'None') { alert('Please Enter Board/University Name'); document.getElementById("univname").focus(); return false; } if(univname == 'others') { if(board == '') { alert('Please Enter Board Name'); document.getElementById("board").focus(); return false; } } if(univname == 'Sikkim%20University') { if(regnno == '') { alert('Please Enter Registration number'); document.getElementById("regnno").focus(); return false; } } if(level == 'None') { alert('Please Enter Last Examination Passed'); document.getElementById("level").focus(); return false; } if(level == 'others') { if(lastexampas == '') { alert('Please Enter Last Examination Passed'); document.getElementById("lastexampas").focus(); return false; } } if(rollno == '') { alert('Please Enter Roll No. of Last Examination'); document.getElementById("rollno").focus(); return false; } if(year == '') { alert('Please Enter year'); document.getElementById("year").focus(); return false; } if(percentage == '') { alert('Please Enter percentage'); document.getElementById("percentage").focus(); return false; } if(Division == '') { alert('Please Enter Division'); document.getElementById("Division").focus(); return false; } if(nationality == 'others') { if(nationalname == '') { alert('Please Enter Nationality'); document.getElementById("nationalname").focus(); return false; } } if(lastinst == 'others') { if(lastinstname == '') { alert('Please Enter Institution of Last Examination Name'); document.getElementById("lastinstname").focus(); return false; } } if(lastinst == 'None') { alert('Please Enter Institution of Last Examination Name'); document.getElementById("lastinst").focus(); return false; } if(document.getElementById('student_entry_photo').getAttribute('src') == "img/default_photo.jpg") { alert("Upload photo"); $("#student_entry_photo").focus(); return false; } if(payment_type == '') { alert('Select Payment Type'); document.getElementById("payment_type").focus(); return false; } if(amount == '') { alert('Amount cant be Zero.'); document.getElementById("amount").focus(); return false; } var start_indx = ($g_subject_appearing)-($g_remaining_counter_inc); var subject_alert_flag=false; var alert_cnt=0; //var inputFileds = document.getElementsByTagName('input'); /* var chck = '0'; for (var counter=0; counter < inputFileds.length; counter++) { if ( inputFileds[counter].type.toUpperCase()=='checkbox' && inputFileds[counter].name == "honour" ) { chck++; } } */ for($m=0;$m<$g_subject_appearing;$m++) { var subcode = document.getElementById('fsubcode_'+$m).value; if(trim(subcode)=='') { alert('Please Enter the All Subjects'); document.getElementById("fsubname_"+$m).focus(); //if(document.getElementById("honours_"+$m).checked==true) //honours = trim($("#fsubcode_"+$m).val()); return false; } } var honours; /* for($m=0;$m<$g_subject_appearing;$m++) { if(document.getElementById("honours_"+$m).checked==true) honours = trim($("#fsubcode_"+$m).val()); } */ if(fdegree == 'BA14' || fdegree == 'BSC14') { for($m =start_indx;$m<$g_subject_appearing;$m++) { if(document.getElementById("honours_"+$m).checked==true) honours = trim($("#fsubcode_"+$m).val()); } if(honours == '') { alert('Please Select honours Subject'); return false; } } $sub_arr = new Object(); $n=0; for($m=0;$m<$g_subject_appearing;$m++) { $sub_arr[$n]= new Object(); $sub_arr[$n]['sub_code']=trim($("#fsubcode_"+$m).val()); $n++; } var myJSONText = encodeURIComponent(JSON.stringify($sub_arr)); CMS.EnableDisableStudentFields('Enable'); var valid_file_extentions = new Array("jpeg","jpg"); var ext=$("#student_entry_upload").val(); filepath=ext; ext = ext.substring(ext.length-3,ext.length); ext = ext.toLowerCase(); if(ext != "" && !in_array(ext,valid_file_extentions)) { alert("Please Select the Valid Photo!"); return false; } list_data+="&filepath="+filepath; list_data+="&honours="+honours; /* if(honours == '') { alert("Please Select Honour Subject"); return false; } */ list_data+="&sub_arr="+myJSONText; App.blockUI({boxed:true,message:"Please wait, We are saving Data"}); document.getElementById("form_module_details_upload").setAttribute("action",list_data); return AIM.submit(document.getElementById("form_module_details_upload"), 'same_tab',{'onComplete' : CMS.SaveCertificateDetailsResponse}); }, subjectEdie : function(fdegree,fcollcode,id) { for($m=0;$m<id;$m++) { document.getElementById("fsubname_"+$m).disabled = false; } }, SaveCertificateDetailsResponse : function (responce) { try { $.fancybox.close(); App.unblockUI(); responce = eval('(' + trim(responce) + ')'); if (responce.error_code == 0) { CMS.GetpaymentLinkForAppNo(responce.data['app_no'],responce.data['fslno']); } else { alert(responce.data); return false; } } catch(err) { txt= err.message; bootbox.alert(txt+"<br>"+responce); } }, EnableDisableStudentFields: function (s_type) { var input_obj=$("#main_page input"); jQuery.each(input_obj, function(k, v) { var id=v['id']; var name=v['name']; var type=v['type'].toLowerCase(); if(type=='radio') { if(s_type=='Disable') $('input:radio[name="'+name+'"]').attr('disabled', 'disabled'); else $('input:radio[name="'+name+'"]').removeAttr('disabled', 'disabled'); } else { if(s_type=='Disable') { $("#"+id).attr('disabled', 'disabled'); } else { $("#"+id).removeAttr('disabled', 'disabled'); } } }); if(s_type=='Disable') { $("#gender").attr('disabled', 'disabled'); $("#nationality").attr('disabled', 'disabled'); $("#Blood_Groop").attr('disabled', 'disabled'); $("#perstate").attr('disabled', 'disabled'); $("#fcollcode").attr('disabled', 'disabled'); $("#fdegree").attr('disabled', 'disabled'); $(".subname").attr('disabled', 'disabled'); $("#level").attr('disabled', 'disabled'); $("#univname").attr('disabled', 'disabled'); $("#lastinst").attr('disabled', 'disabled'); $("#student_entry_upload").attr('disabled', 'disabled'); $("#payment_type").attr('disabled', 'disabled'); } else { $("#gender").removeAttr('disabled', 'disabled'); $("#nationality").removeAttr('disabled', 'disabled'); $("#Blood_Groop").removeAttr('disabled', 'disabled'); $("#perstate").removeAttr('disabled', 'disabled'); $("#fcollcode").removeAttr('disabled', 'disabled'); $("#fdegree").removeAttr('disabled', 'disabled'); $("#level").removeAttr('disabled', 'disabled'); $("#univname").removeAttr('disabled', 'disabled'); $("#lastinst").removeAttr('disabled', 'disabled'); $(".subname").removeAttr('disabled', 'disabled'); $("#student_entry_upload").removeAttr('disabled', 'disabled'); $("#payment_type").removeAttr('disabled', 'disabled'); } }, GetpaymentLinkForAppNo:function(app_no,fslno) { var fcollcode = $("#fcollcode").val(); var fdegree = $("#fdegree").val(); var fpaymenttype = $("#payment_type").val(); $.ajax({ type: "POST", //async:false, url:$host_url+'GetpaymentLinkForAppNo', error:AjaxErrorMessage, data: "&app_no="+app_no+"&fcollcode="+fcollcode+"&fdegree="+fdegree+"&fslno="+fslno+"&fpaymenttype="+fpaymenttype, success: function GetpaymentLinkForAppNoResponce(responce) { try { responce = eval('(' + responce + ')'); $("#tasks_inbox").html(responce.data); } catch(err) { txt= err.message; $.unblockUI(); bootbox.alert(txt); } } }); }, applicationForm:function(app_no,fcollcode,fdegree,fslno) { window.location.href=$host_url+"GenerateApplicationFormPdfReport&app_no="+app_no+"&fcollcode="+fcollcode+"&fdegree="+fdegree+"&fslno="+fslno; }, makepaymentapplicationForm:function(app_no) { window.location.href=$host_url+"GenerateApplicationFormPdfReport&app_no="+app_no; }, MakeOnlinePayment:function (app_no) { window.location.href="payment_gateway.php?productinfo="+app_no; }, ValidatePrintCertificateApplicationData:function() { var candidate_name=$("#a_candidate_name").val(); var dob=date_format($("#c_dob").val()); var app_no= $("#app_no").val(); var approllno= $("#approllno").val(); if(approllno == '') { bootbox.alert("Please Enter Roll Number"); return false; } if(empty(candidate_name)) { bootbox.alert("Please Enter Candidate Name"); return false; }else if(dob=="0000-00-00") { bootbox.alert("Please Enter Date of Birth"); return false; }else if(empty(app_no)) { bootbox.alert("Please Enter application Numbser"); return false; } $.ajax({ type: "POST", //async:false, url:$host_url+'ValidatePrintCertificateApplicationData', error:AjaxErrorMessage, data: "&candidate_name="+candidate_name+"&dob="+dob+"&app_no="+app_no, success: function ValidatePrintCertificateApplicationDataResponce(responce) { try { responce = eval('(' + responce + ')'); if(responce.error_code==-1) { bootbox.alert("Invalid Inputs Entered"); } else { CMS.applicationreport(responce.data['app_no']); } } catch(err) { txt= err.message; $.unblockUI(); bootbox.alert(txt); } } }); }, applicationreport : function(app_no) { window.location.href=$host_url+"Generateapplicationreport&app_no="+app_no; //window.location.href=$host_url+"GenerateApplicationFormPdfReport&app_no="+app_no; }, acceptNumbersOnlyForModule : function(evt) { var event = ''; var charCode = (evt.which) ? evt.which : event.keyCode if (charCode > 31 && (charCode < 48 || charCode > 57)) return false; return true; }, GetPendingCertificates:function() { $.ajax({ type: "POST", //async:false, url:$host_url+'GetPendingCertificates', error:AjaxErrorMessage, data: "from_app="+$("#app_from_app").val()+"&to_app="+$("#app_to_app").val(), success: function GetPendingCertificatesDataResponce(responce) { try { responce = eval('(' + responce + ')'); if(responce.error_code==-1) { } else { $("#tasks_inbox_trial").html(responce.data['html']); } } catch(err) { txt= err.message; $.unblockUI(); bootbox.alert(txt); } } }); }, GetVerifiedCertificates:function() { $.ajax({ type: "POST", //async:false, url:$host_url+'GetVerifiedCertificates', error:AjaxErrorMessage, data: "from_app="+$("#ver_from_app").val()+"&to_app="+$("#ver_to_app").val(), success: function GetVerifiedCertificatesResponce(responce) { try { responce = eval('(' + responce + ')'); if(responce.error_code==-1) { } else { $("#verified_trial").html(responce.data['html']); } } catch(err) { txt= err.message; $.unblockUI(); bootbox.alert(txt); } } }); }, viewCollCandidateDetails:function(appno,collcode,type) { $.ajax({ type: "POST", //async:false, url:$host_url+'GetCandidateDetails', error:AjaxErrorMessage, data: "appno="+appno+"&collcode="+collcode, success: function(responce) { try { responce = eval('(' + responce + ')'); if(responce.error_code==-1) { } else { if(type == 'pending') { document.getElementById('cand_list').className = ' '; document.getElementById('cand_details').className = 'active'; document.getElementById('tasks_inbox').className = 'tab-pane'; document.getElementById('candidate_details').className += ' active'; document.getElementById('cand_details').focus(); $("#candidate_details").html(responce.data['html']); } if(type == 'verified') { document.getElementById('cand_verified').className = ' '; document.getElementById('cand_details').className = 'active'; document.getElementById('verified_div').className = 'tab-pane'; document.getElementById('candidate_details').className += ' active'; document.getElementById('cand_details').focus(); $("#candidate_details").html(responce.data['html']); } if(type == 'verifiedbarcode') { document.getElementById('cand_listbarcode').className = ' '; document.getElementById('cand_details').className = 'active'; document.getElementById('tasks_inboxbarcode').className = 'tab-pane'; document.getElementById('candidate_details').className += ' active'; document.getElementById('cand_details').focus(); $("#candidate_details").html(responce.data['html']); } } } catch(err) { txt= err.message; $.unblockUI(); bootbox.alert(txt); } } }); }, ApproveRejectCertificate:function(FAPPNO,status) { remarks = ''; if(status == 'Rejected') { bootbox.confirm("Are you sure ? <br><br><form id='infos' action=''>Reason : <br><textarea rows='3' cols='50' id='remarks' width='200px' height='100px'/><br/>", function(result) { if(result) { remarks = document.getElementById('remarks').value if( remarks!='') { $.ajax({ type: "POST", //async:false, url:$host_url+'ApproveRejectCertificate', error:AjaxErrorMessage, data: "FAPPNO="+FAPPNO+"&status="+status+"&remarks="+remarks, success: function ApproveRejectCertificateResponce(responce) { try { responce = eval('(' + responce + ')'); if(responce.error_code==-1) { } else { bootbox.alert("Updated Successfully"); CMS.GetPendingCertificates(); } } catch(err) { txt= err.message; $.unblockUI(); bootbox.alert(txt); } } }); } } }); } else { bootbox.confirm("Are you sure?",function(result){ if(result) { $.ajax({ type: "POST", //async:false, url:$host_url+'ApproveRejectCertificate', error:AjaxErrorMessage, data: "FAPPNO="+FAPPNO+"&status="+status+"&remarks="+remarks, success: function ApproveRejectCertificateResponce(responce) { try { responce = eval('(' + responce + ')'); if(responce.error_code==-1) { } else { bootbox.alert("Updated Successfully"); CMS.GetPendingCertificates(); } } catch(err) { txt= err.message; $.unblockUI(); bootbox.alert(txt); } } }); } }); } }, DisplayAllAckExamApplications:function(evt) { /* var event = ''; alert(evt.keyCode);alert(evt.which); var charCode = (evt.which) ? evt.which : evt.keyCode; alert(evt.keyCode); */ //if(charCode == 'undefined') //{ app_no = $("#app_from_appbarcode").val(); str += "'"+app_no+"',"; $.ajax({ type: "POST", //async:false, url:$host_url+'DisplayAllAckExamApplications', error:AjaxErrorMessage, data:"&app_from_app="+encodeURIComponent(str), success: function DisplayAllAckExamApplicationsResponce(responce) { try { responce = eval('(' + responce + ')'); if(responce.error_code==-1) { } else { $("#tasks_inbox_trialbarcode").html(responce.data['html']); document.getElementById('app_from_appbarcode').value = ''; } } catch(err) { txt= err.message; $.unblockUI(); bootbox.alert(txt); } } }); // } }, AcknowledgeSelectedExamApplications:function() { checked_app_nos=new Array(); var obj=$("input[id*='ack_check_box_']") ; jQuery.each(obj, function(k, v) { row_id=v['id'].split("_")[3]; if($(this).is(':checked')) checked_app_nos.push(row_id); }); if(empty(checked_app_nos)) { alert("Please select minumum one application to acknowledge."); return false; } $.ajax({ type: "POST", //async:false, url:$host_url+'AcknowledgeSelectedExamApplications', error:AjaxErrorMessage, data:"checked_app_nos="+checked_app_nos, success: function AcknowledgeSelectedExamApplicationsResponce(responce) { try { responce = eval('(' + responce + ')'); if(responce.error_code==-1) { bootbox.alert("Update Failed"); } else { bootbox.alert("Updated Successfully"); $("#tasks_inbox_trialbarcode").html(''); document.getElementById('app_from_appbarcode').value = ''; } } catch(err) { txt= err.message; $.unblockUI(); bootbox.alert(txt); } } }); }, to_upperx :function(id) { var x = document.getElementById(id).value; document.getElementById(id).value = x.toUpperCase(); }, singlequtes :function(id) { var x = document.getElementById(id).value; addvaue = x.replace("'","`"); document.getElementById(id).value = addvaue; } }
Close