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/css/default.css b/css/default.css index a5517bfc7..b779c62d1 100644 --- a/css/default.css +++ b/css/default.css @@ -9,8 +9,9 @@ article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, header ul, nav ul, footer ul {margin:0;padding:0;list-style:none} label, input, select, img {vertical-align:middle} input {margin:0;padding:0;font-family:"dotum"} -p {margin:0;padding:10px 0;line-height:1.5em;word-break:break-all} +p {margin:0;padding:10px 0;line-height:1.7em;word-break:break-all} hr {display:none} +pre {overflow-x:scroll} /* 웹접근성 스킬 --- 기본 block 속성에는 적용 안됨*/ .sound_only {display:inline-block;margin:0;padding:0;width:0;height:0;border:0;overflow:hidden} @@ -246,7 +247,7 @@ table a {color:#000;text-decoration:none} /* 게시판 읽기 */ #bo_v_title {} -#bo_v {position:relative;margin-bottom:30px;border-top:5px solid #666;border-right:1px solid #eee;border-bottom:1px solid #eee;background:#fff} +#bo_v {position:relative;margin-bottom:10px;border-top:5px solid #666;border-right:1px solid #eee;border-bottom:1px solid #eee;background:#fff} #bo_v a {color:#000;text-decoration:none} #bo_v_h1 {padding:20px 20px 10px;font-size:1.2em} #bo_v_info {padding:0 0 15px;border-bottom:1px solid #eee} @@ -282,10 +283,10 @@ table a {color:#000;text-decoration:none} #bo_v_bot {zoom:1} #bo_v_bot:after {display:block;visibility:hidden;clear:both;content:""} #bo_v_bot h2 {margin:0;padding:0;height:0;overflow:hidden} -#bo_v_bot ul {padding:0 20px 15px;list-style:none} -#bo_v_nb {float:left;margin:10px 0} +#bo_v_bot ul {margin:0;padding:0 0 15px;list-style:none} +#bo_v_nb {float:left} #bo_v_nb li {float:left;margin-right:5px} -.bo_v_com {float:right;margin:10px 0} +.bo_v_com {float:right} .bo_v_com li {float:left;margin-left:5px} /* 게시판 댓글 */ @@ -296,7 +297,7 @@ table a {color:#000;text-decoration:none} #bo_vc header:after {display:block;visibility:hidden;clear:both;content:""} #bo_vc header .icon_reply {position:absolute;top:15px;left:-20px} #bo_vc header span {} -#bo_vc h1 {display:inline-block;margin:15px 0 5px} +#bo_vc h1 {display:inline-block;margin:15px 10px 5px 0} #bo_vc a {color:#000;text-decoration:none} #bo_vc p {padding:0 0 5px;line-height:1.8em} #bo_vc fieldset {margin:0 0 10px;padding:0} 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++; -이전검색'; } ?> - -다음검색'; } ?> +