Case Study Database - URBAN SDG KNOWLEDGE PLATFORM '; // html += ' '+array[i].share+' '; html += ' '; html += ' '; html += ' '; html += ' '; $("#case_length").html(array[i].case_total); } $("[name=hash_page]").val(pagingObj.curPage); pagingObj.curPage++; $(".result_box").append( html ); } else { eventScrollExeAt = false; $("#loader img").hide(); $("#case_length").html("0"); } pagingObj.ingAt = false; $("#loader img").hide(); var search = $("#search_value").val(); $('.list_desc').highlight(search); }else{ alert("load error."); return false; } } }); } }, getHashList : function(){ var hash = location.hash; var curPage = getHashValue(hash, "#p", "#h"); var curHeight = getHashValue(hash, "#h", "#e"); var url = '/csd/caseSearch.json;jsessionid=CCC5578081B62E6402920A407D0D667A'; for (var iPage = pagingObj.curPage ; iPage <= curPage ; iPage++) { var ingAt = false; if(!ingAt){ ingAt = true; $("#loader img").show(); $.ajax({ type: "POST", dataType: "json", url: url, async: false, data: $("#caseForm").serialize()+"&page="+iPage, error: function(request, status, error) { alert(status); // 재 정의 필요 }, success: function(result) { if(result.success){ var html = ""; var array = result.returnObj; if(array.length == 0){ $("#loader img").hide(); return; } if(array != null && array.length > 0){ $("#case_length").html(array[0].case_total); for( var i = 0; i < array.length; i++ ) { if ((i+1) % 3 == 0 ) { html += ' '; } else { html += ' '; } html += ' '; html += ' '; if ( array[i].img_main_filename != "" ) { html += " "; } else { html += ' '; } html += ' '; html += ' '; html += ' '; html += ' '+array[i].city+' l '+array[i].country+' '; html += ' '+array[i].title+' '; html += ' '+array[i].summary+' '; html += ' '; html += ' '+ array[i].reg_date +''; html += ' '; html += ' '+array[i].csd_like_count+' '; html += ' '+array[i].csd_comment_count+' '; html += ' '+array[i].hits+' '; html += ' '; html += ' '; html += ' '; html += ' '; $("#case_length").html(array[i].case_total); } $("[name=hash_page]").val(pagingObj.curPage); pagingObj.curPage++; $(".result_box").append( html ); } else { eventScrollExeAt = false; $("#loader img").hide(); $("#case_length").html("0"); } ingAt = false; $("#loader img").hide(); var search = $("#search_value").val(); $('.list_desc').highlight(search); }else{ alert("load error."); return false; } } }); } } pagingObj.ingAt = false; $('html, body').animate({scrollTop : curHeight}, 0); }, reset : function(){ eventScrollExeAt = true; pagingObj.curPage = 1; pagingObj.ingAt = false; $(".result_box").empty(); } } function _isEmpty(str){ if(typeof str == 'undefined' || str == null ) return true; return $.trim(str+"") == "" ? true : false; } function _nvl(str){ return _isEmpty(str) ? "" : str; } function _toDate(str){ return !_isEmpty(str) ? str.substring(0,10) : ""; } function fnCaseSearch(result_orderby){ if (result_orderby == "latest") { $("#latest").addClass("on"); $("#viewed").removeClass("on"); $("#comments").removeClass("on"); } else if (result_orderby == "search") { $("#latest").addClass("on"); $("#viewed").removeClass("on"); $("#comments").removeClass("on"); } else if (result_orderby == "viewed") { $("#latest").removeClass("on"); $("#viewed").addClass("on"); $("#comments").removeClass("on"); } else if (result_orderby == "comments"){ $("#latest").removeClass("on"); $("#viewed").removeClass("on"); $("#comments").addClass("on"); } else{ $("#latest").addClass("on"); $("#viewed").removeClass("on"); $("#comments").removeClass("on") } $("input[name=result_orderby]").val(result_orderby); $("input[name=hash_page]").val("1"); if (result_orderby == "search"){ if($("#search_value").val() == ""){ if ($("input[name=goal]").val() == "" && $("input[name=regions]").val() == "" && $("input[name=themes]").val() == "" && $("input[name=status]").val() == ""){ alert("Please Enter title and Keyword..."); return; } } } $("#case_length").html("0"); pagingObj.reset(); pagingObj.getNextList(); } //엔터이벤트 function onKeyDown() { if(event.keyCode == 13) { fnCaseSearch('latest'); } } function hashBangDecode(str) { return decodeURIComponent(str.replace(/\+/g, " ")); } UPLOAD CASE STUDIES LOGIN JOIN ABOUT Intro. to the platform Organizers Partners CASE STUDY DATABASE SDG NAVIGATOR INFORMATION Cities and the SDGs Feature Articles Other Relevant Platforms Statistics LOCALIZING SDGS About Workshops Training Courses VLR NEWS News Columns Urban SDG Forum PUBLICATIONS LOGIN JOIN ABOUT Intro. to the platform Organizers Partners INFORMATION Cities and the SDGs Feature Articles Other Relevant Platforms Statistics CASE STUDY DATABASE SDG Navigator LOCALIZING SDG About Workshops Training Courses Projects NEWS News Columns Urban SDG Forum PUBLICATIONS All Title Country City Keyword SEARCH HOME CASE STUDY DATABASE CASE STUDY DATABASE All Title Country City Keyword SEARCH FILTER BY + Sustainable Development Goals + Sub-regions ALL East Asia West Asia South Asia North Asia Central Asia Southeast Asia Pacific Northern Africa Sub-Saharan Africa Latin America & the Caribbean Northern America Eastern Europe Western Europe Other + Themes ALL Urban Planning Housing Transport Water & Sanitation Energy Solid Waste Environment & Resilience Governance & Finance Social Inclusive_ ness & Well-Being Economy & Jobs Other + Status ALL Planned Being Implemented Completed SHOWING 0 RESULTS LATEST MOST VIEWED MOST COMMENTS SUBSCRIBE TO OUR NEWSLETTER subscribe > CONTACT NEWSLETTER UNSUBSCRIBE TERMS AND CONDITIONS Copyright ©2017 SEOUL | CityNet | UNESCAP All right reserved.