From ff2705f56c858c7ceb5313191c76389fe2fba4c2 Mon Sep 17 00:00:00 2001 From: chicpro Date: Fri, 25 Jan 2013 16:11:43 +0900 Subject: [PATCH 1/3] =?UTF-8?q?=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EB=93=B1?= =?UTF-8?q?=EB=B9=84=EC=9C=A8=20=EB=A6=AC=EC=82=AC=EC=9D=B4=EC=A6=88=20?= =?UTF-8?q?=EC=8A=A4=ED=81=AC=EB=A6=BD=ED=8A=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- skin/board/neo/view.skin.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/skin/board/neo/view.skin.php b/skin/board/neo/view.skin.php index 3095910fa..a72840ec7 100644 --- a/skin/board/neo/view.skin.php +++ b/skin/board/neo/view.skin.php @@ -197,6 +197,8 @@ function view_image_resize() } else if (img_width <= img_wrap && img_width >= $(this).data("width")) { $(this).removeClass('img_fix'); } + + alert($(this).data("width")); }); } \ No newline at end of file From 46d137f0999a5105e2966aa3b101f3ea4b13a9e6 Mon Sep 17 00:00:00 2001 From: gnuboard Date: Fri, 25 Jan 2013 16:33:54 +0900 Subject: [PATCH 2/3] =?UTF-8?q?=ED=8E=98=EC=9D=B4=EC=A7=95=20=ED=95=A8?= =?UTF-8?q?=EC=88=98=20=EC=9D=B4=EC=A0=90=EA=B3=BC=20=EC=9D=B4=ED=9B=84?= =?UTF-8?q?=EC=97=90=20=EC=BD=94=EB=93=9C=EB=A5=BC=20=EC=B6=94=EA=B0=80?= =?UTF-8?q?=ED=95=A0=EC=88=98=20=EC=9E=88=EB=8A=94=20=ED=95=A8=EC=88=98=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=20page=5Finsertbefore()=20page=5Finsertafter?= =?UTF-8?q?()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/list.php | 9 +++++++-- lib/common.lib.php | 15 +++++++++++++++ skin/board/neo/list.skin.php | 4 +--- 3 files changed, 23 insertions(+), 5 deletions(-) diff --git a/bbs/list.php b/bbs/list.php index 9bef37188..6fbf33a1b 100644 --- a/bbs/list.php +++ b/bbs/list.php @@ -132,14 +132,19 @@ if ($sca || $stx) { //if ($prev_spt >= $min_spt) $prev_spt = $spt - $config['cf_search_part']; - if (isset($min_spt) && $prev_spt >= $min_spt) + if (isset($min_spt) && $prev_spt >= $min_spt) { $prev_part_href = './board.php?bo_table='.$bo_table.$qstr.'&spt='.$prev_spt.'&page=1'; + $write_pages = page_insertbefore($write_pages, '이전검색'); + } $next_spt = $spt + $config['cf_search_part']; - if ($next_spt < 0) + if ($next_spt < 0) { $next_part_href = './board.php?bo_table='.$bo_table.$qstr.'&spt='.$next_spt.'&page=1'; + $write_pages = page_insertafter($write_pages, '다음검색'); + } } + $write_href = ''; if ($member['mb_level'] >= $board['bo_write_level']) { $write_href = './write.php?bo_table='.$bo_table; diff --git a/lib/common.lib.php b/lib/common.lib.php index e07c5e768..13cc891c6 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -51,6 +51,21 @@ function get_paging($write_pages, $cur_page, $total_page, $url, $add="") return ""; } +// 페이징 코드의
태그 다음에 코드를 삽입 +function page_insertbefore($paging_html, $insert_html) +{ + if ($paging_html) { + return preg_replace("/^(]+>]+>)/", '$1'.$insert_html, $paging_html); + } +} + +// 페이징 코드의
태그 이전에 코드를 삽입 +function page_insertafter($paging_html, $insert_html) +{ + if ($paging_html) { + return preg_replace("/(<\/span><\/div>)$/", $insert_html.'$1', $paging_html); + } +} // 변수 또는 배열의 이름과 값을 얻어냄. print_r() 함수의 변형 function print_r2($var) diff --git a/skin/board/neo/list.skin.php b/skin/board/neo/list.skin.php index ade4b2337..b4a95d349 100644 --- a/skin/board/neo/list.skin.php +++ b/skin/board/neo/list.skin.php @@ -156,9 +156,7 @@ if ($is_nogood) $colspan++; -이전검색'; } ?> - -다음검색'; } ?> + \ No newline at end of file