diff --git a/adm/auth_list.php b/adm/auth_list.php
index 9f5758b56..ee19eb7b6 100644
--- a/adm/auth_list.php
+++ b/adm/auth_list.php
@@ -103,9 +103,9 @@ $colspan = 5;
continue;
}
- $tr_bg = 'tr_bg'.($i%2);
+ $bg = 'bg'.($i%2);
?>
-
+
|
diff --git a/adm/board_list.php b/adm/board_list.php
index dd7ed5eb2..94b1b1415 100644
--- a/adm/board_list.php
+++ b/adm/board_list.php
@@ -119,10 +119,10 @@ $colspan = 16;
$one_update = '수정';
$one_copy = '복사';
- $tr_bg = 'tr_bg'.($i%2);
+ $bg = 'bg'.($i%2);
?>
- |
+
|
diff --git a/adm/boardgroup_list.php b/adm/boardgroup_list.php
index 673485eb3..4b735294c 100644
--- a/adm/boardgroup_list.php
+++ b/adm/boardgroup_list.php
@@ -125,10 +125,10 @@ $colspan = 11;
$s_upd = '수정';
- $tr_bg = 'tr_bg'.($i%2);
+ $bg = 'bg'.($i%2);
?>
- |
+
|
diff --git a/adm/boardgroupmember_list.php b/adm/boardgroupmember_list.php
index 37549e711..91c61a462 100644
--- a/adm/boardgroupmember_list.php
+++ b/adm/boardgroupmember_list.php
@@ -110,9 +110,9 @@ $colspan = 7;
$mb_nick = get_sideview($row['mb_id'], $row['mb_nick'], $row['mb_email'], $row['mb_homepage']);
- $tr_bg = 'tr_bg'.($i%2);
+ $bg = 'bg'.($i%2);
?>
- |
+
|
diff --git a/adm/mail_list.php b/adm/mail_list.php
index 2ac9d1237..783004d10 100644
--- a/adm/mail_list.php
+++ b/adm/mail_list.php
@@ -57,10 +57,10 @@ $colspan = 7;
$num = number_format($total_count - ($page - 1) * $config['cf_page_rows'] - $i);
- $tr_bg = 'tr_bg'.($i%2);
+ $bg = 'bg'.($i%2);
?>
- |
+
|
|
diff --git a/adm/mail_select_list.php b/adm/mail_select_list.php
index e95ca52a7..615804895 100644
--- a/adm/mail_select_list.php
+++ b/adm/mail_select_list.php
@@ -96,9 +96,9 @@ include_once('./admin.head.php');
$ma_list .= $cr . $row['mb_email'] . "||" . $row['mb_id'] . "||" . $row['mb_name'] . "||" . $row['mb_nick'] . "||" . $row['mb_datetime'];
$cr = "\n";
- $tr_bg = 'tr_bg'.($i%2);
+ $bg = 'bg'.($i%2);
?>
-
+
|
|
|
diff --git a/adm/member_list.php b/adm/member_list.php
index 63595fd2c..830b9231b 100644
--- a/adm/member_list.php
+++ b/adm/member_list.php
@@ -187,7 +187,7 @@ $colspan = 15;
$address = $row['mb_zip1'] ? $row['mb_addr1'].' '.$row['mb_addr2'] : '';
- $tr_bg = 'tr_bg'.($i%2);
+ $bg = 'bg'.($i%2);
switch($row['mb_certify']) {
case 'hp':
@@ -209,7 +209,7 @@ $colspan = 15;
}
?>
-
+
|
@@ -235,7 +235,7 @@ $colspan = 15;
| |
|
-
+
|
Yes':'No'; ?> |
value="1"> |
diff --git a/adm/point_list.php b/adm/point_list.php
index a6ea202ea..d6400b196 100644
--- a/adm/point_list.php
+++ b/adm/point_list.php
@@ -151,10 +151,10 @@ function point_clear()
if($row['po_expired'] == 1)
$expr = ' txt_expired';
- $tr_bg = 'tr_bg'.($i%2);
+ $bg = 'bg'.($i%2);
?>
-
+
|
diff --git a/adm/poll_list.php b/adm/poll_list.php
index 40070ed9a..990fccc57 100644
--- a/adm/poll_list.php
+++ b/adm/poll_list.php
@@ -105,10 +105,10 @@ $colspan = 7;
$s_mod = '수정';
//$s_del = '삭제';
- $tr_bg = 'tr_bg'.($i%2);
+ $bg = 'bg'.($i%2);
?>
- |
+
|
|
diff --git a/adm/popular_list.php b/adm/popular_list.php
index bf5b2feb4..f5cae7110 100644
--- a/adm/popular_list.php
+++ b/adm/popular_list.php
@@ -112,10 +112,10 @@ var list_delete_php = 'popular_list.php';
for ($i=0; $row=sql_fetch_array($result); $i++) {
$word = get_text($row['pp_word']);
- $tr_bg = 'tr_bg'.($i%2);
+ $bg = 'bg'.($i%2);
?>
-
+
|
|
diff --git a/adm/visit_browser.php b/adm/visit_browser.php
index 3c1656a6a..49b2e77d6 100644
--- a/adm/visit_browser.php
+++ b/adm/visit_browser.php
@@ -65,10 +65,10 @@ while ($row=sql_fetch_array($result)) {
$rate = ($count / $sum_count * 100);
$s_rate = number_format($rate, 1);
- $tr_bg = 'tr_bg'.($i%2);
+ $bg = 'bg'.($i%2);
?>
-
+
|
|
diff --git a/adm/visit_date.php b/adm/visit_date.php
index 9f180df30..1b3a5bf4a 100644
--- a/adm/visit_date.php
+++ b/adm/visit_date.php
@@ -56,10 +56,10 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
$rate = ($count / $sum_count * 100);
$s_rate = number_format($rate, 1);
- $tr_bg = 'tr_bg'.($i%2);
+ $bg = 'bg'.($i%2);
?>
- |
+
|
diff --git a/adm/visit_domain.php b/adm/visit_domain.php
index 2c3f9c919..da7d2db55 100644
--- a/adm/visit_domain.php
+++ b/adm/visit_domain.php
@@ -76,9 +76,9 @@ while ($row=sql_fetch_array($result)) {
$rate = ($count / $sum_count * 100);
$s_rate = number_format($rate, 1);
- $tr_bg = 'tr_bg'.($i%2);
+ $bg = 'bg'.($i%2);
?>
-
+
|
|
diff --git a/adm/visit_hour.php b/adm/visit_hour.php
index 5e6cb1922..2e0a692dc 100644
--- a/adm/visit_hour.php
+++ b/adm/visit_hour.php
@@ -55,9 +55,9 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
$rate = ($count / $sum_count * 100);
$s_rate = number_format($rate, 1);
- $tr_bg = 'tr_bg'.($i%2);
+ $bg = 'bg'.($i%2);
?>
- |
+
|
diff --git a/adm/visit_list.php b/adm/visit_list.php
index 200cda1b5..694c449bf 100644
--- a/adm/visit_list.php
+++ b/adm/visit_list.php
@@ -78,9 +78,9 @@ $result = sql_query($sql);
if ($brow == '기타') { $brow = ' '.$brow.''; }
if ($os == '기타') { $os = ' '.$os.''; }
- $tr_bg = 'tr_bg'.($i%2);
+ $bg = 'bg'.($i%2);
?>
-
+
|
|
|
diff --git a/adm/visit_month.php b/adm/visit_month.php
index 6a61e38d4..4e5b95d41 100644
--- a/adm/visit_month.php
+++ b/adm/visit_month.php
@@ -57,10 +57,10 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
$rate = ($count / $sum_count * 100);
$s_rate = number_format($rate, 1);
- $tr_bg = 'tr_bg'.($i%2);
+ $bg = 'bg'.($i%2);
?>
-
+
|
diff --git a/adm/visit_os.php b/adm/visit_os.php
index 936237a72..c0e043683 100644
--- a/adm/visit_os.php
+++ b/adm/visit_os.php
@@ -69,10 +69,10 @@ while ($row=sql_fetch_array($result)) {
$rate = ($count / $sum_count * 100);
$s_rate = number_format($rate, 1);
- $tr_bg = 'tr_bg'.($i%2);
+ $bg = 'bg'.($i%2);
?>
-
+
|
|
diff --git a/adm/visit_search.php b/adm/visit_search.php
index 466d2f711..3408614ed 100644
--- a/adm/visit_search.php
+++ b/adm/visit_search.php
@@ -114,9 +114,9 @@ $listall = '처음'; //페이지 처음
if ($brow == '기타') $brow = ''.$brow.'';
if ($os == '기타') $os = ''.$os.'';
- $tr_bg = 'tr_bg'.($i%2);
+ $bg = 'bg'.($i%2);
?>
- |
+
|
|
|
diff --git a/adm/visit_week.php b/adm/visit_week.php
index d554d9be9..1842feed8 100644
--- a/adm/visit_week.php
+++ b/adm/visit_week.php
@@ -52,10 +52,10 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
$rate = ($count / $sum_count * 100);
$s_rate = number_format($rate, 1);
- $tr_bg = 'tr_bg'.($i%2);
+ $bg = 'bg'.($i%2);
?>
-
+
|
diff --git a/adm/visit_year.php b/adm/visit_year.php
index a176ad681..4bd0f0d9f 100644
--- a/adm/visit_year.php
+++ b/adm/visit_year.php
@@ -57,10 +57,10 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
$rate = ($count / $sum_count * 100);
$s_rate = number_format($rate, 1);
- $tr_bg = 'tr_bg'.($i%2);
+ $bg = 'bg'.($i%2);
?>
-
+
|
diff --git a/bbs/new_delete.php b/bbs/new_delete.php
new file mode 100644
index 000000000..6358d4885
--- /dev/null
+++ b/bbs/new_delete.php
@@ -0,0 +1,142 @@
+ 0 || $count_comment > 0) {
+ sql_query(" update {$g5['board_table']} set bo_count_write = bo_count_write - '$count_write', bo_count_comment = bo_count_comment - '$count_comment' where bo_table = '$bo_table' ");
+ }
+ }
+ }
+ else // 코멘트 삭제
+ {
+ //--------------------------------------------------------------------
+ // 코멘트 삭제시 답변 코멘트 까지 삭제되지는 않음
+ //--------------------------------------------------------------------
+ //print_r2($write);
+
+ $comment_id = $wr_id;
+
+ $len = strlen($write['wr_comment_reply']);
+ if ($len < 0) $len = 0;
+ $comment_reply = substr($write['wr_comment_reply'], 0, $len);
+
+ // 코멘트 삭제
+ if (!delete_point($write['mb_id'], $bo_table, $comment_id, '코멘트')) {
+ insert_point($write['mb_id'], $board['bo_comment_point'] * (-1), "{$board['bo_subject']} {$write[wr_parent]}-{$comment_id} 코멘트삭제");
+ }
+
+ // 코멘트 삭제
+ sql_query(" delete from $write_table where wr_id = '$comment_id' ");
+
+ // 코멘트가 삭제되므로 해당 게시물에 대한 최근 시간을 다시 얻는다.
+ $sql = " select max(wr_datetime) as wr_last from $write_table where wr_parent = '{$write['wr_parent']}' ";
+ $row = sql_fetch($sql);
+
+ // 원글의 코멘트 숫자를 감소
+ sql_query(" update $write_table set wr_comment = wr_comment - 1, wr_last = '$row[wr_last]' where wr_id = '{$write['wr_parent']}' ");
+
+ // 코멘트 숫자 감소
+ sql_query(" update {$g5['board_table']} set bo_count_comment = bo_count_comment - 1 where bo_table = '$bo_table' ");
+
+ // 새글 삭제
+ sql_query(" delete from {$g5['board_new_table']} where bo_table = '$bo_table' and wr_id = '$comment_id' ");
+ }
+}
+
+$save_bo_table = array_unique($save_bo_table);
+foreach ($save_bo_table as $key=>$value) {
+ delete_cache_latest($value);
+}
+
+goto_url("new.php?sfl=$sfl&stx=$stx&page=$page");
+?>
\ No newline at end of file
diff --git a/bbs/write_comment_update.php b/bbs/write_comment_update.php
index f14cf04ce..9c2ac8d7c 100644
--- a/bbs/write_comment_update.php
+++ b/bbs/write_comment_update.php
@@ -27,7 +27,7 @@ if ($is_guest) {
if ($w == "c" || $w == "cu") {
if ($member['mb_level'] < $board['bo_comment_level'])
- alert('댓글를 쓸 권한이 없습니다.');
+ alert('댓글을 쓸 권한이 없습니다.');
}
else
alert('w 값이 제대로 넘어오지 않았습니다.');
@@ -67,12 +67,12 @@ if ($w == 'c') // 댓글 입력
{
/*
if ($member[mb_point] + $board[bo_comment_point] < 0 && !$is_admin)
- alert('보유하신 포인트('.number_format($member[mb_point]).')가 없거나 모자라서 댓글쓰기('.number_format($board[bo_comment_point]).')가 불가합니다.\\n\\n포인트를 적립하신 후 다시 댓글를 써 주십시오.');
+ alert('보유하신 포인트('.number_format($member[mb_point]).')가 없거나 모자라서 댓글쓰기('.number_format($board[bo_comment_point]).')가 불가합니다.\\n\\n포인트를 적립하신 후 다시 댓글을 써 주십시오.');
*/
- // 댓글쓰기 포인트설정시 회원의 포인트가 음수인 경우 댓글를 쓰지 못하던 버그를 수정 (곱슬최씨님)
+ // 댓글쓰기 포인트설정시 회원의 포인트가 음수인 경우 댓글을 쓰지 못하던 버그를 수정 (곱슬최씨님)
$tmp_point = ($member['mb_point'] > 0) ? $member['mb_point'] : 0;
if ($tmp_point + $board['bo_comment_point'] < 0 && !$is_admin)
- alert('보유하신 포인트('.number_format($member['mb_point']).')가 없거나 모자라서 댓글쓰기('.number_format($board['bo_comment_point']).')가 불가합니다.\\n\\n포인트를 적립하신 후 다시 댓글를 써 주십시오.');
+ alert('보유하신 포인트('.number_format($member['mb_point']).')가 없거나 모자라서 댓글쓰기('.number_format($board['bo_comment_point']).')가 불가합니다.\\n\\n포인트를 적립하신 후 다시 댓글을 써 주십시오.');
// 댓글 답변
if ($comment_id)
@@ -264,7 +264,7 @@ else if ($w == 'cu') // 댓글 수정
else
alert('그룹관리자의 권한보다 높은 회원의 댓글이므로 수정할 수 없습니다.');
} else
- alert('자신이 관리하는 그룹의 게시판이 아니므로 댓글를 수정할 수 없습니다.');
+ alert('자신이 관리하는 그룹의 게시판이 아니므로 댓글을 수정할 수 없습니다.');
} else if ($is_admin == 'board') { // 게시판관리자이면
$mb = get_member($comment['mb_id']);
if ($member['mb_id'] == $board['bo_admin']) { // 자신이 관리하는 게시판인가?
@@ -273,7 +273,7 @@ else if ($w == 'cu') // 댓글 수정
else
alert('게시판관리자의 권한보다 높은 회원의 댓글이므로 수정할 수 없습니다.');
} else
- alert('자신이 관리하는 게시판이 아니므로 댓글를 수정할 수 없습니다.');
+ alert('자신이 관리하는 게시판이 아니므로 댓글을 수정할 수 없습니다.');
} else if ($member['mb_id']) {
if ($member['mb_id'] != $comment['mb_id'])
alert('자신의 글이 아니므로 수정할 수 없습니다.');
diff --git a/css/admin.css b/css/admin.css
index 8ac3a4137..c0503bd4d 100644
--- a/css/admin.css
+++ b/css/admin.css
@@ -245,11 +245,8 @@ tbody td {border:1px solid #ececec}
tfoot th, tfoot td {padding:10px 0;border:1px solid #c1d1d5;background:#d7e0e2}
tfoot th {}
tfoot td {font-weight:bold;text-align:center}
-table .tr_bg0 {background:#fff}
-table .tr_bg1 {background:#f0f3f7}
.tbl_wrap {margin:0 0 10px;padding:0 20px}
-.tbl_wrap td.empty_table {padding:100px 0;text-align:center}
/* thead 한 줄 테이블 */
.tbl_head01 {}
@@ -276,6 +273,10 @@ table .tr_bg1 {background:#f0f3f7}
.tbl_frm01 #captcha {margin:0;padding:0;border:0;background:transparent}
.tbl_frm01 #captcha input {margin-left:5px;text-align:center}
+/* 자료 없는 목록 */
+.empty_table {padding:100px 0 !important;text-align:center}
+.empty_list {padding:20px 0 !important;text-align:center}
+
/* 테이블 그리드 */
.grid_1 {width:50px}
.grid_2 {width:100px}
@@ -296,6 +297,15 @@ table .tr_bg1 {background:#f0f3f7}
.grid_17 {width:850px}
.grid_18 {width:900px}
+/* 목록 홀짝 배경색 */
+.bg0 {background:#fff}
+.bg1 {background:#f2f5f9}
+.bg1 td {border-color:#e9e9e9}
+.bg0cancel {background:#fdebf3}
+.bg0cancel td {border-color:#f9d8e6}
+.bg1cancel {background:#fdebf3}
+.bg1cancel td {border-color:#f9d8e6}
+
/* 회원관리 목록 */
.mb_leave_msg {color:#b6b6b6}
.mb_intercept_msg {color:#f59fe4}
diff --git a/skin/new/basic/new.skin.php b/skin/new/basic/new.skin.php
index 2d4e46196..61864db51 100644
--- a/skin/new/basic/new.skin.php
+++ b/skin/new/basic/new.skin.php
@@ -33,10 +33,26 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
+
+
+
+
+
+
\ No newline at end of file
| | | | |