From ece7bd5274b3a971851f6cae25b7172f7b8929b7 Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 25 Nov 2013 11:24:17 +0900 Subject: [PATCH 1/4] =?UTF-8?q?=EC=82=AC=EC=9A=A9=EC=9E=90=20=EC=A3=BC?= =?UTF-8?q?=EB=AC=B8=EC=83=81=EC=84=B8=EC=97=90=20=EC=B7=A8=EC=86=8C,=20?= =?UTF-8?q?=ED=99=98=EB=B6=88=20=EA=B8=88=EC=95=A1=20=EB=B6=84=EB=A6=AC?= =?UTF-8?q?=ED=95=B4=EC=84=9C=20=ED=91=9C=EC=8B=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mobile/shop/orderinquiryview.php | 12 +++++++++++- shop/orderinquiryview.php | 12 +++++++++++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/mobile/shop/orderinquiryview.php b/mobile/shop/orderinquiryview.php index b73e5937d..687154d86 100644 --- a/mobile/shop/orderinquiryview.php +++ b/mobile/shop/orderinquiryview.php @@ -322,12 +322,22 @@ include_once(G5_MSHOP_PATH.'/_head.php'); { ?> - 취소/환불 금액 + 취소 금액 0) + { + ?> + + 환불 금액 + + + - 취소/환불 금액 + 취소 금액 0) + { + ?> + + 환불 금액 + + + Date: Mon, 25 Nov 2013 12:57:47 +0900 Subject: [PATCH 2/4] =?UTF-8?q?=EC=A0=84=EC=B2=B4=EA=B2=8C=EC=8B=9C?= =?UTF-8?q?=EB=AC=BC=EC=97=90=20=EC=84=A0=ED=83=9D=EC=82=AD=EC=A0=9C=20?= =?UTF-8?q?=EA=B8=B0=EB=8A=A5=EB=84=A3=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/new_delete.php | 130 ++++++++++++++++++++++++++++++++++++ skin/new/basic/new.skin.php | 65 ++++++++++++++++++ 2 files changed, 195 insertions(+) create mode 100644 bbs/new_delete.php diff --git a/bbs/new_delete.php b/bbs/new_delete.php new file mode 100644 index 000000000..d949df1bb --- /dev/null +++ b/bbs/new_delete.php @@ -0,0 +1,130 @@ + 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' "); + } +} + +goto_url("new.php?sfl=$sfl&stx=$stx&page=$page"); +?> diff --git a/skin/new/basic/new.skin.php b/skin/new/basic/new.skin.php index 2d4e46196..30d148fa8 100644 --- a/skin/new/basic/new.skin.php +++ b/skin/new/basic/new.skin.php @@ -33,10 +33,26 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 +
+ + + + + + + + +
+ + + @@ -48,11 +64,18 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 + + + @@ -68,5 +91,47 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
+ + + 그룹 게시판 제목
+ + +
+ +
+ + +
+ +
+ + + + + \ No newline at end of file From 6927ac20a08f72e66c05a98d0c3f645b36d82ed1 Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 25 Nov 2013 13:59:33 +0900 Subject: [PATCH 3/4] =?UTF-8?q?=ED=98=84=EA=B8=88=EC=98=81=EC=88=98?= =?UTF-8?q?=EC=A6=9D=20=EB=93=B1=EB=A1=9D=20=EC=8B=9C=20=ED=99=98=EB=B6=88?= =?UTF-8?q?=EA=B8=88=EC=95=A1=EC=9D=80=20=EB=B9=BC=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shop/taxsave_kcp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shop/taxsave_kcp.php b/shop/taxsave_kcp.php index 10d843b31..4c9648bf5 100644 --- a/shop/taxsave_kcp.php +++ b/shop/taxsave_kcp.php @@ -14,7 +14,7 @@ $goods_name = $goods['full_name']; $trad_time = date("YmdHis"); -$amt_tot = (int)$od['od_receipt_price']; +$amt_tot = (int)($od['od_receipt_price'] - $od['od_refund_price']); $amt_sup = (int)round(($amt_tot * 10) / 11); $amt_svc = 0; $amt_tax = (int)($amt_tot - $amt_sup); From 4210b25657c187f12f5e22150bd0a7a1122e8667 Mon Sep 17 00:00:00 2001 From: gnuboard Date: Mon, 25 Nov 2013 14:59:13 +0900 Subject: [PATCH 4/4] =?UTF-8?q?=EC=83=88=EA=B8=80=EC=97=90=20=EC=84=A0?= =?UTF-8?q?=ED=83=9D=EC=82=AD=EC=A0=9C=20=EA=B8=B0=EB=8A=A5=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/new_delete.php | 16 ++++++++++++++-- skin/new/basic/new.skin.php | 5 +++-- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/bbs/new_delete.php b/bbs/new_delete.php index d949df1bb..6358d4885 100644 --- a/bbs/new_delete.php +++ b/bbs/new_delete.php @@ -7,10 +7,17 @@ if ($is_admin != 'super') alert("최고관리자만 접근이 가능합니다."); $board = array(); +$save_bo_table = array(); for($i=0;$i$value) { + delete_cache_latest($value); +} + goto_url("new.php?sfl=$sfl&stx=$stx&page=$page"); -?> +?> \ No newline at end of file diff --git a/skin/new/basic/new.skin.php b/skin/new/basic/new.skin.php index 30d148fa8..1da307c81 100644 --- a/skin/new/basic/new.skin.php +++ b/skin/new/basic/new.skin.php @@ -73,7 +73,9 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 - + + + @@ -94,7 +96,6 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
-