var $host_url="https://"+window.location.host+"/"+window.location.pathname.split('/')[1]+"/app.php?a="; function stuRegNoRemoval() { $('#loadtab').load('html_modules/student_reg_remove.html?v='+version, () => { loadUnivs('univname'); // $("#studinfo").hide(); }); } function getStuDet(){ var univcode = $('#univname').val(); var studid = $("#studid").val(); // console.log("univcodestudid",univcode,studid); var parameters = "&univcode="+univcode+"&studid="+studid; $.ajax({ type: "POST", url: $host_url+'stuRegRemove'+parameters, success :function(response){ var {error_code, data, status} = response; var data = response.data; console.log("res",data); html =``; html= ``; if(error_code == 0){ for(var i=0; i `; } } if(error_code == -1){ html +=``; console.log("Status",status); } html +=`
Sl. No.
Univ. Code
Reg. No.
Student Name
DOB
Mobile
Email
Action
${i+1}
${row['funivcode']}
${row['fregno']} ${row['fname']} ${row['fdob']} ${row['fmobileno']} ${row['femail']}
No details found for the given Reg. No.
`; $('#shwStud').html(html); } }); } function delStudReg(univcode,regno){ console.log("deldeldel",univcode,regno); if(confirm("Are you sure to delete")){ $.ajax({ type: "POST", url: $host_url+'delStudReg&univcode='+univcode+'®no='+regno, success:function(response){ console.log("response",response); $("#shwStud").html("
Student Delete Successfully!
"); setTimeout('$("#shwStud").hide();window.location.reload();', 3000); } }); }else{ console.log("Cancel"); return; } }