From 4fe720390282dabd91ceb535cdddda42f7048f5e Mon Sep 17 00:00:00 2001
From: gnuboard
Date: Tue, 11 Jun 2013 11:34:34 +0900
Subject: [PATCH 01/10] =?UTF-8?q?=EC=9D=B4=EC=9A=A9=ED=9B=84=EA=B8=B0?=
=?UTF-8?q?=EB=A5=BC=20=EB=8B=A4=EC=8B=9C=20=EC=82=AC=EC=9A=A9=ED=9B=84?=
=?UTF-8?q?=EA=B8=B0=EB=A1=9C=20=EB=AC=B8=EA=B5=AC=20=EB=B3=80=EA=B2=BD=20?=
=?UTF-8?q?=EB=B0=8F=20=EC=BD=94=EB=93=9C=20=EC=88=98=EC=A0=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
shop/item.php | 4 +-
shop/itemuse.inc.php | 85 +-----
skin/board/itemuse/_common.php | 4 +
skin/board/itemuse/ajax.filter.php | 72 +++++
skin/board/itemuse/img/icon_file.gif | Bin 0 -> 107 bytes
skin/board/itemuse/img/icon_hot.gif | Bin 0 -> 97 bytes
skin/board/itemuse/img/icon_img.gif | Bin 0 -> 145 bytes
skin/board/itemuse/img/icon_link.gif | Bin 0 -> 104 bytes
skin/board/itemuse/img/icon_mobile.gif | Bin 0 -> 62 bytes
skin/board/itemuse/img/icon_movie.gif | Bin 0 -> 110 bytes
skin/board/itemuse/img/icon_new.gif | Bin 0 -> 71 bytes
skin/board/itemuse/img/icon_reply.gif | Bin 0 -> 77 bytes
skin/board/itemuse/img/icon_secret.gif | Bin 0 -> 97 bytes
skin/board/itemuse/img/icon_sound.gif | Bin 0 -> 113 bytes
skin/board/itemuse/list.skin.php | 242 +++++++++++++++++
skin/board/itemuse/style.css | 139 ++++++++++
skin/board/itemuse/view.skin.php | 324 +++++++++++++++++++++++
skin/board/itemuse/view_comment.skin.php | 301 +++++++++++++++++++++
skin/board/itemuse/write.skin.php | 214 +++++++++++++++
19 files changed, 1302 insertions(+), 83 deletions(-)
create mode 100644 skin/board/itemuse/_common.php
create mode 100644 skin/board/itemuse/ajax.filter.php
create mode 100644 skin/board/itemuse/img/icon_file.gif
create mode 100644 skin/board/itemuse/img/icon_hot.gif
create mode 100644 skin/board/itemuse/img/icon_img.gif
create mode 100644 skin/board/itemuse/img/icon_link.gif
create mode 100644 skin/board/itemuse/img/icon_mobile.gif
create mode 100644 skin/board/itemuse/img/icon_movie.gif
create mode 100644 skin/board/itemuse/img/icon_new.gif
create mode 100644 skin/board/itemuse/img/icon_reply.gif
create mode 100644 skin/board/itemuse/img/icon_secret.gif
create mode 100644 skin/board/itemuse/img/icon_sound.gif
create mode 100644 skin/board/itemuse/list.skin.php
create mode 100644 skin/board/itemuse/style.css
create mode 100644 skin/board/itemuse/view.skin.php
create mode 100644 skin/board/itemuse/view_comment.skin.php
create mode 100644 skin/board/itemuse/write.skin.php
diff --git a/shop/item.php b/shop/item.php
index 1adbf2065..91304ff37 100644
--- a/shop/item.php
+++ b/shop/item.php
@@ -162,7 +162,7 @@ function pg_anchor($anc_id) {
?>
- >상품정보
- - >이용후기
+ - >사용후기
- >상품문의
- >배송정보
- >교환정보
@@ -559,7 +559,7 @@ else
- 이용후기
+ 사용후기
-사용후기 쓰기 새 창
-
-
\ No newline at end of file
+
+사용후기 쓰기 새 창
diff --git a/skin/board/itemuse/_common.php b/skin/board/itemuse/_common.php
new file mode 100644
index 000000000..15870801c
--- /dev/null
+++ b/skin/board/itemuse/_common.php
@@ -0,0 +1,4 @@
+
+$g4_path = "../../.."; // common.php 의 상대 경로
+include_once("$g4_path/common.php");
+?>
\ No newline at end of file
diff --git a/skin/board/itemuse/ajax.filter.php b/skin/board/itemuse/ajax.filter.php
new file mode 100644
index 000000000..11a71e34a
--- /dev/null
+++ b/skin/board/itemuse/ajax.filter.php
@@ -0,0 +1,72 @@
+
+include_once("./_common.php");
+
+if (!function_exists('convert_charset'))
+{
+ /*
+ -----------------------------------------------------------
+ Charset 을 변환하는 함수
+ -----------------------------------------------------------
+ iconv 함수가 있으면 iconv 로 변환하고
+ 없으면 mb_convert_encoding 함수를 사용한다.
+ 둘다 없으면 사용할 수 없다.
+ */
+ function convert_charset($from_charset, $to_charset, $str)
+ {
+
+ if( function_exists('iconv') )
+ return iconv($from_charset, $to_charset, $str);
+ elseif( function_exists('mb_convert_encoding') )
+ return mb_convert_encoding($str, $to_charset, $from_charset);
+ else
+ die("Not found 'iconv' or 'mbstring' library in server.");
+ }
+}
+
+header("Content-Type: text/html; charset=$g4[charset]");
+
+$subject = strtolower($_POST['subject']);
+$content = strtolower(strip_tags($_POST['content']));
+
+//euc-kr 일 경우 $config['cf_filter'] 를 utf-8로 변환한다.
+if (strtolower($g4[charset]) == 'euc-kr')
+{
+ //$subject = convert_charset('utf-8', 'cp949', $subject);
+ //$content = convert_charset('utf-8', 'cp949', $content);
+ $config['cf_filter'] = convert_charset('cp949', 'utf-8', $config['cf_filter']);
+}
+
+//$filter = explode(",", strtolower(trim($config['cf_filter'])));
+// strtolower 에 의한 한글 변형으로 아래 코드로 대체 (곱슬최씨님이 알려 주셨습니다.)
+$filter = explode(",", trim($config['cf_filter']));
+for ($i=0; $i
\ No newline at end of file
diff --git a/skin/board/itemuse/img/icon_file.gif b/skin/board/itemuse/img/icon_file.gif
new file mode 100644
index 0000000000000000000000000000000000000000..cca47f566ac0db655fb2ab0f56628b64958e48b2
GIT binary patch
literal 107
zcmZ?wbhEHb-Wqsc#^P~2x#@rVooH@5wHB9i@BozKb;P9uI^*c|UyXO5@>VyLmgEat<
Cr6(f*
literal 0
HcmV?d00001
diff --git a/skin/board/itemuse/img/icon_hot.gif b/skin/board/itemuse/img/icon_hot.gif
new file mode 100644
index 0000000000000000000000000000000000000000..c95b839aeef0c1e26a4bab4ea50cd6d3f1969d7f
GIT binary patch
literal 97
zcmZ?wbhEHbzHen|7VvwFnzUPlarEA
ZqW~YXyUO~T+#YkUoJ%V_>ib05Q5F
AasU7T
literal 0
HcmV?d00001
diff --git a/skin/board/itemuse/img/icon_mobile.gif b/skin/board/itemuse/img/icon_mobile.gif
new file mode 100644
index 0000000000000000000000000000000000000000..ad934d23c440c83db0c4589596465cb087353e01
GIT binary patch
literal 62
zcmZ?wbhEHbZ%
literal 0
HcmV?d00001
diff --git a/skin/board/itemuse/img/icon_reply.gif b/skin/board/itemuse/img/icon_reply.gif
new file mode 100644
index 0000000000000000000000000000000000000000..91c135977b4f445a90c849310dc80efde1983830
GIT binary patch
literal 77
zcmZ?wbhEHb&!1E4^4&ClEzh)PmWxV3{9A~!gB2-%RL5bHcgg3Zp^!+W)H2^A_AxQuL
literal 0
HcmV?d00001
diff --git a/skin/board/itemuse/img/icon_sound.gif b/skin/board/itemuse/img/icon_sound.gif
new file mode 100644
index 0000000000000000000000000000000000000000..c5188318a5cdc394b984125c0ddd376c5f57bbe4
GIT binary patch
literal 113
zcmZ?wbhEHbE1CJY$zMikVi`-#gIi|DbmsXBWf6U5szE@->A`0*`&<;b@XASRrB8=E6~=S>Pbm
I%fes{0AXt-SpWb4
literal 0
HcmV?d00001
diff --git a/skin/board/itemuse/list.skin.php b/skin/board/itemuse/list.skin.php
new file mode 100644
index 000000000..1b38c1a88
--- /dev/null
+++ b/skin/board/itemuse/list.skin.php
@@ -0,0 +1,242 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Total 건
+ 페이지
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/skin/board/itemuse/style.css b/skin/board/itemuse/style.css
new file mode 100644
index 000000000..22cf7fb3f
--- /dev/null
+++ b/skin/board/itemuse/style.css
@@ -0,0 +1,139 @@
+/* 게시판 쓰기 */
+
+/* 게시판 목록 */
+#bo_list_title {margin-bottom:20px;font-size:1.2em;letter-spacing:-0.1em}
+
+#bo_cate h2 {position:absolute;;font-size:0;line-height:0;overflow:hidden}
+#bo_cate ul {margin-bottom:10px;padding-left:1px;width:728px;zoom:1}
+#bo_cate ul:after {display:block;visibility:hidden;clear:both;content:""}
+#bo_cate li {float:left;margin-bottom:-1px}
+#bo_cate a {display:block;position:relative;margin-left:-1px;padding:6px 0 5px;width:90px;border:1px solid #ddd;background:#f7f7f7;color:#888;text-align:center;letter-spacing:-0.1em;line-height:1.2em;cursor:pointer}
+#bo_cate a:focus, #bo_cate a:hover, #bo_cate a:active {text-decoration:none}
+#bo_cate #bo_cate_on {z-index:2;border:1px solid #565e60;background:#fff;color:#565e60;font-weight:bold}
+
+.td_subject img {margin-left:3px}
+
+/* 게시판 목록 공통 */
+.bo_fx {margin-bottom:5px;zoom:1}
+.bo_fx:after {display:block;visibility:hidden;clear:both;content:""}
+.bo_fx ul {margin:0;padding:0;list-style:none}
+#bo_list_total {float:left;padding-top:5px}
+.btn_bo_user {float:right;margin:0;padding:0;list-style:none}
+.btn_bo_user li {float:left;margin-left:5px}
+.btn_bo_adm {float:left}
+.btn_bo_adm li {float:left;margin-right:5px}
+.btn_bo_adm input {padding:0 10px;height:25px;border:1px solid #e8180c !important;background:#e8180c;color:#fff;text-decoration:none;vertical-align:middle;cursor:pointer}
+.bo_notice td {background:#f5f6fa}
+.bo_notice td a {font-weight:bold}
+.td_num strong {color:#000}
+.bo_cate_link {display:inline-block;margin:0 3px 0 0;padding:0 6px 0 0;border-right:1px solid #e7f1ed;color:#999 !important;font-weight:bold;text-decoration:none} /* 글제목줄 분류스타일 */
+.bo_current {color:#e8180c}
+.cnt_cmt {font-weight:bold}
+
+#bo_sch {margin-bottom:10px;padding-top:5px;text-align:center}
+#bo_sch legend {position:absolute;margin:0;padding:0;font-size:0;line-height:0;text-indent:-9999em;overflow:hidden}
+
+/* 게시판 읽기 */
+#bo_v {margin-bottom:20px;padding-bottom:20px}
+
+#bo_v_table {position:absolute;top:0;right:15px;margin:0;padding:0 5px;height:25px;background:#565e60;color:#fff;font-weight:bold;line-height:2.2em}
+
+#bo_v_title {padding:10px 0;font-size:1.2em}
+
+#bo_v_info {padding:0 0 10px;border-bottom:1px solid #ddd}
+#bo_v_info h2 {margin:0;padding:0;height:0;overflow:hidden}
+#bo_v_info strong {display:inline-block;margin:0 15px 0 5px;font-weight:normal}
+#bo_v_info .sv_member,
+#bo_v_info .sv_guest,
+#bo_v_info .member,
+#bo_v_info .guest {font-weight:bold}
+
+#bo_v_file {}
+#bo_v_file h2 {margin:0;padding:0;height:0;overflow:hidden}
+#bo_v_file ul {margin:0;padding:0;list-style:none}
+#bo_v_file li {padding:0 10px;border-bottom:1px solid #eee;background:#f5f6fa}
+#bo_v_file a {display:inline-block;padding:8px 0 7px;width:100%;color:#000;word-wrap:break-word}
+#bo_v_file a:focus, #bo_v_file a:hover, #bo_v_file a:active {text-decoration:none}
+#bo_v_file img {float:left;margin:0 10px 0 0}
+.bo_v_file_cnt {display:inline-block;margin:0 0 3px 22px}
+
+#bo_v_link {}
+#bo_v_link h2 {margin:0;padding:0;height:0;overflow:hidden}
+#bo_v_link ul {margin:0;padding:0;list-style:none}
+#bo_v_link li {padding:0 10px;border-bottom:1px solid #eee;background:#f5f6fa}
+#bo_v_link a {display:inline-block;padding:8px 0 7px;width:100%;color:#000;word-wrap:break-word}
+#bo_v_link a:focus, #bo_v_link a:hover, #bo_v_link a:active {text-decoration:none}
+.bo_v_link_cnt {display:inline-block;margin:0 0 3px 22px}
+
+#bo_v_top {margin:0 0 10px;padding:10px 0;zoom:1}
+#bo_v_top:after {display:block;visibility:hidden;clear:both;content:""}
+#bo_v_top h2 {margin:0;padding:0;height:0;overflow:hidden}
+#bo_v_top ul {margin:0;padding:0;list-style: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 {margin:0;padding:0;list-style:none}
+
+.bo_v_nb {float:left}
+.bo_v_nb li {float:left;margin-right:5px}
+.bo_v_com {float:right}
+.bo_v_com li {float:left;margin-left:5px}
+
+#bo_v_atc {min-height:200px;height:auto !important;height:200px}
+#bo_v_atc_title {position:absolute;font-size:0;line-height:0;overflow:hidden}
+
+#bo_v_img {margin:0 0 10px;width:100%;overflow:hidden:zoom:1}
+#bo_v_img:after {display:block;visibility:hidden;clear:both;content:""}
+#bo_v_img img {margin-bottom:20px;max-width:100%;height:auto}
+
+#bo_v_con {margin-bottom:30px;width:100%;line-height:1.7em;word-break:break-all;overflow:hidden}
+#bo_v_con a {color:#000;text-decoration:underline}
+#bo_v_con img {max-width:100%;height:auto}
+
+#bo_v_act {margin-bottom:30px;text-align:center}
+#bo_v_act a {margin-right:5px;vertical-align:top}
+#bo_v_act span {display:inline-block;margin-right:5px;padding:0 10px;height:23px;border:1px solid #ccc !important;background:#fafafa !important;color:#000 !important;text-decoration:none !important;line-height:2.15em;vertical-align:top}
+#bo_v_act strong {color:#ff3061}
+#bo_v_act_good,
+#bo_v_act_nogood {position:absolute;font-size:0;line-height:0;overflow:hidden}
+
+#bo_v_sns {margin:0 0 20px;padding:0;list-style:none;zoom:1}
+#bo_v_sns:after {display:block;visibility:hidden;clear:both;content:""}
+#bo_v_sns li {float:left;margin:0 5px 0 0}
+
+#bo_v form {padding-top:20px}
+
+/* 게시판 댓글 */
+#bo_vc {padding:20px 20px 10px;border-top:1px solid #cfded8;border-bottom:1px solid #cfded8;background:#f5f6fa}
+#bo_vc h2 {margin-bottom:10px}
+#bo_vc article {padding:0 0 10px;border-top:1px dotted #ccc}
+#bo_vc header {position:relative;padding:15px 0 5px}
+#bo_vc header .icon_reply {position:absolute;top:15px;left:-20px}
+#bo_vc .sv_wrap {margin-right:15px}
+#bo_vc .member, #bo_vc .guest, #bo_vc .sv_member, #bo_vc .sv_guest {font-weight:bold}
+.bo_vc_hdinfo {display:inline-block;margin:0 15px 0 5px}
+#bo_vc h1 {position:absolute;font-size:0;line-height:0;overflow:hidden}
+#bo_vc a {color:#000;text-decoration:none}
+#bo_vc p {padding:0 0 5px;line-height:1.8em}
+#bo_vc p a {text-decoration:underline}
+#bo_vc_empty {margin:0;padding:20px !important;text-align:center}
+#bo_vc fieldset {margin:0 0 10px;padding:0}
+#bo_vc #bo_vc_winfo {float:left}
+#bo_vc footer {zoom:1}
+#bo_vc footer:after {display:block;visibility:hidden;clear:both;content:""}
+
+.bo_vc_act {float:right;margin:0;list-style:none;zoom:1}
+.bo_vc_act:after {display:block;visibility:hidden;clear:both;content:""}
+.bo_vc_act li {float:left;margin-left:5px}
+
+#bo_vc_w {position:relative;margin:0 0 10px;padding:0 0 20px;border-bottom:1px solid #cfded8}
+#bo_vc_w h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
+#bo_vc_w #char_cnt {display:block;margin:0 0 5px}
+
+#bo_vc_sns {margin:0;padding:0;list-style:none;zoom:1}
+#bo_vc_sns:after {display:block;visibility:hidden;clear:both;content:""}
+#bo_vc_sns li {float:left;margin:0 20px 0 0}
+#bo_vc_sns input {margin:0 0 0 5px}
+
+#bo_vc form {padding:0}
\ No newline at end of file
diff --git a/skin/board/itemuse/view.skin.php b/skin/board/itemuse/view.skin.php
new file mode 100644
index 000000000..f033e1315
--- /dev/null
+++ b/skin/board/itemuse/view.skin.php
@@ -0,0 +1,324 @@
+
+
+
+
+
+
+
+
+
+
+ 페이지 정보
+ 작성자
+ 작성일
+ 조회회
+ 댓글건
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 본문
+
+ \n";
+
+ for ($i=0; $i<=count($view['file']); $i++) {
+ if ($view['file'][$i]['view']) {
+ //echo $view['file'][$i]['view'];
+ echo get_view_thumbnail($view['file'][$i]['view']);
+ }
+ }
+
+ echo "\n";
+ }
+ ?>
+
+
+
+
+
+
+
+
+
+
+ 추천
+ 비추천
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/skin/board/itemuse/view_comment.skin.php b/skin/board/itemuse/view_comment.skin.php
new file mode 100644
index 000000000..6086927e5
--- /dev/null
+++ b/skin/board/itemuse/view_comment.skin.php
@@ -0,0 +1,301 @@
+
+
+
+
+
+
+ 댓글목록
+ \]/i", "", $comment);
+ ?>
+
+
+
+ 등록된 댓글이 없습니다.
+
+
+
+
+
+
+
+
diff --git a/skin/board/itemuse/write.skin.php b/skin/board/itemuse/write.skin.php
new file mode 100644
index 000000000..c2cefcd65
--- /dev/null
+++ b/skin/board/itemuse/write.skin.php
@@ -0,0 +1,214 @@
+
+
+
+
+
+
+
+
+
From f957c2842e0e987b676278dded297e97fea572c5 Mon Sep 17 00:00:00 2001
From: whitedot
Date: Wed, 12 Jun 2013 10:31:01 +0900
Subject: [PATCH 02/10] =?UTF-8?q?=EC=8B=9C=EB=A7=A8=ED=8B=B1=EB=A7=88?=
=?UTF-8?q?=ED=81=AC=EC=97=85=20#189=20=EC=88=98=EC=A0=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
css/default_shop.css | 8 +---
shop/boxcommunity.inc.php | 4 +-
shop/boxevent.inc.php | 4 +-
shop/boxtodayview.inc.php | 13 +++---
shop/faq.php | 86 ++++++++++++++++++---------------------
shop/largeimage.php | 2 +-
shop/shop.head.php | 4 +-
7 files changed, 54 insertions(+), 67 deletions(-)
diff --git a/css/default_shop.css b/css/default_shop.css
index 8acb61225..a0721e682 100644
--- a/css/default_shop.css
+++ b/css/default_shop.css
@@ -104,9 +104,7 @@ a:active {color:#000;text-decoration:underline}
.stv_item {display:none;text-align:center}
.stv_item img {margin:5px 0}
-#stv_nb {border-top:1px solid #e9e9e9;background:#f5f6fa}
-#stv_nb h3 {position:absolute;font-size:0;line-height:0;overflow:hidden}
-#stv_nb ul {margin:0;padding:0;list-style:none}
+#stv_nb {margin:0;padding:0;border-top:1px solid #e9e9e9;background:#f5f6fa;list-style:none}
#stv_nb li {text-align:center}
#stv_nb a {display:block}
@@ -754,11 +752,9 @@ input.required:focus {border:1px solid #b8c9c2;background:#21272e !important;col
.socc_img {text-align:center}
/* FAQ 관리 */
-#sfaq {}
-.sfaq_admin {text-align:right}
-#sfaq header h1 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#sfaq_wrap {margin:10px 0}
#sfaq_wrap h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
+.sfaq_admin {text-align:right}
#sfaq_wrap ol {margin:0;padding:0;list-style:none}
#sfaq_list {margin:0 0 10px;border:1px solid #ccc}
#sfaq_list li {border-bottom:1px solid #fff;background:#f5f6fa}
diff --git a/shop/boxcommunity.inc.php b/shop/boxcommunity.inc.php
index 098345d03..c20f8263f 100644
--- a/shop/boxcommunity.inc.php
+++ b/shop/boxcommunity.inc.php
@@ -2,7 +2,7 @@
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
-
+
\ No newline at end of file
+
\ No newline at end of file
diff --git a/shop/boxevent.inc.php b/shop/boxevent.inc.php
index 221486e30..a9c3d7ddd 100644
--- a/shop/boxevent.inc.php
+++ b/shop/boxevent.inc.php
@@ -2,7 +2,7 @@
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
-
+
\ No newline at end of file
+
\ No newline at end of file
diff --git a/shop/boxtodayview.inc.php b/shop/boxtodayview.inc.php
index 4e6aeccb1..4a6a6e98f 100644
--- a/shop/boxtodayview.inc.php
+++ b/shop/boxtodayview.inc.php
@@ -84,14 +84,11 @@ $tv_div['img_length'] = 3; // 한번에 보여줄 이미지 수
-
+
+
+
+ */
+ ?>
+
+
+
+
diff --git a/shop/itemuse.inc.php b/shop/itemuse.inc.php
index a9747138a..55a3a6de5 100644
--- a/shop/itemuse.inc.php
+++ b/shop/itemuse.inc.php
@@ -1,8 +1,14 @@
+더보기
+
@@ -14,7 +20,15 @@ include_once(G4_LIB_PATH.'/thumb.lib.php');
]+>#iS", "g4_thumb", $is_content);
-
- $thumb = new g4_thumb(G4_DATA_PATH.'/itemuse', 500);
- $is_content = $thumb->run($is_content);
-
- $is_time = substr($row['is_time'], 2, 14);
+ // http://stackoverflow.com/questions/6967081/show-hide-multiple-divs-with-jquery?answertab=votes#tab-top
?>
- -
-
-
- - 작성자
-
- - 작성일
-
- - 상태
-
-
-
-
-
- 문의내용
-
-
-
- 답변
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- | 번 |
+ 번 |
-
-
-
-
-
-
-
-
-
-
-
- 수정
- 삭제
-
-
-
-
-
+
+
+
|
- |
- |
-  |
+ |
+ |
+  |
-
+등록된 사용후기가 없습니다. | ';
}
?>
@@ -132,9 +81,16 @@ if (!$i)
if ($use_pages) {
$use_pages = get_paging(10, $use_page, $use_total_page, "./item.php?it_id=$it_id&$qstr&use_page=", "#use");
}
-
-$itemuse_write = G4_BBS_URL.'/write.php?bo_table=itemuse&wr_1='.$it_id.'&wr_2='.urlencode($it_name);
?>
사용후기 쓰기 새 창
+
+
diff --git a/shop/itemuse.php b/shop/itemuse.php
new file mode 100644
index 000000000..195cdabb9
--- /dev/null
+++ b/shop/itemuse.php
@@ -0,0 +1,145 @@
+
+
+더보기
+
+
+
+
+ | 번호 |
+ 제목 |
+ 작성자 |
+ 작성일 |
+ 평점 |
+
+
+
+
+
+ | 번 |
+
+
+
+
+
+ |
+ |
+ |
+  |
+
+
+등록된 사용후기가 없습니다. | ';
+}
+?>
+
+
+ 1) {
+ $str .= '처음'.PHP_EOL;
+ }
+
+ $start_page = ( ( (int)( ($cur_page - 1 ) / $write_pages ) ) * $write_pages ) + 1;
+ $end_page = $start_page + $write_pages - 1;
+
+ if ($end_page >= $total_page) $end_page = $total_page;
+
+ if ($start_page > 1) $str .= '이전'.PHP_EOL;
+
+ if ($total_page > 1) {
+ for ($k=$start_page;$k<=$end_page;$k++) {
+ if ($cur_page != $k)
+ $str .= ''.$k.'페이지'.PHP_EOL;
+ else
+ $str .= '열린'.$k.'페이지'.PHP_EOL;
+ }
+ }
+
+ if ($total_page > $end_page) $str .= '다음'.PHP_EOL;
+
+ if ($cur_page < $total_page) {
+ $str .= '맨끝'.PHP_EOL;
+ }
+
+ if ($str)
+ return "";
+ else
+ return "";
+}
+
+echo itemuse_page(10, $page, $total_page, "./itemuse.php?it_id=$it_id&page=", "");
+?>
+
+
+사용후기 쓰기 새 창
+
+
+
+
\ No newline at end of file
diff --git a/skin/board/itemuse/ajax.filter.php b/skin/board/itemuse/ajax.filter.php
deleted file mode 100644
index 11a71e34a..000000000
--- a/skin/board/itemuse/ajax.filter.php
+++ /dev/null
@@ -1,72 +0,0 @@
-
-include_once("./_common.php");
-
-if (!function_exists('convert_charset'))
-{
- /*
- -----------------------------------------------------------
- Charset 을 변환하는 함수
- -----------------------------------------------------------
- iconv 함수가 있으면 iconv 로 변환하고
- 없으면 mb_convert_encoding 함수를 사용한다.
- 둘다 없으면 사용할 수 없다.
- */
- function convert_charset($from_charset, $to_charset, $str)
- {
-
- if( function_exists('iconv') )
- return iconv($from_charset, $to_charset, $str);
- elseif( function_exists('mb_convert_encoding') )
- return mb_convert_encoding($str, $to_charset, $from_charset);
- else
- die("Not found 'iconv' or 'mbstring' library in server.");
- }
-}
-
-header("Content-Type: text/html; charset=$g4[charset]");
-
-$subject = strtolower($_POST['subject']);
-$content = strtolower(strip_tags($_POST['content']));
-
-//euc-kr 일 경우 $config['cf_filter'] 를 utf-8로 변환한다.
-if (strtolower($g4[charset]) == 'euc-kr')
-{
- //$subject = convert_charset('utf-8', 'cp949', $subject);
- //$content = convert_charset('utf-8', 'cp949', $content);
- $config['cf_filter'] = convert_charset('cp949', 'utf-8', $config['cf_filter']);
-}
-
-//$filter = explode(",", strtolower(trim($config['cf_filter'])));
-// strtolower 에 의한 한글 변형으로 아래 코드로 대체 (곱슬최씨님이 알려 주셨습니다.)
-$filter = explode(",", trim($config['cf_filter']));
-for ($i=0; $i
\ No newline at end of file
diff --git a/skin/board/itemuse/view_comment.skin.php b/skin/board/itemuse/view_comment.skin.php
index 6086927e5..c66d0d934 100644
--- a/skin/board/itemuse/view_comment.skin.php
+++ b/skin/board/itemuse/view_comment.skin.php
@@ -175,7 +175,7 @@ var char_max = parseInt(); // 최대
var subject = "";
var content = "";
$.ajax({
- url: g4_bbs_url+"/filter.ajax.php",
+ url: g4_bbs_url+"/ajax.filter.php",
type: "POST",
data: {
"subject": "",
diff --git a/skin/board/itemuse/write.skin.php b/skin/board/itemuse/write.skin.php
index c2cefcd65..44030627d 100644
--- a/skin/board/itemuse/write.skin.php
+++ b/skin/board/itemuse/write.skin.php
@@ -1,5 +1,17 @@
@@ -175,7 +187,7 @@ function fwrite_submit(f)
var subject = "";
var content = "";
$.ajax({
- url: g4_bbs_url+"/filter.ajax.php",
+ url: g4_bbs_url+"/ajax.filter.php",
type: "POST",
data: {
"subject": f.wr_subject.value,
From 1455af54b847fe301cb6737d0f8e6aced3206493 Mon Sep 17 00:00:00 2001
From: whitedot
Date: Wed, 12 Jun 2013 16:12:04 +0900
Subject: [PATCH 08/10] =?UTF-8?q?=EC=87=BC=ED=95=91=EB=AA=B0:=20#220=20?=
=?UTF-8?q?=EC=A3=BC=EB=AC=B8=20=EC=BF=A0=ED=8F=B0=20=EA=B8=B0=EB=8A=A5=20?=
=?UTF-8?q?=EB=A7=88=ED=81=AC=EC=97=85=20=EC=A4=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
css/default_shop.css | 51 +++++++++++++------------------
shop/cart.php | 2 --
shop/orderform.php | 6 ++--
shop/orderitemcoupon.php | 65 +++++++++++++++++++++++-----------------
4 files changed, 60 insertions(+), 64 deletions(-)
diff --git a/css/default_shop.css b/css/default_shop.css
index a0721e682..6b83210f9 100644
--- a/css/default_shop.css
+++ b/css/default_shop.css
@@ -193,37 +193,30 @@ a.sanchor_on {background:#626870;color:#fff !important;text-decoration:none}
.cnt_cmt {display:inline-block;margin:0 0 0 3px;font-weight:bold}
/* 버튼 */
.btn01 {display:inline-block;padding:0 10px;height:23px;border:1px solid #ccc !important;background:#fafafa !important;color:#000 !important;text-decoration:none !important;line-height:2.15em;vertical-align:middle}
-.btn01:focus,
-.btn01:hover {text-decoration:none !important}
+.btn01:focus, .btn01:hover {text-decoration:none !important}
.btn02 {display:inline-block;padding:0 10px;height:23px;border:1px solid #333 !important;background:#333 !important;color:#fff !important;text-decoration:none !important;line-height:2.15em;vertical-align:middle}
-.btn02:focus,
-.btn02:hover {text-decoration:none !important}
+.btn02:focus, .btn02:hover {text-decoration:none !important}
.btn_confirm {text-align:center} /* 서식단계 진행 */
.btn_submit {padding:0 10px;height:24px;border:0;background:#333;color:#fff;letter-spacing:-0.1em;vertical-align:top;cursor:pointer}
button.btn_submit {height:22px !important;font-size:1em}
fieldset .btn_submit {height:22px;font-size:1em}
-.btn_cancel {display:inline-block;padding:0 10px;height:22px;border:1px solid #ccc;background:#fafafa;line-height:2em}
-button.btn_cancel {display:inline-block;padding:0 10px;height:24px;border:1px solid #ccc;background:#fafafa;line-height:2em}
-.btn_cancel:focus,
-.btn_cancel:hover {text-decoration:none !important}
+.btn_cancel {display:inline-block;padding:0 10px;height:22px;border:1px solid #ccc;background:#fafafa;line-height:2em;cursor:pointer}
+button.btn_cancel {display:inline-block;padding:0 10px;height:22px;border:1px solid #ccc;background:#fafafa;line-height:1.9em}
+.btn_cancel:focus, .btn_cancel:hover {text-decoration:none !important}
.btn_frmline {display:inline-block;padding:0 7px 0 5px;height:22px;border:0;background:#333;color:#fff !important;letter-spacing:-0.1em;text-decoration:none;vertical-align:top;line-height:2em} /* 우편번호검색버튼 등 */
.btn_frmline2 {display:inline-block;padding:0 7px 0 5px;height:20px;border:1px solid #e9e9e9;background:#f5f6fa;color:#ff3061 !important;letter-spacing:-0.1em;text-decoration:none;vertical-align:top;line-height:1.7em}
-button.btn_frmline {font-size:1em}
+button.btn_frmline {font-size:1em;cursor:pointer}
+button.btn_frmline2 {font-size:1em;cursor:pointer}
.btn_win {clear:both;margin-bottom:20px;text-align:center} /* 새창용 */
-.btn_win a,
-.btn_win button {display:inline-block;padding:0 10px;height:22px;border:1px solid #ccc;background:#fafafa;line-height:2em;cursor:pointer}
-.btn_win a:focus,
-.btn_win a:hover {text-decoration:none}
+.btn_win a, .btn_win button {display:inline-block;padding:0 10px;height:22px;border:1px solid #ccc;background:#fafafa;line-height:2em;cursor:pointer}
+.btn_win a:focus, .btn_win a:hover {text-decoration:none}
/* 게시판용 버튼 */
.btn_b01 {display:inline-block;padding:0 10px;height:23px;border:1px solid #eee !important;background:#fafafa !important;color:#000 !important;text-decoration:none !important;line-height:2.15em;vertical-align:middle}
-.btn_b01:focus,
-.btn_b01:hover {text-decoration:none !important}
+.btn_b01:focus, .btn_b01:hover {text-decoration:none !important}
.btn_b02 {display:inline-block;padding:0 10px;height:23px;border:1px solid #eee !important;background:#fafafa !important;color:#000 !important;text-decoration:none !important;line-height:2.15em;vertical-align:middle}
-.btn_b02:focus,
-.btn_b02:hover {text-decoration:none !important}
+.btn_b02:focus, .btn_b02:hover {text-decoration:none !important}
.btn_admin {display:inline-block;padding:0 10px;height:23px;border:1px solid #e8180c !important;background:#e8180c !important;color:#fff !important;text-decoration:none !important;line-height:2.15em;vertical-align:middle} /* 관리자 전용 버튼 */
-.btn_admin:focus,
-.btn_admin:hover {text-decoration:none !important}
+.btn_admin:focus, .btn_admin:hover {text-decoration:none !important}
/* 기본테이블 */
.basic_tbl {margin-bottom:10px;width:100%;border-collapse:collapse;border-spacing:0}
@@ -314,25 +307,18 @@ input.required:focus {border:1px solid #b8c9c2;background:#21272e !important;col
.sv_wrap {display:inline-block;position:relative;font-weight:normal}
.sv_wrap .sv {z-index:1000;display:none;margin:5px 0 0;border:1px solid #283646;background:#111}
.sv_wrap .sv a {display:inline-block !important;margin:0 !important;padding:3px !important;width:94px;border-bottom:1px solid #283646;color:#fff !important}
-.sv_wrap a:focus,
-.sv_wrap a:hover,
-.sv_wrap a:active {text-decoration:none !important}
+.sv_wrap a:focus, .sv_wrap a:hover, .sv_wrap a:active {text-decoration:none !important}
.sv_on {display:block !important;position:absolute;top:10px;left:20px;width:auto;height:auto !important}
.sv_nojs .sv {display:block}
/* pagination */
.pg_wrap {clear:both;margin:0 0 20px;padding-top:20px;text-align:center}
.pg {display:inline-block;border:1px solid #cfded8;letter-spacing:-4px}
-.pg a:focus,
-.pg a:hover,
-.pg a:active {text-decoration:none}
-.pg_page,
-.pg_current {display:inline-block;padding:0 12px;height:30px;color:#000;letter-spacing:0;line-height:2.6em;vertical-align:middle}
+.pg a:focus, .pg a:hover, .pg a:active {text-decoration:none}
+.pg_page, .pg_current {display:inline-block;padding:0 12px;height:30px;color:#000;letter-spacing:0;line-height:2.6em;vertical-align:middle}
.pg_page {background:#f9f9f9;text-decoration:none}
-.pg_start,
-.pg_prev {border-right:1px solid #cfded8}
-.pg_end,
-.pg_next {border-left:1px solid #cfded8}
+.pg_start, .pg_prev {border-right:1px solid #cfded8}
+.pg_end, .pg_next {border-left:1px solid #cfded8}
.pg_current {background:#333;color:#fff;font-weight:bold}
/* ########## 쇼핑몰 컨텐츠 ########## */
@@ -664,6 +650,9 @@ input.required:focus {border:1px solid #b8c9c2;background:#21272e !important;col
#sod_frm {}
#sod_frm h2 {margin:0 0 10px}
+#sod_list {position:relative}
+#sod_list #it_coupon_frm {z-index:10000;position:absolute;top:0;left:99px;padding:20px;width:500px;height:auto !important;height:500px;max-height:500px;border:1px solid #000;background:#f5f6fa;overflow-y:scroll}
+
#sod_frm_orderer {margin:20px 0 40px}
#sod_frm_same {margin:0 0 10px}
diff --git a/shop/cart.php b/shop/cart.php
index 6a8e4d132..556140bd1 100644
--- a/shop/cart.php
+++ b/shop/cart.php
@@ -222,8 +222,6 @@ $(function() {
var $this = $(this);
close_btn_idx = $(".mod_options").index($(this));
- winMask(); // 모달 윈도우 배경 출력
-
$.post(
"./cartoption.php",
{ it_id: it_id },
diff --git a/shop/orderform.php b/shop/orderform.php
index 06f739b04..5acbfa595 100644
--- a/shop/orderform.php
+++ b/shop/orderform.php
@@ -112,7 +112,7 @@ setTimeout("init_pay_button();",300);
+ 사용할 수 있는 쿠폰이 없습니다.
';
+ }
+ ?>
+
+
0) { ?>
-
+
\ No newline at end of file
diff --git a/shop/orderitemcoupon.php b/shop/orderitemcoupon.php
index f34f0894b..73d0eed46 100644
--- a/shop/orderitemcoupon.php
+++ b/shop/orderitemcoupon.php
@@ -44,8 +44,6 @@ $count = mysql_num_rows($result);
0) { ?>
쿠폰 선택
-
-
| 쿠폰명 |
@@ -71,7 +69,7 @@ $count = mysql_num_rows($result);
-
+
|
|
@@ -83,7 +81,7 @@ $count = mysql_num_rows($result);
사용할 수 있는 쿠폰이 없습니다.';
}
?>
diff --git a/shop/ordersendcostcoupon.php b/shop/ordersendcostcoupon.php
index 9e83ac44d..0e61a62be 100644
--- a/shop/ordersendcostcoupon.php
+++ b/shop/ordersendcostcoupon.php
@@ -22,48 +22,55 @@ $count = mysql_num_rows($result);
\ No newline at end of file