| 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 : |
"use strict";
/* App Module */
// Declare app level module which depends on filters, and services
var asApp = angular.module('asApp', [
'ui.router',
'ngSanitize',
'vr.directives.slider',
'angular-loading-bar',
'ngTable',
'ui.bootstrap'
]);
asApp.controller('IndexCtrl', function ($state, $scope, $interval, $filter, ngTableParams,$http) {
console.log($state);
$scope.current_state = $state;
//$scope.listaArray = $filter('ObjToArray')($scope.lista);
})
.config(['$stateProvider', '$urlRouterProvider', '$httpProvider',
function ($stateProvider, $urlRouterProvider, $httpProvider) {
var d = new Date();
var n = d.getMonth();
if (n < 10) { n = '0' + n; }
var y = d.getFullYear();1
var cnp = '1770820463052';
var cust = '-' + n + '-' + y;
$urlRouterProvider.when('', '/');
$urlRouterProvider.when('/', 'raportare/' + y + '-' + n);
$urlRouterProvider.when('/raportare', 'raportare/' + y + '-' + n);
$urlRouterProvider.when('/raportare/', 'raportare/' + y + '-' + n);
$urlRouterProvider.when('/raportare/-', 'raportare/' + y + '-' + n);
$urlRouterProvider.when('/sedinte/', 'sedinte/' + cnp + '/' + y + '-' + n);
// $urlRouterProvider.when('/analize', 'analize?v=28-1-15,28-1-15,20-1-15,61-1-15,63-1-15,39-1-15,37-1-15');
// $urlRouterProvider.when('/analize/', 'analize?v=28' + cust + ',28' + cust + ',20' + cust + ',61' + cust + ',63' + cust + ',39' + cust + ',37' + cust + '');
$stateProvider
.state('home', {
url: '/',
templateUrl:'pages.html'
})
.state('home.consumuri', {
url: 'consumuri',
templateUrl : 'consumuri.html',
controller: 'consumuriCtrl'
})
.state('home.sedinte', {
url: 'sedinte/:cnp/:an-:luna',
templateUrl : 'sedinte.html',
controller: 'sedinteCtrl'
})
.state('home.raportare', {
url: 'raportare/:an-:luna',
templateUrl : 'raportare.html',
controller: 'raportareCtrl'
})
.state('home.stoc', {
url: 'stoc/:page',
templateUrl : 'stoc.html',
controller: 'stocCtrl'
})
.state('home.analize', {
url: 'analize:param',
templateUrl : 'analize.html',
controller : 'analizeCtrl',
})
.state('home.pacienti', {
url: 'pacienti',
templateUrl : 'pacienti.html',
controller : 'pacientiCtrl',
});
}]);
asApp.directive('fixedHeader', ['$timeout', function ($timeout) {
return {
restrict: 'A',
scope: {
tableHeight: '@'
},
link: function ($scope, $elem, $attrs, $ctrl) {
}
}
}]);