diff --git a/css/default_shop.css b/css/default_shop.css index bb1b4fdfd..14d39e867 100644 --- a/css/default_shop.css +++ b/css/default_shop.css @@ -249,6 +249,26 @@ input.required:focus {padding:3px 3px 4px;border:0;background:#21272e !important .frm_info {display:block;padding:5px 0 0;color:#666;line-height:1.3em} +/* 테이블 그리드 padding 0 5px 고려한 넓이 */ +.grid_1 {width:40px} +.grid_2 {width:90px} +.grid_3 {width:140px} +.grid_4 {width:190px} +.grid_5 {width:240px} +.grid_6 {width:290px} +.grid_7 {width:340px} +.grid_8 {width:390px} +.grid_9 {width:440px} +.grid_10 {width:490px} +.grid_11 {width:540px} +.grid_12 {width:590px} +.grid_13 {width:640px} +.grid_14 {width:690px} +.grid_15 {width:740px} +.grid_16 {width:790px} +.grid_17 {width:840px} +.grid_18 {width:890px} + /* 테이블 항목별 정의 */ .td_chk {width:30px;text-align:center} .td_group {width:100px;text-align:center} @@ -414,8 +434,56 @@ input.required:focus {padding:3px 3px 4px;border:0;background:#21272e !important /* ##### maintype(nn).inc.php, list.skin.(nn).php 공통 적용 끝 ##### */ /* 상품 상세보기 */ -.sit_icon {display:inline-block;margin:0 0 0 4px} -.sit_icon img {margin:0 4px 0 0} +#sit {margin:10px 0;border:1px solid #e9e9e9} +.sit_admin {text-align:right} + +/* 상품 상세보기 - 개요 */ +#sit_ov_wrap {margin:0 0 20px;border-bottom:1px solid #e9e9e9;zoom:1} +#sit_ov_wrap:after {display:block;visibility:hidden;clear:both;content:''} + +/* 상품 상세보기 - 이미지 미리보기 */ +#sit_pvi {float:left;padding:15px;width:320px} +#sit_pvi_big {margin:0 0 10px} +#sit_pvi_big img {width:320px;height:320px} +#sit_pvi_thumb {margin:0;padding:0;list-style:none;zoom:1} +#sit_pvi_thumb:after {display:block;visibility:hidden;clear:both;content:''} +#sit_pvi_thumb li {float:left;margin:0 5px 0 0} +#sit_pvi_thumb .li_last {margin:0 !important} +#sit_pvi_thumb img {width:60px;height:60px} + +/* 상품 상세보기 - 간략정보 및 구매기능 */ +#sit_ov {position:relative;float:right;padding:50px 15px 15px;width:358px;height:auto !important;height:355px;min-height:355px;background:#f5f6fa} +#sit_ov h2 {position:absolute;font-size:0;line-height:0;overflow:hidden} + +#sit_title {display:inline-block;margin:0 0 5px;font-size:1.3em} +#sit_desc {display:inline-block;margin:0 0 10px;color:#999} +.sit_icon {display:block;margin:5px 0 0} +.sit_icon img {margin:0 1px 0 0;border:1px solid #fff} + +#sit_star_sns {position:absolute;top:15px;right:15px;color:#b8afa2;font-size:0.95em;letter-spacing:-0.1em} +#sit_star_sns span {display:inline-block;margin:0 5px 0 0;color:#666;letter-spacing:0} +#sit_star_sns .sit_star {position:relative;top:-2px;margin:0 5px 0 0} +#sit_star_sns a {position:relative;top:-2px} + +#sit_ov_tbl {margin-bottom:20px;width:100%;border:0;border-collapse:collapse} +#sit_ov_tbl th {border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;font-weight:normal;text-align:left} +#sit_ov_tbl td {padding:7px 0;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9} +.sit_ov_ro {padding:2px 2px 3px;border:0;background:transparent;text-align:right;vertical-align:middle} +.sit_ov_opt {padding:2px 2px 3px;border:0;background:transparent;vertical-align:middle} +.sit_ov_input {margin:0 1px 0 0;padding:2px 2px 3px;border:1px solid #b8c9c2;background:transparent;vertical-align:middle} +#sit_ov_tbl button {margin:0 1px 0 0} + +#sit_ov_btn {margin:0 0 0 34px !important;margin:0 0 0 33px;padding:0;list-style:none;zoom:1} +#sit_ov_btn:after {display:block;visibility:hidden;clear:both;content:''} +#sit_ov_btn li {float:left;margin:0 0 0 1px} +#sit_ov_btn a {display:inline-block;padding:10px 0 8px;width:80px;font-size:0.95em;text-align:center;text-decoration:none;letter-spacing:-0.1em} +#sit_btn_buy {background:#ff5b89;color:#fff} +#sit_btn_cart, +#sit_btn_wish {background:#555;color:#fff} +#sit_btn_rec {background:#888;color:#fff} + +/* 상품 상세보기 - 다른 상품 보기 */ +#sit_siblings {} /* 공지사항 및 커뮤니티 새글 */ #sidx_lat {padding:15px 0 0;border-top:1px solid #ddd} diff --git a/img/shop/icon_best2.gif b/img/shop/icon_best2.gif index d8eb129a5..41612b174 100644 Binary files a/img/shop/icon_best2.gif and b/img/shop/icon_best2.gif differ diff --git a/img/shop/icon_discount2.gif b/img/shop/icon_discount2.gif index 1b996b841..2b0c178ed 100644 Binary files a/img/shop/icon_discount2.gif and b/img/shop/icon_discount2.gif differ diff --git a/img/shop/icon_hit2.gif b/img/shop/icon_hit2.gif index 900d0c0ea..0cc4cbd2f 100644 Binary files a/img/shop/icon_hit2.gif and b/img/shop/icon_hit2.gif differ diff --git a/img/shop/icon_new2.gif b/img/shop/icon_new2.gif index 9e6f6204c..0ca58625c 100644 Binary files a/img/shop/icon_new2.gif and b/img/shop/icon_new2.gif differ diff --git a/img/shop/icon_rec2.gif b/img/shop/icon_rec2.gif index 1674015f3..0e726e276 100644 Binary files a/img/shop/icon_rec2.gif and b/img/shop/icon_rec2.gif differ diff --git a/img/shop/icon_soldout2.gif b/img/shop/icon_soldout2.gif index a090987f5..08aa25fa9 100644 Binary files a/img/shop/icon_soldout2.gif and b/img/shop/icon_soldout2.gif differ diff --git a/img/shop/s_star1.png b/img/shop/s_star1.png new file mode 100644 index 000000000..1538fc40c Binary files /dev/null and b/img/shop/s_star1.png differ diff --git a/img/shop/s_star2.png b/img/shop/s_star2.png new file mode 100644 index 000000000..f4e553984 Binary files /dev/null and b/img/shop/s_star2.png differ diff --git a/img/shop/s_star3.png b/img/shop/s_star3.png new file mode 100644 index 000000000..6706f6adb Binary files /dev/null and b/img/shop/s_star3.png differ diff --git a/img/shop/s_star4.png b/img/shop/s_star4.png new file mode 100644 index 000000000..7ff12b48d Binary files /dev/null and b/img/shop/s_star4.png differ diff --git a/img/shop/s_star5.png b/img/shop/s_star5.png new file mode 100644 index 000000000..2816c91f1 Binary files /dev/null and b/img/shop/s_star5.png differ diff --git a/img/shop/sns_fb2.png b/img/shop/sns_fb2.png new file mode 100644 index 000000000..8c8db682b Binary files /dev/null and b/img/shop/sns_fb2.png differ diff --git a/img/shop/sns_goo2.png b/img/shop/sns_goo2.png new file mode 100644 index 000000000..c8c4df824 Binary files /dev/null and b/img/shop/sns_goo2.png differ diff --git a/img/shop/sns_twt2.png b/img/shop/sns_twt2.png new file mode 100644 index 000000000..80c97494e Binary files /dev/null and b/img/shop/sns_twt2.png differ diff --git a/lib/shop.lib.php b/lib/shop.lib.php index 4eb5a9c21..f01c51d10 100644 --- a/lib/shop.lib.php +++ b/lib/shop.lib.php @@ -89,7 +89,7 @@ function get_large_image($img, $it_id, $btn_image=true) $height = $size[1]; $str = ''; if ($btn_image) - $str .= '확대보기'; + $str .= '큰이미지'; } else $str = ''; @@ -370,11 +370,11 @@ function get_item_options($subject, $option, $index) // 옵션이 하나일 경우 if (count($arr) == 1) { - $str = $option; + $str = ''; } else { - $str = ''.PHP_EOL; for ($k=0; $k'.$str.''; diff --git a/shop/item.php b/shop/item.php index 5f3fab451..5f735075c 100644 --- a/shop/item.php +++ b/shop/item.php @@ -77,6 +77,9 @@ include G4_SHOP_PATH.'/navigation1.inc.php'; // 이 분류에 속한 하위분류 출력 include G4_SHOP_PATH.'/listcategory.inc.php'; +if ($is_admin) + echo '
상품 관리
'; + $himg = G4_DATA_PATH.'/item/'.$it_id.'_h'; if (file_exists($himg)) echo '
'; @@ -95,9 +98,11 @@ $row = sql_fetch($sql); if ($row['it_id']) { $prev_title = '이전상품보기 '.$row['it_name']; $prev_href = ''; + $prev_href = ''; } else { - $prev_title = '이전상품없음'; + $prev_title = ''; $prev_href = ''; + $prev_href2 = ''; } // 다음 상품보기 @@ -109,11 +114,13 @@ $sql = " select it_id, it_name from {$g4['shop_item_table']} limit 1 "; $row = sql_fetch($sql); if ($row['it_id']) { - $next_title = '다음상품보기 '.$row['it_name']; + $next_title = '다음 상품 '.$row['it_name']; $next_href = ''; + $next_href2 = ''; } else { - $next_title = '다음상품없음'; + $next_title = ''; $next_href = ''; + $next_href2 = ''; } // 관련상품의 갯수를 얻음 @@ -135,536 +142,562 @@ else $action_url = './cartupdate.php'; ?> -
- - - - +
- + + + + + -상품 관리
'; -?> +
+
+ +
+ 새창 +
+ '; + if ($i == 5) $sit_pvi_last = 'class="li_last"'; + echo '
  • '; + if (file_exists(G4_DATA_PATH.'/item/'.$it_id.'_l'.$i)) + { + echo get_large_image($it_id.'_'.$i, $it['it_id'], false); + if ($i==1 && file_exists(G4_DATA_PATH.'/item/'.$it_id.'_s')) + echo ''; + echo '>'; + } + echo '
  • '; + } + if ($i > 1) echo ''; + ?> +
    - -
    - - - "; - echo "  "; + + +
    +

    상품간략정보 및 구매기능

    +
    + + +
    + + 고객선호도 별개 + + 페이스북에 공유 + 트위터에 공유 + 구글플러스에 공유 +
    + + + + + + + + + + + + + + + + + + + + + + '.PHP_EOL; + echo ''.PHP_EOL; + echo ''.PHP_EOL; + echo ''.PHP_EOL; + } + } + ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + */ + ?> + + + + + + + + + + + + + + + + +
    제조사
    원산지
    '.$str.'
    판매가격전화문의
    + 원 +
    + 원 + +
    재고수량 개
    + 점 + +
    수량 + + + +
    + + + + +
    +
    + + + +
    + ?> + - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - "; - echo ""; - echo "\n"; - } - } - ?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ - ?> - - - - - - - - - - - - - - - - -
    고객선호도
    제조사
    원산지
    ".$it["it_opt{$i}_subject"]."$str
    판매가격전화문의
    시중가격'> 원
    판매가격 원 - -
    재고수량: 개
    포 인 트 점 - -
    수 량 - - 개 - - - - -
    - -