Bangko Sentral ng Pilipinas Media and Research (2024)

").insertBefore( $(this)); $(this).appendTo($("#tblContainer"+divNo)); divNo += 1; }); // $("#itemContent a").addClass("linkText") $("#itemContent ol").addClass("list-padding") /* $("#itemContent a") //replace all hardcoded links in richtext content holder .each(function(){ if (this.href) { var a = this.href.split('/'); var filename = a[a.length-1]; var folder = a[a.length-2]; var url = _spPageContextInfo.webAbsoluteUrl + "/Speeches/"+ folder + "/"+ filename; this.href = url; }}); $("#itemContent img") //replace all hardcoded links in richtext content holder .each(function(){ if (this.src) { var a = this.src.split('/'); var filename = a[a.length-1]; var folder = a[a.length-2]; var url = _spPageContextInfo.webAbsoluteUrl + "/Speeches/"+ folder + "/"+ filename; this.src = url; }});*/ }app.controller('CtrlSpeechesDisp', ['$scope', '$http', '$window', '$filter', '$timeout', '$q','$sce','$timeout', function Ctrl($scope, $http, $window, $filter, $timeout, $q, $sce,$timeout) { var waitDialog; $scope.HasAttachment = false; $scope.ItemId= getUrlParameter('ItemId'); $scope.load=function(){ waitDialog = SP.UI.ModalDialog.showWaitScreenWithNoClose('Loading...', 'Please wait while request is in progress...', 150, 800); $scope.Content ="1"; // $scope.ProcurementType = 'R.A. No. 9184 (The Government Procurement Reform Act)'; var filterstring = "ID eq '" + $scope.ItemId+ "' and OData__ModerationStatus eq 0 " $pnp.sp.web.lists.getByTitle("Speeches list") .items .select("*") .filter(filterstring) .expand("AttachmentFiles") .orderBy('Title', true) // sort asc .get().then(function(data){ $scope.Speeches = data; var localdate = new Date($scope.Speeches[0].SDate); dt = localdate.toLocaleString('en-US', { timeZone: 'Asia/Manila' }); $scope.Speeches[0].SDate = moment(dt).format('MMMM DD, YYYY'); if($scope.Speeches[0].Occasion == null){ $scope.Occasion = '-'; }else{ $scope.Occasion = $scope.Speeches[0].Occasion; } if($scope.Speeches[0].Speaker == null){ $scope.Speaker = '-'; }else{ $scope.Speaker = $scope.Speeches[0].Speaker; } $.each($scope.Speeches, function(index, item){ var request; request = $.ajax({ type: "HEAD", url: item.AttachmentFiles[0].ServerRelativeUrl, success: function () { $scope.Size = Math.round(request.getResponseHeader("Content-Length") / 1024); } }); }); $scope.$apply(); }); } $scope.load(); $scope.init = function() { $timeout(function(){ contentMobileResponsive(); waitDialog.close(); },1000); } var _sourceURL = document.referrer; $scope.Back= function () { var url = _spPageContextInfo.webAbsoluteUrl+"/SitePages/MediaAndResearch/SpeechesList.aspx"; if(_sourceURL){ url= _sourceURL; } window.open(url, "_self"); } }]);

Bangko Sentral ng Pilipinas
            
            
            Media and Research (2024)
Top Articles
Latest Posts
Article information

Author: Sen. Emmett Berge

Last Updated:

Views: 6300

Rating: 5 / 5 (80 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Sen. Emmett Berge

Birthday: 1993-06-17

Address: 787 Elvis Divide, Port Brice, OH 24507-6802

Phone: +9779049645255

Job: Senior Healthcare Specialist

Hobby: Cycling, Model building, Kitesurfing, Origami, Lapidary, Dance, Basketball

Introduction: My name is Sen. Emmett Berge, I am a funny, vast, charming, courageous, enthusiastic, jolly, famous person who loves writing and wants to share my knowledge and understanding with you.