Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Apache
: 172.26.7.228 | : 18.118.0.93
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 : jscript.js
$g_dropdown_data=''; $g_edit_app_code=0; function GetDropdownMenuValues() { $.ajax({ type: "POST", async:false, url: $host_url+"GetDropdownMenuValues", success: GetDropdownMenyValuesResponce }); } function GetDropdownMenyValuesResponce(responce) { responce = eval('(' + responce + ')'); $g_dropdown_data=responce.data; var distict=responce.data['distict']; var univ=responce.data['univ']; var medical=responce.data['medical']; var category=responce.data['category']; var dept=responce.data['dept']; FillDropdownValues(distict,'pob'); FillDropdownValues(univ,'univ'); FillDropdownValues(medical,'college'); FillDropdownValues(category,'category'); FillDropdownValues(dept,'dept'); } $g_category_dd_amt=new Object(); function FillDropdownValues(arr,ele_name) { document.getElementById(ele_name).options.length=0; jQuery.each(arr, function(k, v) { var op = new Option(v['name'], v['code']); op.id=v['code']; document.getElementById(ele_name).options.add(op); if(ele_name=='category') { $g_category_dd_amt[v['code']]=v['FPGETFEE']; } }); } function PopulateCollegeData() { var sub=$("input[name='subject']:checked").val(); if(sub=="Medical") { FillDropdownValues($g_dropdown_data['medical'],'college') } else FillDropdownValues($g_dropdown_data['dental'],'college') } function OnLoadScreen() { var path="src/details.html" $('#main_page').load(path,function() { $g_edit_app_code=0; GetDropdownMenuValues(); DisplayMarksTotals(); showHideInserviceTable(); AssignDDAmount(); $("#student_entry_upload").val(""); $("#dob").mask({mask: "##/##/####"}) ; $("#rotary").mask({mask: "##/##/####"}) ; $("#dd_date").mask({mask: "##/##/####"}) ; $("#date_of_entry").mask({mask: "##/##/####"}) ; $("#pg_degree_date").mask({mask: "##/##/####"}) ; $("#pg_diploma_date").mask({mask: "##/##/####"}) ; $("#prob_date").mask({mask: "##/##/####"}) ; }); } function AssignDDAmount() { var category=$("#category").val(); amt=$g_category_dd_amt[category]; $("#dd_amt").val(amt); } function acceptNumbersOnlyForModule(evt) { var charCode = (evt.which) ? evt.which : evt.keyCode; if (charCode > 41 && (charCode < 48 || charCode > 57) && charCode!=47 && charCode!=99 && charCode!=118 && charCode!=120 && charCode!=46 ) return false; return true; } function showHideInserviceTable() { var in_service_status=$("input[name='in_service_status']:checked").val(); if(in_service_status=="Yes") { $("#table_content_hide").show(); } else $("#table_content_hide").hide(); } function DisplayMarksTotals() { var f_max_marksa=($("#f_max_marksa").val());f_max_marksa=empty(f_max_marksa)?0:parseFloat(f_max_marksa); var f_sec_marksa= ($("#f_sec_marksa").val());f_sec_marksa=empty(f_sec_marksa)?0:parseFloat(f_sec_marksa); var f_max_marksb= ($("#f_max_marksb").val());f_max_marksb=empty(f_max_marksb)?0:parseFloat(f_max_marksb); var f_sec_marksb= ($("#f_sec_marksb").val());f_sec_marksb=empty(f_sec_marksb)?0:parseFloat(f_sec_marksb); var f_max_marksc= ($("#f_max_marksc").val());f_max_marksc=empty(f_max_marksc)?0:parseFloat(f_max_marksc); var f_sec_marksc= ($("#f_sec_marksc").val());f_sec_marksc=empty(f_sec_marksc)?0:parseFloat(f_sec_marksc); var f_max_marksd= ($("#f_max_marksd").val());f_max_marksd=empty(f_max_marksd)?0:parseFloat(f_max_marksd); var f_sec_marksd= ($("#f_sec_marksd").val());f_sec_marksd=empty(f_sec_marksd)?0:parseFloat(f_sec_marksd); var tot_max=f_max_marksa+f_max_marksb+f_max_marksc+f_max_marksd; var tot_sec=f_sec_marksa+f_sec_marksb+f_sec_marksc+f_sec_marksd; $("#f_tot_max_marks").html(tot_max); $("#f_tot_sec_marks").html(tot_sec); } function saveStudentEntry() { var data_url=""; var pget_val=$("#pget_val").val();data_url+="&pget_val="+pget_val; var subject=$("input[name='subject']:checked").val();data_url+="&subject="+subject; var candidate_name=encodeURIComponent(trim($("#candidate_name").val()));data_url+="&candidate_name="+candidate_name; var mother_name=encodeURIComponent(trim($("#mother_name").val())); data_url+="&mother_name="+mother_name; var father_name=encodeURIComponent(trim($("#father_name").val())); data_url+="&father_name="+father_name; var spouse_name=encodeURIComponent(trim($("#spouse_name").val())); data_url+="&spouse_name="+spouse_name; var dob=$("#dob").val();data_url+="&dob="+date_format(dob); var sex=$("input[name='sex']:checked").val();data_url+="&sex="+sex; var pob=encodeURIComponent(trim($("#pob").val()));data_url+="&pob="+pob; var pob_others=encodeURIComponent(trim($("#pob_others").val()));data_url+="&pob_others="+pob_others; var nationality=$("input[name='nationality']:checked").val();data_url+="&nationality="+nationality; var college=encodeURIComponent(trim($("#college").val()));data_url+="&college="+college; var college_others=encodeURIComponent(trim($("#college_others").val()));data_url+="&college_others="+college_others; var univ=encodeURIComponent(trim($("#univ").val()));data_url+="&univ="+univ; var univ_others=encodeURIComponent(trim($("#univ_others").val()));data_url+="&univ_others="+univ_others; var cncl_reg_no=encodeURIComponent(trim($("#cncl_reg_no").val()));data_url+="&cncl_reg_no="+cncl_reg_no; var cncl_reg_name=encodeURIComponent(trim($("#cncl_reg_name").val()));data_url+="&cncl_reg_name="+cncl_reg_name; var rotary=(trim($("#rotary").val()));data_url+="&rotary="+date_format(rotary); var marks=encodeURIComponent(trim($("#marks").val()));data_url+="&marks="+marks; var u_pg=$("input[name='u_pg']:checked").val();data_url+="&u_pg="+u_pg; var phq=$("input[name='phq']:checked").val();data_url+="&phq="+phq; var religion=encodeURIComponent(trim($("#religion").val()));data_url+="&religion="+religion; var category=encodeURIComponent(trim($("#category").val()));data_url+="&category="+category; var category_others=encodeURIComponent(trim($("#category_others").val()));data_url+="&category_others="+category_others; AssignDDAmount(); var caste=encodeURIComponent(trim($("#caste").val()));data_url+="&caste="+caste; var sub_caste=encodeURIComponent(trim($("#sub_caste").val()));data_url+="&sub_caste="+sub_caste; var dd_amt=encodeURIComponent(trim($("#dd_amt").val()));data_url+="&dd_amt="+dd_amt; var dd_no=encodeURIComponent(trim($("#dd_no").val()));data_url+="&dd_no="+dd_no; var dd_date=(trim($("#dd_date").val()));data_url+="&dd_date="+date_format(dd_date); var dd_bank=encodeURIComponent(trim($("#dd_bank").val()));data_url+="&dd_bank="+dd_bank; var address=encodeURIComponent(trim($("#address").val()));data_url+="&address="+address; var pin=encodeURIComponent(trim($("#pin").val()));data_url+="&pin="+pin; var debared=$("input[name='debared']:checked").val();data_url+="&debared="+debared; var email=encodeURIComponent(trim($("#email").val()));data_url+="&email="+email; var phone=encodeURIComponent(trim($("#phone").val()));data_url+="&phone="+phone; var mobile=encodeURIComponent(trim($("#mobile").val()));data_url+="&mobile="+mobile; var in_service_status=$("input[name='in_service_status']:checked").val();data_url+="&in_service_status="+in_service_status; var dept=encodeURIComponent(trim($("#dept").val()));data_url+="&dept="+dept; var dept_others=encodeURIComponent(trim($("#dept_others").val()));data_url+="&dept_others="+dept_others; var plc_of_working=encodeURIComponent(trim($("#plc_of_working").val()));data_url+="&plc_of_working="+plc_of_working; var date_of_entry= (trim($("#date_of_entry").val()));data_url+="&date_of_entry="+date_format(date_of_entry); var prob_period=$("input[name='prob_period']:checked").val() ;data_url+="&prob_period="+prob_period; var prob_date= (trim($("#prob_date").val()));data_url+="&prob_date="+date_format(prob_date); var doing_pg=$("input[name='doing_pg']:checked").val() ;data_url+="&doing_pg="+doing_pg; var pg_degree_course=encodeURIComponent(trim($("#pg_degree_course").val()));data_url+="&pg_degree_course="+pg_degree_course; var pg_degree_date= (trim($("#pg_degree_date").val()));data_url+="&pg_degree_date="+date_format(pg_degree_date); var pg_diploma_course=encodeURIComponent(trim($("#pg_diploma_course").val()));data_url+="&pg_diploma_course="+pg_diploma_course; var pg_diploma_date= (trim($("#pg_diploma_date").val()));data_url+="&pg_diploma_date="+date_format(pg_diploma_date); //var speciality=encodeURIComponent(trim($("#speciality").val()));data_url+="&speciality="+speciality; var speciality='';data_url+="&speciality="+speciality; var enq_pending=$("input[name='enq_pending']:checked").val();data_url+="&enq_pending="+enq_pending; var suspension=$("input[name='suspension']:checked").val();data_url+="&suspension="+suspension; var absence=encodeURIComponent(trim($("#absence").val()));data_url+="&absence="+absence; var remarks=encodeURIComponent(trim($("#remarks").val()));data_url+="&remarks="+remarks; var f_max_marksa=trim($("#f_max_marksa").val());f_max_marksa=empty(f_max_marksa)?0:f_max_marksa;data_url+="&f_max_marksa="+f_max_marksa; var f_sec_marksa=trim($("#f_sec_marksa").val());f_sec_marksa=empty(f_sec_marksa)?0:f_sec_marksa;data_url+="&f_sec_marksa="+f_sec_marksa; var f_no_attaa=trim($("#f_no_attaa").val());f_no_attaa=empty(f_no_attaa)?0:f_no_attaa;data_url+="&f_no_attaa="+f_no_attaa; var f_max_marksb=trim($("#f_max_marksb").val());f_max_marksb=empty(f_max_marksb)?0:f_max_marksb;data_url+="&f_max_marksb="+f_max_marksb; var f_sec_marksb=trim($("#f_sec_marksb").val());f_sec_marksb=empty(f_sec_marksb)?0:f_sec_marksb;data_url+="&f_sec_marksb="+f_sec_marksb; var f_no_attbb=trim($("#f_no_attbb").val());f_no_attbb=empty(f_no_attbb)?0:f_no_attbb;data_url+="&f_no_attbb="+f_no_attbb; var f_max_marksc=trim($("#f_max_marksc").val());f_max_marksc=empty(f_max_marksc)?0:f_max_marksc;data_url+="&f_max_marksc="+f_max_marksc; var f_sec_marksc=trim($("#f_sec_marksc").val());f_sec_marksc=empty(f_sec_marksc)?0:f_sec_marksc;data_url+="&f_sec_marksc="+f_sec_marksc; var f_no_attcc=trim($("#f_no_attcc").val());f_no_attcc=empty(f_no_attcc)?0:f_no_attcc;data_url+="&f_no_attcc="+f_no_attcc; var f_max_marksd=trim($("#f_max_marksd").val());f_max_marksd=empty(f_max_marksd)?0:f_max_marksd;data_url+="&f_max_marksd="+f_max_marksd; var f_sec_marksd=trim($("#f_sec_marksd").val());f_sec_marksd=empty(f_sec_marksd)?0:f_sec_marksd;data_url+="&f_sec_marksd="+f_sec_marksd; var f_no_attdd=trim($("#f_no_attdd").val());f_no_attdd=empty(f_no_attdd)?0:f_no_attdd;data_url+="&f_no_attdd="+f_no_attdd; var f_tot_max_marks=trim($("#f_tot_max_marks").html());f_tot_max_marks=empty(f_tot_max_marks)?0:f_tot_max_marks;data_url+="&f_tot_max_marks="+f_tot_max_marks; var f_tot_sec_marks=trim($("#f_tot_sec_marks").html());f_tot_sec_marks=empty(f_tot_sec_marks)?0:f_tot_sec_marks;data_url+="&f_tot_sec_marks="+f_tot_sec_marks; if(empty(candidate_name)) { alert("Please Enter the Candidate Name"); $("#candidate_name").focus(); return false; } else if(empty(mother_name)) { alert("Please Enter the Monther Name");$("#mother_name").focus(); return false; }else if(empty(father_name)) { alert("Please Enter the Father Name");$("#father_name").focus(); return false; } else if(pob=="99" && empty(pob_others)) { alert("Please Enter the Place Of Birth other than the listed"); $("#pob_others").focus();return false; }else if(college=="99" && empty(college_others)) { alert("Please Enter the College other than the listed"); $("#college_others").focus();return false; }else if(univ=="99" && empty(univ_others)) { alert("Please Enter the University other than the listed"); $("#univ_others").focus();return false; } else if(empty(cncl_reg_no)) { alert("Please enter the Permanent/Provisional Medical/ Dental Registration Number "); $("#cncl_reg_no").focus();return false; }else if(empty(cncl_reg_name)) { alert("Please Enter the Name of State/Central Council where registered "); $("#cncl_reg_name").focus();return false; }else if(empty(rotary) || rotary=="00/00/0000") { alert("Please Enter Date of Completion/Probable Date of Completion of Compulsory Rotatory Intership "); $("#rotary").focus();return false; } else if(!isDate(dob,'d/M/y')) { alert("Please Enter the Date Of Birth as dd/mm/yyyy");$("#dob").focus(); return false; } else if(!isDate(dd_date,'d/M/y')) { alert("Please Enter the DD Date as dd/mm/yyyy");$("#dd_date").focus(); return false; }else if(empty(email)) { alert("Please Enter the Email Id");$("#email").focus(); return false; }else if(empty(mobile)) { alert("Please Enter the Mobile No.");$("#mobile").focus(); return false; } else if(!isDate(date_of_entry,'d/M/y')) { alert("Please Enter the Date Of Entry as dd/mm/yyyy");$("#date_of_entry").focus(); return false; }else if(!isDate(prob_date,'d/M/y') && prob_date!="00/00/0000") { alert("Please Enter the prob_date as dd/mm/yyyy");$("#prob_date").focus(); return false; }else if(!isDate(pg_degree_date,'d/M/y') && pg_degree_date!="00/00/0000") { alert("Please Enter the pg_degree_date as dd/mm/yyyy");$("#pg_degree_date").focus(); return false; }else if(!isDate(pg_diploma_date,'d/M/y') && pg_diploma_date!="00/00/0000") { alert("Please Enter the pg_diploma_date as dd/mm/yyyy");$("#pg_diploma_date").focus(); return false; } var loaded_html=window.location.href.substring(eval(window.location.href.lastIndexOf("/")+1)); if(document.getElementById("student_entry_upload").value == '' && loaded_html=="registration.html") { alert('Please Browse the Photo..!!'); document.getElementById("student_entry_upload").focus(); return; } var valid_file_extentions = new Array("jpeg","jpg",'png','gif'); 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; } data_url+="&filepath="+filepath; data_url+="&edit_app_code="+$g_edit_app_code; var upload = $host_url+"saveStudentEntry&"+data_url; document.getElementById("form_module_image_upload").setAttribute("action", upload); $.blockUI({ message: "<h1 class='h1' style='font-size:12px'>Uploading... <img src='img/spinner.gif' border='0'></h1>" }); return AIM.submit(document.getElementById("form_module_image_upload"), 'same_tab',{'onComplete' : saveStudentEntryResponse}); } function saveStudentEntryResponse(response) { response = eval('(' + response + ')'); $.unblockUI(); if(response.error_code==0) { alert("Successfully added.Your Application Id "+response.data); ClearStudentEntry(); window.location.href=$host_url+"GenerateApplicationFormPdfReport&app_no="+response.data; } else if(response.error_code==9) { alert("Updated Successfully"); ClearStudentEntry(); } else { alert(response.data); } } function DownloadAppicationForm() { var app_no=prompt('Enter your Valid Application No'); if(!empty(app_no)) window.location.href=$host_url+"GenerateApplicationFormPdfReport&app_no="+app_no; } function PrintapplicationidDetails() { var from_reg=$("#from_reg").val(); var to_reg=$("#to_reg").val(); if(empty(from_reg)) { alert("Please enter the from Reg No"); return false; }if(empty(to_reg)) { alert("Please enter the tp Reg No"); return false; } type=$("#hall_ticket_type").val(); //document.getElementById('print_form').action =$host_url+"PrintapplicationidDetails&type=Univ&from_reg="+from_reg+"&to_reg="+to_reg; document.getElementById('print_form').action =$host_url+"PrintapplicationidDetails&type="+type+"&from_reg="+from_reg+"&to_reg="+to_reg; document.getElementById('print_form').target='_new'; document.getElementById('print_form').submit(); //window.location.href=$host_url+"PrintapplicationidDetails&app_no="+app_no; } function PrintHallTicket(app_no) { window.location.href =$host_url+"PrintapplicationidDetails&app_no="+app_no+"&type=Student"; } function PrintOmrSheet(app_no) { window.location.href=$host_url+"PrintOmrSheet&app_no="+app_no; } function GetApplicationDetails() { var app_no=prompt('Enter your Valid Application No'); $("#fetch_app_no").html("Application No : <b>"+app_no+"</b>") $g_edit_app_code=app_no; if(app_no>0) { var lstr_data="&app_no="+app_no; $.ajax({ type: "POST", async:false, data:lstr_data, url: $host_url+"GetApplicationDetails", success: GetApplicationDetailsResponce }); } } function GetApplicationDetailsResponce(responce) { responce = eval('(' + responce + ')'); data_set=responce.data; $("#pget_val").val(data_set['pget_val']); $('input:radio[name="subject"]').filter("[value='"+data_set['subject']+"']").attr('checked', true); PopulateCollegeData(); $("#candidate_name").val(data_set['candidate_name']); $("#mother_name").val(data_set['mother_name']); $("#father_name").val(data_set['father_name']); $("#spouse_name").val(data_set['spouse_name']); $("#dob").val(data_set['dob']); $('input:radio[name="sex"]').filter("[value='"+data_set['sex']+"']").attr('checked', true); $("#pob").val(data_set['pob']); $("#pob_others").val(data_set['pob_others']); $("#pob_others").val(data_set['pob_others']); $('input:radio[name="nationality"]').filter("[value='"+data_set['nationality']+"']").attr('checked', true); $("#college").val(data_set['college']); $("#college_others").val(data_set['college_others']); $("#univ").val(data_set['univ']); $("#univ_others").val(data_set['univ_others']); $("#cncl_reg_no").val(data_set['cncl_reg_no']); $("#cncl_reg_name").val(data_set['cncl_reg_name']); $("#rotary").val(data_set['rotary']); $('input:radio[name="u_pg"]').filter("[value='"+data_set['u_pg']+"']").attr('checked', true); $('input:radio[name="phq"]').filter("[value='"+data_set['phq']+"']").attr('checked', true); $("#religion").val(data_set['religion']); $("#category").val(data_set['category']); $("#category_others").val(data_set['category_others']); $("#caste").val(data_set['caste']); $("#sub_caste").val(data_set['sub_caste']); $("#dd_amt").val(data_set['dd_amt']); $("#dd_no").val(data_set['dd_no']); $("#dd_date").val(data_set['dd_date']); $("#dd_bank").val(data_set['dd_bank']); $("#address").val(data_set['address']); $("#pin").val(data_set['pin']); $('input:radio[name="debared"]').filter("[value='"+data_set['debared']+"']").attr('checked', true); $("#email").val(data_set['email']); $("#phone").val(data_set['phone']); $("#mobile").val(data_set['mobile']); $('input:radio[name="in_service_status"]').filter("[value='"+data_set['in_service_status']+"']").attr('checked', true); showHideInserviceTable(); $("#dept").val(data_set['dept']); $("#plc_of_working").val(data_set['plc_of_working']); $("#dept_others").val(data_set['dept_others']); $("#date_of_entry").val(data_set['date_of_entry']); $('input:radio[name="prob_period"]').filter("[value='"+data_set['prob_period']+"']").attr('checked', true); $("#prob_date").val(data_set['prob_date']); $('input:radio[name="doing_pg"]').filter("[value='"+data_set['doing_pg']+"']").attr('checked', true); $("#pg_degree_course").val(data_set['pg_degree_course']); $("#pg_degree_date").val(data_set['pg_degree_date']); $("#pg_diploma_course").val(data_set['pg_diploma_course']); $("#pg_diploma_date").val(data_set['pg_diploma_date']); $('input:radio[name="enq_pending"]').filter("[value='"+data_set['enq_pending']+"']").attr('checked', true); $('input:radio[name="suspension"]').filter("[value='"+data_set['suspension']+"']").attr('checked', true); $('input:radio[name="absence"]').filter("[value='"+data_set['absence']+"']").attr('checked', true); $("#remarks").val(data_set['remarks']); $("#student_entry_photo").attr("src", data_set['photo_path']); $("#f_max_marksa").val(data_set['f_max_marksa']); $("#f_sec_marksa").val(data_set['f_sec_marksa']); $("#f_no_attaa").val(data_set['f_no_attaa']); $("#f_max_marksb").val(data_set['f_max_marksb']); $("#f_sec_marksb").val(data_set['f_sec_marksb']); $("#f_no_attbb").val(data_set['f_no_attbb']); $("#f_max_marksc").val(data_set['f_max_marksc']); $("#f_sec_marksc").val(data_set['f_sec_marksc']); $("#f_no_attcc").val(data_set['f_no_attcc']); $("#f_max_marksd").val(data_set['f_max_marksd']); $("#f_sec_marksd").val(data_set['f_sec_marksd']); $("#f_no_attdd").val(data_set['f_no_attdd']); $("#f_tot_max_marks").html(data_set['f_tot_max_marks']); $("#f_tot_sec_marks").html(data_set['f_tot_sec_marks']); } var filepath; function DisplayUserSelectedPhoto() { var valid_file_extentions = new Array("jpeg","jpg",'png','gif'); 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!"); $("#student_entry_upload").val('') return false; } var lstr_data="&filepath="+filepath; $upload = $host_url+"DiaplayUserSelectedPhoto&"+lstr_data; document.getElementById("form_module_image_upload").setAttribute("action",$upload); return AIM.submit(document.getElementById("form_module_image_upload"), 'same_tab',{'onComplete' : DiaplayUserSelectedPhotoResponse}); } function ClearStudentEntry() { $g_edit_app_code=0; $("#student_entry_upload").val(""); $("#student_entry_photo").attr("src", "img/default_photo.jpg"); $("#candidate_name").val(""); $("#mother_name").val(""); $("#father_name").val(""); $("#spouse_name").val(""); $("#dob").val("00/00/0000"); $("#pob_others").val(""); $("#college_others").val(""); $("#univ_others").val(""); $("#cncl_reg_no").val(""); $("#cncl_reg_name").val(""); $("#rotary").val(""); $("#religion").val(""); $("#category_others").val(""); $("#caste").val(""); $("#sub_caste").val(""); //$("#dd_amt").val("0"); $("#dd_no").val(""); $("#dd_bank").val(""); $("#dd_date").val("00/00/0000"); $("#address").val(""); $("#pin").val("000000"); $("#email").val(""); $("#phone").val(""); $("#mobile").val(""); $("#dept_others").val(""); $("#plc_of_working").val(""); $("#date_of_entry").val("00/00/0000"); $("#pg_degree_date").val("00/00/0000"); $("#pg_degree_course").val(""); $("#pg_diploma_date").val("00/00/0000"); $("#prob_date").val("00/00/0000"); $("#pg_diploma_course").val(""); $("#remarks").val(""); $("#f_max_marksa").val(""); $("#f_sec_marksa").val(""); $("#f_no_attaa").val(""); $("#f_max_marksb").val(""); $("#f_max_marksb").val(""); $("#f_sec_marksb").val(""); $("#f_no_attbb").val(""); $("#f_max_marksc").val(""); $("#f_sec_marksc").val(""); $("#f_no_attcc").val(""); $("#f_max_marksd").val(""); $("#f_sec_marksd").val(""); $("#f_no_attdd").val(""); $("#f_tot_max_marks").html(""); $("#f_tot_sec_marks").html(""); } function DiaplayUserSelectedPhotoResponse($responce) { $responce = eval('(' + $responce + ')'); if($responce.error_code==0) { $("#student_entry_photo").attr("src", $responce.data); } else if($responce.error_code==-1) $("#student_entry_photo").attr("src", "images/default_photo.jpg"); else if($responce.error_code==-2) { alert($responce.data); $("#student_entry_photo").attr("src", "images/default_photo.jpg"); $("#student_entry_upload").val(""); } } function trim($str) { return jQuery.trim($str); } function empty (mixed_var) { var key; if (mixed_var === "" || mixed_var === 0 || mixed_var === "0" || mixed_var === null || mixed_var === false || typeof mixed_var === 'undefined' ){ return true; } if (typeof mixed_var == 'object') { for (key in mixed_var) { return false; } return true; } return false; } function in_array(needle, haystack, argStrict) { var key = '', strict = !!argStrict; if (strict) { for (key in haystack) { if (haystack[key] === needle) { return true; } } } else { for (key in haystack) { if (haystack[key] == needle) { return true; } } } return false; } function date_format($str) { if(trim($str)=="" || $str=="undefined") return "0000-00-00"; else { var indx=$str.indexOf("/"); if(indx==-1) return $str; else { $date=$str.split('/'); return($date[2] +'-'+$date[1]+'-'+$date[0]); } } } function GetapplicationidDetails() { var app_id=$("#app_id").val(); var reg_no=$("#reg_no").val(); var dob=$("#dob").val(); if(empty(app_id) && empty(reg_no)) { alert("Please Enter the Application Id or Reg No"); $("#app_id").focus() return; } /* else if(empty(dob) || dob=="00/00/0000") { alert("Please Enter the Date Of Birth as dd/mm/yyyy");$("#dob").focus(); return false; } else if(!isDate(dob,'d/M/y')) { alert("Please Enter the Date Of Birth as dd/mm/yyyy");$("#dob").focus(); return false; } */ $("#page_main_div").html(""); var lstr_data="&app_id="+app_id; lstr_data+="®_no="+(reg_no); $.ajax({ type: "POST", async:false, data:lstr_data, url: $host_url+"GetapplicationidDetails", success: GetapplicationidDetailsResponce }); } function GetapplicationidDetailsResponce(responce) { responce = eval('(' + responce + ')'); $("#page_main_div").html(responce.data); }
Close