CINXE.COM
Reports | DataBank
<!DOCTYPE html> <html lang="en" dir="ltr"> <head id="Head1"> <script type="text/javascript" charset='UTF-8' src="/js/appdynamics.js"> </script> <meta charset="utf-8" /><meta name="referrer" content="no-referrer" /><meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" /><meta http-equiv="Pragma" content="no-cache" /><meta http-equiv="Cache-Control" content="no-cache,no-store" /><meta name="description" content="DataBank is an analysis and visualisation tool that contains collections of time series data on a variety of topics where you can create your own queries, generate tables, charts and maps and easily save, embed and share them" /><meta name="keywords" content="World Bank,bancomundial,worldbank,banquemondiale,albankaldawli,shihang,databank,world development indicators,development data,popular countries,popular indicators,Explore existing databases,saved reports,Explore. Create. Share,worldbank.org" /> <script type="text/javascript" src="//script.crazyegg.com/pages/scripts/0058/1350.js" async="async"></script> <title> Reports | DataBank </title><link href="//data.worldbank.org/favicon.ico?v=1.1" rel="shortcut icon" data-reactid="8" /> <!-- Bootstrap core CSS --> <link href="/css/bootstrap.css" rel="stylesheet"> <link href="/css/font-awesome.min.css" rel="stylesheet"> <!-- Custom styles for this template --> <link href="/css/main.css" rel="stylesheet"> <link href="/css/responsive.css" rel="stylesheet"> <link href="/css/icon.css" rel="stylesheet"> <script type="text/javascript"> var gbl_common_culture = 'en'; var gbl_common_FullURL = 'https://databank.worldbank.org'; var gbl_common_internal = 'True' == 'True'; var gbl_report_methods = '/AjaxServices/AjaxReportMethods.asmx'; </script> <style id="antiClickjack">body{display:none !important;}</style> <script type="text/javascript"> if (self == top) { var antiClickjack = document.getElementById("antiClickjack"); antiClickjack.parentNode.removeChild(antiClickjack); } else { top.location = self.location; } </script> <script type="text/JavaScript"> var wbgData = wbgData || {}; wbgData.page = { pageInfo: { pageName: gbl_common_culture + ":wb:reports:/home", pageCategory: "home", pageUid: "databank-home", // format to be discussed pageFirstPub: "01-01-2015", // format will be mm-dd-yyyy pageLastMod: "01-01-2016", // format will be mm-dd-yyyy contentType: "Homepage", channel: "DEC Databank EXT" }, sectionInfo: { siteSection: "databank/home", subsectionP2: "" } }, wbgData.site = { siteInfo: { siteLanguage: gbl_common_culture, // format should be en,fr etc. siteCountry: "usa", // format should be usa, ind etc. siteEnv: "prod", // format should be prod,stg,uat etc. siteType: "developmentdata" }, techInfo: { cmsType: "sharepoint", bussVPUnit: "DEC", bussUnit: "DECDG", bussUserGroup: "external", bussAgency: "ibrd" } }, wbgData.misc = { dataFilters: "" } </script> <script type="text/javascript"> var baseUrl = "/"; wbgData.page.pageInfo.pageName = gbl_common_culture + ":wb:reports:/savedreports"; wbgData.page.pageInfo.pageCategory = "content page"; wbgData.page.pageInfo.pageUid = "databank-savedreports"; wbgData.page.pageInfo.contentType = "Other"; wbgData.page.sectionInfo.siteSection = "databank/savedreports"; var searchdata = '{"searchTerm":"","searchResults":0,"searchFilters":"","pagination":0,"searchType":"savedreports","sortBy":"alphabetical","section":"savedreports"}'; if (searchdata != '') { wbgData.siteSearch = JSON.parse(searchdata); } </script> <script src="https://assets.adobedtm.com/223f6e2cf7c9/3eb6c9b72a93/launch-7bc0cdc67098.min.js" async></script> </head> <body> <form method="post" action="./savedreports" id="Form1" autocomplete="off"> <div class="aspNetHidden"> <input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" /> <input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" /> <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKLTczODc3MDQ4Ng9kFgJmD2QWAgIBD2QWDmYPFgIeBWNsYXNzBQ9hY3RpdmUtbGFuZ3VhZ2UWAgIBDw9kFgIeD2RhdGEtY3VzdG9tbGluawURbmw6dG9wIG5hdmlnYXRpb25kAgEPFgIfAGUWAgIBDw9kFgIfAQURbmw6dG9wIG5hdmlnYXRpb25kAgIPFgIfAGUWAgIBDw9kFgIfAQURbmw6dG9wIG5hdmlnYXRpb25kAgMPFgIfAGUWAgIBDw9kFgIfAQURbmw6dG9wIG5hdmlnYXRpb25kAgQPFgIfAGUWAgIBDw9kFgIfAQURbmw6dG9wIG5hdmlnYXRpb25kAgYPFggeBGhyZWYFFi9kYXRhc2V0cy5hc3B4P2xhbmc9ZW4fAAUQbGlzdC1ncm91cC1pdGVtIB4JaW5uZXJodG1sBQ5TYXZlZCBEYXRhc2V0cx4HVmlzaWJsZWdkAggPPCsAEQMADxYEHgtfIURhdGFCb3VuZGceC18hSXRlbUNvdW50AgRkARAWABYAFgAMFCsAABYCZg9kFgoCAQ9kFgJmD2QWAmYPFQMlL3NvdXJjZS9nbG9iYWwtZWNvbm9taWMtbW9uaXRvci0oZ2VtKT5HbG9iYWwgRWNvbm9taWMgTW9uaXRvciAoR0VNKSB3YXMgdXBkYXRlZCBvbiBOb3ZlbWJlciAyMywgMjAyNABkAgIPZBYCZg9kFgJmDxUDJC9zb3VyY2UvcXVhcnRlcmx5LXB1YmxpYy1zZWN0b3ItZGVidD1RdWFydGVybHkgUHVibGljIFNlY3RvciBEZWJ0IHdhcyB1cGRhdGVkIG9uIE5vdmVtYmVyIDE5LCAyMDI0AGQCAw9kFgJmD2QWAmYPFQMML3NvdXJjZS9qb2JzJUpvYnMgd2FzIHVwZGF0ZWQgb24gTm92ZW1iZXIgMTMsIDIwMjQAZAIED2QWAmYPZBYCZg8VAyQvc291cmNlL3dvcmxkLWRldmVsb3BtZW50LWluZGljYXRvcnM9V29ybGQgRGV2ZWxvcG1lbnQgSW5kaWNhdG9ycyB3YXMgdXBkYXRlZCBvbiBOb3ZlbWJlciAxMywgMjAyNABkAgUPDxYCHwRoZGQYAQUVY3RsMDAkZ3JkV2hhdHNOZXdMaXN0DzwrAAwBCAIBZA1F1zcpvBvyHafIEUXYiT7ugQTTAOE5QlC2Eu/48K6p" /> </div> <script type="text/javascript"> //<![CDATA[ var theForm = document.forms['Form1']; if (!theForm) { theForm = document.Form1; } function __doPostBack(eventTarget, eventArgument) { if (!theForm.onsubmit || (theForm.onsubmit() != false)) { theForm.__EVENTTARGET.value = eventTarget; theForm.__EVENTARGUMENT.value = eventArgument; theForm.submit(); } } //]]> </script> <div class="aspNetHidden"> <input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="290C472B" /> <input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEdABP55yE04BDXtfyuiviMKwhao+JxbVPQGNUc2uX2OiQejBbf3UCjgiPOGP9iOle4XA5hb9XnS7rFZjGimX+sBeW+r0SSoeg06QMIqcbv0LMzifAPNZsCy2F+qaf74MDSywbmcHxZps/fr4w/ZIXkxnn46SGlKA8L7YFi3rVVJaRuM4gptYzkTZKvd2zEmz73xyvYExq+c7Uty8iADwkslLF2tG5/UOA1Ok1G1neK6rM/Ey7K270iBn3nx2XbJJsIW94QW6FcIfdWe1DGS41NU7PIWuEw3bXmH7nyut8x7Lbt3KO5QKQuDKwIKYPNRlLbnbPBEq5RUA0sD1IqLcsityTEVUAGT3FdMT3W2QtQXmxabemrnAxW43wQh8i/BsTqr8u+mScsS1rWLMKRM/Ao5SKGJOZKs3NSFcSFBrrzn44OKfiVe0zi6hyuXgFDVPA7g4I=" /> </div> <div class="container"> <div class="wrapper"> <link href="/css/wb_feedback.css" rel="stylesheet"> <div id="wb_feedback"> <span class="wb_feedback_text"> <p>Help us improve this section of the site. Can we get your feedback? <a class="btn-schedule" href="https://www.surveymonkey.com/r/ZFQKG5Y" target="_blank">Click here </a> </p> </span> <span class="wb_feedback_descr"> </span> <input type="button" value="Close" id="survey_img"> </div> <!-- header starts --> <header> <nav class="navbar navbar-default navbar-top data-header"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#header-collapse" aria-expanded="false"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <span class="navbar-brand"> <div class="wb-nav-left"> <a class="sprite wb-logo-ibrd-en" href="javascript:;"></a> </div> </span> </div> <div class="collapse navbar-collapse" id="header-collapse"> <ul class="nav navbar-nav navbar-right text-right"> <li><a href="http://www.worldbank.org">Home</a></li> <li><a href="http://www.worldbank.org/en/about">About</a></li> <li class="active"><a href="http://data.worldbank.org/">Data</a></li> <li><a href="http://www.worldbank.org/en/research">Research</a></li> <li><a href="https://olc.worldbank.org/">Learning</a></li> <li><a href="http://www.worldbank.org/en/news">News</a></li> <li><a href="http://www.worldbank.org/projects">Projects & Operations</a></li> <li><a href="http://www.worldbank.org/reference/">Publications</a></li> <li><a href="http://www.worldbank.org/en/country">Countries</a></li> <li><a href="http://www.worldbank.org/en/topic">Topics</a></li> <li class="lang-dropdown"> <select class="selectpicker"> <option selected value="en" data-reactid="19">English</option> <option value="es" data-reactid="20">Español</option> <option value="fr" data-reactid="21">Français</option> <option value="ar" data-reactid="22">عربي</option> <option value="ru" data-reactid="23">Русский</option> <option value="zh" data-reactid="24">中文</option> <option value="oth" data-reactid="25">View all »</option> </select> </li> </ul> </div> </nav> </header> <!-- header ends --> <div class="content-wrapper"> <div class="content" id="page_content"> <div id="content_overlay"></div> <div class="reach-container clearfix"> <div class="databank-wrapper"> <div class="explore-media explore-media-en"> <div class="row"> <h1 class="col-md-5">DataBank</h1> <ul class="col-md-7 list-inline top-social-icons no-border"> <li>This page is in</li> <li id="liEnglish" class="active-language"> <a onclick="return onLangSelection('en');" id="lnkEnglish" data-customlink="nl:top navigation" href="javascript:__doPostBack('ctl00$lnkEnglish','')">English</a></li> <li id="liSpanish" class=""> <a onclick="return onLangSelection('es');" id="lnkSpanish" data-customlink="nl:top navigation" href="javascript:__doPostBack('ctl00$lnkSpanish','')">Español</a></li> <li id="liFrench" class=""> <a onclick="return onLangSelection('fr');" id="lnkFrench" data-customlink="nl:top navigation" href="javascript:__doPostBack('ctl00$lnkFrench','')">Français</a></li> <li id="liArabic" class=""> <a onclick="return onLangSelection('ar');" id="lnkArabic" data-customlink="nl:top navigation" href="javascript:__doPostBack('ctl00$lnkArabic','')">عربي</a></li> <li id="liChinese" class=""> <a onclick="return onLangSelection('zh');" id="lnkChinese" data-customlink="nl:top navigation" href="javascript:__doPostBack('ctl00$lnkChinese','')">中文</a></li> </ul> </div> <div class="text-right social-link"> <span id="lblWelcome" class="back-btn" style="cursor: default"></span> <div id='ddlLogin' class='logincontrol dropdown databank-dd'> <button class='dropdown-toggle' type='button' data-toggle='dropdown'><i class='sprite login-home'></i>Log in Now<span class='caret'></span> </button> <ul class='dropdown-menu'> <li style="cursor: pointer;" data-customlink="nl:header" onclick="Javascript:onLangSelectionLoginWBG('en')">WB Staff Login</li><li style="cursor: pointer;" data-customlink="nl:header" onclick="Javascript:onLangSelectionLogin('en')">Public Login</li></ul> </div> <a href="javascript:Entertwitter();" class="btn twitter-btn" data-customlink="sm:header" data-text="twitter"><i class="sprite icon-twitter"></i>Tweets</a> <a href="javascript:Enterfacebook();" class="btn fb-btn" data-customlink="sm:header" data-text="facebook"><i class="sprite icon-fb"></i>Like</a> <a href="javascript:Enterlinkedin();" class="btn linked-btn" data-customlink="sm:header" data-text="linkedin"><i class="sprite icon-linked" ></i>Share</a> <div class="dropdown databank-dd btn btn-default"> <button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" aria-expanded="true">+</button> <ul class="dropdown-menu dd-left" id="homepage_social_list"> <li onclick="EntertGooglePlus();" data-customlink="sm:header" data-text="google+">Google+</li> <li onclick="Enterdigg();" data-customlink="sm:header" data-text="digg">Digg</li> <li onclick="Enterrenren()" data-customlink="sm:header" data-text="renren">人人网</li> <li onclick="Entersina()" data-customlink="sm:header" data-text="sina">新浪微博</li> <li onclick="EnterstumbleUpon();" data-customlink="sm:header" data-text="stumbleupon">Stumble Upon</li> </ul> </div> </div> </div> <!-- Filter --> <div class="category-filter databank-filter eql-hgt-div plain"> <div> <div class="list-group databank-list"> <a data-customlink="nl:left navigation" href="/home" class="list-group-item ">DataBank Home</a> <a data-customlink="nl:left navigation" href="/databases" class="list-group-item ">Databases</a> <a data-customlink="nl:left navigation" href="/createreport" class="list-group-item ">Create Report</a> <a data-customlink="nl:left navigation" href="/savedreports" class="list-group-item active">Saved Reports</a> <a href="/datasets.aspx?lang=en" id="lnkDatasets" data-customlink="nl:left navigation" class="list-group-item ">Saved Datasets</a> <a data-customlink="nl:left navigation" id="aMetaGlossary" href="/metadataglossary/all/series" class="list-group-item ">Metadata Glossary</a> </div> </div> <div class="list-group link-list"> <div class="list-group-item list-title text-uppercase" >What's New</div> <div> <table cellspacing="0" rules="all" id="grdWhatsNewList" style="border-width:0px;border-collapse:collapse;margin-top: -20px;"> <tr> <th scope="col"> </th> </tr><tr> <td> <a data-customlink="nl:left navigation" href="/source/global-economic-monitor-(gem)" class="list-group-item">Global Economic Monitor (GEM) was updated on November 23, 2024 </a> </td> </tr><tr> <td> <a data-customlink="nl:left navigation" href="/source/quarterly-public-sector-debt" class="list-group-item">Quarterly Public Sector Debt was updated on November 19, 2024 </a> </td> </tr><tr> <td> <a data-customlink="nl:left navigation" href="/source/jobs" class="list-group-item">Jobs was updated on November 13, 2024 </a> </td> </tr><tr> <td> <a data-customlink="nl:left navigation" href="/source/world-development-indicators" class="list-group-item">World Development Indicators was updated on November 13, 2024 </a> </td> </tr> </table> </div> </div> </div> <!-- ./Filter --> <!-- Reach Content --> <div class="reach-list databank-content eql-hgt-div plain-right" style="min-height:700px;"> <div class="databank-filter eql-hgt-div"> <h1 class="page-title">Reports</h1> <div class="tab-detail"> <!-- Nav tabs --> <ul class="nav nav-tabs" role="tablist"> <li role="presentation"> <a data-customlink="tb:body" data-toggle="tab" aria-expanded="false" id="menu_myreports" onclick="myReportTabSelected('/login.aspx','en', '&secure=y')">My Reports</a> </li> <li role="presentation" > <a data-customlink="tb:body" href="#tab_sharedreports" data-toggle="tab" aria-expanded="false" id="menu_sharedreports" onclick="sharedReportTabSelected()" title="The World Bank is not responsible for contents of shared reports created by individual data users. Also note that these reports can become unavailable or altered upon the discretion of the user and data updates.">Shared By DataBank Users</a> </li> </ul> <!-- Tab panes --> <div class="tab-content database-tab-content"> <div role="tabpanel" class="tab-pane" id="tab_myreports"> <div class="row"> <div class="col-lg-6" > <div class="input-group"> <input type="text" class="form-control" placeholder="Type keywords to filter reports" onfocus="clearField(this)" onkeypress="return runScript(event)" aria-describedby="search-icon" name="qterm" id="inpsearchString" maxlength="40" /> <span class="input-group-addon" id="search-icon" onclick="reloadReportBySearch()"><i class="fa fa-search"></i></span> </div> </div> <div class="col-lg-6"> <div class="search-filter"> <span class="span-label">Filter by:</span> <ul class="databases-list"> <li> <div class="dropdown databank-dd"> <button class="btn btn-default dropdown-toggle filter-by-reporttype" type="button" data-toggle="dropdown" aria-expanded="true"> <i class="sprite icon-filtertype"></i>Type <span class="caret"></span> </button> <ul class="dropdown-menu" id="divReportTypes"> </ul> </div> </li> <li> <div class="dropdown databank-dd"> <button class="btn btn-default dropdown-toggle filter-by-label" type="button" data-toggle="dropdown" aria-expanded="true"> <i class="sprite icon-folder-close"></i>Folder <span class="caret"></span> </button> <ul class="dropdown-menu" id="divlabelItems"> </ul> </div> </li> <li> <div class="dropdown databank-dd"> <button class="btn btn-default dropdown-toggle filter-by-database" type="button" data-toggle="dropdown" aria-expanded="true"> <i class="sprite icon-database"></i>Databases <span class="caret"></span> </button> <ul class="dropdown-menu" id="divdatabaseItems"> </ul> </div> </li> </ul> </div> </div> </div> <div class="spacingx2"></div> <div class="spacingx2 tborder"></div> <div class="row"> <div class="col-lg-6" id="divOrderBy" > <ul class="sortby-list"> <li>Sort by:</li> <li id="liorderByLabel" class="active"><a data-customlink="ss:body" id="hrByOrder" href="#" onclick="reloadReportByOrder('Label',this)">Folder<span class="caret"></span></a></li> <li class="seperator"> | </li> <li id="liorderByType"><a data-customlink="ss:body" href="#" onclick="reloadReportByOrder('Type',this)">Type <span class="caret"></span></a></li> <li class="seperator"> | </li> <li id="liorderByAlphabetical"><a data-customlink="ss:body" href="#" onclick="reloadReportByOrder('Alphabetical', this)">Alphabetical<span class="caret"></span></a></li> <li class="seperator"> | </li> <li id="liorderByDate"><a data-customlink="ss:body" href="#" onclick="reloadReportByOrder('Date', this)">Last Updated<span class="caret"></span></a></li> </ul> </div> <div class="col-lg-6"> <div class="showing-result"> <ul class="databases-list rgt-list"> <li> <span id="lblRecordDetails" class="result-span"></span> <li> <div class="folder-dd"> <div class="dropdown databank-dd"> <button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown"> <i class="sprite icon-folder-open"></i> Folder options <span class="caret"></span></button> <ul class="dropdown-menu"> <li><a href="#" data-toggle="modal" data-target="#dvCreateFolder" onclick="OpenCreateFolder()">Create </a></li> <li><a href="#" data-toggle="modal" data-target="#moveFoldersMain" onclick="LoadReportDetails();TrackFeature('Saved Reports->My reports->Folder Options->Open Move folder Option');">Move</a></li> <li><a href="#" data-toggle="modal" data-target="#dvDeleteFolder" onclick="LoadFolderDetails()">Delete </a></li> <li><a href="#" data-toggle="modal" data-target="#dvRenameFolder" onclick="OpenRenameFolder()">Rename</a></li> </ul> </div> </div> </li> </ul> </div> </div> </div> <div class="filter-div" style="padding-right: 20px;"> <span> <a data-customlink="sf:body" href="#" class="remove-filter" id="aRemoveFilter" onclick="removeSearchFilter()"> <span class="glyphicon glyphicon-remove-circle" id="sRemoveFilter"></span>Remove search filter</a> <a data-customlink="sf:body" href="#" class="remove-filter" id="aRemoveLabel" onclick="removeLabelFilter()"> <span class="glyphicon glyphicon-remove-circle" id="sRemoveLabel"></span>Remove folder filter</a> <a data-customlink="sf:body" href="#" class="remove-filter" id="aRemoveDatabase" onclick="removeDatabaseFilter()"> <span class="glyphicon glyphicon-remove-circle" id="sRemoveDatabase"></span>Remove database filter</a> <a data-customlink="sf:body" href="#" class="remove-filter" id="aRemoveReportType" onclick="removeReporttypeFilter()"> <span class="glyphicon glyphicon-remove-circle" id="sRemoveReporttype"></span>Remove Type filter</a> </span> </div> <div class="spacingx3"></div> <div id="divGrdReportList" class="panel-explore"></div> </div> <div role="tabpanel" class="tab-pane" id="tab_sharedreports"> <div class="row"> <div class="col-lg-6"> <div class="input-group"> <input type="text" class="form-control" placeholder="Type keywords to filter reports" onfocus="clearField(this)" onkeypress="return runScriptSecondTab(event)" aria-describedby="search-icon" name="qterm" id="inpSharedsearchString" maxlength="40" /> <span class="input-group-addon" id="search-icon-shared" onclick="onSharedSearchReports();"><i class="fa fa-search"></i></span> </div> </div> <div class="col-lg-6"> <div class="search-filter"> <span class="span-label">Filter by:</span> <ul class="databases-list"> <li> <div class="dropdown databank-dd"> <button class="btn btn-default dropdown-toggle filtershared-by-reporttype" type="button" data-toggle="dropdown" aria-expanded="false"> <i class="sprite icon-filtertype"></i>Type <span class="caret"></span> </button> <ul class="dropdown-menu" id="divsharedreporttype"> </ul> </div> </li> <li> <div class="dropdown databank-dd"> <button class="btn btn-default dropdown-toggle filtershared-by-user" type="button" data-toggle="dropdown" aria-expanded="false"> <i class="sprite icon-folder-close"></i>Created By <span class="caret"></span> </button> <ul class="dropdown-menu" id="divsharedbyusersitems"> </ul> </div> </li> <li> <div class="dropdown databank-dd"> <button class="btn btn-default dropdown-toggle filtershared-by-database" type="button" data-toggle="dropdown" aria-expanded="false"> <i class="sprite icon-database"></i>Databases <span class="caret"></span> </button> <ul class="dropdown-menu" id="divshareddatabaseItems"> </ul> </div> </li> </ul> </div> </div> </div> <div class="spacingx2"></div> <div class="spacingx2 tborder"></div> <div class="row"> <div class="col-lg-6" id="divOrderBySecond"> <ul class="sortby-list"> <li id="hSortBy">Sort by:</li> <li id="liorderByDateSecondTab" class="active"><a data-customlink="ss:body" href="#" onclick="reloadSharedReportByOrder('Date',this)">Last Updated<span class="caret"></span></a></li> <li class="seperator"> | </li> <li id="liorderByTypeSecondTab"><a data-customlink="ss:body" href="#" onclick="reloadSharedReportByOrder('Type',this)">Type <span class="caret"></span></a></li> <li class="seperator"> | </li> <li id="liorderByAlphabeticalSecondTab"><a data-customlink="ss:body" href="#" onclick="reloadSharedReportByOrder('Alphabetical',this)">Alphabetical<span class="caret"></span></a></li> </ul> </div> <div class="col-lg-6"> <div class="showing-result"> <ul class="databases-list rgt-list"> <li> <span id="lblSharedReportCount" class="result-span"></span> </li> </ul> </div> </div> </div> <div class="filter-div" style="padding-right: 20px;"> <a data-customlink="sf:body" href="#" class="remove-filter" onclick="removeSharedReportFilter()" id="aSharedRemoveFilter"> <span class="glyphicon glyphicon-remove-circle" id="sSharedRemoveFilter" ></span>Remove search filter</a> <a data-customlink="sf:body" href="#" class="remove-filter" id="aRemoveSharedDatabase" onclick="removeSharedDatabaseFilter()"> <span class="glyphicon glyphicon-remove-circle" id="sSharedRemoveDatabaseFilter"></span>Remove database filter</a> <a data-customlink="sf:body" href="#" class="remove-filter" id="aRemoveSharedUser" onclick="removeSharedUserFilter()"> <span class="glyphicon glyphicon-remove-circle" id="sSharedRemoveUserFilter"></span>Remove Created by filter</a> <a data-customlink="sf:body" href="#" class="remove-filter" id="aRemoveSharedReportType" onclick="removeSharedReportTypeFilter()"> <span class="glyphicon glyphicon-remove-circle" id="sSharedRemoveReportTypeFilter"></span>Remove Type filter</a> </div> <div class="spacingx3"></div> <div id="divgrdSharedReportList" class="panel-explore"></div> </div> </div> </div> <div class="text-center" id ="divPagination"> </div> <div class="spacingx2"></div> <div class="modal fade code-modal" id="dvCreateFolder" tabindex="-1" role="dialog" > <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <h4 class="modal-title" id="dvCreateFolderLabel">Create folder</h4> </div> <div class="modal-body"> <span class="icon" id="sCreateFolder">Enter folder name</span> <input type="text" id="txtFoldername" size="45" /> </div> <div class="modal-footer"> <button type="button" class="btn btn-blue" onclick="return CreateFolder();">Create </button> <button type="button" class="btn btn-gray" data-dismiss="modal" onclick="return CancelCreateFolder();">Close</button> </div> </div> </div> </div> <div class="modal fade code-modal" id="dvDeleteFolder" tabindex="-1" role="dialog" > <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <h4 class="modal-title" id="dvDeleteFolderLabel">Delete folder</h4> </div> <div class="modal-body"> <div id="dvFolderDetails" style="overflow:auto;max-height:500px"></div> </div> <div class="modal-footer"> <button type="button" class="btn btn-blue" onclick="return DeleteFolder();">Delete </button> <button type="button" class="btn btn-gray" data-dismiss="modal" onclick="return CancelDeleteFolder();">Close</button> </div> </div> </div> </div> <input type="hidden" id="hdnShareURL" /> <div id="share-url-dialog" class="modal fade code-modal" tabindex="-1" role="dialog"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <h4 class="modal-title" id="myModalLabel">Share URL</h4> </div> <div class="modal-body"> <div id="divExternalLangShare" class="modal-body"> Language: <select id="selExternalLangShare" onchange="generateShareURL()" class="folderdrop"> <option value="en">English</option> <option value="es">Español</option> <option value="fr">Français</option> <option value="ar">عربي</option> <option value="zh">中文</option> </select> </div> <div class="label" style="margin-bottom: 5px;">Permanent link for this report:</div> <div class="code" id="divShareURL" style="width: 100%; word-wrap: break-word;"></div> </div> <div class="modal-footer"> <button type="button" class="btn btn-gray" data-dismiss="modal" onclick="return CancelShareUrlDialog();">Close</button> </div> </div> </div> </div> <div id="widget-code-dialog" class="modal fade code-modal" tabindex="-1" role="dialog" > <input type="hidden" id="hdnWidgetData" /> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <h4 class="modal-title" >Embed as widget</h4> </div> <div class="modal-body"> <div id="report-loading" class="loading" style="display: none;position:fixed;top: 25%; right: 50%"> <img src="images/ajax-loader.gif" width="32" height="32" /><br /> <strong>Loading...</strong> </div> <div id="divExternalLang" class="modal-body"> Language: <select id="selExternalLang" onchange="generateEmbedCode()" class="folderdrop"> <option value="en">English</option> <option value="es">Español</option> <option value="fr">Français</option> <option value="ar">عربي</option> <option value="zh">中文</option> </select> </div> <div class="label">Copy and paste this code to your website</div> <div dir="ltr"> <textarea style="width: 100%; background-color: #F6F6F6; border: 1px solid #DDDAD1; height: 100px; margin: 9px 0; overflow: scroll; padding: 5px;" id="txtEmbedCode" class="textarea" readonly=""></textarea> </div> </div> <div class="modal-footer"> <button type="button" id = "btnCustomizeWidget" data-toggle='modal' data-target='#widget-preview' class="btn btn-gray" data-dismiss="modal" >Customize</button> <button type="button" class="btn btn-gray" data-dismiss="modal" onclick="return CancelWidgetdialog();">Close</button> </div> </div> </div> </div> <div id="widget-preview" title="Customize" class="modal fade code-modal" tabindex="-1" role="dialog"></div> <div class="modal fade code-modal" id="moveFoldersMain" tabindex="-1" role="dialog" > <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <h4 class="modal-title" id="moveFoldersMainLabel">Move reports between folders</h4> </div> <div class="modal-body"> <select id="ddlDestinationFolder" class="folderdrop"></select> <div id="moveFolders"></div> </div> <div class="modal-footer"> <button type="button" class="btn btn-blue" onclick="return MoveFolder();">Move</button> <button type="button" class="btn btn-gray" data-dismiss="modal" onclick="return CancelMoveFolder();">Close</button> </div> </div> </div> </div> <div class="modal fade code-modal" id="dvRenameFolder" tabindex="-1" role="dialog" > <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <h4 class="modal-title" id="dvRenameFolderLabel">Rename folder</h4> </div> <div class="modal-body"> <table id="widget-publish-table"> <tr> <td class="header"><span class="icon" id="sSelectFolder">Select folder</span></td> <td ><select id="ddlSourceFolder" onchange="PopulateFolderName()" class="folderdrop"></select></td> </tr> <tr> <td class="header" ><span id="sRenameFolder">Enter new name</span></td> <td ><input type="text" id="txtRenameFolder" size="45" /></td> </tr> </table> </div> <div class="modal-footer"> <button type="button" class="btn btn-blue" onclick="return RenameFolder();">Rename</button> <button type="button" class="btn btn-gray" data-dismiss="modal" onclick="return CancelRenameFolder();">Close</button> </div> </div> </div> </div> <div class="modal fade code-modal" id="dvLoginSelection" tabindex="-1" role="dialog" > <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-body"> <span id="promptSaveText"> Please log in to save <br /> <br /> Kindly choose an option and press OK to continue <br /> <br /> </span> <div class="btn-group mB10"> <input type="radio" name='radioLogin' id="radioLoginWB" style="float:right;" value="wbStaffLogin" /><span style="float:right;padding-left: 10px;" > WB Staff Login </span> <input type="radio" name='radioLogin' id="radioLoginPublic" style="float:right;" value="publicLogin" checked /> <span style="float:right;" > Public Login </span> <br /> </div> <br /> </div> <div class="modal-footer"> <button type="button" class="btn btn-blue" onclick="return onLoginSelection();">OK</button> <button type="button" class="btn btn-gray" data-dismiss="modal">Close</button> </div> </div> </div> </div> <input name="ctl00$MainContent$inpTotalRecords" type="hidden" id="inpTotalRecords" /> <input name="ctl00$MainContent$inpSharedReportCount" type="hidden" id="inpSharedReportCount" /> <input name="ctl00$MainContent$inpMyReportsFilterBy" type="hidden" id="inpMyReportsFilterBy" /> <input name="ctl00$MainContent$hdIsAuthenticated" type="hidden" id="hdIsAuthenticated" value="0" /> <input name="ctl00$MainContent$inpSharedFilterBy" type="hidden" id="inpSharedFilterBy" /> <input name="ctl00$MainContent$inpAssign" type="hidden" id="inpAssign" /> <input name="ctl00$MainContent$inpCancel" type="hidden" id="inpCancel" /> <input name="ctl00$MainContent$inpShowingResultsof" type="hidden" id="inpShowingResultsof" value="Showing results recordcount of totalCount" /> <input type="hidden" name="ctl00$MainContent$hdnSnapshotconfirm" id="hdnSnapshotconfirm" /> <input type="hidden" name="ctl00$MainContent$hdnCreate" id="hdnCreate" /> <input type="hidden" name="ctl00$MainContent$hdnRename" id="hdnRename" /> <input type="hidden" name="ctl00$MainContent$hdnDelete" id="hdnDelete" /> <input type="hidden" name="ctl00$MainContent$hdnMove" id="hdnMove" /> <input id="inpOrderbyField" type="hidden" /> <input id="hdnLangSettings" type="hidden" value="en" /> <input id="inpPageNumber" type="hidden" /> <input id="inpLabellist" type="hidden" /> <input id="inpDatabaselist" type="hidden" /> <input id="inpTypelist" type="hidden" /> <input id="inpSharedDatabaselist" type="hidden" /> <input id="inpSharedUserlist" type="hidden" /> <input id="inpSharedReportTypelist" type="hidden" /> <input id="inpPageNumberSecondTab" type="hidden" value="1" /> <input id="inpOrderbyFieldSecondTab" type="hidden" /> <input id="inpSharedSortSelected" type="hidden" /> <input id="inpMyReportssortSelected" type="hidden" /> <input id="inpUserSelection" type="hidden" /> </div> </div> <!-- ./Reach Content --> </div> </div> </div> <!--/content --> <a href="#" class="back-to-top">^ </a> <footer class="footer"> <div class=" g02v1-footer brd-t-1"> <div class="row"> <div class="col-lg-12 "> <ul class="list-inline"> <li><a href="http://www.worldbank.org/" class="sprite wbg-logo-footer-en"></a> </li> <li> <a title="International Bank for Reconstruction and Development" href="http://www.worldbank.org/en/about/what-we-do/brief/ibrd">IBRD</a> <a title="International Development Association" href="http://www.worldbank.org/ida">IDA</a> <a title="International Finance Corporation" href="http://www.ifc.org/">IFC</a> <a title="Multilateral Investment Guarantee Agency" href="http://www.miga.org/">MIGA</a> <a title="International Centre for Settlement of Investment Disputes" href="http://icsid.worldbank.org/">ICSID</a> </li> </ul> </div> </div> <div class="row"> <div class="col-lg-12 "> <div class="g02v1-copyright col-md-6 col-sm-6"> <div class="g02v1-footer-copyright"> <a href="http://www.worldbank.org/legalinfo">Legal</a> | <a href="http://www.worldbank.org/wbaccess">Access to Information</a> | <a href="http://www.worldbank.org/jobs">Jobs</a> | <a href="http://www.worldbank.org/sitemap">Site Map</a> | <a href="http://www.worldbank.org/contacts">Contact</a> </div> <div class="g02v1-footer-copyright">© <script language="JavaScript"> <!-- Begin var time = new Date(); var year = time.getYear(); if (year < 2000) year = year + 1900; document.write(year);// End --> </script> The World Bank Group, All Rights Reserved.</div> </div> <div class="g02v1-copyright col-sm-6 col-md-6"> <div class=" g02v1-footer-fraud"> <a href="http://web.worldbank.org/WBSITE/EXTERNAL/EXTABOUTUS/ORGANIZATION/ORGUNITS/EXTDOII/0,,contentMDK:20659616~menuPK:1702202~pagePK:64168445~piPK:64168309~theSitePK:588921,00.html">REPORT FRAUD OR CORRUPTION</a> </div> </div> </div> </div> </div> </footer> </div> <!-- /container-fluid-fluid --> <!-- Footer --> <div class="clearfix"></div> </div> </div> <!-- Portal Loading Html --> <div id="overlay" style="display: none;"></div> <div id="overlay-bg" class="loaderClass" style="display: none;"> <div class="spinner"> <div class="rect1"></div> <div class="rect2"></div> <div class="rect3"></div> <div class="rect4"></div> <div class="rect5"></div> </div> </div> <script src="/js/jquery-1.10.2.min.js"></script> <script src="/js/jquery-ui.min.js"></script> <script src="/js/bootstrap.js"></script> <script src="/js/slick.min.js"></script> <script src="/js/select2.min.js"></script> <script src="/js/main.js"></script> <script src="/js/wb_feedback.js"></script> <script type="text/javascript"> /* Code to add User Voice implementation script. The gnarly string in the URL identifies our account There are a couple of simpler alternatives to add the script, including the jQuery.getScript function, or simply linking it with an ordinary <script/> tag. I've used the jQuery option successfully, but the plain <script/> tag approach tends to cause security certificate issues with IE, IE9 in particular. I'm trying to get more clarity with UserVoice. */ (function () { var uv = document.createElement('script'); uv.type = 'text/javascript'; uv.async = true; uv.src = '//widget.uservoice.com/XzQsWhTqmnE8dYDOJ0HjJQ.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(uv, s) })() </script> <script type="text/javascript"> var url = window.location.href; if (top != self) { alert('The URL ' + self.location.href + ' cannot be viewed inside a frame. You will be redirected'); window.location = "http://message.worldbank.org/www-ext-404.html"; } $(document).ready(function () { //AJAX way loading creates lot of changes //Instead we are rendering this from server //try { // var path = url.split('?')[1].split('=')[1]; // fnLoadPage(path); //} catch (e) { // fnLoadPage("htmls/home.html"); //} fnLoading(false); $('.lang-dropdown .selectpicker').on('change', function (obj, val) { switch ($(obj.target).val()) { case "en": window.location.href = "http://data.worldbank.org/"; break; case "es": window.location.href = "http://www.bancomundial.org/"; break; case "fr": window.location.href = "http://www.banquemondiale.org/"; break; case "ar": window.location.href = "http://www.albankaldawli.org/"; break; case "ru": window.location.href = "http://www.worldbank.org/eca/russian/"; break; case "zh": window.location.href = "http://www.worldbank.org.cn/Chinese/"; break; case "oth": window.location.href = "http://www.worldbank.org/languages"; break; default: window.location.href = "http://data.worldbank.org/"; break; } }); }); function uvClick() { // set following parameter to site identifier: Data, Databank, Finances or DataCatalog var siteIdentifier = 'Databank'; UserVoice = window.UserVoice || []; UserVoice.push(['setCustomFields', { 'Origin': siteIdentifier }]); UserVoice.push(['showLightbox', 'classic_widget', { mode: 'support', primary_color: '#54584c', link_color: '#397aac' }]); } function onLangSelectionLogin(lang) { TrackFeature("Login->Public"); var frm = $("#form-lang")[0]; var langURL = $("#hdnlangdmn" + lang).val(); $("#hdntgurl").val("?t=home&l=" + 'en' + "&secure=y"); frm.action = '/loginint.aspx'; frm.submit(); return false; } function onLangSelectionLoginWBG(lang) { TrackFeature("Login->BankStaff"); var frm = $("#form-lang")[0]; var langURL = $("#hdnlangdmn" + lang).val(); $("#hdntgurl").val("?t=home&l=" + 'en' + "&wbguser=y" + "&secure=y");//need to replace this when actual wbg user login comes frm.action = '/loginint.aspx'; frm.submit(); return false; } function onLangSelection(lang) { TrackFeature("Language->" + lang); //debugger; var frm = $("#form-lang")[0]; var langURL = $("#hdnlangdmn" + lang).val(); var qryValues = window.location.search; $("#hdntgurl").val(langURL + $("#hdntgpgnam").val() + qryValues); frm.action = langURL + '/changelang.aspx'; frm.submit(); return false; } function Entertwitter() { TrackFeature("Share->Twitter"); window.open('http://twitter.com/share?url=' + encodeURIComponent(url) + '&text=' + encodeURIComponent(document.title), '_new'); } function Enterfacebook() { TrackFeature("Share->Facebook"); window.open('http://www.facebook.com/share.php?u=' + encodeURIComponent(url) + '&t=' + encodeURIComponent(document.title), '_new'); } function Enterlinkedin() { TrackFeature("Share->Linkedin"); window.open('http://www.linkedin.com/shareArticle?mini=true&url=' + encodeURIComponent(url) + '&title=' + encodeURIComponent(document.title)); } function EntertGooglePlus() { TrackFeature("Share->GooglePlus"); window.open('http://plus.google.com/share?url=' + url + '&title=' + document.title, '_new'); } function Enterdigg() { TrackFeature("Share->Digg"); window.open('http://digg.com/submit?url=' + encodeURIComponent(url) + '&title=' + encodeURIComponent(document.title), '_new'); } function Enterrenren() { TrackFeature("Share->RenRen"); window.open('http://share.renren.com/share/buttonshare.do?link=' + url + '&title=' + document.title, '_new'); } function Entersina() { TrackFeature("Share->Sina"); window.open('http://v.t.sina.com.cn/share/share.php?title=' + document.title + '&url=' + url + '&source=bookmark&appkey=', '_new'); } function EnterstumbleUpon() { TrackFeature("Share->stumbleupon"); window.open('http://www.stumbleupon.com/submit?url=' + encodeURIComponent(url) + '&title=' + encodeURIComponent(document.title), '_new'); } function Entergooglebuzz() { TrackFeature("Share->googlebuzz"); window.open('http://www.google.com/buzz/post?url=' + encodeURIComponent(url) + '&title=' + encodeURIComponent(document.title), '_new'); } function Enterdelicious() { TrackFeature("Share->delicious"); window.open('http://delicious.com/save?url=' + encodeURIComponent(url) + '&title=' + encodeURIComponent(document.title), '_new'); } function Enterhi5() { TrackFeature("Share->hi5"); window.open('http://hi5.com/save?url=' + encodeURIComponent(url) + '&title=' + encodeURIComponent(document.title), '_new'); } </script> <script type="text/javascript" src="/scripts/ReportListing.js"></script> <script type="text/javascript" src="/scripts/ReportListingNew.js"></script> <script type="text/javascript" src="/scripts/SharedReportListing.js"></script> <script type="text/javascript"> var gbl_strings = { previous: "PREV", next: "NEXT", FolderCreate: 'Please enter folder name', FolderCreateSuccess: "Folder created successfully.", FolderDeleteConfirm: 'Do you want to delete the selected folder(s) ?', FolderDeleteSuccess: 'Selected folders deleted successfully' }; gbl_strings.FolderDeleteFail = 'Selected folders are used in reports and cannot be deleted.'; gbl_strings.FolderDuplicateName = 'Folder name already exists'; gbl_strings.FolderMoveSuccess = 'Selected reports moved to the folder'; gbl_strings.FolderRenameSuccess = 'Folder renamed successfully'; gbl_strings.FolderReportSelect = 'Please select the reports which needs to be moved'; gbl_strings.FolderSelectDelete = 'Please select the folders which needs to be deleted'; gbl_strings.FolderSelectMove = 'Please select folder to move the selected reports'; $(document).ready(function () { $('.databank-dd .dropdown-menu select, .databank-dd .dropdown-menu label, .databank-dd .dropdown-menu input').click(function (e) { e.stopPropagation(); }); $("#content_overlay").click(function (event) { $(".category-filter, #content_overlay").removeClass("active"); }); $(window).resize(function () { $(".category-filter, #content_overlay").removeClass("active"); //fnEqualHeight(".eql-hgt-div"); }); //fnEqualHeight(".eql-hgt-div"); if (document.getElementById('hdIsAuthenticated').value == '1') { $('#menu_myreports').attr("href", "#tab_myreports"); $('#menu_myreports').trigger('click'); } else { $('#menu_sharedreports').trigger('click'); } }); </script> <script type="text/javascript" > function DecodeHtml(msg) { if (msg.length > 0) { return msg.replace("'", "'"); } else { return msg; } } function deleteReport(reportId, userId, reportType,reportName,IsShared) { // Dhanya Oct 20 2011 - Multilingual - Begin //Binoy Nov 14 2011 -soft delete Begin var confirmsg=""; if(IsShared=='N') { confirmsg = 'Do you want to delete report with report name'; } else { confirmsg = 'This report is shared and deleting makes the report unavailable to all users, do you still want to delete the report'; } //Binoy Nov 14 2011 Soft delete End var answer; var selLang = document.getElementById("hdnLangSettings").value; if(selLang=="ar") { answer = confirm(DecodeHtml(confirmsg) + ": "+ reportName+ " ؟" ) } else { answer = confirm(DecodeHtml(confirmsg) + ": " + reportName + " ?") } // Dhanya Oct 20 2011 - Multilingual - End if (answer) { $.ajax({ type: "POST", url: "AjaxServices/AjaxServiceMethods.asmx/_deleteSharedReportJson", contentType: "application/json; charset=utf-8", data: "{reportId:'" + reportId + "',userId:'" + userId + "',reportType:'" + reportType + "',strSelectedLang:'" + selLang + "'}", dataType: "json", success: function (result) { // Dhanya Oct 27 2011 - DDPUI 252 var orderByDirection = document.getElementById("inpOrderbyField").value; var orderBy=""; var direction=null; var orderArray = orderByDirection.split(":"); if (orderArray[0] != null) orderBy = orderArray[0]; if (orderArray[1] != null) direction = orderArray[1]; if(orderBy=="") orderBy="Date"; var objControl = document.getElementById('hrByOrder'); reloadReportByOrderForDelete(orderBy, direction) alert(result.d); // Dhanya Oct 27 2011 - DDPUI 252 }, error: function (XMLHttpRequest, textStatus, errorThrown) { //Shaheer Jun 4th 2012 window.location.href = "ddperror.aspx"; //alert(errorThrown); } }); if(IsShared == "N") TrackFeature('Saved Reports->My reports->Delete Report->' + reportName); else TrackFeature('Saved Reports->Shared by databank users->Delete Report->' + reportName); } } function reloadReportByOrderForDelete(orderBy, direction) { var searchValue = ""; //Dhanya - Sep 07 2011 Multilingual - Begin if (document.getElementById("inpsearchString").value != document.getElementById("inpMyReportsFilterBy").value) searchValue = document.getElementById("inpsearchString").value; //Dhanya - Sep 07 2011 Multilingual - End //var direction = ''; var filterLabels = strLabelFilter(); var filterDatabases=strDatabseFilter(); var filterReportTypes = strReportTypeFilter(); var strPageNumber = document.getElementById("inpPageNumber").value; var strLangSetting = document.getElementById('hdnLangSettings').value; document.getElementById("inpOrderbyField").value = orderBy + ':' + direction; $.ajax({ type: "POST", url: "AjaxServices/AjaxServiceMethods.asmx/_loadReportListjson", contentType: "application/json; charset=utf-8", data: "{searchValue:'" + searchValue + "',orderBy:'" + orderBy + "',direction:'" + direction + "',filterLabels:'" + filterLabels+ "',filterDatabases:'" + filterDatabases + "',filterReporttypes:'" +filterReportTypes + "',strPageNumber:'" + strPageNumber + "',langsetting:'" + strLangSetting + "'}", dataType: "json", success: function (data) {// Replace the div's content with the page method's return. reloadReportResultByOrder(data, orderBy); }, error: function (XMLHttpRequest, textStatus, errorThrown) { //Shaheer Jun 4th 2012 window.location.href = "ddperror.aspx"; } }); } </script> <script type="text/javascript"> function CancelShareUrlDialog() { $("#share-url-dialog").modal('toggle'); } function CancelWidgetdialog() { $("#widget-code-dialog").modal('toggle'); } var canpreview = false; var extreports_url = eval({"es":"https://databank.bancomundial.org/data","en":"https://databank.worldbank.org/data","fr":"https://databank.banquemondiale.org/data","zh":"https://databank.shihang.org/data","ar":"https://databank.albankaldawli.org/data"}); function loadShareReportDetails(reportID, reportname, widget) { showLoading(); $.ajax({ type: "POST", url: " AjaxServices/AjaxServiceMethods.asmx/loadReportWidgetCode", contentType: "application/json; charset=utf-8", data: "{reportid:'" + reportID + "', reportname:'" + reportname + "'}", dataType: "json", success: function (data) { $("#widget-code-" + reportID).html(data.d); if (widget) showWidgetCode(reportID); else showShareURL(reportID); hideLoading(); }, error: function (XMLHttpRequest, textStatus, errorThrown) { console.log('savedreports.aspx-->1'); hideLoading(); window.location.href = "ddperror.aspx"; } }); } function loadWidgetCode(reportID, reportname, shared) { canpreview = false; if ($.trim($("#widget-code-" + reportID).html()) == "") { loadShareReportDetails(reportID, reportname, true); } else { showWidgetCode(reportID); } TrackFeature('Saved Reports->My reports->Embed as widget->' + reportname); return false; } function showWidgetCode(reportID) { canpreview = false; var data = $("#widget-code-" + reportID).html(); if ($.trim(data) == '') return; $('#selExternalLang option[value="en"]').show(); var reportid = '', reporttype = '', templateid = '', reportname = ''; var alllangs = data.split('~'); if (alllangs.length >= 9) { reporttype = alllangs[0]; reportname = alllangs[2]; reportid = alllangs[7]; templateid = alllangs[8]; } if (alllangs.length >= 6) { alllangs = alllangs[5].split('^'); $.each(alllangs, function(index, value){ if (value != '') $('#selExternalLang option[value="' + value + '"]').show(); }); } $('#selExternalLang').val('en'); $('#hdnWidgetData').val(data); generateEmbedCode(); var windowH = $(window).height() - 40; var windowW = $(window).width() - 40; $("#btnCustomizeWidget").on("click", function () { if (canpreview) { TrackFeature("Saved Reports->My reports->Embed as widget->Customize"); var ifstr = $('#txtEmbedCode').val(); document.getElementById('widget-preview').innerHTML = ""; $("#widget-preview").html('<div class="modal-dialog widget-preview" style="position: fixed;top: 0;left: 10px; bottom: 0;right: 10px;" role="document">' + '<div style="height: 100%!important;" class="modal-content">' + '<div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-label="Close">' + '<span aria-hidden="true">×</span></button><h4 class="modal-title">Customize</h4></div>'+ '<div style="height: 85%!important;"class="modal-body"><iframe id="previewframe" src="/views/reports/widgetpreview.aspx?id=' + reportid + '&type=' + reporttype + '&reportname=' + reportname + '&template=' + templateid + '&reports=y&shared=Y&isuser=Y" width="99%" height="99%">' + '</iframe><div class="modal-footer">'+ '<button type="button" class="btn btn-gray" data-dismiss="modal" onclick="return CancelWidgetdialog();">Close</button>'+ '</div></div></div></div>'); } }); } function generateEmbedCode() { var sEmbed = 'Embed URL is not available for this view'; var isExternal = 'Y'; var extlang = 'en'; if (isExternal) { $('#divExternalLang').show(); extlang = $('#selExternalLang').val(); } else $('#divExternalLang').hide(); var data = $('#hdnWidgetData').val().split('~'); var sReturnURL = generateURL(sEmbed, isExternal, data, extlang, true); var isTemplate = false; if (data.length >= 7) isTemplate = (data[6] == "Y"); $('#txtEmbedCode').val(sReturnURL); } function loadShareURL(reportID, reportname, shared) { canpreview = false; if ($.trim($("#widget-code-" + reportID).html()) == "") loadShareReportDetails(reportID, reportname, false); else showShareURL(reportID); TrackFeature('Saved Reports->My reports->Share URL->' + reportname); return false; } function showShareURL(reportID) { canpreview = false; var data = $("#widget-code-" + reportID).html(); if ($.trim(data) == '') return; $('#divExternalLangShare').hide(); $('#selExternalLangShare option').hide(); $('#selExternalLangShare option[value="en"]').show(); var alllangs = data.split('~'); if (alllangs.length >= 6) { alllangs = alllangs[5].split('^'); $.each(alllangs, function(index, value){ if (value != '') $('#selExternalLangShare option[value="' + value + '"]').show(); }); } $('#selExternalLangShare').val('en'); $('#hdnShareURL').val(data); generateShareURL(); } function generateShareURL() { var sEmbed = 'Share URL is not available for this view'; var isExternal = 'Y'; var extlang = 'en'; $('#divExternalLangShare').show(); extlang = $('#selExternalLangShare').val(); var data = $('#hdnShareURL').val().split('~'); sEmbed = generateURL(sEmbed, isExternal, data, extlang, false); $('#divShareURL').html("<a data-customlink=\"sw:body\" href='" + sEmbed + "' target='_blank'>" + sEmbed + "</a>"); } function generateURL(sEmbed, isExternal, data, extlang, isembed) { if (data.length < 5) return sEmbed; var strReportType = data[0]; var strReportUID = ''; var strReportName = ''; var strHostName = ''; strReportUID = data[1]; strReportName = data[2]; strHostName = extreports_url[extlang]; //strHostName = 'http://databank.worldbank.org:443'; if (strHostName != undefined && strHostName != '') { //if (strHostName.indexOf('http://localhost') >= 0) // sEmbed = generateURLLocal(isExternal, strReportType, strReportUID, strReportName, strHostName, isembed, data); //else sEmbed = generateURLFinal(isExternal, strReportType, strReportUID, strReportName, strHostName, isembed, data); } return sEmbed; } //function generateURLLocal(isexternal, reporttype, reportid, reportname, hostname, isembed, data) { // var embedurl = hostname + '/Views/Reports/'; // embedurl += (isexternal ? 'ReportWidgetCustom.aspx' : 'ReportWidget.aspx'); // embedurl += '?Report_Name=' + reportname + '&Id=' + reportid; // if (isembed) { // embedurl += '&'; // embedurl += getEmbedOptions(data[7], reporttype) // embedurl = "<iframe frameborder=\"0\" width=\"500\" height=\"425\" scrolling=\"no\" src=\"" + embedurl + "\"></iframe>" // } // //commenting below for Share URL // //embedurl += '&tbar=y&dd=y'; // //if (reporttype.toLowerCase() == 'chart') embedurl += '&export=y&xlbl=y&ylbl=y&legend=y'; // canpreview = true; // return embedurl; //} function generateURLFinal(isexternal, reporttype, reportid, reportname, hostname, isembed, data) { var embedurl = hostname; embedurl += (isexternal ? '/embed/' : '/'); embedurl += reportname + '/id/' + reportid; if (isembed) { embedurl += '?'; embedurl += decodeURIComponent(getEmbedOptions(data[7], reporttype)); embedurl = "<iframe frameborder=\"0\" width=\"500\" height=\"425\" scrolling=\"no\" src=\"" + embedurl + "\"></iframe>" } //commenting below for Share URL //+ '/tbar/y/dd/y'; //if (reporttype.toLowerCase() == 'chart') embedurl += '/print/y/export/y/xlbl/y/ylbl/y/legend/y'; canpreview = true; return embedurl; } function getEmbedOptions(reportid, reporttype) { var defaultsettings = 'dd=y&tb=y&sh=y&dw=y&pr=n&inf=y&zm=y'; if (reporttype.toLowerCase() == 'chart') defaultsettings += '&xlbl=y&ylbl=y&legend=y'; defaultsettings += '&theme=darkGrey&bdrClr=rgb(177,186,170)&bdrStyle=solid&bdrWidth=0px'; var options = ''; if ($('#widget-options-' + reportid).html() != '') options = $('#widget-options-' + reportid).html().replace(/&/g, '&'); options = $.trim(options); if (options == '') options = defaultsettings; return options; } function getParameterByName(qrystring, name) { name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]"); var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"), results = regex.exec(qrystring); return results == null ? "" : decodeURIComponent(results[1].replace(/\+/g, " ")); } function refreshSnapshot(reportID, reportname, reportsharedname, reportuid) { var confirmsg = $("#MainContent_hdnSnapshotconfirm").val(); confirmsg = confirmsg.replace("'", "'"); var answer = confirm(confirmsg + ": " + reportname + " ?") if (answer) { showLoading(); $.ajax({ type: "POST", url: " AjaxServices/AjaxServiceMethods.asmx/refreshSnapShotData", contentType: "application/json; charset=utf-8", data: "{reportid:'" + reportID + "', reportname:'" + reportsharedname + "'}", dataType: "json", success: function (data) { hideLoading(); if (data.d == '') { var params = 'width=' + screen.width; params += ', height=' + screen.height; params += ', top=0, left=0'; params += ', directories=no'; params += ', location=yes'; params += ', menubar=yes'; params += ', resizable=yes'; params += ', scrollbars=yes'; params += ', status=yes'; params += ', toolbar=yes'; var strURL = '/' + reportsharedname + '/id/' + reportuid; window.open(strURL, '', params); } else { alert(data.d); } }, error: function (XMLHttpRequest, textStatus, errorThrown) { console.log('savedreports.aspx-->2'); hideLoading(); window.location.href = "ddperror.aspx"; } }); } return false; } function showLoading() { $("#report-loading").fadeIn(200); } function hideLoading() { $("#report-loading").fadeOut(500); } </script> </form> <form id="form-lang" target="_self" action="~/home" method="post"> <input name="ctl00$hdnuidval" type="hidden" id="hdnuidval" value="p1joge5jxlhx0mquvrg42gkl" /> <input name="ctl00$hdnlangdmnen" type="hidden" id="hdnlangdmnen" value="https://databank.worldbank.org" /> <input name="ctl00$hdnlangdmnzh" type="hidden" id="hdnlangdmnzh" value="https://databank.shihang.org" /> <input name="ctl00$hdnlangdmnes" type="hidden" id="hdnlangdmnes" value="https://databank.bancomundial.org" /> <input name="ctl00$hdnlangdmnfr" type="hidden" id="hdnlangdmnfr" value="https://databank.banquemondiale.org" /> <input name="ctl00$hdnlangdmnar" type="hidden" id="hdnlangdmnar" value="https://databank.albankaldawli.org" /> <input name="ctl00$hdntgpgnam" type="hidden" id="hdntgpgnam" value="/savedreports.aspx" /> <input name="ctl00$hdntgurl" type="hidden" id="hdntgurl" /> </form> <!-- Adobe Analytics Code Start --> <script type="text/javascript"> $("#aGoSearch").click(function (e) { AnalyticsControlClick('databases', 'search'); }); $(".input-group-addon").click(function (e) { AnalyticsControlClick('databases', 'search'); }); $(".input-group-addon").parent().find("input").keyup(function (event) { if (event.keyCode == 13) { AnalyticsControlClick('databases', 'search'); } }); </script> <!-- Adobe Analytics Code End--> <script type="text/JavaScript"> /* _satellite.pageBottom();*/ function AnalyticsControlClick(clickdetails, params) { debugger; wbgData.page.sectionInfo.siteSection = 'databank/' + clickdetails; wbgData.page.sectionInfo.subsectionP2 = params; _satellite.track("dynamicdata"); } </script> </body> </html>