From 63f654f2cb37effcf52a4d0d0791fe7cf3823990 Mon Sep 17 00:00:00 2001 From: gnuboard Date: Wed, 12 Jun 2013 15:46:09 +0900 Subject: [PATCH] =?UTF-8?q?jQuery=20load=20=ED=95=A8=EC=88=98=EB=A5=BC=20?= =?UTF-8?q?=EC=82=AC=EC=9A=A9=ED=95=98=EC=97=AC=20=EC=82=AC=EC=9A=A9?= =?UTF-8?q?=ED=9B=84=EA=B8=B0(itemuse)=20=EA=B2=8C=EC=8B=9C=ED=8C=90?= =?UTF-8?q?=EC=9D=84=20=EB=85=B8=EC=B6=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shop/item.php | 44 +++++++ shop/itemuse.inc.php | 128 +++++++------------- shop/itemuse.php | 145 +++++++++++++++++++++++ skin/board/itemuse/ajax.filter.php | 72 ----------- skin/board/itemuse/view_comment.skin.php | 2 +- skin/board/itemuse/write.skin.php | 14 ++- 6 files changed, 245 insertions(+), 160 deletions(-) create mode 100644 shop/itemuse.php delete mode 100644 skin/board/itemuse/ajax.filter.php 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 @@ + + +더보기 + +
    번번 - -
    -
    - -
    - - - - - - - 수정 - 삭제 - -
    - -
    - - - - - - -
    -
    + +
    별<?php echo $star; ?>개별<?php echo $use_star; ?>개
    등록된 사용후기가 없습니다.
    + + + + + + + + + + + + + + + + + + + +'; +} +?> +
    번호제목작성자작성일평점
    번 + + + 별<?php echo $use_star; ?>개
    등록된 사용후기가 없습니다.
    + + 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 @@ - \ 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,