403Webshell
Server IP : 31.14.161.123  /  Your IP : 216.73.216.229
Web Server : Apache
System : Linux cpanel.classit.ro 4.18.0-553.144.1.el8_10.x86_64 #1 SMP Tue Jul 14 09:26:58 EDT 2026 x86_64
User : diamedic ( 1014)
PHP Version : 8.2.32
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/diamedic/public_html/gestiune/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/diamedic/public_html/gestiune/raportare.js
asApp.controller('raportareCtrl', ['$timeout', '$filter','$location', '$stateParams', '$scope', 'ngTableParams',  '$http', '$state', function ($timeout, $filter, $location, $stateParams, $scope, ngTableParams, $http, $state) {

$scope.listaPacienti = [];



	$scope.luna = $stateParams.luna;
	$scope.an = $stateParams.an;
	$scope.datePicker = '';

	$scope.zileShort = ['D','L','Ma','Mi','J','V','S'];
	function daysInMonth(month,year) {
	    return new Date(year, month, 0).getDate();
	}

	$scope.zileInLuna = daysInMonth($scope.luna,$scope.an); //31


	var getPropuse = function(array){
		$scope.lunaCurenta = [];
		var propuse = [];


		var descretereZileInLuna = 0 + $scope.zileInLuna;
	
		for (i = 0; i < descretereZileInLuna; i++) {

			var zi = i+1;
			var dayIM = $scope.zileShort[new Date($scope.luna +'/' + zi + '/' + $scope.an).getDay()];
			
			if(array.indexOf(dayIM) > -1){
				propuse.push(zi);
			}

		}
		return propuse;
	}
$scope.propuseLMV = getPropuse(['L','Mi','V']);
$scope.propuseMJS = getPropuse(['Ma','J','S']);

$scope.propuseLV = getPropuse(['L','V']);
$scope.propuseMS = getPropuse(['Ma','S']);




//getPropuse();
//var date = new Date($scope.luna +'/' + zi + '/' + $scope.an);
	$scope.luni = { 1: 'Ianuarie', 2:'Februarie', 3:'Martie', 4: 'Aprilie', 5: 'Mai', 6: 'Iunie', 7: 'Iulie', 8: 'August', 9: 'Septembrie', 10: 'Octombrie', 11: 'Noiembrie', 12: 'Decembrie'}
		if($scope.luna === 12){
			$scope.luna_urm = 1;
			$scope.an_urm = parseInt($scope.an) + 1;
			$scope.an_ant = $scope.an;
			$scope.luna_ant = 11;
		}else if ($scope.luna === 1){
			$scope.luna_ant = 12;
			$scope.an_ant = parseInt($scope.an) - 1;
			$scope.an_urm = $scope.an;
			$scope.luna_urm = 2;
		}else{
			$scope.luna_ant = parseInt($scope.luna) - 1;
			$scope.luna_urm = parseInt($scope.luna) + 1;
			$scope.an_ant = $scope.an;
			$scope.an_urm = $scope.an;
		}

$scope.sedinte = [];



   var getRaportare = function(list){
     $http.post('api/get_raportare.php',{ 'list': list})
     .success(function(date, status, headers, config) {
     	angular.forEach(date, function(ziPr){
     		if(ziPr.sedinte !== ''){
     			ziPr.obiectSedinte = ziPr.sedinte.split("-");
     		}else{
     			ziPr.obiecteSedinte = '';
     		}

     		if(ziPr.hdf !== ''){
     			ziPr.obiectSedinteHDF = ziPr.hdf.split("-");
     		}else{
     			ziPr.obiectSedinteHDF = '';
     		}
     		console.log(ziPr);
     		ziPr.programare = ziPr.zile;
		});
     		$scope.raportari = date;
     		console.log(date);
          }).error(function(data, status, headers, config) {
                     // alert("AJAX failed!");
                  });
    }


    var date = { luna: $stateParams.luna, an: $stateParams.an };
		
		getRaportare(date);




$scope.zile = ['Luni','Marti', 'Miercuri','Joi','Vineri','Sambata','Duminica'];


	


	//July
	var toDay = new Date().getMonth(); //31



		$scope.getNumber = function(num) {
		    return new Array(num);   
		}

$scope.verificareProgramare = function(zi,programare){
	var dayIM = $scope.zileShort[new Date($scope.luna +'/' + zi + '/' + $scope.an).getDay()];
	var splitProgramare = programare.split('-');
	var lmv = ['L','Mi','V'];
	var mjs = ['Ma','J','s'];
		if((programare === 'L-V' || programare === 'Ma-S') && (dayIM === 'Mi' || dayIM === 'J')){
			return 'none';
		}else
		if(lmv.indexOf(dayIM) > -1){
			return 'lmv';
		}else if(mjs.indexOf(dayIM > -1)){
			return 'mjs';
		}
}


}]);

Youez - 2016 - github.com/yon3zu
LinuXploit