Democratic Republic of the Congo Demographic Trends - Democratic Republic of the Congo Data Portal
'); $editor.attr('title', 'Edit Details: ' + item[0]); $editor.appendTo('body'); $editor.append('
'); $editor.append(''); $editor.append(''); $editor.find('.dsbrowser-link').val(item[6]); $editor.append('Check Link'); $editor.append('
'); $editor.append('
'); $editor.append(''); $editor.append('') $editor.find('.sdmx-link').val(item[7]); $editor.append('Check Link'); $editor.append('
'); $editor.append('
'); $editor.append(''); $editor.append('') $editor.find('.dsbb-link').val(item[8]); $editor.append('Check Link'); var $thisEdit = $(this); $editor.dialog({ position: 'center', modal: true, draggable: false, autoOpen: true, resizable: false, height: 400, width: 680, create: function () { var $dialog = $('.ui-dialog.ui-widget'); $dialog.css('top', $thisEdit.position().top - 200); $dialog.css('left', 50); }, buttons: [ { "text": "Ok", "click": function () { if (item[6] == $editor.find('.dsbrowser-link').val() && item[7] == $editor.find('.sdmx-link').val() && item[8] == $editor.find('.dsbb-link').val()) { $(this).dialog("close"); $editor.remove(); return; } if ($editor.find('.dsbrowser-link').val().trim() == "") { item[3] = 0; item[6] = $editor.find('.dsbrowser-link').val().trim(); } else { item[3] = 1; item[6] = checkLink($editor.find('.dsbrowser-link').val().trim()); } if ($editor.find('.sdmx-link').val().trim() == "") { item[4] = 0; item[7] = $editor.find('.sdmx-link').val().trim(); } else { item[4] = 1; item[7] = checkLink($editor.find('.sdmx-link').val().trim()); } if ($editor.find('.dsbb-link').val().trim() == "") { item[5] = 0; item[8] = $editor.find('.dsbb-link').val().trim(); } else { item[5] = 1; item[8] = checkLink($editor.find('.dsbb-link').val().trim()); } $tr.empty(); $('' + item[0] + '*Edit').appendTo($tr); if (item[3] == 1) $('Browse Data').appendTo($tr); else $(' ').appendTo($tr); if (item[4] == 1) $('Download in SDMX').appendTo($tr); else $(' ').appendTo($tr); if (item[5] == 1) $('DSBB Metadata').appendTo($tr); else $(' ').appendTo($tr); if (!$('#new-ds-driven-page').find('.pending-submit').length) $('.nsdp-page-submit').css('cursor', 'default').addClass('disable'); else $('.nsdp-page-submit').css('cursor', 'pointer').removeClass('disable'); $(this).dialog("close"); $editor.remove(); } }, { "text": "Cancel", "click": function () { $(this).dialog("close"); $editor.remove(); } }] }); return false; }); $('body').on('click', '.check-link', function () { var $this = $(this); var link = checkLink($this.prev('textarea').val()); $this.attr('href', link); }); function checkLink(link) { if (!link.includes('https://')) link = "https://" + link; return link; }; function createCSV() { var row = ""; for (var i = 0; i We are making the changes to your NSDP, which may take several minutes. Once the changes are published, this page will be redirected to the live NSDP.') $('#new-ds-driven-page').css('margin-top', 0).find('.loading img').css('top', '0'); }); var CSV = createCSV(); var contentType = 'application/csv'; var csvFile = new Blob([CSV], { type: contentType }); csvFile.lastModifiedDate = new Date(); data.append('file', csvFile, datasetName + ' Update.csv'); jQuery.ajax({ url: '/api/1.0/upload/post', data: data, cache: false, contentType: false, processData: false, type: 'POST', success: function (response1) { response1 = JSON.parse(response1); var url = '/api/1.0/upload/verify?filePath=' + response1.Properties.Location + '&datasetId=' + datasetId + '&startAtRow=1'; jQuery.ajax({ url: url, cache: false, contentType: 'application/json; charset=utf-8', processData: false, type: 'GET', success: function (response2) { var data = { upload: { DatasetId: datasetId, Name: datasetName, Url: datasetId + '/nsdp-mastersheet', Columns: response2.Columns, FileProperty: response1.Properties, FlatDatasetUpdateOptions: response2.FlatDSUpdateOptions, UploadFormatType: response2.UploadFormatType } }; jQuery.ajax({ url: '/api/1.0/upload/save', data: JSON.stringify(data), cache: false, contentType: 'application/json; charset=utf-8', processData: false, type: 'POST', success: function (response3) { if (response3) CheckUploadStatus(response3); } }); } }); } }); }; function CheckUploadStatus(result) { jQuery.get('/api/1.0/upload/status?id=' + result.Id, function (statusResult) { if (statusResult && statusResult.status == "successful") { $('#new-ds-driven-page').find('.loading').find('h2').remove(); $('#new-ds-driven-page').find('.loading').prepend('

All changes have been published to production site. You will be redirected to the production NSDP page shortly.

') var timeout = setTimeout(function () { var https = location.protocol; var slashes = https.concat("//"); var host = slashes.concat(window.location.hostname); proxyWindowLocation.href = host.concat('/nsdp'); }, 3000); } else { var timeout = setTimeout(function () { CheckUploadStatus(result); }, 60000); } }); }; $('body').on('click', '.cancel-page', function () { if ($('.nsdp-page-submit').hasClass('disable')) return false; var $warningDlg = $(Knoema.Utils.buildHTML('div', { 'class': 'warning-dlg', 'title': "Confirm" })); $warningDlg.css({ 'margin-top': '15px', 'font-size': '14px' }); $warningDlg.text("All pending changes you have entered will be cancelled and the live NSDP page will remain unchanged. Please confirm."); $warningDlg.knDialog({ position: 'center', minWidth: 440, maxWidth: 300, maxHeight: 200, modal: true, closeOnEscape: true, draggable: false, autoOpen: true, resizable: false, buttons: { "Yes": function () { window.location.reload(); $(this).dialog("close"); }, "No": function () { $(this).dialog("close"); } }, close: function () { $(this).remove(); }, create: function () { $(this).closest(".ui-dialog") .find(".ui-button:first") .addClass("highlight"); } }); return false; }); });
An error occurred. Détails Cacher
Vos pages ne sont pas sauvegardées. Rétablir Annuler

Source: UN, Department of Economic and Social Affairs, Population Division

Dernière mise à jour : 

Related Dashboards

Democratic Republic of the Congo Mortality

Learn more >

Democratic Republic of the Congo Population Forecast

Learn more >

Democratic Republic of the Congo Fertility

Learn more >

Democratic Republic of the Congo Population By Age Groups

Learn more >

Are you sure you want to delete this page?

Are you sure you want to delete this document?

Unable to delete the page because it has shortcuts referencing it at the following locations:

Please delete these shortcuts first, then delete page itself.

Our Privacy Statement & Cookie Policy

Our website uses cookies to improve your online experience. They were placed on your computer when you launched this website. You can change your personal cookie settings through your internet browser settings.

Privacy Policy