1'use strict'; 2 3/** 4 * @ngdoc function 5 * @name minovateApp.controller: cartaopostalCtrl 6 * @description 7 * # Chama seção de cartões 8 * Controller of the portalgovApp 9 */ 10angular.module('portalgovApp') 11 .controller('cartaopostalCtrl', function ($scope, $modal, $http,$rootScope,MetaService, $stateParams) { 12 $scope.filteredTodos = [] 13 $scope.cartoes=[]; 14 15 $http({method: 'POST', url: 'controllers/cartaopostal/cartao_controller.php', data: $.param({func:'1'}), headers: {'Content-Type': 'application/x-www-form-urlencoded'} }). 16 then(function(response) { 17 var r=response.data; 18 $scope.cartoes = r; 19 20 $scope.$watch('cartoes + data.currentPage + data.numPerPage', function() { 21 var begin = (($scope.data.currentPage - 1) * $scope.data.numPerPage), end = begin + $scope.data.numPerPage; 22 $scope.filteredTodos = $scope.cartoes.slice(begin, end); 23 }); 24 25 $scope.data.totalItems = $scope.cartoes.length; 26 }); 27 28 $scope.change_page = function(page){ 29 $scope.data.currentPage=page; 30 }; 31 32 $scope.data_1=""; 33 $scope.data_2=""; 34 35 $rootScope.metaservice = MetaService; 36 $rootScope.metaservice.set("Cartões Postais","",""); 37 38 $scope.data ={ 39 currentPage: 1, 40 numPerPage: 15, 41 maxSize: 5 42 }; 43 }) 44 .controller('cartaopostal_viewCtrl', function ($scope, $modal, $http, $stateParams,$rootScope,MetaService, $sce) { 45 var id = $stateParams.id; 46 47 $http({method: 'POST', url: 'controllers/cartaopostal/cartao_controller.php', data: $.param({func:'1'}), headers: {'Content-Type': 'application/x-www-form-urlencoded'} }). 48 then(function(response) { 49 var r=response.data; 50 $scope.cartoes = r; 51 52 $scope.$watch('cartoes + data.currentPage + data.numPerPage', function() { 53 var begin = (($scope.data.currentPage - 1) * $scope.data.numPerPage), end = begin + $scope.data.numPerPage; 54 $scope.filteredTodos = $scope.cartoes.slice(begin, end); 55 }); 56 57 $scope.data.totalItems = $scope.cartoes.length; 58 }); 59 60 $http({method: 'POST', url: 'controllers/cartaopostal/cartao_controller.php', data: $.param({func:'2', id: id }), headers: {'Content-Type': 'application/x-www-form-urlencoded'} }). 61 then(function(response) { 62 var r=response.data; 63 $scope.cartao = r; 64 65 $rootScope.metaservice = MetaService; 66 $rootScope.metaservice.set("Cartão Postal: "+$scope.cartao.nome,"",""); 67 68 }); 69 70 });
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.