diff --git a/mobile/shop/itemqa.inc.php b/mobile/shop/itemqa.inc.php
deleted file mode 100644
index b290ebe0c..000000000
--- a/mobile/shop/itemqa.inc.php
+++ /dev/null
@@ -1,240 +0,0 @@
-
-
-
- 등록된 상품문의
-
- ";
- //if ($row[iq_answer]) $qa .= "
";
- //$qa = "$qa";
-
- $iq_stats = '';
- $iq_answer = '';
- $iq_flag = 0;
- if ($row['iq_answer'])
- {
- $iq_answer = conv_content($row['iq_answer'],0);
- $iq_stats = '답변완료';
- } else {
- $iq_stats = '답변전';
- $iq_answer = '답변이 등록되지 않았습니다.';
- $iq_flag = 1;
- }
-
- if ($i == 0) echo '';
- ?>
-
- -
-
-
- - 작성자
-
- - 작성일
-
- - 상태
-
-
-
-
-
- 문의내용
-
-
-
- 답변
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- = 0) echo '
';
-
- if (!$i) echo '상품문의가 없습니다.
';
- ?>
-
-
-
-
-
-
-
-
-
-
-
diff --git a/mobile/shop/itemqa.php b/mobile/shop/itemqa.php
new file mode 100644
index 000000000..d2ef00a5f
--- /dev/null
+++ b/mobile/shop/itemqa.php
@@ -0,0 +1,146 @@
+
+
+
+
+ 등록된 상품문의
+
+ ';
+ ?>
+
+
+
+
+ - 작성자
+
+ - 작성일
+
+ - 상태
+
+
+
+
+
+
+ 문의내용
+
+
+
+ 답변
+
+
+
+
+
+
+
+
+
+
+ = 0) echo '';
+
+ if (!$i) echo '상품문의가 없습니다.
';
+ ?>
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/mobile/shop/itemqaform.php b/mobile/shop/itemqaform.php
new file mode 100644
index 000000000..92bf8ccf9
--- /dev/null
+++ b/mobile/shop/itemqaform.php
@@ -0,0 +1,83 @@
+
+
+
+
+
상품문의 쓰기
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/mobile/shop/itemqaformupdate.php b/mobile/shop/itemqaformupdate.php
new file mode 100644
index 000000000..2e5a60402
--- /dev/null
+++ b/mobile/shop/itemqaformupdate.php
@@ -0,0 +1,76 @@
+
diff --git a/mobile/shop/itemqalist.php b/mobile/shop/itemqalist.php
new file mode 100644
index 000000000..cde76f662
--- /dev/null
+++ b/mobile/shop/itemqalist.php
@@ -0,0 +1,170 @@
+
+
+
+전체보기
+
+
+
+
+
+
+
+ ';
+ ?>
+
+
+
+
+
+
+
+
+ - 작성자
+
+ - 작성일
+
+ - 상태
+
+
+
+
+
+ 문의내용
+
+
+
+ 답변
+
+
+
+
+
+
+
+
+ 0) echo '';
+ if ($i == 0) echo '
자료가 없습니다.
';
+ ?>
+
+
+
+
+
+
+
+
diff --git a/mobile/shop/itemuse.php b/mobile/shop/itemuse.php
new file mode 100644
index 000000000..3cb1239d0
--- /dev/null
+++ b/mobile/shop/itemuse.php
@@ -0,0 +1,133 @@
+
+
+
+
+ 등록된 사용후기
+
+ ';
+ ?>
+
+
+
+
+ - 작성자
+
+ - 작성일
+
+ - 선호도
-
+

+
+
+
+
+
+ = 0) echo '';
+
+ if (!$i) echo '사용후기가 없습니다.
';
+ ?>
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/mobile/shop/itemuseform.php b/mobile/shop/itemuseform.php
index 00927b490..5da39b713 100644
--- a/mobile/shop/itemuseform.php
+++ b/mobile/shop/itemuseform.php
@@ -1,104 +1,133 @@
-
-
-
-
-
-
-
-
+
+
+
+
사용후기 쓰기
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/mobile/shop/itemuseformupdate.php b/mobile/shop/itemuseformupdate.php
new file mode 100644
index 000000000..cdbc24f3f
--- /dev/null
+++ b/mobile/shop/itemuseformupdate.php
@@ -0,0 +1,85 @@
+
\ No newline at end of file
diff --git a/mobile/shop/itemuselist.php b/mobile/shop/itemuselist.php
index 5baca346a..88047d512 100644
--- a/mobile/shop/itemuselist.php
+++ b/mobile/shop/itemuselist.php
@@ -1,153 +1,150 @@
-
-
-전체보기
-
-
-
-
-
-
-
- ';
- ?>
-
-
-
-
-
-
-
-
- - 작성자
-
- - 작성일
-
- - 평가점수
- 
-
-
-
-
-
-
-
-
-
-
- 0) echo '';
- if ($i == 0) echo '
자료가 없습니다.
';
- ?>
-
-
-
-
-
-
-
-
-
+
+
+
+전체보기
+
+
+
+
+
+
+
+ ';
+ ?>
+
+
+
+
+
+
+
+
+ - 작성자
+
+ - 작성일
+
+ - 평가점수
+ 
+
+
+
+
+
+
+
+
+
+
+ 0) echo '';
+ if ($i == 0) echo '
자료가 없습니다.
';
+ ?>
+
+
+
+
+
+
+
+
diff --git a/shop/itemqa.php b/shop/itemqa.php
index e9944cc2f..d1d6b75db 100644
--- a/shop/itemqa.php
+++ b/shop/itemqa.php
@@ -1,5 +1,11 @@
1) {
- $str .= '처음'.PHP_EOL;
+ $str .= '처음'.PHP_EOL;
}
$start_page = ( ( (int)( ($cur_page - 1 ) / $write_pages ) ) * $write_pages ) + 1;
@@ -122,21 +127,21 @@ function itemqa_page($write_pages, $cur_page, $total_page, $url, $add="")
if ($end_page >= $total_page) $end_page = $total_page;
- if ($start_page > 1) $str .= '이전'.PHP_EOL;
+ 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;
+ $str .= ''.$k.'페이지'.PHP_EOL;
else
$str .= '열린'.$k.'페이지'.PHP_EOL;
}
}
- if ($total_page > $end_page) $str .= '다음'.PHP_EOL;
+ if ($total_page > $end_page) $str .= '다음'.PHP_EOL;
if ($cur_page < $total_page) {
- $str .= '맨끝'.PHP_EOL;
+ $str .= '맨끝'.PHP_EOL;
}
if ($str)
@@ -145,12 +150,12 @@ function itemqa_page($write_pages, $cur_page, $total_page, $url, $add="")
return "";
}
-echo itemqa_page(10, $page, $total_page, "./itemqa.php?it_id=$it_id&page=", "");
+echo itemqa_page($config['cf_write_pages'], $page, $total_page, "./itemqa.php?it_id=$it_id&page=", "");
?>
@@ -158,6 +163,7 @@ echo itemqa_page(10, $page, $total_page, "./itemqa.php?it_id=$it_id&page=",
$(function(){
$(".itemqa_form").click(function(){
window.open(this.href, "itemqa_form", "width=800,height=500,scrollbars=1");
+ return false;
});
$(".itemqa_delete").click(function(){
@@ -175,9 +181,9 @@ $(function(){
});
});
- $(".pg_page").click(function(){
- //alert($(this).attr("href"));
- $(top.document).find('#itemqa').load($(this).attr("href"));
+ $(".qa_page").click(function(){
+ $("#itemqa").load($(this).attr("href"));
+ return false;
});
});
diff --git a/shop/itemqaform.php b/shop/itemqaform.php
index 92bf8ccf9..df0f27a92 100644
--- a/shop/itemqaform.php
+++ b/shop/itemqaform.php
@@ -1,5 +1,11 @@
+
+
+전체보기
+
+
+
+
+
+
+
+ ';
+ ?>
+
+
+
+
+
+
+
+
+ - 작성자
+
+ - 작성일
+
+ - 상태
+
+
+
+
+
+ 문의내용
+
+
+
+ 답변
+
+
+
+
+
+
+
+
+ 0) echo '';
+ if ($i == 0) echo '
자료가 없습니다.
';
+ ?>
+
+
+
+
+
+
+
+
diff --git a/shop/itemuse.php b/shop/itemuse.php
index 98558c892..8f02a1615 100644
--- a/shop/itemuse.php
+++ b/shop/itemuse.php
@@ -1,5 +1,11 @@
1) {
- $str .= '처음'.PHP_EOL;
+ $str .= '처음'.PHP_EOL;
}
$start_page = ( ( (int)( ($cur_page - 1 ) / $write_pages ) ) * $write_pages ) + 1;
@@ -104,12 +110,12 @@ function itemuse_page($write_pages, $cur_page, $total_page, $url, $add="")
if ($end_page >= $total_page) $end_page = $total_page;
- if ($start_page > 1) $str .= '이전'.PHP_EOL;
+ 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;
+ $str .= ''.$k.'페이지'.PHP_EOL;
else
$str .= '열린'.$k.'페이지'.PHP_EOL;
}
@@ -118,7 +124,7 @@ function itemuse_page($write_pages, $cur_page, $total_page, $url, $add="")
if ($total_page > $end_page) $str .= '다음'.PHP_EOL;
if ($cur_page < $total_page) {
- $str .= '맨끝'.PHP_EOL;
+ $str .= '맨끝'.PHP_EOL;
}
if ($str)
@@ -131,7 +137,7 @@ echo itemuse_page($config['cf_write_pages'], $page, $total_page, "./itemuse.php?
?>
@@ -162,8 +168,8 @@ $(function(){
});
$(".pg_page").click(function(){
- //alert($(this).attr("href"));
- $(top.document).find('#itemuse').load($(this).attr("href"));
+ $("#itemuse").load($(this).attr("href"));
+ return false;
});
});
diff --git a/shop/itemuselist.php b/shop/itemuselist.php
index 9bb249108..aa7069abf 100644
--- a/shop/itemuselist.php
+++ b/shop/itemuselist.php
@@ -17,6 +17,9 @@ include_once('./_head.php');
$sql_common = " from `{$g4['shop_item_use_table']}` a join `{$g4['shop_item_table']}` b on (a.it_id=b.it_id) ";
$sql_search = " where a.is_confirm = '1' ";
+if(!$sfl)
+ $sfl = 'b.it_name';
+
if ($stx) {
$sql_search .= " and ( ";
switch ($sfl) {
@@ -40,11 +43,6 @@ if (!$sst) {
}
$sql_order = " order by $sst $sod ";
-/*
-$sql_common = " from {$g4['shop_item_use_table']} where is_confirm = '1' ";
-$sql_order = " order by is_id desc ";
-*/
-
$sql = " select count(*) as cnt
$sql_common
$sql_search
@@ -64,12 +62,12 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함