/* ////////////////////////////////////////////////////////////////////////////////////////////// @ 초기설정 ////////////////////////////////////////////////////////////////////////////////////////////// */ /* ////////////////////////////////////////////////////////////////////////////////////////////// @ 이벤트 전처리 ////////////////////////////////////////////////////////////////////////////////////////////// */ $("#link_branch #link_latest").html( my_latest( "theme/slide_thumb", "office", 20, 5 ) ); /* ////////////////////////////////////////////////////////////////////////////////////////////// @ FUNCTION ////////////////////////////////////////////////////////////////////////////////////////////// */ /*************************************** @ 최신글 여러테이블 조회 ***************************************/ function my_latest_more( skin, tables, lines, length ){ var result = ""; $.ajax({ type : "POST", data : { action : "latest_more", params : skin + "|" + tables + "|" + lines + "|" + length }, async: false, url : url_ajax + "/ajax_common.php", dataType : "html", success:function(data){ result = data; }, error : function(request, status, error) { console.log("code:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error); } }); return result; } /*************************************** @ 최신글 단일 테이블 조회 ***************************************/ function my_latest( skin, tables, lines, length ){ var result = ""; $.ajax({ type : "POST", data : { action : "latest", params : skin + "|" + tables + "|" + lines + "|" + length }, async: false, url : url_ajax + "/ajax_common.php", dataType : "html", success:function(data){ result = data; }, error : function(request, status, error) { console.log("code:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error); } }); return result; }