diff --git a/bbs/alert_login.php b/bbs/alert_login.php
new file mode 100644
index 000000000..4e93f9333
--- /dev/null
+++ b/bbs/alert_login.php
@@ -0,0 +1,13 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/lib/common.lib.php b/lib/common.lib.php
index 274271520..0de04ebb0 100644
--- a/lib/common.lib.php
+++ b/lib/common.lib.php
@@ -169,6 +169,21 @@ function alert_close($msg, $error=true)
exit;
}
+
+// 경고메세지 출력후 창을 닫음
+function alert_login($msg, $url)
+{
+ global $g4;
+
+ $header = '';
+ if (isset($g4['title'])) {
+ $header = $g4['title'];
+ }
+ include_once(G4_BBS_PATH.'/alert_login.php');
+ exit;
+}
+
+
// confirm 창
function confirm($msg, $url1='', $url2='', $url3='')
{
diff --git a/shop/item.php b/shop/item.php
index 5f8984d9e..9368e8849 100644
--- a/shop/item.php
+++ b/shop/item.php
@@ -597,9 +597,18 @@ else
상품문의
+
+
+
diff --git a/shop/itemqa.php b/shop/itemqa.php
new file mode 100644
index 000000000..cc30052c6
--- /dev/null
+++ b/shop/itemqa.php
@@ -0,0 +1,198 @@
+
+
+
+ 등록된 상품문의
+
+ ';
+ ?>
+
+
+
+
+ - 작성자
+
+ - 작성일
+
+ - 상태
+
+
+
+
+
+ 문의내용
+
+
+
+ 답변
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - 작성자
+
+ - 작성일
+
+
+
+
+
+
+ = 0) echo '';
+
+ if (!$i) echo '상품문의가 없습니다.
';
+ ?>
+
+
+ 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 itemqa_page(10, $page, $total_page, "./itemqa.php?it_id=$it_id&page=", "");
+?>
+
+
+
+
+
+
\ No newline at end of file
diff --git a/shop/itemqaform.php b/shop/itemqaform.php
new file mode 100644
index 000000000..d9bb2a6be
--- /dev/null
+++ b/shop/itemqaform.php
@@ -0,0 +1,82 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/shop/itemqaformupdate.php b/shop/itemqaformupdate.php
new file mode 100644
index 000000000..b90df62ff
--- /dev/null
+++ b/shop/itemqaformupdate.php
@@ -0,0 +1,70 @@
+
diff --git a/shop/itemqaupdate.php b/shop/itemqaupdate.php
deleted file mode 100644
index c4d31d50c..000000000
--- a/shop/itemqaupdate.php
+++ /dev/null
@@ -1,112 +0,0 @@
-
diff --git a/shop/itemuseform.php b/shop/itemuseform.php
index c6fab9cae..ad24c5ab1 100644
--- a/shop/itemuseform.php
+++ b/shop/itemuseform.php
@@ -10,7 +10,7 @@ $it_id = escape_trim($_REQUEST['it_id']);
$is_id = escape_trim($_REQUEST['is_id']);
if (!$is_member) {
- alert("사용후기는 회원만 평가가 가능합니다.", G4_BBS_URL."/login.php");
+ alert_close("사용후기는 회원만 작성 가능합니다.");
}
if ($w == "") {
diff --git a/shop/itemuseformupdate.php b/shop/itemuseformupdate.php
index b5f71ecf4..9e994f0ef 100644
--- a/shop/itemuseformupdate.php
+++ b/shop/itemuseformupdate.php
@@ -2,7 +2,7 @@
include_once('./_common.php');
if (!$is_member) {
- alert_close("사용후기는 회원만 등록이 가능합니다.");
+ alert_close("사용후기는 회원만 작성이 가능합니다.");
}
$is_subject = trim($_REQUEST['is_subject']);