Domain: amberpublishers.in
Server Adress: 86.38.243.169
privdayz.com
function show_success_Alert(e,t){$("#alert-modal").modal("show"),$("#alert-modal-body").html(e),$("#alert-ok").attr("href",t)}function show_failure_Alert(e,t){$("#alert-fail_modal").modal("show"),$("#alert-fail_modal-body").html(e),$("#alert-fail_ok").attr("href",t)}function uploadData(e,t,o){o.preventDefault();var a=document.getElementById(e),l=new FormData(a);l.append(t,"1"),$.ajax({url:"Ajax.php",type:"POST",data:l,contentType:!1,processData:!1,success:function(e){let t=JSON.parse(e),o=t[0],a=t[1],l=t[2];"false"==o?show_failure_Alert(a,l):show_success_Alert(a,l)}})}function course_change(e){$(".year_select").html("<option value = ''>---</option>"),$(".semester_select").html("<option value = ''>---</option>"),$(".paper_code_select").html("<option value = ''>---</option>"),""!=e?$.ajax({url:"ajax.php",type:"POST",data:{course_select:e},success:function(e){let t=JSON.parse(e),o=t[0],a=t[1];if("false"!=o)for(var l=1;l<=a;l++)$(".year_select").append(`<option value = '${l}'>${l}</option>`);else $(".year_select").html("<option value = ''>---</option>")}}):($(".year_select").html("<option value = ''>---</option>"),$(".semester_select").html("<option value = ''>---</option>"),$(".paper_code_select").html("<option value = ''>---</option>"))}function year_change(e){$(".semester_select").html("<option value = ''>---</option>"),$(".paper_code_select").html("<option value = ''>---</option>"),""!=e?1==e?($(".semester_select").append("<option value = '1'>1</option>"),$(".semester_select").append("<option value = '2'>2</option>")):2==e?($(".semester_select").append("<option value = '3'>3</option>"),$(".semester_select").append("<option value = '4'>4</option>")):3==e?($(".semester_select").append("<option value = '5'>5</option>"),$(".semester_select").append("<option value = '6'>6</option>")):4==e&&($(".semester_select").append("<option value = '7'>7</option>"),$(".semester_select").append("<option value = '8'>8</option>")):($(".semester_select").html("<option value = ''>---</option>"),$(".paper_code_select").html("<option value = ''>---</option>"))}function sem_change(e){let t=$("#course_se").val(),o=$("#year_se").val();$(".paper_code_select").html("<option value = ''>---</option>"),""!=e?$.ajax({url:"ajax.php",type:"POST",data:{sem_select:e,course_selected:t,year_selected:o},success:function(e){let t=JSON.parse(e),o=t[0],a=t[1];if("false"!=o)for(var l=0;l<a.length;l++)$(".paper_code_select").append(`<option value = '${a[l]}'>${a[l]}</option>`);else $(".paper_code_select").html("<option value = ''>---</option>")}}):$(".paper_code_select").html("<option value = ''>---</option>")}
