Merge branch 'master' of github.com:gnuboard/yc4s
This commit is contained in:
@ -177,7 +177,7 @@ $pg_anchor .= '</ul>';
|
|||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="ca_skin">출력스킨</label></th>
|
<th scope="row"><label for="ca_skin">출력스킨</label></th>
|
||||||
<td>
|
<td>
|
||||||
<?php echo help("기본으로 제공하는 스킨은 ".G4_SHOP_DIR."/list.skin.*.php 입니다."); ?>
|
<?php echo help('기본으로 제공하는 스킨은 '.str_replace(G4_PATH.'/', '', G4_SHOP_SKIN_PATH).'/list.*.skin.php 입니다.'); ?>
|
||||||
<select id="ca_skin" name="ca_skin">
|
<select id="ca_skin" name="ca_skin">
|
||||||
<?php echo get_list_skin_options("^list.[^\.]+\.skin\.php", G4_SHOP_SKIN_PATH, $ca['ca_skin']); ?>
|
<?php echo get_list_skin_options("^list.[^\.]+\.skin\.php", G4_SHOP_SKIN_PATH, $ca['ca_skin']); ?>
|
||||||
</select>
|
</select>
|
||||||
@ -186,9 +186,9 @@ $pg_anchor .= '</ul>';
|
|||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="ca_mobile_skin">모바일 출력스킨</label></th>
|
<th scope="row"><label for="ca_mobile_skin">모바일 출력스킨</label></th>
|
||||||
<td>
|
<td>
|
||||||
<?php echo help("기본으로 제공하는 스킨은 ".G4_MOBILE_DIR.'/'.G4_SHOP_DIR."/list.skin.*.php 입니다."); ?>
|
<?php echo help('기본으로 제공하는 스킨은 '.str_replace(G4_PATH.'/', '', G4_MSHOP_SKIN_PATH).'/list.*.skin.php 입니다.'); ?>
|
||||||
<select id="ca_mobile_skin" name="ca_mobile_skin">
|
<select id="ca_mobile_skin" name="ca_mobile_skin">
|
||||||
<?php echo get_list_skin_options("^list.skin.(.*)\.php", G4_MSHOP_PATH, $ca['ca_mobile_skin']); ?>
|
<?php echo get_list_skin_options("^list.[^\.]+\.skin\.php", G4_MSHOP_SKIN_PATH, $ca['ca_mobile_skin']); ?>
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -238,7 +238,7 @@ $pg_anchor .= '</ul>';
|
|||||||
<th scope="row"><label for="ca_mobile_list_row">모바일 이미지 수</label></th>
|
<th scope="row"><label for="ca_mobile_list_row">모바일 이미지 수</label></th>
|
||||||
<td>
|
<td>
|
||||||
<?php echo help("한 페이지에 출력할 이미지 수를 설정합니다."); ?>
|
<?php echo help("한 페이지에 출력할 이미지 수를 설정합니다."); ?>
|
||||||
<input type="text" name="ca_mobile_list_row" value='<?php echo $ca['ca_mobile_list_row']; ?>' id="ca_mobile_list_row" required class="required frm_input" size="3">
|
<input type="text" name="ca_mobile_list_mod" value='<?php echo $ca['ca_mobile_list_mod']; ?>' id="ca_mobile_list_mod" required class="required frm_input" size="3">
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
@ -63,7 +63,7 @@ $sql_common = " ca_skin = '$ca_skin',
|
|||||||
ca_list_row = '$ca_list_row',
|
ca_list_row = '$ca_list_row',
|
||||||
ca_mobile_img_width = '$ca_mobile_img_width',
|
ca_mobile_img_width = '$ca_mobile_img_width',
|
||||||
ca_mobile_img_height = '$ca_mobile_img_height',
|
ca_mobile_img_height = '$ca_mobile_img_height',
|
||||||
ca_mobile_list_row = '$ca_mobile_list_row',
|
ca_mobile_list_mod = '$ca_mobile_list_mod',
|
||||||
ca_sell_email = '$ca_sell_email',
|
ca_sell_email = '$ca_sell_email',
|
||||||
ca_use = '$ca_use',
|
ca_use = '$ca_use',
|
||||||
ca_stock_qty = '$ca_stock_qty',
|
ca_stock_qty = '$ca_stock_qty',
|
||||||
|
|||||||
@ -86,9 +86,9 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
|||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="ev_skin">출력스킨</label></th>
|
<th scope="row"><label for="ev_skin">출력스킨</label></th>
|
||||||
<td>
|
<td>
|
||||||
<?php echo help('기본으로 제공하는 스킨은 '.G4_SHOP_DIR.'/list.skin.*.php 입니다.'.PHP_EOL.G4_SHOP_DIR.'/list.php&skin=userskin.php 처럼 직접 만든 스킨을 사용할 수도 있습니다.'); ?>
|
<?php echo help('기본으로 제공하는 스킨은 '.str_replace(G4_PATH.'/', '', G4_SHOP_SKIN_PATH).'/list.*.skin.php 입니다.'.PHP_EOL.G4_SHOP_DIR.'/event.php&skin=userskin.php 처럼 직접 만든 스킨을 사용할 수도 있습니다.'); ?>
|
||||||
<select name="ev_skin" id="ev_skin">
|
<select name="ev_skin" id="ev_skin">
|
||||||
<?php echo get_list_skin_options("^list\.skin\.(.*)\.php", G4_SHOP_PATH, $ev['ev_skin']); ?>
|
<?php echo get_list_skin_options("^list.[^\.]+\.skin\.php", G4_SHOP_SKIN_PATH, $ev['ev_skin']); ?>
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@ -243,15 +243,15 @@ $pg_anchor ='<ul class="anchor">
|
|||||||
<td>
|
<td>
|
||||||
<?php echo help("메인화면에 유형별로 출력할때 사용합니다.\n이곳에 체크하게되면 상품리스트에서 유형별로 정렬할때 체크된 상품이 가장 먼저 출력됩니다."); ?>
|
<?php echo help("메인화면에 유형별로 출력할때 사용합니다.\n이곳에 체크하게되면 상품리스트에서 유형별로 정렬할때 체크된 상품이 가장 먼저 출력됩니다."); ?>
|
||||||
<input type="checkbox" name="it_type1" value="1" <?php echo ($it['it_type1'] ? "checked" : ""); ?> id="it_type1">
|
<input type="checkbox" name="it_type1" value="1" <?php echo ($it['it_type1'] ? "checked" : ""); ?> id="it_type1">
|
||||||
<label for="it_type1">히트 <img src="<?php echo G4_URL; ?>/img/shop/icon_hit2.gif" alt=""></label>
|
<label for="it_type1">히트 <img src="<?php echo G4_SHOP_URL; ?>/img/icon_hit2.gif" alt=""></label>
|
||||||
<input type="checkbox" name="it_type2" value="1" <?php echo ($it['it_type2'] ? "checked" : ""); ?> id="it_type2">
|
<input type="checkbox" name="it_type2" value="1" <?php echo ($it['it_type2'] ? "checked" : ""); ?> id="it_type2">
|
||||||
<label for="it_type2">추천 <img src="<?php echo G4_URL; ?>/img/shop/icon_rec2.gif" alt=""></label>
|
<label for="it_type2">추천 <img src="<?php echo G4_SHOP_URL; ?>/img/icon_rec2.gif" alt=""></label>
|
||||||
<input type="checkbox" name="it_type3" value="1" <?php echo ($it['it_type3'] ? "checked" : ""); ?> id="it_type3">
|
<input type="checkbox" name="it_type3" value="1" <?php echo ($it['it_type3'] ? "checked" : ""); ?> id="it_type3">
|
||||||
<label for="it_type3">신상품 <img src="<?php echo G4_URL; ?>/img/shop/icon_new2.gif" alt=""></label>
|
<label for="it_type3">신상품 <img src="<?php echo G4_SHOP_URL; ?>/img/icon_new2.gif" alt=""></label>
|
||||||
<input type="checkbox" name="it_type4" value="1" <?php echo ($it['it_type4'] ? "checked" : ""); ?> id="it_type4">
|
<input type="checkbox" name="it_type4" value="1" <?php echo ($it['it_type4'] ? "checked" : ""); ?> id="it_type4">
|
||||||
<label for="it_type4">인기 <img src="<?php echo G4_URL; ?>/img/shop/icon_best2.gif" alt=""></label>
|
<label for="it_type4">인기 <img src="<?php echo G4_SHOP_URL; ?>/img/icon_best2.gif" alt=""></label>
|
||||||
<input type="checkbox" name="it_type5" value="1" <?php echo ($it['it_type5'] ? "checked" : ""); ?> id="it_type5">
|
<input type="checkbox" name="it_type5" value="1" <?php echo ($it['it_type5'] ? "checked" : ""); ?> id="it_type5">
|
||||||
<label for="it_type5">할인 <img src="<?php echo G4_URL; ?>/img/shop/icon_discount2.gif" alt=""></label>
|
<label for="it_type5">할인 <img src="<?php echo G4_SHOP_URL; ?>/img/icon_discount2.gif" alt=""></label>
|
||||||
</td>
|
</td>
|
||||||
<td class="group_setting">
|
<td class="group_setting">
|
||||||
<input type="checkbox" name="chk_ca_it_type" value="1" id="chk_ca_it_type">
|
<input type="checkbox" name="chk_ca_it_type" value="1" id="chk_ca_it_type">
|
||||||
|
|||||||
@ -7,7 +7,7 @@ auth_check($auth[$sub_menu], "r");
|
|||||||
$g4['title'] = '상품옵션재고관리';
|
$g4['title'] = '상품옵션재고관리';
|
||||||
include_once (G4_ADMIN_PATH.'/admin.head.php');
|
include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||||
|
|
||||||
$sql_search = " where 1 ";
|
$sql_search = " where b.it_id is not NULL ";
|
||||||
if ($search != "") {
|
if ($search != "") {
|
||||||
if ($sel_field != "") {
|
if ($sel_field != "") {
|
||||||
$sql_search .= " and $sel_field like '%$search%' ";
|
$sql_search .= " and $sel_field like '%$search%' ";
|
||||||
@ -192,7 +192,7 @@ if ($search) // 검색 결과일 때만 처음 버튼을 보여줌
|
|||||||
<input type="hidden" name="it_id[<?php echo $i; ?>]" value="<?php echo $row['it_id']; ?>">
|
<input type="hidden" name="it_id[<?php echo $i; ?>]" value="<?php echo $row['it_id']; ?>">
|
||||||
<input type="hidden" name="io_id[<?php echo $i; ?>]" value="<?php echo $row['io_id']; ?>">
|
<input type="hidden" name="io_id[<?php echo $i; ?>]" value="<?php echo $row['io_id']; ?>">
|
||||||
<input type="hidden" name="io_type[<?php echo $i; ?>]" value="<?php echo $row['io_type']; ?>">
|
<input type="hidden" name="io_type[<?php echo $i; ?>]" value="<?php echo $row['io_type']; ?>">
|
||||||
<a href="<?php echo $href; ?>"><?php echo get_it_image($row['it_id'], 50, 50); ?><?php echo cut_str(stripslashes($row['it_name']), 60, "…"); ?></a>
|
<a href="<?php echo $href; ?>"><?php echo get_it_image($row['it_id'], 50, 50); ?> <?php echo cut_str(stripslashes($row['it_name']), 60, "…"); ?></a>
|
||||||
</td>
|
</td>
|
||||||
<td class="grid_3"><?php echo $option; ?></td>
|
<td class="grid_3"><?php echo $option; ?></td>
|
||||||
<td class="td_mng"><?php echo $type; ?></td>
|
<td class="td_mng"><?php echo $type; ?></td>
|
||||||
|
|||||||
@ -60,7 +60,7 @@ a:hover, a:focus, a:active {color:#000;text-decoration:underline}
|
|||||||
.gnb_js .gnb_1dli_on a {float:none;background:#333;color:#fff}
|
.gnb_js .gnb_1dli_on a {float:none;background:#333;color:#fff}
|
||||||
.gnb_js .gnb_2dul {display:none;position:absolute;top:35px}
|
.gnb_js .gnb_2dul {display:none;position:absolute;top:35px}
|
||||||
.gnb_js .gnb_2da {display:inline-block;float:none !important;padding:0 10px;width:161px;text-align:left}
|
.gnb_js .gnb_2da {display:inline-block;float:none !important;padding:0 10px;width:161px;text-align:left}
|
||||||
.gnb_1dli_over .gnb_2dul {display:block;left:0;background:#fff}
|
.gnb_1dli_over .gnb_2dul {display:block;left:0;width:180px;background:#fff}
|
||||||
.gnb_1dli_over2 .gnb_2dul {display:block;right:1px;width:180px;background:#fff}
|
.gnb_1dli_over2 .gnb_2dul {display:block;right:1px;width:180px;background:#fff}
|
||||||
|
|
||||||
.gnb_empty {width:100%;height:35px;text-align:center;line-height:2.95em}
|
.gnb_empty {width:100%;height:35px;text-align:center;line-height:2.95em}
|
||||||
|
|||||||
@ -110,7 +110,7 @@ a:hover, a:focus, a:active {color:#000;text-decoration:underline}
|
|||||||
#gnb {margin:0 0 5px;padding:0 0 10px;border:1px solid #d5d5d5;background:#f5f6fa}
|
#gnb {margin:0 0 5px;padding:0 0 10px;border:1px solid #d5d5d5;background:#f5f6fa}
|
||||||
#gnb h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
#gnb h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||||
.gnb_1dul {margin:0;border:0;background:#fff;list-style:none}
|
.gnb_1dul {margin:0;border:0;background:#fff;list-style:none}
|
||||||
.gnb_1dli {position:relative;background:url('../img/shop/gnb_bg.gif') top right repeat-x}
|
.gnb_1dli {position:relative;background:url('../shop/img/gnb_bg.gif') top right repeat-x}
|
||||||
.gnb_1dli_on {background-position:right -33px;color:#fff;text-decoration:none}
|
.gnb_1dli_on {background-position:right -33px;color:#fff;text-decoration:none}
|
||||||
.gnb_1da {display:inline-block;padding:0 10px;width:128px;height:33px;border-bottom:1px solid #f4f4f4;font-weight:bold;text-decoration:none;line-height:2.9em !important;line-height:2.7em}
|
.gnb_1da {display:inline-block;padding:0 10px;width:128px;height:33px;border-bottom:1px solid #f4f4f4;font-weight:bold;text-decoration:none;line-height:2.9em !important;line-height:2.7em}
|
||||||
.gnb_1dli_on .gnb_1da {color:#fff !important;text-decoration:none !important}
|
.gnb_1dli_on .gnb_1da {color:#fff !important;text-decoration:none !important}
|
||||||
@ -340,7 +340,7 @@ td.empty_table {padding:85px 0;text-align:center}
|
|||||||
#sct_location {margin:0 0 10px;border:1px solid #e9e9e9;background:#f5f6fa;letter-spacing:-4px}
|
#sct_location {margin:0 0 10px;border:1px solid #e9e9e9;background:#f5f6fa;letter-spacing:-4px}
|
||||||
#sct_location a {display:inline-block;padding:10px 10px 8px;text-decoration:none;letter-spacing:0 !important}
|
#sct_location a {display:inline-block;padding:10px 10px 8px;text-decoration:none;letter-spacing:0 !important}
|
||||||
.sct_here {font-weight:bold}
|
.sct_here {font-weight:bold}
|
||||||
.sct_bg {padding-right:15px !important;background:url('../img/shop/sct_bg_toright.gif') right 11px no-repeat}
|
.sct_bg {padding-right:15px !important;background:url('../shop/img/sct_bg_toright.gif') right 11px no-repeat}
|
||||||
|
|
||||||
/* 상품 목록 카테고리 목록 */
|
/* 상품 목록 카테고리 목록 */
|
||||||
.sct_ct {}
|
.sct_ct {}
|
||||||
|
|||||||
@ -64,7 +64,7 @@ a.sanchor_on {background:#626870;color:#fff !important;text-decoration:none}
|
|||||||
#sct_location {border:1px solid #e9e9e9;background:#f5f6fa;letter-spacing:-4px}
|
#sct_location {border:1px solid #e9e9e9;background:#f5f6fa;letter-spacing:-4px}
|
||||||
#sct_location a {display:inline-block;padding:0.7em 1em;text-decoration:none;letter-spacing:0 !important}
|
#sct_location a {display:inline-block;padding:0.7em 1em;text-decoration:none;letter-spacing:0 !important}
|
||||||
.sct_here {font-weight:bold}
|
.sct_here {font-weight:bold}
|
||||||
.sct_bg {padding-right:1.3em !important;background:url('../img/shop/sct_bg_toright.gif') right 0.9em no-repeat}
|
.sct_bg {padding-right:1.3em !important;background:url('../shop/img/sct_bg_toright.gif') right 0.9em no-repeat}
|
||||||
|
|
||||||
/* 상품 목록 카테고리 목록 */
|
/* 상품 목록 카테고리 목록 */
|
||||||
.sct_ct {}
|
.sct_ct {}
|
||||||
@ -114,7 +114,7 @@ a.sanchor_on {background:#626870;color:#fff !important;text-decoration:none}
|
|||||||
.sct_11 .sct_a:after {display:block;visibility:hidden;clear:both;content:""}
|
.sct_11 .sct_a:after {display:block;visibility:hidden;clear:both;content:""}
|
||||||
.sct_11 .sct_a:focus,
|
.sct_11 .sct_a:focus,
|
||||||
.sct_11 .sct_a:hover {text-decoration:none}
|
.sct_11 .sct_a:hover {text-decoration:none}
|
||||||
.sct_11 .sct_arw_toleft {display:block;z-index:2;position:absolute;top:1.8em;left:2.8em;width:1em;height:1.8em;background:url('../../img/shop/icon_arw_toleft.gif') no-repeat}
|
.sct_11 .sct_arw_toleft {display:block;z-index:2;position:absolute;top:1.8em;left:2.8em;width:1em;height:1.8em;background:url('../../shop/img/icon_arw_toleft.gif') no-repeat}
|
||||||
.sct_11 .sct_img {float:left;margin:0 1em 0 0}
|
.sct_11 .sct_img {float:left;margin:0 1em 0 0}
|
||||||
.sct_11 b {display:block;margin:0 0 1em;font-size:1.2em;letter-spacing:-0.1em}
|
.sct_11 b {display:block;margin:0 0 1em;font-size:1.2em;letter-spacing:-0.1em}
|
||||||
.sct_11 p {margin:0 0 1em;padding:0;line-height:1.5em}
|
.sct_11 p {margin:0 0 1em;padding:0;line-height:1.5em}
|
||||||
|
|||||||
@ -401,6 +401,12 @@ if (!sql_query(" select de_mobile_type1_list_mod from {$g4['shop_default_table']
|
|||||||
CHANGE `de_mobile_type5_list_row` `de_mobile_type5_list_mod` INT(11) NOT NULL DEFAULT '0' ", true);
|
CHANGE `de_mobile_type5_list_row` `de_mobile_type5_list_mod` INT(11) NOT NULL DEFAULT '0' ", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 분류 모바일 필드명 수정
|
||||||
|
if(!sql_query(" select ca_mobile_list_mod from {$g4['shop_category_table']} limit 1 ", false)) {
|
||||||
|
sql_query(" ALTER TABLE `{$g4['shop_category_table']}`
|
||||||
|
CHANGE `ca_mobile_list_row` `ca_mobile_list_mod` INT(11) NOT NULL DEFAULT '0' ", true);
|
||||||
|
}
|
||||||
|
|
||||||
// 과세, 비과세 금액 필드 추가
|
// 과세, 비과세 금액 필드 추가
|
||||||
if(!sql_query(" select od_tax_mny from {$g4['shop_order_table']} limit 1 ", false)) {
|
if(!sql_query(" select od_tax_mny from {$g4['shop_order_table']} limit 1 ", false)) {
|
||||||
sql_query(" ALTER TABLE `{$g4['shop_order_table']}`
|
sql_query(" ALTER TABLE `{$g4['shop_order_table']}`
|
||||||
|
|||||||
@ -48,8 +48,8 @@ if (defined('G4_IS_ADMIN')) {
|
|||||||
if (defined('_SHOP_')) $shop_css = '_shop';
|
if (defined('_SHOP_')) $shop_css = '_shop';
|
||||||
echo '<link rel="stylesheet" href="'.G4_CSS_URL.'/'.(G4_IS_MOBILE?'mobile':'default').$shop_css.'.css">'.PHP_EOL;
|
echo '<link rel="stylesheet" href="'.G4_CSS_URL.'/'.(G4_IS_MOBILE?'mobile':'default').$shop_css.'.css">'.PHP_EOL;
|
||||||
}
|
}
|
||||||
// echo '<meta http-equiv="imagetoolbar" content="no">';
|
echo '<meta http-equiv="imagetoolbar" content="no">';
|
||||||
// echo '<meta http-equiv="X-UA-Compatible" content="IE=Edge" />';
|
echo '<meta http-equiv="X-UA-Compatible" content="IE=Edge">';
|
||||||
?>
|
?>
|
||||||
<!--[if lte IE 8]>
|
<!--[if lte IE 8]>
|
||||||
<script src="<?php echo G4_JS_URL ?>/html5.js"></script>
|
<script src="<?php echo G4_JS_URL ?>/html5.js"></script>
|
||||||
|
|||||||
@ -109,7 +109,7 @@ CREATE TABLE IF NOT EXISTS `shop_category` (
|
|||||||
`ca_mobile_tail_html` text NOT NULL,
|
`ca_mobile_tail_html` text NOT NULL,
|
||||||
`ca_list_mod` int(11) NOT NULL DEFAULT '0',
|
`ca_list_mod` int(11) NOT NULL DEFAULT '0',
|
||||||
`ca_list_row` int(11) NOT NULL DEFAULT '0',
|
`ca_list_row` int(11) NOT NULL DEFAULT '0',
|
||||||
`ca_mobile_list_row` int(11) NOT NULL DEFAULT '0',
|
`ca_mobile_list_mod` int(11) NOT NULL DEFAULT '0',
|
||||||
`ca_include_head` varchar(255) NOT NULL DEFAULT '',
|
`ca_include_head` varchar(255) NOT NULL DEFAULT '',
|
||||||
`ca_include_tail` varchar(255) NOT NULL DEFAULT '',
|
`ca_include_tail` varchar(255) NOT NULL DEFAULT '',
|
||||||
`ca_mb_id` varchar(255) NOT NULL DEFAULT '',
|
`ca_mb_id` varchar(255) NOT NULL DEFAULT '',
|
||||||
|
|||||||
24
js/shop.js
24
js/shop.js
@ -50,7 +50,7 @@ $(function() {
|
|||||||
var sel_count = $("select[name='it_option[]']").size();
|
var sel_count = $("select[name='it_option[]']").size();
|
||||||
var idx = $("select[name='it_option[]']").index($(this));
|
var idx = $("select[name='it_option[]']").index($(this));
|
||||||
var val = $(this).val();
|
var val = $(this).val();
|
||||||
var it_id = $("input[name=it_id]").val();
|
var it_id = $("input[name='it_id[]']").val();
|
||||||
|
|
||||||
// 선택값이 없을 경우 하위 옵션은 disabled
|
// 선택값이 없을 경우 하위 옵션은 disabled
|
||||||
if(val == "") {
|
if(val == "") {
|
||||||
@ -161,7 +161,7 @@ $(function() {
|
|||||||
$("#sit_sel_option li button").live("click", function() {
|
$("#sit_sel_option li button").live("click", function() {
|
||||||
var mode = $(this).text();
|
var mode = $(this).text();
|
||||||
var this_qty, max_qty = 9999, min_qty = 1;
|
var this_qty, max_qty = 9999, min_qty = 1;
|
||||||
var $el_qty = $(this).closest("li").find("input[name='ct_qty[]']");
|
var $el_qty = $(this).closest("li").find("input[name^=ct_qty]");
|
||||||
var stock = parseInt($(this).closest("li").find("input[name='io_stock[]']").val());
|
var stock = parseInt($(this).closest("li").find("input[name='io_stock[]']").val());
|
||||||
|
|
||||||
switch(mode) {
|
switch(mode) {
|
||||||
@ -221,7 +221,7 @@ $(function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// 수량직접입력
|
// 수량직접입력
|
||||||
$("input[name='ct_qty[]']").live("keyup", function() {
|
$("input[name^=ct_qty]").live("keyup", function() {
|
||||||
var val= $(this).val();
|
var val= $(this).val();
|
||||||
|
|
||||||
if(val != "") {
|
if(val != "") {
|
||||||
@ -328,6 +328,7 @@ function sel_supply_process($el, add_exec)
|
|||||||
// 선택된 옵션 출력
|
// 선택된 옵션 출력
|
||||||
function add_sel_option(type, id, option, price, stock)
|
function add_sel_option(type, id, option, price, stock)
|
||||||
{
|
{
|
||||||
|
var item_code = $("input[name='it_id[]']").val();
|
||||||
var opt = "";
|
var opt = "";
|
||||||
var li_class = "sit_opt_list";
|
var li_class = "sit_opt_list";
|
||||||
if(type)
|
if(type)
|
||||||
@ -340,14 +341,14 @@ function add_sel_option(type, id, option, price, stock)
|
|||||||
opt_prc = "("+number_format(String(price))+"원)";
|
opt_prc = "("+number_format(String(price))+"원)";
|
||||||
|
|
||||||
opt += "<li class=\""+li_class+"\">\n";
|
opt += "<li class=\""+li_class+"\">\n";
|
||||||
opt += "<input type=\"hidden\" name=\"io_type[]\" value=\""+type+"\">\n";
|
opt += "<input type=\"hidden\" name=\"io_type["+item_code+"][]\" value=\""+type+"\">\n";
|
||||||
opt += "<input type=\"hidden\" name=\"io_id[]\" value=\""+id+"\">\n";
|
opt += "<input type=\"hidden\" name=\"io_id["+item_code+"][]\" value=\""+id+"\">\n";
|
||||||
opt += "<input type=\"hidden\" name=\"io_value[]\" value=\""+option+"\">\n";
|
opt += "<input type=\"hidden\" name=\"io_value["+item_code+"][]\" value=\""+option+"\">\n";
|
||||||
opt += "<input type=\"hidden\" name=\"io_price[]\" value=\""+price+"\">\n";
|
opt += "<input type=\"hidden\" name=\"io_price[]\" value=\""+price+"\">\n";
|
||||||
opt += "<input type=\"hidden\" name=\"io_stock[]\" value=\""+stock+"\">\n";
|
opt += "<input type=\"hidden\" name=\"io_stock[]\" value=\""+stock+"\">\n";
|
||||||
opt += "<span class=\"sit_opt_subj\">"+option+"</span>\n";
|
opt += "<span class=\"sit_opt_subj\">"+option+"</span>\n";
|
||||||
opt += "<span class=\"sit_opt_prc\">"+opt_prc+"</span>\n";
|
opt += "<span class=\"sit_opt_prc\">"+opt_prc+"</span>\n";
|
||||||
opt += "<div><input type=\"text\" name=\"ct_qty[]\" value=\"1\" class=\"frm_input\" size=\"5\">\n";
|
opt += "<div><input type=\"text\" name=\"ct_qty["+item_code+"][]\" value=\"1\" class=\"frm_input\" size=\"5\">\n";
|
||||||
opt += "<button type=\"button\" class=\"sit_qty_plus btn_frmline\">증가</button>\n";
|
opt += "<button type=\"button\" class=\"sit_qty_plus btn_frmline\">증가</button>\n";
|
||||||
opt += "<button type=\"button\" class=\"sit_qty_minus btn_frmline\">감소</button>\n";
|
opt += "<button type=\"button\" class=\"sit_qty_minus btn_frmline\">감소</button>\n";
|
||||||
opt += "<button type=\"button\" class=\"sit_opt_del btn_frmline\">삭제</button></div>\n";
|
opt += "<button type=\"button\" class=\"sit_opt_del btn_frmline\">삭제</button></div>\n";
|
||||||
@ -387,7 +388,7 @@ function add_sel_option(type, id, option, price, stock)
|
|||||||
function same_option_check(val)
|
function same_option_check(val)
|
||||||
{
|
{
|
||||||
var result = false;
|
var result = false;
|
||||||
$("input[name='io_value[]']").each(function() {
|
$("input[name^=io_value]").each(function() {
|
||||||
if(val == $(this).val()) {
|
if(val == $(this).val()) {
|
||||||
result = true;
|
result = true;
|
||||||
return false;
|
return false;
|
||||||
@ -404,9 +405,9 @@ function same_option_check(val)
|
|||||||
function price_calculate()
|
function price_calculate()
|
||||||
{
|
{
|
||||||
var it_price = parseInt($("input[name=it_price]").val());
|
var it_price = parseInt($("input[name=it_price]").val());
|
||||||
var $el_prc = $("input[name='io_price[]']");
|
var $el_prc = $("input[name^=io_price]");
|
||||||
var $el_qty = $("input[name='ct_qty[]']");
|
var $el_qty = $("input[name^=ct_qty]");
|
||||||
var $el_type = $("input[name='io_type[]']");
|
var $el_type = $("input[name^=io_type]");
|
||||||
var price, type, qty, total = 0;
|
var price, type, qty, total = 0;
|
||||||
|
|
||||||
$el_prc.each(function(index) {
|
$el_prc.each(function(index) {
|
||||||
@ -421,7 +422,6 @@ function price_calculate()
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$("input[name=total_price]").val(total);
|
|
||||||
$("#sit_tot_price").empty().html("총 금액 : "+number_format(String(total))+"원");
|
$("#sit_tot_price").empty().html("총 금액 : "+number_format(String(total))+"원");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -299,7 +299,7 @@ class item_list
|
|||||||
$sql_where = " where " . implode(" and ", $where);
|
$sql_where = " where " . implode(" and ", $where);
|
||||||
$sql_limit = " limit " . $this->from_record . " , " . ($this->list_mod * $this->list_row);
|
$sql_limit = " limit " . $this->from_record . " , " . ($this->list_mod * $this->list_row);
|
||||||
|
|
||||||
$sql = $sql_select . $sql_common . $sql_where . $sql_limit;
|
$sql = $sql_select . $sql_common . $sql_where . $sql_order . $sql_limit;
|
||||||
$result = sql_query($sql);
|
$result = sql_query($sql);
|
||||||
|
|
||||||
if ($this->is_page) {
|
if ($this->is_page) {
|
||||||
@ -1264,7 +1264,7 @@ function get_new_od_id()
|
|||||||
// uq_id 설정
|
// uq_id 설정
|
||||||
function set_unique_id($direct)
|
function set_unique_id($direct)
|
||||||
{
|
{
|
||||||
global $default;
|
global $g4, $default, $member;
|
||||||
|
|
||||||
if ($direct) {
|
if ($direct) {
|
||||||
$tmp_uq_id = get_session('ss_uq_direct');
|
$tmp_uq_id = get_session('ss_uq_direct');
|
||||||
@ -1275,10 +1275,10 @@ function set_unique_id($direct)
|
|||||||
} else {
|
} else {
|
||||||
// 비회원장바구니 uq_id 쿠키설정
|
// 비회원장바구니 uq_id 쿠키설정
|
||||||
if($default['de_guest_cart_use']) {
|
if($default['de_guest_cart_use']) {
|
||||||
$g_cart_uq_id = get_cookie('ck_guest_cart_uqid');
|
$tmp_uq_id = get_cookie('ck_guest_cart_uqid');
|
||||||
if($g_cart_uq_id) {
|
if($tmp_uq_id) {
|
||||||
set_session('ss_uq_id', $g_cart_uq_id);
|
set_session('ss_uq_id', $tmp_uq_id);
|
||||||
set_cookie('ck_guest_cart_uqid', $g_cart_uq_id, ($default['de_cart_keep_term'] * 86400));
|
set_cookie('ck_guest_cart_uqid', $tmp_uq_id, ($default['de_cart_keep_term'] * 86400));
|
||||||
} else {
|
} else {
|
||||||
$tmp_uq_id = get_uniqid();
|
$tmp_uq_id = get_uniqid();
|
||||||
set_session('ss_uq_id', $tmp_uq_id);
|
set_session('ss_uq_id', $tmp_uq_id);
|
||||||
@ -1291,6 +1291,20 @@ function set_unique_id($direct)
|
|||||||
set_session('ss_uq_id', $tmp_uq_id);
|
set_session('ss_uq_id', $tmp_uq_id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 보관된 회원장바구니 자료 uq_id 변경
|
||||||
|
if($member['mb_id'] && $tmp_uq_id) {
|
||||||
|
$sql = " update {$g4['shop_cart_table']}
|
||||||
|
set uq_id = '$tmp_uq_id'
|
||||||
|
where mb_id = '{$member['mb_id']}'
|
||||||
|
and ct_status = '쇼핑' ";
|
||||||
|
if($default['de_cart_keep_term']) {
|
||||||
|
$ctime = date('Y-m-d H:i:s', G4_SERVER_TIME - ($default['de_cart_keep_term'] * 86400));
|
||||||
|
$sql .= " and ct_time > '$ctime' ";
|
||||||
|
}
|
||||||
|
|
||||||
|
sql_query($sql);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -162,7 +162,7 @@ else
|
|||||||
<div id="sit">
|
<div id="sit">
|
||||||
|
|
||||||
<form name="fitem" action="<?php echo $action_url; ?>" method="post">
|
<form name="fitem" action="<?php echo $action_url; ?>" method="post">
|
||||||
<input type="hidden" name="it_id" value="<?php echo $it['it_id']; ?>">
|
<input type="hidden" name="it_id[]" value="<?php echo $it['it_id']; ?>">
|
||||||
<input type="hidden" name="sw_direct">
|
<input type="hidden" name="sw_direct">
|
||||||
<input type="hidden" name="url">
|
<input type="hidden" name="url">
|
||||||
|
|
||||||
@ -237,8 +237,6 @@ else
|
|||||||
</script>
|
</script>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php //echo it_name_icon($it, false, 0); ?>
|
|
||||||
|
|
||||||
<section id="sit_ov">
|
<section id="sit_ov">
|
||||||
<h2>상품간략정보 및 구매기능</h2>
|
<h2>상품간략정보 및 구매기능</h2>
|
||||||
<strong id="sit_title"><?php echo stripslashes($it['it_name']); ?></strong><br>
|
<strong id="sit_title"><?php echo stripslashes($it['it_name']); ?></strong><br>
|
||||||
@ -404,15 +402,15 @@ else
|
|||||||
<?php if(!$option_1 && !$option_2) { ?>
|
<?php if(!$option_1 && !$option_2) { ?>
|
||||||
<ul id="sit_opt_added">
|
<ul id="sit_opt_added">
|
||||||
<li class="sit_opt_list">
|
<li class="sit_opt_list">
|
||||||
<input type="hidden" name="io_type[]" value="0">
|
<input type="hidden" name="io_type[<?php echo $it_id; ?>][]" value="0">
|
||||||
<input type="hidden" name="io_id[]" value="">
|
<input type="hidden" name="io_id[<?php echo $it_id; ?>][]" value="">
|
||||||
<input type="hidden" name="io_value[]" value="<?php echo $it['it_name']; ?>">
|
<input type="hidden" name="io_value[<?php echo $it_id; ?>][]" value="<?php echo $it['it_name']; ?>">
|
||||||
<input type="hidden" name="io_price[]" value="0">
|
<input type="hidden" name="io_price[]" value="0">
|
||||||
<input type="hidden" name="io_stock[]" value="<?php echo $it['it_stock_qty']; ?>">
|
<input type="hidden" name="io_stock[]" value="<?php echo $it['it_stock_qty']; ?>">
|
||||||
<span class="sit_opt_subj"><?php echo $it['it_name']; ?></span>
|
<span class="sit_opt_subj"><?php echo $it['it_name']; ?></span>
|
||||||
<span class="sit_opt_prc">(+0원)</span>
|
<span class="sit_opt_prc">(+0원)</span>
|
||||||
<div>
|
<div>
|
||||||
<input type="text" name="ct_qty[]" value="1" class="frm_input" size="5">
|
<input type="text" name="ct_qty[<?php echo $it_id; ?>][]" value="1" class="frm_input" size="5">
|
||||||
<button type="button" class="sit_qty_plus btn_frmline">증가</button>
|
<button type="button" class="sit_qty_plus btn_frmline">증가</button>
|
||||||
<button type="button" class="sit_qty_minus btn_frmline">감소</button>
|
<button type="button" class="sit_qty_minus btn_frmline">감소</button>
|
||||||
</div>
|
</div>
|
||||||
@ -673,7 +671,7 @@ else
|
|||||||
}
|
}
|
||||||
|
|
||||||
var val, result = true;
|
var val, result = true;
|
||||||
$("input[name='ct_qty[]']").each(function() {
|
$("input[name^=ct_qty]").each(function() {
|
||||||
val = $(this).val();
|
val = $(this).val();
|
||||||
|
|
||||||
if(val.length < 1) {
|
if(val.length < 1) {
|
||||||
|
|||||||
@ -63,7 +63,7 @@ $itemuse_formupdate = "./itemuseformupdate.php?it_id=".$it_id;
|
|||||||
<dt>작성일</dt>
|
<dt>작성일</dt>
|
||||||
<dd><?php echo $is_time; ?></dd>
|
<dd><?php echo $is_time; ?></dd>
|
||||||
<dt>선호도<dt>
|
<dt>선호도<dt>
|
||||||
<dd class="sit_use_star"><img src="<?php echo G4_URL; ?>/img/shop/s_star<?php echo $is_star; ?>.png" alt="별<?php echo $is_star; ?>개"></dd>
|
<dd class="sit_use_star"><img src="<?php echo G4_SHOP_URL; ?>/img/s_star<?php echo $is_star; ?>.png" alt="별<?php echo $is_star; ?>개"></dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
<div id="sit_use_con_<?php echo $i; ?>" class="sit_use_con">
|
<div id="sit_use_con_<?php echo $i; ?>" class="sit_use_con">
|
||||||
|
|||||||
@ -67,8 +67,9 @@ if ($is_admin)
|
|||||||
$error = '<p class="sct_noitem">등록된 상품이 없습니다.</p>';
|
$error = '<p class="sct_noitem">등록된 상품이 없습니다.</p>';
|
||||||
|
|
||||||
// 리스트 유형별로 출력
|
// 리스트 유형별로 출력
|
||||||
$list_file = G4_MSHOP_PATH.'/'.$ca['ca_mobile_skin'];
|
$list_file = G4_MSHOP_SKIN_PATH.'/'.$ca['ca_mobile_skin'];
|
||||||
if (file_exists($list_file)) {
|
if (file_exists($list_file)) {
|
||||||
|
/*
|
||||||
$list_row = $ca['ca_mobile_list_row'];
|
$list_row = $ca['ca_mobile_list_row'];
|
||||||
$img_width = $ca['ca_mobile_img_width'];
|
$img_width = $ca['ca_mobile_img_width'];
|
||||||
$img_height = $ca['ca_mobile_img_height'];
|
$img_height = $ca['ca_mobile_img_height'];
|
||||||
@ -78,10 +79,28 @@ if ($is_admin)
|
|||||||
$sql = $sql_list1 . $sql_common . $sql_list2 . " limit $from_record, $items ";
|
$sql = $sql_list1 . $sql_common . $sql_list2 . " limit $from_record, $items ";
|
||||||
$result = sql_query($sql);
|
$result = sql_query($sql);
|
||||||
|
|
||||||
echo '<div class="sct_wrap">';
|
echo '<div class="sct_wrap">';
|
||||||
include $list_file;
|
include $list_file;
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
*/
|
||||||
|
|
||||||
|
// 총몇개
|
||||||
|
$items = $ca['ca_mobile_list_mod'];
|
||||||
|
// 페이지가 없으면 첫 페이지 (1 페이지)
|
||||||
|
if ($page == "") $page = 1;
|
||||||
|
// 시작 레코드 구함
|
||||||
|
$from_record = ($page - 1) * $items;
|
||||||
|
|
||||||
|
$list = new item_list($ca['ca_mobile_skin'], $ca['ca_mobile_list_mod'], 1, $ca['ca_mobile_img_width'], $ca['ca_mobile_img_height']);
|
||||||
|
$list->set_category($ca['ca_id']);
|
||||||
|
$list->set_is_page(true);
|
||||||
|
$list->set_from_record($from_record);
|
||||||
|
echo $list->run();
|
||||||
|
|
||||||
|
// where 된 전체 상품수
|
||||||
|
$total_count = $list->total_count;
|
||||||
|
// 전체 페이지 계산
|
||||||
|
$total_page = ceil($total_count / $items);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@ -122,7 +122,6 @@ $total_count = $row['cnt'];
|
|||||||
<span class="ssch_img"><?php echo $image; ?></span>
|
<span class="ssch_img"><?php echo $image; ?></span>
|
||||||
<b class="ssch_ct"><?php echo ($ca_temp) ? $ca_temp : $ca_name; ?></b>
|
<b class="ssch_ct"><?php echo ($ca_temp) ? $ca_temp : $ca_name; ?></b>
|
||||||
<a href="<?php echo G4_SHOP_URL; ?>/item.php?it_id=<?php echo $row['it_id']; ?>"><?php echo get_text($row['it_name']); ?></a>
|
<a href="<?php echo G4_SHOP_URL; ?>/item.php?it_id=<?php echo $row['it_id']; ?>"><?php echo get_text($row['it_name']); ?></a>
|
||||||
<?php echo it_name_icon($row); ?>
|
|
||||||
<span class="ssch_cost"><?php echo display_price(get_price($row), $row['it_tel_inq']); ?></span>
|
<span class="ssch_cost"><?php echo display_price(get_price($row), $row['it_tel_inq']); ?></span>
|
||||||
<p><?php echo $row['it_basic']; ?></p>
|
<p><?php echo $row['it_basic']; ?></p>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
@ -61,11 +61,14 @@ include_once(G4_MSHOP_PATH.'/_head.php');
|
|||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
품절
|
품절
|
||||||
<input type="hidden" name="it_id[<?php echo $i; ?>]">
|
|
||||||
<?php } else { //품절이 아니면 체크할수 있도록한다 ?>
|
<?php } else { //품절이 아니면 체크할수 있도록한다 ?>
|
||||||
<input type="checkbox" name="it_id[<?php echo $i; ?>]" value="<?php echo $row['it_id']; ?>" onclick="out_cd_check(this, '<?php echo $out_cd; ?>');">
|
<input type="checkbox" name="chk_it_id[<?php echo $i; ?>]" value="1" onclick="out_cd_check(this, '<?php echo $out_cd; ?>');">
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<input type="hidden" name="ct_qty[<?php echo $i; ?>]" value="1">
|
<input type="hidden" name="it_id[<?php echo $i; ?>]" value="<?php echo $row['it_id']; ?>">
|
||||||
|
<input type="hidden" name="io_type[<?php echo $row['it_id']; ?>][0]" value="0">
|
||||||
|
<input type="hidden" name="io_id[<?php echo $row['it_id']; ?>][0]" value="">
|
||||||
|
<input type="hidden" name="io_value[<?php echo $row['it_id']; ?>][0]" value="<?php echo $row['it_name']; ?>">
|
||||||
|
<input type="hidden" name="ct_qty[<?php echo $row['it_id']; ?>][0]" value="1">
|
||||||
</td>
|
</td>
|
||||||
<td class="td_smallmng"><a href="<?php echo G4_SHOP_URL; ?>/wishupdate.php?w=d&wi_id=<?php echo $row['wi_id']; ?>">삭제</a></td>
|
<td class="td_smallmng"><a href="<?php echo G4_SHOP_URL; ?>/wishupdate.php?w=d&wi_id=<?php echo $row['wi_id']; ?>">삭제</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<link rel="stylesheet" href="<?php echo G4_SHOP_SKIN_URL; ?>/style.css">
|
<link rel="stylesheet" href="<?php echo G4_MSHOP_SKIN_URL; ?>/style.css">
|
||||||
|
|
||||||
<!-- 상품진열 10 시작 { -->
|
<!-- 상품진열 10 시작 { -->
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
79
mobile/skin/shop/basic/style.css
Normal file
79
mobile/skin/shop/basic/style.css
Normal file
@ -0,0 +1,79 @@
|
|||||||
|
|
||||||
|
/* ##### maintype(nn).inc.php, list.skin.(nn).php 공통 적용 시작 ##### */
|
||||||
|
/* 공통 */
|
||||||
|
.sct_wrap {margin:0 0 30px;zoom:1}
|
||||||
|
.sct_wrap:after {display:block;visibility:hidden;clear:both;content:""}
|
||||||
|
.sct_wrap header {margin:0 0 20px;zoom:1}
|
||||||
|
.sct_wrap header:after {display:block;visibility:hidden;clear:both;content:""}
|
||||||
|
.sct_wrap h2 {float:left;margin:0 20px 0 0;padding:0;line-height:1em}
|
||||||
|
.sct_wrap h2 a {text-decoration:none}
|
||||||
|
.sct_wrap_hdesc {float:left;margin:0;padding:0;color:#777;line-height:1em}
|
||||||
|
|
||||||
|
.sct {margin:0;padding:0;list-style:none;zoom:1}
|
||||||
|
.sct:after {display:block;visibility:hidden;clear:both;content:""}
|
||||||
|
.sct_li {position:relative}
|
||||||
|
.sct_noitem {padding:100px 0;text-align:center}
|
||||||
|
|
||||||
|
/* 상품 목록 스킨 10 */
|
||||||
|
.sct_10 .sct_li {float:left;margin:0 25px 15px 0;}
|
||||||
|
.sct_10 .sct_last {margin:0 0 15px !important}
|
||||||
|
.sct_10 .sct_clear {clear:both}
|
||||||
|
.sct_10 .sct_a {display:block;position:relative;text-decoration:none}
|
||||||
|
.sct_10 .sct_a:focus, .sct_10 .sct_a:hover {text-decoration:none}
|
||||||
|
.sct_10 .sct_img {display:block;margin:0 0 15px}
|
||||||
|
.sct_10 b {display:block;margin:0 0 8px;font-weight:normal}
|
||||||
|
.sct_10 s {display:block}
|
||||||
|
.sct_10 .sct_cost {display:block;margin:0 0 10px;font-weight:bold}
|
||||||
|
.sct_10 .sct_icon {}
|
||||||
|
.sct_10 .sct_icon img {}
|
||||||
|
.sct_10 .sct_sns {position:absolute;top:190px;right:20px}
|
||||||
|
|
||||||
|
/* 상품 목록 스킨 11 */
|
||||||
|
.sct_11 .sct_li {float:left;margin:0 25px 15px 0;}
|
||||||
|
.sct_11 .sct_last {margin:0 0 15px !important}
|
||||||
|
.sct_11 .sct_clear {clear:both}
|
||||||
|
.sct_11 .sct_a {display:block;position:relative;padding:0 0 5px;background:#f5f6fa;text-decoration:none}
|
||||||
|
.sct_11 .sct_a:focus, .sct_11 .sct_a:hover {text-decoration:none}
|
||||||
|
.sct_11 .sct_img {display:block;margin:0 0 15px}
|
||||||
|
.sct_11 b {display:block;margin:0 0 8px;padding:0 5px;font-weight:normal}
|
||||||
|
.sct_11 s {display:block}
|
||||||
|
.sct_11 .sct_cost {display:block;margin:0 0 10px;padding:0 5px;font-weight:bold}
|
||||||
|
.sct_11 .sct_icon {position:absolute;top:10px;left:-5px;margin:0 !important}
|
||||||
|
.sct_11 .sct_icon img {display:block}
|
||||||
|
.sct_11 .sct_sns {position:absolute;bottom:10px;right:10px}
|
||||||
|
|
||||||
|
/* 상품 목록 스킨 12 */
|
||||||
|
.sct_12 .sct_li {float:left;margin:0 16px 15px 0;}
|
||||||
|
.sct_12 .sct_last {margin:0 0 15px !important}
|
||||||
|
.sct_12 .sct_clear {clear:both}
|
||||||
|
.sct_12 .sct_arw_toleft {display:block;z-index:2;position:absolute;top:20px;left:221px;width:10px;height:19px;background:url('../img/shop/icon_arw_toleft.gif') no-repeat}
|
||||||
|
.sct_12 .sct_a {display:block;position:relative;padding:20px 10px 20px 240px;width:110px;height:190px;border:1px solid #e9e9e9;background:#f5f6fa;text-decoration:none}
|
||||||
|
.sct_12 .sct_a:focus, .sct_12 .sct_a:hover {text-decoration:none}
|
||||||
|
.sct_12 .sct_img {position:absolute;top:0;left:0}
|
||||||
|
.sct_12 b {display:block;margin:0 0 15px;font-size:1.2em;letter-spacing:-0.1em}
|
||||||
|
.sct_12 p {margin:0 0 15px;padding:0;line-height:1.5em}
|
||||||
|
.sct_12 s {display:block}
|
||||||
|
.sct_12 .sct_cost {display:block;margin:0 0 10px;font-weight:bold}
|
||||||
|
.sct_12 .sct_icon {position:absolute;bottom:25px;left:-5px;margin:0 !important}
|
||||||
|
.sct_12 .sct_icon img {display:block}
|
||||||
|
.sct_12 .sct_sns {position:absolute;bottom:20px;right:10px}
|
||||||
|
|
||||||
|
/* 상품 목록 스킨 13 */
|
||||||
|
.sct_13 .sct_li {float:left;margin:0 0 16px 0;width:100%}
|
||||||
|
.sct_13 .sct_last {}
|
||||||
|
.sct_13 .sct_clear {clear:both}
|
||||||
|
.sct_13 .sct_arw_toleft {display:block;z-index:2;position:absolute;top:20px;left:221px;width:10px;height:19px;background:url('../img/shop/icon_arw_toleft.gif') no-repeat}
|
||||||
|
.sct_13 .sct_a {display:block;position:relative;padding:20px 10px 20px 240px;height:190px;border:1px solid #e9e9e9;background:#f5f6fa;text-decoration:none}
|
||||||
|
.sct_13 .sct_a:focus, .sct_13 .sct_a:hover {text-decoration:none}
|
||||||
|
.sct_13 .sct_img {position:absolute;top:0;left:0}
|
||||||
|
.sct_13 b {display:block;margin:0 0 15px;font-size:1.2em;letter-spacing:-0.1em}
|
||||||
|
.sct_13 p {margin:0 0 15px;padding:0;line-height:1.5em}
|
||||||
|
.sct_13 s {display:block}
|
||||||
|
.sct_13 .sct_cost {display:block;margin:0 0 10px;font-weight:bold}
|
||||||
|
.sct_13 .sct_icon {position:absolute;bottom:25px;left:-5px;margin:0 !important}
|
||||||
|
.sct_13 .sct_icon img {display:block}
|
||||||
|
.sct_13 .sct_rel {position:absolute;bottom:20px;right:20px}
|
||||||
|
.sct_13 .sct_rel_ul {margin:0;padding:0;list-style:none}
|
||||||
|
.sct_13 .sct_rel_li {float:left;margin:0 0 0 10px}
|
||||||
|
.sct_13 .sct_sns {position:absolute;top:20px;right:20px}
|
||||||
|
/* ##### maintype(nn).inc.php, list.skin.(nn).php 공통 적용 끝 ##### */
|
||||||
@ -26,12 +26,9 @@ if(!mysql_num_rows($result))
|
|||||||
<!-- 장바구니 옵션 시작 { -->
|
<!-- 장바구니 옵션 시작 { -->
|
||||||
<form name="foption" method="post" action="<?php echo G4_SHOP_URL; ?>/cartupdate.php" onsubmit="return formcheck(this);">
|
<form name="foption" method="post" action="<?php echo G4_SHOP_URL; ?>/cartupdate.php" onsubmit="return formcheck(this);">
|
||||||
<input type="hidden" name="act" value="optionmod">
|
<input type="hidden" name="act" value="optionmod">
|
||||||
<input type="hidden" name="it_id" value="<?php echo $it['it_id']; ?>">
|
<input type="hidden" name="it_id[]" value="<?php echo $it['it_id']; ?>">
|
||||||
<input type="hidden" name="it_price" value="<?php echo $row2['ct_price']; ?>">
|
<input type="hidden" name="it_price" value="<?php echo $row2['ct_price']; ?>">
|
||||||
<input type="hidden" name="it_name" value="<?php echo $row2['it_name']; ?>">
|
|
||||||
<input type="hidden" name="it_point" value="<?php echo $it_point; ?>">
|
|
||||||
<input type="hidden" name="ct_send_cost" value="<?php echo $row2['ct_send_cost']; ?>">
|
<input type="hidden" name="ct_send_cost" value="<?php echo $row2['ct_send_cost']; ?>">
|
||||||
<input type="hidden" name="total_price" value="">
|
|
||||||
<input type="hidden" name="sw_direct">
|
<input type="hidden" name="sw_direct">
|
||||||
<?php
|
<?php
|
||||||
$option_1 = get_item_options($it['it_id'], $it['it_option_subject']);
|
$option_1 = get_item_options($it['it_id'], $it['it_option_subject']);
|
||||||
@ -96,16 +93,15 @@ if($option_2) {
|
|||||||
$cls = 'spl';
|
$cls = 'spl';
|
||||||
?>
|
?>
|
||||||
<li class="sit_<?php echo $cls; ?>_list">
|
<li class="sit_<?php echo $cls; ?>_list">
|
||||||
<input type="hidden" name="ct_id[]" value="<?php echo $row['ct_id']; ?>">
|
<input type="hidden" name="io_type[<?php echo $it['it_id']; ?>][]" value="<?php echo $row['io_type']; ?>">
|
||||||
<input type="hidden" name="io_type[]" value="<?php echo $row['io_type']; ?>">
|
<input type="hidden" name="io_id[<?php echo $it['it_id']; ?>][]" value="<?php echo $row['io_id']; ?>">
|
||||||
<input type="hidden" name="io_id[]" value="<?php echo $row['io_id']; ?>">
|
<input type="hidden" name="io_value[<?php echo $it['it_id']; ?>][]" value="<?php echo $row['ct_option']; ?>">
|
||||||
<input type="hidden" name="io_value[]" value="<?php echo $row['ct_option']; ?>">
|
|
||||||
<input type="hidden" name="io_price[]" value="<?php echo $row['io_price']; ?>">
|
<input type="hidden" name="io_price[]" value="<?php echo $row['io_price']; ?>">
|
||||||
<input type="hidden" name="io_stock[]" value="<?php echo $it_stock_qty; ?>">
|
<input type="hidden" name="io_stock[]" value="<?php echo $it_stock_qty; ?>">
|
||||||
<span class="sit_opt_subj"><?php echo $row['ct_option']; ?></span>
|
<span class="sit_opt_subj"><?php echo $row['ct_option']; ?></span>
|
||||||
<span class="sit_opt_prc"><?php echo $io_price; ?></span>
|
<span class="sit_opt_prc"><?php echo $io_price; ?></span>
|
||||||
<div>
|
<div>
|
||||||
<input type="text" name="ct_qty[]" value="<?php echo $row['ct_qty']; ?>" class="frm_input" size="5">
|
<input type="text" name="ct_qty[<?php echo $it['it_id']; ?>][]" value="<?php echo $row['ct_qty']; ?>" class="frm_input" size="5">
|
||||||
<button type="button" class="sit_qty_plus btn_frmline">증가</button>
|
<button type="button" class="sit_qty_plus btn_frmline">증가</button>
|
||||||
<button type="button" class="sit_qty_minus btn_frmline">감소</button>
|
<button type="button" class="sit_qty_minus btn_frmline">감소</button>
|
||||||
<button type="button" class="btn_frmline">삭제</button>
|
<button type="button" class="btn_frmline">삭제</button>
|
||||||
@ -128,7 +124,7 @@ if($option_2) {
|
|||||||
function formcheck(f)
|
function formcheck(f)
|
||||||
{
|
{
|
||||||
var val, result = true;
|
var val, result = true;
|
||||||
$("li input[name='ct_qty[]']").each(function() {
|
$("li input[name^=ct_qty]").each(function() {
|
||||||
val = $(this).val();
|
val = $(this).val();
|
||||||
|
|
||||||
if(val.length < 1) {
|
if(val.length < 1) {
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
include_once('./_common.php');
|
include_once('./_common.php');
|
||||||
|
|
||||||
//print_r2($_POST); exit;
|
// print_r2($_POST); exit;
|
||||||
|
|
||||||
// uq_id 설정
|
// uq_id 설정
|
||||||
set_unique_id($sw_direct);
|
set_unique_id($sw_direct);
|
||||||
@ -74,217 +74,45 @@ else if ($act == "seldelete") // 선택삭제
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ($act == "multi") // 여러개의 상품이 한꺼번에 들어옴.
|
|
||||||
{
|
|
||||||
$fldcnt = count($_POST['it_id']);
|
|
||||||
$arr_item = array();
|
|
||||||
|
|
||||||
// 재고등을 검사
|
|
||||||
$error = "";
|
|
||||||
for ($i=0; $i<$fldcnt; $i++)
|
|
||||||
{
|
|
||||||
if ($_POST['it_id'][$i] == "" || $_POST['ct_qty'][$i] <= 0) { continue; }
|
|
||||||
|
|
||||||
//옵션있는 상품은 건너뜀
|
|
||||||
$arr_item[$i]['opt_skip'] = 0;
|
|
||||||
$sql = " select count(*) as cnt from {$g4['shop_item_option_table']} where it_id = '{$_POST['it_id'][$i]}' and io_type = '0' ";
|
|
||||||
$tmp = sql_fetch($sql);
|
|
||||||
if($tmp['cnt']) {
|
|
||||||
$arr_item[$i]['opt_skip'] = 1;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 상품정보
|
|
||||||
$sql = " select * from {$g4['shop_item_table']} where it_id = '{$_POST['it_id'][$i]}' ";
|
|
||||||
$it = sql_fetch($sql);
|
|
||||||
if(!$it['it_id'])
|
|
||||||
continue;
|
|
||||||
|
|
||||||
$arr_item[$i]['id'] = $it['it_id'];
|
|
||||||
$arr_item[$i]['name'] = $it['it_name'];
|
|
||||||
$arr_item[$i]['price'] = get_price($it);
|
|
||||||
$arr_item[$i]['point'] = $config['cf_use_point'] ? get_item_point($it) : 0;
|
|
||||||
$arr_item[$i]['notax'] = $it['it_notax'];
|
|
||||||
|
|
||||||
// 이미 장바구니에 있는 같은 상품의 수량합계를 구한다.
|
|
||||||
$sql = " select SUM(ct_qty) as cnt from {$g4['shop_cart_table']} where it_id = '{$_POST['it_id'][$i]}' and uq_id = '$tmp_uq_id' ";
|
|
||||||
$row = sql_fetch($sql);
|
|
||||||
$sum_qty = $row['cnt'];
|
|
||||||
|
|
||||||
// 재고 구함
|
|
||||||
$it_stock_qty = get_it_stock_qty($_POST['it_id'][$i]);
|
|
||||||
if ($_POST['ct_qty'][$i] + $sum_qty > $it_stock_qty) {
|
|
||||||
$error .= "{$_POST['it_name'][$i]} 의 재고수량이 부족합니다. 현재 재고수량 : $it_stock_qty\\n\\n";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 오류가 있다면 오류메세지 출력
|
|
||||||
if ($error != "") { alert($error); }
|
|
||||||
|
|
||||||
$ct_count = 0;
|
|
||||||
$comma = '';
|
|
||||||
$sql = " INSERT INTO {$g4['shop_cart_table']}
|
|
||||||
( uq_id, mb_id, it_id, it_name, ct_status, ct_price, ct_point, ct_point_use, ct_stock_use, ct_option, ct_qty, ct_num, ct_notax, io_id, io_type, io_price, ct_time, ct_ip, ct_send_cost, ct_direct, ct_select )
|
|
||||||
VALUES ";
|
|
||||||
$ct_select = 0;
|
|
||||||
if($sw_direct)
|
|
||||||
$ct_select = 1;
|
|
||||||
|
|
||||||
for ($i=0; $i<$fldcnt; $i++)
|
|
||||||
{
|
|
||||||
if ($_POST['it_id'][$i] == "" || $_POST['ct_qty'][$i] <= 0) continue;
|
|
||||||
|
|
||||||
// 옵션있는 상품이라면 건너뜀
|
|
||||||
if($arr_item[$i]['opt_skip'])
|
|
||||||
continue;
|
|
||||||
|
|
||||||
// 동일옵션의 상품이 있으면 수량 더함
|
|
||||||
$sql2 = " select ct_id
|
|
||||||
from {$g4['shop_cart_table']}
|
|
||||||
where uq_id = '$tmp_uq_id'
|
|
||||||
and it_id = '{$_POST['it_id'][$i]}'
|
|
||||||
and ct_status = '쇼핑' ";
|
|
||||||
$row2 = sql_fetch($sql2);
|
|
||||||
if($row2['ct_id']) {
|
|
||||||
$sql3 = " update {$g4['shop_cart_table']}
|
|
||||||
set ct_qty = ct_qty + {$_POST['ct_qty'][$i]}
|
|
||||||
where ct_id = '{$row2['ct_id']}' ";
|
|
||||||
sql_query($sql3);
|
|
||||||
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
$sql .= $comma."( '$tmp_uq_id', '{$member['mb_id']}', '{$arr_item[$i]['id']}', '{$arr_item[$i]['name']}', '쇼핑', '{$arr_item[$i]['price']}', '{$arr_item[$i]['point']}', '0', '0', '{$arr_item[$i]['name']}', '{$_POST['ct_qty'][$i]}', '0', '{$arr_item[$i]['notax']}', '', '0', '0', '".G4_TIME_YMDHIS."', '$REMOTE_ADDR', '$ct_send_cost', '$sw_direct', '$ct_select' )";
|
|
||||||
$comma = ' , ';
|
|
||||||
$ct_count++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if($ct_count > 0)
|
|
||||||
sql_query($sql);
|
|
||||||
}
|
|
||||||
else if ($act == "optionmod") // 장바구니에서 옵션변경
|
|
||||||
{
|
|
||||||
if (!$_POST['it_id'])
|
|
||||||
alert('장바구니에 담을 상품을 선택하여 주십시오.');
|
|
||||||
|
|
||||||
$option_count = count($_POST['io_id']);
|
|
||||||
|
|
||||||
if($_POST['io_type'][0] != 0)
|
|
||||||
alert('상품의 선택옵션을 선택해 주십시오.');
|
|
||||||
|
|
||||||
if($option_count) {
|
|
||||||
for($i=0; $i<count($_POST['ct_qty']); $i++) {
|
|
||||||
if ($_POST['ct_qty'][$i] < 1)
|
|
||||||
alert('수량은 1 이상 입력해 주십시오.');
|
|
||||||
}
|
|
||||||
|
|
||||||
// 상품정보
|
|
||||||
$sql = " select * from {$g4['shop_item_table']} where it_id = '{$_POST['it_id']}' ";
|
|
||||||
$it = sql_fetch($sql);
|
|
||||||
if(!$it['it_id'])
|
|
||||||
alert('상품정보가 존재하지 않습니다.');
|
|
||||||
|
|
||||||
// 옵션정보를 얻어서 배열에 저장
|
|
||||||
$opt_list = array();
|
|
||||||
$sql = " select * from {$g4['shop_item_option_table']} where it_id = '{$_POST['it_id']}' and io_use = '1' order by io_no asc ";
|
|
||||||
$result = sql_query($sql);
|
|
||||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
|
||||||
$opt_list[$row['io_type']][$row['io_id']]['id'] = $row['io_id'];
|
|
||||||
$opt_list[$row['io_type']][$row['io_id']]['price'] = $row['io_price'];
|
|
||||||
$opt_list[$row['io_type']][$row['io_id']]['stock'] = $row['io_stock_qty'];
|
|
||||||
}
|
|
||||||
|
|
||||||
// 포인트
|
|
||||||
$point = 0;
|
|
||||||
if($config['cf_use_point'])
|
|
||||||
$point = get_item_point($it);
|
|
||||||
|
|
||||||
//--------------------------------------------------------
|
|
||||||
// 재고 검사
|
|
||||||
//--------------------------------------------------------
|
|
||||||
// 이미 장바구니에 있는 같은 상품의 수량합계를 구한다.
|
|
||||||
for($i=0; $i<$option_count; $i++) {
|
|
||||||
$sql = " select SUM(ct_qty) as cnt from {$g4['shop_cart_table']}
|
|
||||||
where it_id = '{$_POST['it_id']}'
|
|
||||||
and uq_id = '$tmp_uq_id'
|
|
||||||
and io_id = '{$_POST['io_id'][$i]}' ";
|
|
||||||
$row = sql_fetch($sql);
|
|
||||||
$sum_qty = $row['cnt'];
|
|
||||||
|
|
||||||
// 재고 구함
|
|
||||||
$ct_qty = $_POST['ct_qty'][$i];
|
|
||||||
if(!$_POST['io_id'][$i])
|
|
||||||
$it_stock_qty = get_it_stock_qty($_POST['it_id']);
|
|
||||||
else
|
|
||||||
$it_stock_qty = get_option_stock_qty($_POST['it_id'], $_POST['io_id'][$i], $_POST['io_type'][$i]);
|
|
||||||
|
|
||||||
if ($ct_qty + $sum_qty > $it_stock_qty)
|
|
||||||
{
|
|
||||||
alert($_POST['io_value'][$i]." 의 재고수량이 부족합니다.\\n\\n현재 재고수량 : " . number_format($it_stock_qty) . " 개");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
//--------------------------------------------------------
|
|
||||||
|
|
||||||
// 기존 장바구니 자료를 먼저 삭제
|
|
||||||
sql_query(" delete from {$g4['shop_cart_table']} where uq_id = '$tmp_uq_id' and it_id = '$it_id' ");
|
|
||||||
|
|
||||||
// 장바구니에 Insert
|
|
||||||
$comma = '';
|
|
||||||
$sql = " INSERT INTO {$g4['shop_cart_table']}
|
|
||||||
( uq_id, mb_id, it_id, it_name, ct_status, ct_price, ct_point, ct_point_use, ct_stock_use, ct_option, ct_qty, ct_num, ct_notax, io_id, io_type, io_price, ct_time, ct_ip, ct_direct, ct_send_cost )
|
|
||||||
VALUES ";
|
|
||||||
|
|
||||||
for($i=0; $i<$option_count; $i++) {
|
|
||||||
$opt_id = $_POST['io_id'][$i];
|
|
||||||
$opt_type = $_POST['io_type'][$i];
|
|
||||||
|
|
||||||
// 옵션테이블에 정보가 없으면 건너뜀
|
|
||||||
if($opt_id && !$opt_list[$opt_type][$opt_id]['id'])
|
|
||||||
continue;
|
|
||||||
|
|
||||||
$opt_price = $opt_list[$opt_type][$opt_id]['price'];
|
|
||||||
$opt_qty = $_POST['ct_qty'][$i];
|
|
||||||
|
|
||||||
$sql .= $comma."( '$tmp_uq_id', '{$member['mb_id']}', '{$it['it_id']}', '{$it['it_name']}', '쇼핑', '{$it['it_price']}', '$point', '0', '0', '{$_POST['io_value'][$i]}', '$opt_qty', '$i', '{$it['it_notax']}', '$opt_id', '$opt_type', '$opt_price', '".G4_TIME_YMDHIS."', '$REMOTE_ADDR', '$sw_direct', '$ct_send_cost' )";
|
|
||||||
$comma = ' , ';
|
|
||||||
}
|
|
||||||
|
|
||||||
sql_query($sql);
|
|
||||||
} else {
|
|
||||||
// 기존 장바구니 자료 삭제
|
|
||||||
sql_query(" delete from {$g4['shop_cart_table']} where uq_id = '$tmp_uq_id' and it_id = '$it_id' ");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else // 장바구니에 담기
|
else // 장바구니에 담기
|
||||||
{
|
{
|
||||||
if (!$_POST['it_id'])
|
$count = count($_POST['it_id']);
|
||||||
|
if ($count < 1)
|
||||||
alert('장바구니에 담을 상품을 선택하여 주십시오.');
|
alert('장바구니에 담을 상품을 선택하여 주십시오.');
|
||||||
|
|
||||||
$option_count = count($_POST['io_id']);
|
for($i=0; $i<$count; $i++) {
|
||||||
if($option_count) {
|
// 보관함의 상품을 담을 때 체크되지 않은 상품 건너뜀
|
||||||
if($_POST['io_type'][0] != 0)
|
if($act == 'multi' && !$_POST['chk_it_id'][$i])
|
||||||
|
continue;
|
||||||
|
|
||||||
|
$it_id = $_POST['it_id'][$i];
|
||||||
|
$opt_count = count($_POST['io_id'][$it_id]);
|
||||||
|
|
||||||
|
if($opt_count && $_POST['io_type'][$it_id][0] != 0)
|
||||||
alert('상품의 선택옵션을 선택해 주십시오.');
|
alert('상품의 선택옵션을 선택해 주십시오.');
|
||||||
|
|
||||||
for($i=0; $i<count($_POST['ct_qty']); $i++) {
|
for($k=0; $k<$opt_count; $k++) {
|
||||||
if ($_POST['ct_qty'][$i] < 1)
|
if ($_POST['ct_qty'][$it_id][$k] < 1)
|
||||||
alert('수량은 1 이상 입력해 주십시오.');
|
alert('수량은 1 이상 입력해 주십시오.');
|
||||||
}
|
}
|
||||||
|
|
||||||
// 상품정보
|
// 상품정보
|
||||||
$total_price = 0;
|
$sql = " select * from {$g4['shop_item_table']} where it_id = '$it_id' ";
|
||||||
$sql = " select * from {$g4['shop_item_table']} where it_id = '{$_POST['it_id']}' ";
|
|
||||||
$it = sql_fetch($sql);
|
$it = sql_fetch($sql);
|
||||||
if(!$it['it_id'])
|
if(!$it['it_id'])
|
||||||
alert('상품정보가 존재하지 않습니다.');
|
alert('상품정보가 존재하지 않습니다.');
|
||||||
|
|
||||||
// 옵션정보를 얻어서 배열에 저장
|
// 옵션정보를 얻어서 배열에 저장
|
||||||
$opt_list = array();
|
$opt_list = array();
|
||||||
$sql = " select * from {$g4['shop_item_option_table']} where it_id = '{$_POST['it_id']}' and io_use = '1' order by io_no asc ";
|
$sql = " select * from {$g4['shop_item_option_table']} where it_id = '$it_id' order by io_no asc ";
|
||||||
$result = sql_query($sql);
|
$result = sql_query($sql);
|
||||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
$lst_count = 0;
|
||||||
|
for($k=0; $row=sql_fetch_array($result); $k++) {
|
||||||
$opt_list[$row['io_type']][$row['io_id']]['id'] = $row['io_id'];
|
$opt_list[$row['io_type']][$row['io_id']]['id'] = $row['io_id'];
|
||||||
|
$opt_list[$row['io_type']][$row['io_id']]['use'] = $row['io_use'];
|
||||||
$opt_list[$row['io_type']][$row['io_id']]['price'] = $row['io_price'];
|
$opt_list[$row['io_type']][$row['io_id']]['price'] = $row['io_price'];
|
||||||
$opt_list[$row['io_type']][$row['io_id']]['stock'] = $row['io_stock_qty'];
|
$opt_list[$row['io_type']][$row['io_id']]['stock'] = $row['io_stock_qty'];
|
||||||
|
$lst_count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 포인트
|
// 포인트
|
||||||
@ -296,35 +124,44 @@ else // 장바구니에 담기
|
|||||||
// 재고 검사
|
// 재고 검사
|
||||||
//--------------------------------------------------------
|
//--------------------------------------------------------
|
||||||
// 이미 장바구니에 있는 같은 상품의 수량합계를 구한다.
|
// 이미 장바구니에 있는 같은 상품의 수량합계를 구한다.
|
||||||
for($i=0; $i<$option_count; $i++) {
|
for($k=0; $k<$opt_count; $k++) {
|
||||||
|
$io_id = $_POST['io_id'][$it_id][$k];
|
||||||
|
$io_type = $_POST['io_type'][$it_id][$k];
|
||||||
|
$io_value = $_POST['io_value'][$it_id][$k];
|
||||||
|
|
||||||
$sql = " select SUM(ct_qty) as cnt from {$g4['shop_cart_table']}
|
$sql = " select SUM(ct_qty) as cnt from {$g4['shop_cart_table']}
|
||||||
where it_id = '{$_POST['it_id']}'
|
where it_id = '$it_id'
|
||||||
and uq_id = '$tmp_uq_id'
|
and uq_id = '$tmp_uq_id'
|
||||||
and io_id = '{$_POST['io_id'][$i]}' ";
|
and io_id = '$io_id' ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
$sum_qty = $row['cnt'];
|
$sum_qty = $row['cnt'];
|
||||||
|
|
||||||
// 재고 구함
|
// 재고 구함
|
||||||
$ct_qty = $_POST['ct_qty'][$i];
|
$ct_qty = $_POST['ct_qty'][$it_id][$k];
|
||||||
if(!$_POST['io_id'][$i])
|
if(!$io_id)
|
||||||
$it_stock_qty = get_it_stock_qty($_POST['it_id']);
|
$it_stock_qty = get_it_stock_qty($it_id);
|
||||||
else
|
else
|
||||||
$it_stock_qty = get_option_stock_qty($_POST['it_id'], $_POST['io_id'][$i], $_POST['io_type'][$i]);
|
$it_stock_qty = get_option_stock_qty($it_id, $io_id, $io_type);
|
||||||
|
|
||||||
if ($ct_qty + $sum_qty > $it_stock_qty)
|
if ($ct_qty + $sum_qty > $it_stock_qty)
|
||||||
{
|
{
|
||||||
alert($_POST['io_value'][$i]." 의 재고수량이 부족합니다.\\n\\n현재 재고수량 : " . number_format($it_stock_qty) . " 개");
|
alert($io_value." 의 재고수량이 부족합니다.\\n\\n현재 재고수량 : " . number_format($it_stock_qty) . " 개");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//--------------------------------------------------------
|
//--------------------------------------------------------
|
||||||
|
|
||||||
// 바로구매에 있던 장바구니 자료를 지운다.
|
// 바로구매에 있던 장바구니 자료를 지운다.
|
||||||
sql_query(" delete from {$g4['shop_cart_table']} where uq_id = '$tmp_uq_id' and ct_direct = 1 ", false);
|
if($i == 0)
|
||||||
|
sql_query(" delete from {$g4['shop_cart_table']} where uq_id = '$tmp_uq_id' and ct_direct = 1 ", false);
|
||||||
|
|
||||||
|
// 옵션수정일 때 기존 장바구니 자료를 먼저 삭제
|
||||||
|
if($act == 'optionmod')
|
||||||
|
sql_query(" delete from {$g4['shop_cart_table']} where uq_id = '$tmp_uq_id' and it_id = '$it_id' ");
|
||||||
|
|
||||||
// 장바구니에 Insert
|
// 장바구니에 Insert
|
||||||
$sql = " select ct_num
|
$sql = " select ct_num
|
||||||
from {$g4['shop_cart_table']}
|
from {$g4['shop_cart_table']}
|
||||||
where it_id = '{$_POST['it_id']}'
|
where it_id = '$it_id'
|
||||||
and uq_id = '$tmp_uq_id'
|
and uq_id = '$tmp_uq_id'
|
||||||
order by ct_num desc ";
|
order by ct_num desc ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
@ -344,35 +181,39 @@ else // 장바구니에 담기
|
|||||||
( uq_id, mb_id, it_id, it_name, ct_status, ct_price, ct_point, ct_point_use, ct_stock_use, ct_option, ct_qty, ct_num, ct_notax, io_id, io_type, io_price, ct_time, ct_ip, ct_send_cost, ct_direct, ct_select )
|
( uq_id, mb_id, it_id, it_name, ct_status, ct_price, ct_point, ct_point_use, ct_stock_use, ct_option, ct_qty, ct_num, ct_notax, io_id, io_type, io_price, ct_time, ct_ip, ct_send_cost, ct_direct, ct_select )
|
||||||
VALUES ";
|
VALUES ";
|
||||||
|
|
||||||
for($i=0; $i<$option_count; $i++) {
|
for($k=0; $k<$opt_count; $k++) {
|
||||||
$opt_id = $_POST['io_id'][$i];
|
$io_id = $_POST['io_id'][$it_id][$k];
|
||||||
$opt_type = $_POST['io_type'][$i];
|
$io_type = $_POST['io_type'][$it_id][$k];
|
||||||
|
$io_value = $_POST['io_value'][$it_id][$k];
|
||||||
|
|
||||||
// 옵션테이블에 정보가 없으면 건너뜀
|
// 옵션정보가 존재하는데 선택된 옵션이 없으면 건너뜀
|
||||||
if($opt_id && !$opt_list[$opt_type][$opt_id]['id'])
|
if($lst_count && $io_id == '')
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
$opt_price = $opt_list[$opt_type][$opt_id]['price'];
|
// 구매할 수 없는 옵션은 건너뜀
|
||||||
$opt_qty = $_POST['ct_qty'][$i];
|
if($io_id && !$opt_list[$io_type][$io_id]['use'])
|
||||||
|
continue;
|
||||||
|
|
||||||
|
$io_price = $opt_list[$io_type][$io_id]['price'];
|
||||||
|
$ct_qty = $_POST['ct_qty'][$it_id][$k];
|
||||||
|
|
||||||
// 동일옵션의 상품이 있으면 수량 더함
|
// 동일옵션의 상품이 있으면 수량 더함
|
||||||
$sql2 = " select ct_id
|
$sql2 = " select ct_id
|
||||||
from {$g4['shop_cart_table']}
|
from {$g4['shop_cart_table']}
|
||||||
where uq_id = '$tmp_uq_id'
|
where uq_id = '$tmp_uq_id'
|
||||||
and it_id = '{$_POST['it_id']}'
|
and it_id = '$it_id'
|
||||||
and io_id = '{$_POST['io_id'][$i]}'
|
and io_id = '$io_id'
|
||||||
and ct_status = '쇼핑' ";
|
and ct_status = '쇼핑' ";
|
||||||
$row2 = sql_fetch($sql2);
|
$row2 = sql_fetch($sql2);
|
||||||
if($row2['ct_id']) {
|
if($row2['ct_id']) {
|
||||||
$sql3 = " update {$g4['shop_cart_table']}
|
$sql3 = " update {$g4['shop_cart_table']}
|
||||||
set ct_qty = ct_qty + {$_POST['ct_qty'][$i]}
|
set ct_qty = ct_qty + '$ct_qty'
|
||||||
where ct_id = '{$row2['ct_id']}' ";
|
where ct_id = '{$row2['ct_id']}' ";
|
||||||
sql_query($sql3);
|
sql_query($sql3);
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql .= $comma."( '$tmp_uq_id', '{$member['mb_id']}', '{$it['it_id']}', '{$it['it_name']}', '쇼핑', '{$it['it_price']}', '$point', '0', '0', '{$_POST['io_value'][$i]}', '$opt_qty', '$ct_num', '{$it['it_notax']}', '$opt_id', '$opt_type', '$opt_price', '".G4_TIME_YMDHIS."', '$REMOTE_ADDR', '$ct_send_cost', '$sw_direct', '$ct_select' )";
|
$sql .= $comma."( '$tmp_uq_id', '{$member['mb_id']}', '{$it['it_id']}', '{$it['it_name']}', '쇼핑', '{$it['it_price']}', '$point', '0', '0', '$io_value', '$ct_qty', '$ct_num', '{$it['it_notax']}', '$io_id', '$io_type', '$io_price', '".G4_TIME_YMDHIS."', '$REMOTE_ADDR', '$ct_send_cost', '$sw_direct', '$ct_select' )";
|
||||||
$comma = ' , ';
|
$comma = ' , ';
|
||||||
$ct_num++;
|
$ct_num++;
|
||||||
$ct_count++;
|
$ct_count++;
|
||||||
|
|||||||
@ -26,52 +26,18 @@ echo '<div id="sev_hhtml">'.stripslashes($ev['ev_head_html']).'</div>';
|
|||||||
|
|
||||||
// 상품 출력순서가 있다면
|
// 상품 출력순서가 있다면
|
||||||
if ($sort != "")
|
if ($sort != "")
|
||||||
$order_by = $sort . " , ";
|
$order_by = $sort.' '.$sortodr.' , b.it_order, b.it_id desc';
|
||||||
|
|
||||||
// 상품 (하위 분류의 상품을 모두 포함한다.)
|
|
||||||
// 1.02.00
|
|
||||||
// a.it_order 추가
|
|
||||||
/*
|
|
||||||
$sql_list1 = " select a.ca_id,
|
|
||||||
a.it_id,
|
|
||||||
a.it_name,
|
|
||||||
a.it_maker,
|
|
||||||
a.it_point,
|
|
||||||
a.it_price,
|
|
||||||
a.it_stock_qty,
|
|
||||||
a.it_cust_price,
|
|
||||||
it_basic,
|
|
||||||
it_opt1,
|
|
||||||
it_opt2,
|
|
||||||
it_opt3,
|
|
||||||
it_opt4,
|
|
||||||
it_opt5,
|
|
||||||
it_opt6,
|
|
||||||
a.it_type1,
|
|
||||||
a.it_type2,
|
|
||||||
a.it_type3,
|
|
||||||
a.it_type4,
|
|
||||||
a.it_type5 ";
|
|
||||||
*/
|
|
||||||
$sql_list1 = " select * ";
|
|
||||||
$sql_list2 = " order by $order_by a.it_order, a.it_id desc ";
|
|
||||||
|
|
||||||
$sql_common = " from {$g4['shop_item_table']} a
|
|
||||||
left join {$g4['shop_event_item_table']} b on (a.it_id=b.it_id)
|
|
||||||
where b.ev_id = '$ev_id'
|
|
||||||
and a.it_use = '1' ";
|
|
||||||
|
|
||||||
$error = "<img src='".G4_SHOP_URL."/img/no_item.gif' border=0>";
|
$error = "<img src='".G4_SHOP_URL."/img/no_item.gif' border=0>";
|
||||||
|
|
||||||
if ($skin)
|
if ($skin)
|
||||||
$ev['ev_skin'] = $skin;
|
$ev['ev_skin'] = $skin;
|
||||||
|
|
||||||
$td_width = (int)($mod / 100);
|
|
||||||
|
|
||||||
// 리스트 유형별로 출력
|
// 리스트 유형별로 출력
|
||||||
$list_file = G4_SHOP_PATH."/{$ev['ev_skin']}";
|
$list_file = G4_SHOP_SKIN_PATH."/{$ev['ev_skin']}";
|
||||||
if (file_exists($list_file))
|
if (file_exists($list_file))
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
$list_mod = $ev['ev_list_mod'];
|
$list_mod = $ev['ev_list_mod'];
|
||||||
$list_row = $ev['ev_list_row'];
|
$list_row = $ev['ev_list_row'];
|
||||||
$img_width = $ev['ev_img_width'];
|
$img_width = $ev['ev_img_width'];
|
||||||
@ -84,7 +50,32 @@ if (file_exists($list_file))
|
|||||||
$result = sql_query($sql);
|
$result = sql_query($sql);
|
||||||
|
|
||||||
include $list_file;
|
include $list_file;
|
||||||
|
*/
|
||||||
|
|
||||||
|
$list_mod = $ev['ev_list_mod'];
|
||||||
|
$list_row = $ev['ev_list_row'];
|
||||||
|
|
||||||
|
include G4_SHOP_PATH.'/list.sub.php';
|
||||||
|
include G4_SHOP_PATH.'/list.sort.php';
|
||||||
|
|
||||||
|
// 총몇개 = 한줄에 몇개 * 몇줄
|
||||||
|
$items = $ev['ev_list_mod'] * $ev['ev_list_row'];
|
||||||
|
// 페이지가 없으면 첫 페이지 (1 페이지)
|
||||||
|
if ($page == "") $page = 1;
|
||||||
|
// 시작 레코드 구함
|
||||||
|
$from_record = ($page - 1) * $items;
|
||||||
|
|
||||||
|
$list = new item_list($ev['ev_skin'], $list_mod, $list_row, $ev['ev_img_width'], $ev['ev_img_height']);
|
||||||
|
$list->set_event($ev['ev_id']);
|
||||||
|
$list->set_is_page(true);
|
||||||
|
$list->set_order_by($order_by);
|
||||||
|
$list->set_from_record($from_record);
|
||||||
|
echo $list->run();
|
||||||
|
|
||||||
|
// where 된 전체 상품수
|
||||||
|
$total_count = $list->total_count;
|
||||||
|
// 전체 페이지 계산
|
||||||
|
$total_page = ceil($total_count / $items);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@ -162,7 +162,7 @@ else
|
|||||||
<div id="sit">
|
<div id="sit">
|
||||||
|
|
||||||
<form name="fitem" action="<?php echo $action_url; ?>" method="post">
|
<form name="fitem" action="<?php echo $action_url; ?>" method="post">
|
||||||
<input type="hidden" name="it_id" value="<?php echo $it['it_id']; ?>">
|
<input type="hidden" name="it_id[]" value="<?php echo $it['it_id']; ?>">
|
||||||
<input type="hidden" name="sw_direct">
|
<input type="hidden" name="sw_direct">
|
||||||
<input type="hidden" name="url">
|
<input type="hidden" name="url">
|
||||||
|
|
||||||
@ -215,8 +215,6 @@ else
|
|||||||
</div>
|
</div>
|
||||||
<!-- } 상품이미지 미리보기 끝 -->
|
<!-- } 상품이미지 미리보기 끝 -->
|
||||||
|
|
||||||
<?php //echo it_name_icon($it, false, 0); ?>
|
|
||||||
|
|
||||||
<!-- 상품 요약정보 및 구매 시작 { -->
|
<!-- 상품 요약정보 및 구매 시작 { -->
|
||||||
<section id="sit_ov">
|
<section id="sit_ov">
|
||||||
<h2 id="sit_title"><?php echo stripslashes($it['it_name']); ?> 요약정보 및 구매</h2>
|
<h2 id="sit_title"><?php echo stripslashes($it['it_name']); ?> 요약정보 및 구매</h2>
|
||||||
@ -400,15 +398,15 @@ else
|
|||||||
<?php if(!$option_1 && !$option_2) { ?>
|
<?php if(!$option_1 && !$option_2) { ?>
|
||||||
<ul id="sit_opt_added">
|
<ul id="sit_opt_added">
|
||||||
<li class="sit_opt_list">
|
<li class="sit_opt_list">
|
||||||
<input type="hidden" name="io_type[]" value="0">
|
<input type="hidden" name="io_type[<?php echo $it_id; ?>][]" value="0">
|
||||||
<input type="hidden" name="io_id[]" value="">
|
<input type="hidden" name="io_id[<?php echo $it_id; ?>][]" value="">
|
||||||
<input type="hidden" name="io_value[]" value="<?php echo $it['it_name']; ?>">
|
<input type="hidden" name="io_value[<?php echo $it_id; ?>][]" value="<?php echo $it['it_name']; ?>">
|
||||||
<input type="hidden" name="io_price[]" value="0">
|
<input type="hidden" name="io_price[]" value="0">
|
||||||
<input type="hidden" name="io_stock[]" value="<?php echo $it['it_stock_qty']; ?>">
|
<input type="hidden" name="io_stock[]" value="<?php echo $it['it_stock_qty']; ?>">
|
||||||
<span class="sit_opt_subj"><?php echo $it['it_name']; ?></span>
|
<span class="sit_opt_subj"><?php echo $it['it_name']; ?></span>
|
||||||
<span class="sit_opt_prc">(+0원)</span>
|
<span class="sit_opt_prc">(+0원)</span>
|
||||||
<div>
|
<div>
|
||||||
<input type="text" name="ct_qty[]" value="1" class="frm_input" size="5">
|
<input type="text" name="ct_qty[<?php echo $it_id; ?>][]" value="1" class="frm_input" size="5">
|
||||||
<button type="button" class="sit_qty_plus btn_frmline">증가</button>
|
<button type="button" class="sit_qty_plus btn_frmline">증가</button>
|
||||||
<button type="button" class="sit_qty_minus btn_frmline">감소</button>
|
<button type="button" class="sit_qty_minus btn_frmline">감소</button>
|
||||||
</div>
|
</div>
|
||||||
@ -687,7 +685,7 @@ else
|
|||||||
}
|
}
|
||||||
|
|
||||||
var val, result = true;
|
var val, result = true;
|
||||||
$("input[name='ct_qty[]']").each(function() {
|
$("input[name^=ct_qty]").each(function() {
|
||||||
val = $(this).val();
|
val = $(this).val();
|
||||||
|
|
||||||
if(val.length < 1) {
|
if(val.length < 1) {
|
||||||
|
|||||||
@ -69,7 +69,7 @@ $itemuse_formupdate = "./itemuseformupdate.php?it_id=".$it_id;
|
|||||||
<dt>작성일</dt>
|
<dt>작성일</dt>
|
||||||
<dd><?php echo $is_time; ?></dd>
|
<dd><?php echo $is_time; ?></dd>
|
||||||
<dt>선호도<dt>
|
<dt>선호도<dt>
|
||||||
<dd class="sit_use_star"><img src="<?php echo G4_URL; ?>/img/shop/s_star<?php echo $is_star; ?>.png" alt="별<?php echo $is_star; ?>개"></dd>
|
<dd class="sit_use_star"><img src="<?php echo G4_SHOP_URL; ?>/img/s_star<?php echo $is_star; ?>.png" alt="별<?php echo $is_star; ?>개"></dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
<div id="sit_use_con_<?php echo $i; ?>" class="sit_use_con">
|
<div id="sit_use_con_<?php echo $i; ?>" class="sit_use_con">
|
||||||
|
|||||||
@ -68,27 +68,27 @@ include_once(G4_PATH.'/head.sub.php');
|
|||||||
<li>
|
<li>
|
||||||
<input type="radio" name="is_score" value="10" id="is_score10" <?php echo ($is_score==10)?'checked="checked"':''; ?>>
|
<input type="radio" name="is_score" value="10" id="is_score10" <?php echo ($is_score==10)?'checked="checked"':''; ?>>
|
||||||
<label for="is_score10">매우만족</label>
|
<label for="is_score10">매우만족</label>
|
||||||
<img src="<?php echo G4_URL; ?>/img/shop/s_star5.png">
|
<img src="<?php echo G4_URL; ?>/shop/img/s_star5.png">
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<input type="radio" name="is_score" value="8" id="is_score8" <?php echo ($is_score==8)?'checked="checked"':''; ?>>
|
<input type="radio" name="is_score" value="8" id="is_score8" <?php echo ($is_score==8)?'checked="checked"':''; ?>>
|
||||||
<label for="is_score8">만족</label>
|
<label for="is_score8">만족</label>
|
||||||
<img src="<?php echo G4_URL; ?>/img/shop/s_star4.png">
|
<img src="<?php echo G4_URL; ?>/shop/img/s_star4.png">
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<input type="radio" name="is_score" value="6" id="is_score6" <?php echo ($is_score==6)?'checked="checked"':''; ?>>
|
<input type="radio" name="is_score" value="6" id="is_score6" <?php echo ($is_score==6)?'checked="checked"':''; ?>>
|
||||||
<label for="is_score6">보통</label>
|
<label for="is_score6">보통</label>
|
||||||
<img src="<?php echo G4_URL; ?>/img/shop/s_star3.png">
|
<img src="<?php echo G4_URL; ?>/shop/img/s_star3.png">
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<input type="radio" name="is_score" value="4" id="is_score4" <?php echo ($is_score==4)?'checked="checked"':''; ?>>
|
<input type="radio" name="is_score" value="4" id="is_score4" <?php echo ($is_score==4)?'checked="checked"':''; ?>>
|
||||||
<label for="is_score4">불만</label>
|
<label for="is_score4">불만</label>
|
||||||
<img src="<?php echo G4_URL; ?>/img/shop/s_star2.png">
|
<img src="<?php echo G4_URL; ?>/shop/img/s_star2.png">
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<input type="radio" name="is_score" value="2" id="is_score2" <?php echo ($is_score==2)?'checked="checked"':''; ?>>
|
<input type="radio" name="is_score" value="2" id="is_score2" <?php echo ($is_score==2)?'checked="checked"':''; ?>>
|
||||||
<label for="is_score2">매우불만</label>
|
<label for="is_score2">매우불만</label>
|
||||||
<img src="<?php echo G4_URL; ?>/img/shop/s_star1.png">
|
<img src="<?php echo G4_URL; ?>/shop/img/s_star1.png">
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@ -118,7 +118,7 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함
|
|||||||
<dt>작성일</dt>
|
<dt>작성일</dt>
|
||||||
<dd><?php echo substr($row['is_time'],0,10); ?></dd>
|
<dd><?php echo substr($row['is_time'],0,10); ?></dd>
|
||||||
<dt>평가점수</dt>
|
<dt>평가점수</dt>
|
||||||
<dd><img src="<?php echo G4_URL; ?>/img/shop/s_star<?php echo $star; ?>.png" alt="별<?php echo $star; ?>개"></dd>
|
<dd><img src="<?php echo G4_URL; ?>/shop/img/s_star<?php echo $star; ?>.png" alt="별<?php echo $star; ?>개"></dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
<div id="sps_con_<?php echo $i; ?>" style="display:none;">
|
<div id="sps_con_<?php echo $i; ?>" style="display:none;">
|
||||||
|
|||||||
@ -36,9 +36,9 @@ for ($i=1; $row=sql_fetch_array($result); $i++)
|
|||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
<div class="sct_sns">
|
<div class="sct_sns">
|
||||||
<?php echo get_sns_share_link('facebook', $sns_url, $sns_title, G4_URL.'/img/shop/sns_fb.png'); ?>
|
<?php echo get_sns_share_link('facebook', $sns_url, $sns_title, G4_URL.'/shop/img/sns_fb.png'); ?>
|
||||||
<?php echo get_sns_share_link('twitter', $sns_url, $sns_title, G4_URL.'/img/shop/sns_twt.png'); ?>
|
<?php echo get_sns_share_link('twitter', $sns_url, $sns_title, G4_URL.'/shop/img/sns_twt.png'); ?>
|
||||||
<?php echo get_sns_share_link('googleplus', $sns_url, $sns_title, G4_URL.'/img/shop/sns_goo.png'); ?>
|
<?php echo get_sns_share_link('googleplus', $sns_url, $sns_title, G4_URL.'/shop/img/sns_goo.png'); ?>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
@ -36,9 +36,9 @@ for ($i=1; $row=sql_fetch_array($result); $i++)
|
|||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
<div class="sct_sns">
|
<div class="sct_sns">
|
||||||
<?php echo get_sns_share_link('facebook', $sns_url, $sns_title, G4_URL.'/img/shop/sns_fb.png'); ?>
|
<?php echo get_sns_share_link('facebook', $sns_url, $sns_title, G4_URL.'/shop/img/sns_fb.png'); ?>
|
||||||
<?php echo get_sns_share_link('twitter', $sns_url, $sns_title, G4_URL.'/img/shop/sns_twt.png'); ?>
|
<?php echo get_sns_share_link('twitter', $sns_url, $sns_title, G4_URL.'/shop/img/sns_twt.png'); ?>
|
||||||
<?php echo get_sns_share_link('googleplus', $sns_url, $sns_title, G4_URL.'/img/shop/sns_goo.png'); ?>
|
<?php echo get_sns_share_link('googleplus', $sns_url, $sns_title, G4_URL.'/shop/img/sns_goo.png'); ?>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
@ -36,9 +36,9 @@ for ($i=1; $row=sql_fetch_array($result); $i++)
|
|||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
<div class="sct_sns">
|
<div class="sct_sns">
|
||||||
<?php echo get_sns_share_link('facebook', $sns_url, $sns_title, G4_URL.'/img/shop/sns_fb.png'); ?>
|
<?php echo get_sns_share_link('facebook', $sns_url, $sns_title, G4_URL.'/shop/img/sns_fb.png'); ?>
|
||||||
<?php echo get_sns_share_link('twitter', $sns_url, $sns_title, G4_URL.'/img/shop/sns_twt.png'); ?>
|
<?php echo get_sns_share_link('twitter', $sns_url, $sns_title, G4_URL.'/shop/img/sns_twt.png'); ?>
|
||||||
<?php echo get_sns_share_link('googleplus', $sns_url, $sns_title, G4_URL.'/img/shop/sns_goo.png'); ?>
|
<?php echo get_sns_share_link('googleplus', $sns_url, $sns_title, G4_URL.'/shop/img/sns_goo.png'); ?>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
@ -39,9 +39,9 @@ for ($i=1; $row=sql_fetch_array($result); $i++)
|
|||||||
<?php echo display_relation_item($row['it_id'], 70, 70, 5); // 관련 상품 ?>
|
<?php echo display_relation_item($row['it_id'], 70, 70, 5); // 관련 상품 ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="sct_sns">
|
<div class="sct_sns">
|
||||||
<?php echo get_sns_share_link('facebook', $sns_url, $sns_title, G4_URL.'/img/shop/sns_fb.png'); ?>
|
<?php echo get_sns_share_link('facebook', $sns_url, $sns_title, G4_URL.'/shop/img/sns_fb.png'); ?>
|
||||||
<?php echo get_sns_share_link('twitter', $sns_url, $sns_title, G4_URL.'/img/shop/sns_twt.png'); ?>
|
<?php echo get_sns_share_link('twitter', $sns_url, $sns_title, G4_URL.'/shop/img/sns_twt.png'); ?>
|
||||||
<?php echo get_sns_share_link('googleplus', $sns_url, $sns_title, G4_URL.'/img/shop/sns_goo.png'); ?>
|
<?php echo get_sns_share_link('googleplus', $sns_url, $sns_title, G4_URL.'/shop/img/sns_goo.png'); ?>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
@ -135,7 +135,7 @@ $total_count = $row['cnt'];
|
|||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="ssch_it_img"><?php echo $image; ?></td>
|
<td class="ssch_it_img"><?php echo $image; ?></td>
|
||||||
<td><?php echo get_text($row['it_name']).it_name_icon($row); ?></td>
|
<td><?php echo get_text($row['it_name']); ?></td>
|
||||||
<td class="ssch_num"><?php echo display_price(get_price($row), $row['it_tel_inq']); ?></td>
|
<td class="ssch_num"><?php echo display_price(get_price($row), $row['it_tel_inq']); ?></td>
|
||||||
<td class="ssch_num"><?php echo display_point($row['it_point']); ?></td>
|
<td class="ssch_num"><?php echo display_point($row['it_point']); ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@ -61,11 +61,14 @@ include_once('./_head.php');
|
|||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
품절
|
품절
|
||||||
<input type="hidden" name="it_id[<?php echo $i; ?>]" >
|
|
||||||
<?php } else { //품절이 아니면 체크할수 있도록한다 ?>
|
<?php } else { //품절이 아니면 체크할수 있도록한다 ?>
|
||||||
<input type="checkbox" name="it_id[<?php echo $i; ?>]" value="<?php echo $row['it_id']; ?>" onclick="out_cd_check(this, '<?php echo $out_cd; ?>');">
|
<input type="checkbox" name="chk_it_id[<?php echo $i; ?>]" value="1" onclick="out_cd_check(this, '<?php echo $out_cd; ?>');">
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<input type="hidden" name="ct_qty[<?php echo $i; ?>]" value="1">
|
<input type="hidden" name="it_id[<?php echo $i; ?>]" value="<?php echo $row['it_id']; ?>">
|
||||||
|
<input type="hidden" name="io_type[<?php echo $row['it_id']; ?>][0]" value="0">
|
||||||
|
<input type="hidden" name="io_id[<?php echo $row['it_id']; ?>][0]" value="">
|
||||||
|
<input type="hidden" name="io_value[<?php echo $row['it_id']; ?>][0]" value="<?php echo $row['it_name']; ?>">
|
||||||
|
<input type="hidden" name="ct_qty[<?php echo $row['it_id']; ?>][0]" value="1">
|
||||||
</td>
|
</td>
|
||||||
<td class="sod_ws_img"><?php echo $image; ?></td>
|
<td class="sod_ws_img"><?php echo $image; ?></td>
|
||||||
<td><a href="./item.php?it_id=<?php echo $row['it_id']; ?>"><?php echo stripslashes($row['it_name']); ?></a></td>
|
<td><a href="./item.php?it_id=<?php echo $row['it_id']; ?>"><?php echo stripslashes($row['it_name']); ?></a></td>
|
||||||
|
|||||||
@ -46,7 +46,7 @@
|
|||||||
.sct_12 .sct_li {float:left;margin:0 16px 15px 0;}
|
.sct_12 .sct_li {float:left;margin:0 16px 15px 0;}
|
||||||
.sct_12 .sct_last {margin:0 0 15px !important}
|
.sct_12 .sct_last {margin:0 0 15px !important}
|
||||||
.sct_12 .sct_clear {clear:both}
|
.sct_12 .sct_clear {clear:both}
|
||||||
.sct_12 .sct_arw_toleft {display:block;z-index:2;position:absolute;top:20px;left:221px;width:10px;height:19px;background:url('../img/shop/icon_arw_toleft.gif') no-repeat}
|
.sct_12 .sct_arw_toleft {display:block;z-index:2;position:absolute;top:20px;left:221px;width:10px;height:19px;background:url('../shop/img/icon_arw_toleft.gif') no-repeat}
|
||||||
.sct_12 .sct_a {display:block;position:relative;padding:20px 10px 20px 240px;width:110px;height:190px;border:1px solid #e9e9e9;background:#f5f6fa;text-decoration:none}
|
.sct_12 .sct_a {display:block;position:relative;padding:20px 10px 20px 240px;width:110px;height:190px;border:1px solid #e9e9e9;background:#f5f6fa;text-decoration:none}
|
||||||
.sct_12 .sct_a:focus, .sct_12 .sct_a:hover {text-decoration:none}
|
.sct_12 .sct_a:focus, .sct_12 .sct_a:hover {text-decoration:none}
|
||||||
.sct_12 .sct_img {position:absolute;top:0;left:0}
|
.sct_12 .sct_img {position:absolute;top:0;left:0}
|
||||||
@ -62,7 +62,7 @@
|
|||||||
.sct_13 .sct_li {float:left;margin:0 0 16px 0;width:100%}
|
.sct_13 .sct_li {float:left;margin:0 0 16px 0;width:100%}
|
||||||
.sct_13 .sct_last {}
|
.sct_13 .sct_last {}
|
||||||
.sct_13 .sct_clear {clear:both}
|
.sct_13 .sct_clear {clear:both}
|
||||||
.sct_13 .sct_arw_toleft {display:block;z-index:2;position:absolute;top:20px;left:221px;width:10px;height:19px;background:url('../img/shop/icon_arw_toleft.gif') no-repeat}
|
.sct_13 .sct_arw_toleft {display:block;z-index:2;position:absolute;top:20px;left:221px;width:10px;height:19px;background:url('../shop/img/icon_arw_toleft.gif') no-repeat}
|
||||||
.sct_13 .sct_a {display:block;position:relative;padding:20px 10px 20px 240px;height:190px;border:1px solid #e9e9e9;background:#f5f6fa;text-decoration:none}
|
.sct_13 .sct_a {display:block;position:relative;padding:20px 10px 20px 240px;height:190px;border:1px solid #e9e9e9;background:#f5f6fa;text-decoration:none}
|
||||||
.sct_13 .sct_a:focus, .sct_13 .sct_a:hover {text-decoration:none}
|
.sct_13 .sct_a:focus, .sct_13 .sct_a:hover {text-decoration:none}
|
||||||
.sct_13 .sct_img {position:absolute;top:0;left:0}
|
.sct_13 .sct_img {position:absolute;top:0;left:0}
|
||||||
|
|||||||
Reference in New Issue
Block a user