diff --git a/shop/item.php b/shop/item.php
index 229bf1c96..31d1458e1 100644
--- a/shop/item.php
+++ b/shop/item.php
@@ -558,9 +558,53 @@ else
+ function autoResize(id){
+ var newheight;
+ var newwidth;
+
+ if(document.getElementById){
+ newheight=document.getElementById(id).contentWindow.document .body.scrollHeight;
+ newwidth=document.getElementById(id).contentWindow.document .body.scrollWidth;
+ }
+
+ document.getElementById(id).height= (newheight) + "px";
+ document.getElementById(id).width= (newwidth) + "px";
+ }
+
+
+
+ */
+ ?>
+
+
+
+
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,