From 0a64d941e687d41ce757c2cba168ba0e0b878b47 Mon Sep 17 00:00:00 2001 From: whitedot Date: Thu, 24 Jan 2013 16:38:56 +0900 Subject: [PATCH 01/11] =?UTF-8?q?=EC=82=AC=EC=9A=A9=EC=9E=90:=20=EC=9D=B8?= =?UTF-8?q?=EB=8D=B1=EC=8A=A4=20=EC=B5=9C=EC=8B=A0=EA=B8=80=20=EC=99=84?= =?UTF-8?q?=EB=A3=8C=20#173?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/latest.lib.php | 6 +----- main.php | 19 ++++++++++++++----- skin/latest/neo/latest.skin.php | 2 +- 3 files changed, 16 insertions(+), 11 deletions(-) diff --git a/lib/latest.lib.php b/lib/latest.lib.php index d1facaa4f..4692f4f66 100644 --- a/lib/latest.lib.php +++ b/lib/latest.lib.php @@ -2,13 +2,9 @@ if (!defined('_GNUBOARD_')) exit; // 최신글 추출 -function latest($skin_dir='', $bo_table, $rows=10, $subject_len=40, $position='left') +function latest($skin_dir='', $bo_table, $rows=10, $subject_len=40) { global $g4; - static $lt_count=0; - - if ($position == 'right') - $lt_count++; if (!$skin_dir) $skin_dir = 'basic'; $latest_skin_path = skin_path().'/latest/'.$skin_dir; diff --git a/main.php b/main.php index d375e19ec..194ce613d 100644 --- a/main.php +++ b/main.php @@ -12,12 +12,21 @@ include_once('./_head.php'); $sql = " select bo_table from {$g4['board_table']} order by gr_id, bo_table "; $result = sql_query($sql); for ($i=0; $row=sql_fetch_array($result); $i++) { - // 이 함수가 바로 최신글을 추출하는 역할을 합니다. - // 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다. + $lt_style = ""; + if ($i%2==1) $lt_style = "margin-left:20px"; + else $lt_style = ""; +?> +
+ 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다. - // 사용방법 - // latest(스킨, 게시판아이디, 출력라인, 글자수); - echo latest("neo", $row['bo_table'], 5, 25, 'right'); + // 사용방법 + // latest(스킨, 게시판아이디, 출력라인, 글자수); + echo latest("neo", $row['bo_table'], 5, 25); + ?> +
+ diff --git a/skin/latest/neo/latest.skin.php b/skin/latest/neo/latest.skin.php index 77754f150..b99af123b 100644 --- a/skin/latest/neo/latest.skin.php +++ b/skin/latest/neo/latest.skin.php @@ -2,7 +2,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 ?> -
+
    From cb8322e1b6a4ae5362755d30a314b9fd66cc9fcd Mon Sep 17 00:00:00 2001 From: whitedot Date: Thu, 24 Jan 2013 16:46:24 +0900 Subject: [PATCH 02/11] =?UTF-8?q?=EC=82=AC=EC=9A=A9=EC=9E=90:=20=EA=B8=B0?= =?UTF-8?q?=EB=B3=B8=EB=B2=84=ED=8A=BC=EC=8A=A4=ED=83=80=EC=9D=BC=20?= =?UTF-8?q?=EB=B3=B5=EA=B5=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/default.css | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/css/default.css b/css/default.css index a05260172..2fec952e3 100644 --- a/css/default.css +++ b/css/default.css @@ -82,6 +82,17 @@ hr {display:none} /* PC 초기화면 */ #idx_catch {margin-bottom:10px;padding: 25px 0 25px} +/* 버튼 */ +.btn01 {display:inline-block;padding:0 10px;height:24px;border:1px solid #ff5e1c !important;background:#ff4679 !important;color:#fff !important;text-decoration:none;line-height:2.2em} +.btn02 {display:inline-block;padding:0 10px;height:24px;border:1px solid #ccc !important;background:#fafafa !important;color:#000 !important;text-decoration:none;line-height:2.2em} +.btn03 {display:inline-block;padding:0 10px;height:24px;border:1px solid #494949 !important;background:#494949 !important;color:#fff !important;text-decoration:none;line-height:2.2em} +.btn_confirm {text-align:center} /* 서식단계 진행 */ +.btn_submit {padding:0 10px;height:28px;border:0;background:#079cd3;color:#fff;letter-spacing:-0.1em;vertical-align:top} +.btn_cancel {display:inline-block;padding:0 10px;height:26px;border:1px solid #ccc;background:#fafafa;color:#000;text-decoration:none;line-height:2.5em} +.btn_frmline {padding:0 7px 0 5px;height:22px;border:0;background:#ff4679;color:#fff;letter-spacing:-0.1em;vertical-align:top;line-height:2em} +.btn_win {clear:both;margin-bottom:20px;text-align:center} /* 새창용 */ +.btn_win a {display:inline-block;padding:0 10px;height:28px;border:1px solid #ccc;background:#fafafa;color:#000;text-decoration:none;line-height:2.5em;cursor:pointer} + /* ///// 기본테이블 ///// */ table {margin-bottom:20px;width:100%;border-collapse:collapse;border-spacing:0} tfoot th {border-top:1px solid #c9c9c9;border-bottom:1px solid #c9c9c9} @@ -136,7 +147,7 @@ td {padding:8px 5px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9 .ol_pwlabel {position:absolute;top:35px;left:5px;color:#696969;font-size:0.9em} #auto_login {} #auto_login_label {letter-spacing:-0.1em} -#ol_submit {width:60px;height:24px;border:1px solid #d1d1d1;background:#f7f7f2;font-size:0.9em;font-weight:bold;letter-spacing:-0.1em;vertical-align:top} +#ol_submit {width:60px;height:24px;border:1px solid #d1d1d1;background:#f7f7f2;font-size:0.9em;font-weight:bold;vertical-align:top} #ol_before ul {float:right;margin:7px 0 13px;zoom:1} #ol_before ul:after {display:block;visibility:hidden;clear:both;content:""} #ol_before li {float:left;margin-left:5px;padding-top:2px} From d699d59754a6f7855e9cd571535c0a78d92ef313 Mon Sep 17 00:00:00 2001 From: whitedot Date: Thu, 24 Jan 2013 16:49:32 +0900 Subject: [PATCH 03/11] =?UTF-8?q?=EC=82=AC=EC=9A=A9=EC=9E=90:=20=EB=B2=84?= =?UTF-8?q?=ED=8A=BC=20=EB=B0=B0=EA=B2=BD=EC=83=89=20=EB=B3=80=EA=B2=BD=20?= =?UTF-8?q?=EB=B0=8F=20copyright=20=EC=9D=98=20=EB=8F=84=EB=A9=94=EC=9D=B8?= =?UTF-8?q?=20=EC=83=89=EC=83=81=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/default.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/css/default.css b/css/default.css index 2fec952e3..9bb108638 100644 --- a/css/default.css +++ b/css/default.css @@ -76,7 +76,7 @@ hr {display:none} #ft_copy {background:#414141} #ft_copy p {margin:0 auto;width:980px;color:#4a9ab8} -#ft_copy b {color:#079cd3} +#ft_copy b {color:#fff} /* ///// 콘텐츠별 스타일 ///// */ /* PC 초기화면 */ @@ -87,7 +87,7 @@ hr {display:none} .btn02 {display:inline-block;padding:0 10px;height:24px;border:1px solid #ccc !important;background:#fafafa !important;color:#000 !important;text-decoration:none;line-height:2.2em} .btn03 {display:inline-block;padding:0 10px;height:24px;border:1px solid #494949 !important;background:#494949 !important;color:#fff !important;text-decoration:none;line-height:2.2em} .btn_confirm {text-align:center} /* 서식단계 진행 */ -.btn_submit {padding:0 10px;height:28px;border:0;background:#079cd3;color:#fff;letter-spacing:-0.1em;vertical-align:top} +.btn_submit {padding:0 10px;height:28px;border:0;background:#0075b8;color:#fff;letter-spacing:-0.1em;vertical-align:top} .btn_cancel {display:inline-block;padding:0 10px;height:26px;border:1px solid #ccc;background:#fafafa;color:#000;text-decoration:none;line-height:2.5em} .btn_frmline {padding:0 7px 0 5px;height:22px;border:0;background:#ff4679;color:#fff;letter-spacing:-0.1em;vertical-align:top;line-height:2em} .btn_win {clear:both;margin-bottom:20px;text-align:center} /* 새창용 */ From 458dd36f37ee31ef24beb985195f38bde0bb0fea Mon Sep 17 00:00:00 2001 From: whitedot Date: Thu, 24 Jan 2013 17:06:28 +0900 Subject: [PATCH 04/11] =?UTF-8?q?=EC=82=AC=EC=9A=A9=EC=9E=90:=20=EC=B5=9C?= =?UTF-8?q?=EA=B7=BC=EA=B2=8C=EC=8B=9C=EB=AC=BC(new)=EC=8A=A4=ED=82=A8=20?= =?UTF-8?q?=EC=8A=A4=ED=83=80=EC=9D=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/default.css | 13 +++++++++---- skin/new/neo/new.skin.php | 16 +++++++--------- tail.php | 2 +- 3 files changed, 17 insertions(+), 14 deletions(-) diff --git a/css/default.css b/css/default.css index 9bb108638..53c5121e7 100644 --- a/css/default.css +++ b/css/default.css @@ -45,7 +45,7 @@ hr {display:none} /* 중간 레이아웃 */ #wrapper {margin:0 auto;padding-bottom:30px;width:980px;zoom:1} #wrapper:after {display:block;visibility:hidden;clear:both;content:""} -#wrapper_title {font-size:1.2em} +#wrapper_title {margin-bottom:20px;font-size:1.2em} #lnb {float:right;width:220px} #container {float:left;width:730px;zoom:1} #container:after {display:block;visibility:hidden;clear:both;content:""} @@ -100,7 +100,8 @@ tfoot td {border-color:#c9c9c9;background:#f9f9f5;font-weight:bold;text-align:ce caption {padding:0 0 10px;text-align:left} th {padding:12px 0 8px;border-top:3px solid #484848;border-bottom:1px solid #a9a9a9} th input {vertical-align:top} /* middle 로 하면 게시판 읽기에서 목록 사용시 체크박스 라인 깨짐 */ -td {padding:8px 5px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9} +td {padding:8px 5px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;word-break:break-all} +table a {color:#000;text-decoration:none} .empty_table {padding:85px 0;text-align:center} /* 폼 테이블 */ @@ -125,7 +126,7 @@ td {padding:8px 5px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9 .td_board {width:120px;text-align:center} .td_num {width:50px;text-align:center} .td_bignum {width:80px;text-align:center} -.td_mb_id {width:120px;text-align:center} +.td_mb_id {width:100px;text-align:center} .td_nick {width:100px;text-align:center} .td_name {width:100px;text-align:left} .td_name div {position:relative} @@ -174,7 +175,7 @@ td {padding:8px 5px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9 #poll li {padding:3px 0} #poll footer {padding:0 14px 14px;text-align:right} -/* 최근게시물 스킨 */ +/* 최근게시물 스킨 (latest) */ .lt {float:left;margin-bottom:20px;padding:20px;width:314px;height:149px;border-right:1px solid #ececec;border-bottom:1px solid #ececec;background:#fff} .lt ul {margin:0;padding:0;list-style:none} .lt li {padding:3px 0} @@ -183,6 +184,10 @@ td {padding:8px 5px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9 .lt_more {text-align:center} .lt_more a {display:block} +/* 최근게시물 스킨 (new) */ +#new_sch {margin-bottom:10px;text-align:right} +#new_sch legend {width:0;height:0;overflow:hidden} + /* 전체검색결과 스킨 */ #sch_result_detail {margin:0;padding:15px 0;border:0;text-align:right} #sch_result {padding:10px 0 0 0;border-top:1px solid #ddd;background:url('../img/sch_result_bg.jpg') repeat-y} diff --git a/skin/new/neo/new.skin.php b/skin/new/neo/new.skin.php index de1d179ad..d9eb740d3 100644 --- a/skin/new/neo/new.skin.php +++ b/skin/new/neo/new.skin.php @@ -3,17 +3,18 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 ?> -
    -