diff --git a/adm/shop_admin/categoryform.php b/adm/shop_admin/categoryform.php
index 2f7075ce4..dd2dc690c 100644
--- a/adm/shop_admin/categoryform.php
+++ b/adm/shop_admin/categoryform.php
@@ -54,11 +54,15 @@ if ($w == "")
$ca['ca_explan_html'] = 1;
$ca['ca_img_width'] = $default['de_mimg_width'];
$ca['ca_img_height'] = $default['de_mimg_height'];
+ $ca['ca_mobile_img_width'] = $default['de_mimg_width'];
+ $ca['ca_mobile_img_height'] = $default['de_mimg_height'];
$ca['ca_list_mod'] = 3;
$ca['ca_list_row'] = 5;
+ $ca['ca_mobile_list_row'] = 3;
$ca['ca_stock_qty'] = 99999;
}
$ca['ca_skin'] = "list.skin.10.php";
+ $ca['ca_mobile_skin'] = "list.skin.10.php";
}
else if ($w == "u")
{
@@ -81,6 +85,15 @@ if (!isset($ca['ca_mobile_skin'])) {
ADD `ca_mobile_tail_html` TEXT NOT NULL AFTER `ca_mobile_head_html` ", false);
}
+// 인증사용필드추가
+$sql = " select ca_hp_cert_use from {$g4['shop_category_table']} limit 1 ";
+$result = sql_query($sql, false);
+if(!$result) {
+ sql_query(" ALTER TABLE `{$g4['shop_category_table']}`
+ ADD `ca_hp_cert_use` TINYINT(4) NOT NULL DEFAULT '0' AFTER `ca_mb_id`,
+ ADD `ca_adult_cert_use` TINYINT(4) NOT NULL DEFAULT '0' AFTER `ca_hp_cert_use` ", false);
+}
+
$qstr = 'page='.$page.'&sort1='.$sort1.'&sort2='.$sort2;
$g4['title'] = $html_title;
@@ -143,6 +156,24 @@ $pg_anchor .= '';
+
|
diff --git a/adm/shop_admin/categoryformupdate.php b/adm/shop_admin/categoryformupdate.php
index a733b8625..a362104bc 100644
--- a/adm/shop_admin/categoryformupdate.php
+++ b/adm/shop_admin/categoryformupdate.php
@@ -78,7 +78,9 @@ $sql_common = " ca_skin = '$ca_skin',
ca_tail_html = '$ca_tail_html',
ca_include_head = '$ca_include_head',
ca_include_tail = '$ca_include_tail',
- ca_mb_id = '$ca_mb_id' ";
+ ca_mb_id = '$ca_mb_id',
+ ca_hp_cert_use = '$ca_hp_cert_use',
+ ca_adult_cert_use = '$ca_adult_cert_use' ";
if ($w == "")
@@ -141,10 +143,6 @@ else if ($w == "d")
if ($str)
alert("이 분류와 관련된 상품이 총 {$i} 건 존재하므로 상품을 삭제한 후 분류를 삭제하여 주십시오.\\n\\n$str");
- // 분류 On, Off 이미지 삭제
- @unlink("{$g4['category_path']}/$ca_id"."_1");
- @unlink("{$g4['category_path']}/$ca_id"."_0");
-
// 상, 하단 이미지 삭제
@unlink("{$g4['category_path']}/$ca_id"."_h");
@unlink("{$g4['category_path']}/$ca_id"."_t");
@@ -158,9 +156,6 @@ $qstr = "page=$page&sort1=$sort1&sort2=$sort2";
if ($w == "" || $w == "u")
{
- if ($_FILES['ca_image1']['name']) upload_file($_FILES['ca_image1']['tmp_name'], $ca_id."_1", $g4['category_path']);
- if ($_FILES['ca_image0']['name']) upload_file($_FILES['ca_image0']['tmp_name'], $ca_id."_0", $g4['category_path']);
-
if ($_FILES['ca_himg']['name']) upload_file($_FILES['ca_himg']['tmp_name'], $ca_id."_h", $g4['category_path']);
if ($_FILES['ca_timg']['name']) upload_file($_FILES['ca_timg']['tmp_name'], $ca_id."_t", $g4['category_path']);
diff --git a/adm/shop_admin/item_copy_update.php b/adm/shop_admin/item_copy_update.php
index 152677014..10e664782 100644
--- a/adm/shop_admin/item_copy_update.php
+++ b/adm/shop_admin/item_copy_update.php
@@ -38,23 +38,6 @@ $sql = " insert {$g4['shop_item_table']}
$sql_common ";
sql_query($sql);
-$img_path = G4_DATA_PATH."/item/";
-
-for($i=1; $i<6; $i++) {
- $limg = $it_id."_l".$i;
- if(is_file($img_path.$limg))
- copy($img_path.$limg,$img_path.$new_it_id."_l".$i);
-
-}
-
-$simg = $it_id."_s";
-if(is_file($img_path.$simg))
- copy($img_path.$simg,$img_path.$new_it_id."_s");
-
-$mimg = $it_id."_m";
-if(is_file($img_path.$mimg))
- copy($img_path.$mimg,$img_path.$new_it_id."_m");
-
// 상품요약정보 복사
$sql = " select * from {$g4['shop_item_info_table']} where it_id = '$it_id' order by ii_id ";
$result = sql_query($sql);
@@ -64,6 +47,118 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
sql_query($sql);
}
+// html 에디터로 첨부된 이미지 파일 복사
+if($cp['it_explan']) {
+ $matchs = get_editor_image($cp['it_explan']);
+
+ // 파일의 경로를 얻어 복사
+ for($i=0;$i
상품분류
기본정보
+요약정보
가격 및 재고
상품이미지
관련상품
@@ -404,6 +414,27 @@ $pg_anchor ='
+
+
+
+
가격 및 재고
diff --git a/adm/shop_admin/itemformupdate.php b/adm/shop_admin/itemformupdate.php
index 513fc9588..e183123a5 100644
--- a/adm/shop_admin/itemformupdate.php
+++ b/adm/shop_admin/itemformupdate.php
@@ -16,7 +16,7 @@ function itemdelete($it_id)
{
global $g4, $is_admin;
- $sql = " select it_explan, it_img1, it_img2, it_img3, it_img4, it_img5, it_img6, it_img7, it_img8, it_img9, it_img10
+ $sql = " select it_explan, it_mobile_explan, it_img1, it_img2, it_img3, it_img4, it_img5, it_img6, it_img7, it_img8, it_img9, it_img10
from {$g4['shop_item_table']} where it_id = '$it_id' ";
$it = sql_fetch($sql);
@@ -51,7 +51,7 @@ function itemdelete($it_id)
$file = G4_DATA_PATH.'/item/'.$it['it_img'.$i];
if(is_file($file) && $it['it_img'.$i]) {
@unlink($file);
- @rmdir(dirname($file));
+ delete_item_thumbnail(dirname($file), basename($file));
}
}
@@ -85,6 +85,21 @@ function itemdelete($it_id)
//------------------------------------------------------------------------
$imgs = get_editor_image($it['it_explan']);
+ for($i=0;$i
-
-
-
-
+전자상거래 등에서의 상품 등의 정보제공에 관한 고시에 따라 총 35개 상품군에 대해 상품 특성 등을 양식에 따라 입력할 수 있습니다.
+
\ No newline at end of file
diff --git a/adm/shop_admin/iteminfoupdate.php b/adm/shop_admin/iteminfoupdate.php
deleted file mode 100644
index 736927b89..000000000
--- a/adm/shop_admin/iteminfoupdate.php
+++ /dev/null
@@ -1,36 +0,0 @@
-$value) {
- if ($key == "it_id") continue;
- if ($key == "gubun") {
- $gubun = $value;
- continue;
- }
-
- $sql = " insert {$g4['shop_item_info_table']}
- set it_id = '{$_POST['it_id']}',
- ii_gubun = '$gubun',
- ii_article = '$key',
- ii_title = '$value[0]',
- ii_value = '$value[1]' ";
- sql_query($sql);
-}
-
-$item_info_gubun = item_info_gubun($gubun);
-$item_info_gubun .= $item_info_gubun ? " 등록됨" : "";
-
-include_once(G4_PATH.'/head.sub.php');
-?>
-
-
\ No newline at end of file
diff --git a/css/mobile_shop.css b/css/mobile_shop.css
index 7afdf13f3..d7ad3fffc 100644
--- a/css/mobile_shop.css
+++ b/css/mobile_shop.css
@@ -158,6 +158,8 @@ a.sanchor_on {background:#626870;color:#fff !important;text-decoration:none}
#sit_pvi_nw h1 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#sit_pvi_nwbig {padding:1em 0;text-align:center}
+#sit_pvi_nwbig span {display:none}
+#sit_pvi_nwbig span.visible {display:inline}
#sit_pvi_nw ul {margin:0 0 1.18em;padding:0 1em;list-style:none;zoom:1}
#sit_pvi_nw ul:after {display:block;visibility:hidden;clear:both;content:""}
#sit_pvi_nw li {float:left;margin:0 0 0 1px}
diff --git a/extend/.htaccess b/extend/.htaccess
new file mode 100644
index 000000000..792d60054
--- /dev/null
+++ b/extend/.htaccess
@@ -0,0 +1 @@
+#
diff --git a/extend/shop.extend.php b/extend/shop.extend.php
index 8f04f41fb..274c6f9a7 100644
--- a/extend/shop.extend.php
+++ b/extend/shop.extend.php
@@ -4,6 +4,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined('G4_USE_SHOP') || !G4_USE_SHOP) return;
include_once(G4_LIB_PATH.'/shop.lib.php');
+include_once(G4_LIB_PATH.'/thumbnail.lib.php');
//------------------------------------------------------------------------------
// 쇼핑몰 상수 모음 시작
diff --git a/install/shop.sql b/install/shop.sql
index 07a1b9853..cbfd9d2eb 100644
--- a/install/shop.sql
+++ b/install/shop.sql
@@ -409,6 +409,16 @@ CREATE TABLE IF NOT EXISTS `shop_item` (
`it_ip` varchar(25) NOT NULL DEFAULT '',
`it_order` int(11) NOT NULL DEFAULT '0',
`it_tel_inq` tinyint(4) NOT NULL DEFAULT '0',
+ `it_img1` varchar(255) NOT NULL DEFAULT '',
+ `it_img2` varchar(255) NOT NULL DEFAULT '',
+ `it_img3` varchar(255) NOT NULL DEFAULT '',
+ `it_img4` varchar(255) NOT NULL DEFAULT '',
+ `it_img5` varchar(255) NOT NULL DEFAULT '',
+ `it_img6` varchar(255) NOT NULL DEFAULT '',
+ `it_img7` varchar(255) NOT NULL DEFAULT '',
+ `it_img8` varchar(255) NOT NULL DEFAULT '',
+ `it_img9` varchar(255) NOT NULL DEFAULT '',
+ `it_img10` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`it_id`),
KEY `ca_id` (`ca_id`),
KEY `it_name` (`it_name`),
diff --git a/lib/iteminfo.lib.php b/lib/iteminfo.lib.php
index 74b94007f..2a79e2d00 100644
--- a/lib/iteminfo.lib.php
+++ b/lib/iteminfo.lib.php
@@ -557,29 +557,4 @@ $item_info = array(
)
),
);
-
-
-// 상품상세정보 테이블 생성
-function create_table_item_info()
-{
- global $g4;
- return sql_query("
- CREATE TABLE IF NOT EXISTS `{$g4['shop_item_info_table']}` (
- `ii_id` int(11) NOT NULL AUTO_INCREMENT,
- `it_id` varchar(10) NOT NULL,
- `ii_gubun` varchar(50) NOT NULL,
- `ii_article` varchar(50) NOT NULL,
- `ii_title` varchar(255) NOT NULL,
- `ii_value` varchar(255) NOT NULL,
- PRIMARY KEY (`ii_id`),
- UNIQUE KEY `it_id` (`it_id`,`ii_gubun`,`ii_article`)
- )
- ", false);
-}
-
-function item_info_gubun($gubun)
-{
- global $item_info;
- return $item_info[$gubun]['title'];
-}
?>
\ No newline at end of file
diff --git a/lib/shop.lib.php b/lib/shop.lib.php
index fd64105b7..6a01293c5 100644
--- a/lib/shop.lib.php
+++ b/lib/shop.lib.php
@@ -1,6 +1,4 @@
';
$a2 = '';
- $image = get_it_image($row['it_id'].'_s', 70, 70, '');
+ $image = get_it_image($row['it_id'], 70, 70);
} else { // 붙이지 않고
$a1 = '';
$a2 = '';
- $image = get_it_image($row['it_id'].'_s', 50, 50);
+ $image = get_it_image($row['it_id'], 50, 50);
}
$it_name = $a1 . stripslashes($row['it_name']) . $a2;
diff --git a/mobile/shop/item.php b/mobile/shop/item.php
index c54674ac1..f3dd9a4a6 100644
--- a/mobile/shop/item.php
+++ b/mobile/shop/item.php
@@ -30,11 +30,29 @@ if (!($it['ca_use'] && $it['it_use'])) {
}
// 분류 테이블에서 분류 상단, 하단 코드를 얻음
-$sql = " select ca_include_head, ca_include_tail
+$sql = " select ca_include_head, ca_include_tail, ca_hp_cert_use, ca_adult_cert_use
from {$g4['shop_category_table']}
where ca_id = '{$it['ca_id']}' ";
$ca = sql_fetch($sql);
+if(!$is_admin) {
+ // 본인확인체크
+ if($ca['ca_hp_cert_use'] && !$member['mb_hp_certify']) {
+ if($is_member)
+ alert('회원정보 수정에서 휴대폰 본인확인 후 이용해 주십시오.');
+ else
+ alert('휴대폰 본인확인된 로그인 회원만 이용할 수 있습니다.');
+ }
+
+ // 성인인증체크
+ if($ca['ca_adult_cert_use'] && !$member['mb_adult']) {
+ if($is_member)
+ alert('휴대폰 본인확인으로 성인인증된 회원만 이용할 수 있습니다.\\n회원정보 수정에서 휴대폰 본인확인을 해주십시오.');
+ else
+ alert('휴대폰 본인확인으로 성인인증된 회원만 이용할 수 있습니다.');
+ }
+}
+
// 오늘 본 상품 저장 시작
// tv 는 today view 약자
$saved = false;
@@ -158,20 +176,25 @@ else
';
- if (file_exists(G4_DATA_PATH.'/item/'.$it_id.'_l'.$i))
- {
- $img_id = $it_id.'_l'.$i;
- echo '- ';
- echo get_large_image($it_id.'_'.$i, $it['it_id'], false);
- echo '';
- echo '
';
- }
+ if(!$it['it_img'.$i])
+ continue;
+
+ if($thumb_count == 0) echo '';
+ $thumb = get_it_thumbnail($it['it_img'.$i], 280, 280);
+
+ if(!$thumb)
+ continue;
+
+ echo '- ';
+ echo '';
+ echo '
';
+
+ $thumb_count++;
}
- if ($i > 1) echo ' ';
+ if ($thumb_count > 0) echo ' ';
?>
diff --git a/mobile/shop/list.php b/mobile/shop/list.php
index 4554fcd77..aede9cd10 100644
--- a/mobile/shop/list.php
+++ b/mobile/shop/list.php
@@ -9,6 +9,24 @@ $ca = sql_fetch($sql);
if (!$ca['ca_id'])
alert('등록된 분류가 없습니다.');
+if(!$is_admin) {
+ // 본인확인체크
+ if($ca['ca_hp_cert_use'] && !$member['mb_hp_certify']) {
+ if($is_member)
+ alert('회원정보 수정에서 휴대폰 본인확인 후 이용해 주십시오.');
+ else
+ alert('휴대폰 본인확인된 로그인 회원만 이용할 수 있습니다.');
+ }
+
+ // 성인인증체크
+ if($ca['ca_adult_cert_use'] && !$member['mb_adult']) {
+ if($is_member)
+ alert('휴대폰 본인확인으로 성인인증된 회원만 이용할 수 있습니다.\\n회원정보 수정에서 휴대폰 본인확인을 해주십시오.');
+ else
+ alert('휴대폰 본인확인으로 성인인증된 회원만 이용할 수 있습니다.');
+ }
+}
+
$g4['title'] = $ca['ca_name'].' 상품리스트';
include_once(G4_MSHOP_PATH.'/_head.php');
diff --git a/mobile/shop/list.skin.10.php b/mobile/shop/list.skin.10.php
index bc953764d..8df05aea8 100644
--- a/mobile/shop/list.skin.10.php
+++ b/mobile/shop/list.skin.10.php
@@ -13,7 +13,7 @@ for ($i=1; $row=sql_fetch_array($result); $i++)
?>
-
+
diff --git a/mobile/shop/maintype10.inc.php b/mobile/shop/maintype10.inc.php
index 859e4dcda..a11cbc2cc 100644
--- a/mobile/shop/maintype10.inc.php
+++ b/mobile/shop/maintype10.inc.php
@@ -12,7 +12,7 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
?>
-
+
diff --git a/mobile/shop/mypage.php b/mobile/shop/mypage.php
index 6fdec1088..c32fbbcb8 100644
--- a/mobile/shop/mypage.php
+++ b/mobile/shop/mypage.php
@@ -68,7 +68,7 @@ include_once(G4_MSHOP_PATH.'/_head.php');
if ($i>0)
echo " | ";
- $image = get_it_image($row['it_id']."_s", 70, 70, $row['it_id']);
+ $image = get_it_image($row['it_id'], 70, 70, true);
?>
diff --git a/mobile/shop/search.php b/mobile/shop/search.php
index 415b3708b..9fde9b3c2 100644
--- a/mobile/shop/search.php
+++ b/mobile/shop/search.php
@@ -118,7 +118,7 @@ $total_count = $row['cnt'];
from {$g4['shop_item_table']} where it_id = '{$save['it_id'][$i]}' ";
$row = sql_fetch($sql);
- $image = get_it_image($row['it_id'].'_s', (int)($default['de_simg_width']), (int)($default['de_simg_height']), $row['it_id']);
+ $image = get_it_image($row['it_id'], (int)($default['de_simg_width']), (int)($default['de_simg_height']), true);
?>
diff --git a/mobile/shop/wishlist.php b/mobile/shop/wishlist.php
index ccce6a841..dbbfd2034 100644
--- a/mobile/shop/wishlist.php
+++ b/mobile/shop/wishlist.php
@@ -48,7 +48,7 @@ include_once(G4_MSHOP_PATH.'/_head.php');
if ($row['it_tel_inq']) $out_cd = 'tel_inq';
- $image = get_it_image($row['it_id'].'_s', 70, 70, '');
+ $image = get_it_image($row['it_id'], 70, 70);
$s_del = '';
?>
diff --git a/shop/item.php b/shop/item.php
index c1d1c96f1..ccccdc363 100644
--- a/shop/item.php
+++ b/shop/item.php
@@ -36,11 +36,29 @@ if (!($it['ca_use'] && $it['it_use'])) {
}
// 분류 테이블에서 분류 상단, 하단 코드를 얻음
-$sql = " select ca_include_head, ca_include_tail
+$sql = " select ca_include_head, ca_include_tail, ca_hp_cert_use, ca_adult_cert_use
from {$g4['shop_category_table']}
where ca_id = '{$it['ca_id']}' ";
$ca = sql_fetch($sql);
+if(!$is_admin) {
+ // 본인확인체크
+ if($ca['ca_hp_cert_use'] && !$member['mb_hp_certify']) {
+ if($is_member)
+ alert('회원정보 수정에서 휴대폰 본인확인 후 이용해 주십시오.');
+ else
+ alert('휴대폰 본인확인된 로그인 회원만 이용할 수 있습니다.');
+ }
+
+ // 성인인증체크
+ if($ca['ca_adult_cert_use'] && !$member['mb_adult']) {
+ if($is_member)
+ alert('휴대폰 본인확인으로 성인인증된 회원만 이용할 수 있습니다.\\n회원정보 수정에서 휴대폰 본인확인을 해주십시오.');
+ else
+ alert('휴대폰 본인확인으로 성인인증된 회원만 이용할 수 있습니다.');
+ }
+}
+
// 오늘 본 상품 저장 시작
// tv 는 today view 약자
$saved = false;
@@ -421,9 +439,10 @@ else
상품 정보 고시
@@ -433,13 +452,15 @@ else
$val) {
+ $ii_title = $info_array[$key][0];
+ $ii_value = $val;
?>
- |
-
+ | |
+
|
-
+
diff --git a/shop/list.php b/shop/list.php
index 525d808d3..2ef974140 100644
--- a/shop/list.php
+++ b/shop/list.php
@@ -14,6 +14,24 @@ $ca = sql_fetch($sql);
if (!$ca['ca_id'])
alert('등록된 분류가 없습니다.');
+if(!$is_admin) {
+ // 본인확인체크
+ if($ca['ca_hp_cert_use'] && !$member['mb_hp_certify']) {
+ if($is_member)
+ alert('회원정보 수정에서 휴대폰 본인확인 후 이용해 주십시오.');
+ else
+ alert('휴대폰 본인확인된 로그인 회원만 이용할 수 있습니다.');
+ }
+
+ // 성인인증체크
+ if($ca['ca_adult_cert_use'] && !$member['mb_adult']) {
+ if($is_member)
+ alert('휴대폰 본인확인으로 성인인증된 회원만 이용할 수 있습니다.\\n회원정보 수정에서 휴대폰 본인확인을 해주십시오.');
+ else
+ alert('휴대폰 본인확인으로 성인인증된 회원만 이용할 수 있습니다.');
+ }
+}
+
$g4['title'] = $ca['ca_name'].' 상품리스트';
if ($ca['ca_include_head'])
|