it_gallery 사용하는 코드 모두 삭제 #296
This commit is contained in:
@ -73,7 +73,7 @@ if($_FILES['excelfile']['tmp_name']) {
|
||||
$comma = '';
|
||||
|
||||
$sql = " INSERT INTO {$g4['shop_item_table']}
|
||||
( it_id, ca_id, ca_id2, ca_id3, it_name, it_gallery, it_maker, it_origin, it_brand, it_model, it_type1, it_type2, it_type3, it_type4, it_type5, it_basic, it_explan, it_mobile_explan, it_explan_html, it_cust_price, it_price, it_point, it_sell_email, it_use, it_stock_qty, it_time, it_ip, it_order, it_tel_inq, it_img1, it_img2, it_img3, it_img4, it_img5, it_img6, it_img7, it_img8, it_img9, it_img10 )
|
||||
( it_id, ca_id, ca_id2, ca_id3, it_name, it_maker, it_origin, it_brand, it_model, it_type1, it_type2, it_type3, it_type4, it_type5, it_basic, it_explan, it_mobile_explan, it_explan_html, it_cust_price, it_price, it_point, it_sell_email, it_use, it_stock_qty, it_time, it_ip, it_order, it_tel_inq, it_img1, it_img2, it_img3, it_img4, it_img5, it_img6, it_img7, it_img8, it_img9, it_img10 )
|
||||
VALUES ";
|
||||
|
||||
for ($i = 3; $i <= $data->sheets[0]['numRows']; $i++) {
|
||||
@ -84,7 +84,6 @@ if($_FILES['excelfile']['tmp_name']) {
|
||||
$ca_id2 = addslashes($data->sheets[0]['cells'][$i][3]);
|
||||
$ca_id3 = addslashes($data->sheets[0]['cells'][$i][4]);
|
||||
$it_name = addslashes($data->sheets[0]['cells'][$i][5]);
|
||||
$it_gallery = addslashes($data->sheets[0]['cells'][$i][6]);
|
||||
$it_maker = addslashes($data->sheets[0]['cells'][$i][7]);
|
||||
$it_origin = addslashes($data->sheets[0]['cells'][$i][8]);
|
||||
$it_brand = addslashes($data->sheets[0]['cells'][$i][9]);
|
||||
@ -141,7 +140,7 @@ if($_FILES['excelfile']['tmp_name']) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$sql .= $comma." ( '$it_id', '$ca_id', '$ca_id2', '$ca_id3', '$it_name', '$it_gallery', '$it_maker', '$it_origin', '$it_brand', '$it_model', '$it_type1', '$it_type2', '$it_type3', '$it_type4', '$it_type5', '$it_basic', '$it_explan', '$it_mobile_explan', '1', '$it_cust_price', '$it_price', '$it_point', '$it_sell_email', '$it_use', '$it_stock_qty', '".G4_TIME_YMDHIS."', '".$_SERVER['REMOTE_ADDR']."', '$it_order', '$it_tel_inq', '$it_img1', '$it_img2', '$it_img3', '$it_img4', '$it_img5', '$it_img6', '$it_img7', '$it_img8', '$it_img9', '$it_img10' ) ";
|
||||
$sql .= $comma." ( '$it_id', '$ca_id', '$ca_id2', '$ca_id3', '$it_name', '$it_maker', '$it_origin', '$it_brand', '$it_model', '$it_type1', '$it_type2', '$it_type3', '$it_type4', '$it_type5', '$it_basic', '$it_explan', '$it_mobile_explan', '1', '$it_cust_price', '$it_price', '$it_point', '$it_sell_email', '$it_use', '$it_stock_qty', '".G4_TIME_YMDHIS."', '".$_SERVER['REMOTE_ADDR']."', '$it_order', '$it_tel_inq', '$it_img1', '$it_img2', '$it_img3', '$it_img4', '$it_img5', '$it_img6', '$it_img7', '$it_img8', '$it_img9', '$it_img10' ) ";
|
||||
|
||||
$comma = ' , ';
|
||||
$succ_count++;
|
||||
|
||||
@ -219,19 +219,6 @@ $pg_anchor ='<ul class="anchor">
|
||||
<input type="text" name="it_mobile_name" value="<?php echo get_text(cut_str($it['it_mobile_name'], 250, "")); ?>" id="it_mobile_name" class="frm_input">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="it_gallery">전시용 상품</label></th>
|
||||
<td>
|
||||
<?php echo help("이 항목을 체크하면 상품을 전시만 하고, 판매하지 않습니다."); ?>
|
||||
<input type="checkbox" name="it_gallery" value="1" id="it_gallery" <?php echo ($it['it_gallery'] ? "checked" : ""); ?>>
|
||||
</td>
|
||||
<td class="group_setting">
|
||||
<input type="checkbox" name="chk_ca_it_gallery" value="1" id="chk_ca_it_gallery">
|
||||
<label for="chk_ca_it_gallery">분류적용</label>
|
||||
<input type="checkbox" name="chk_all_it_gallery" value="1" id="chk_all_it_gallery">
|
||||
<label for="chk_all_it_gallery">전체적용</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="it_order">출력순서</label></th>
|
||||
<td>
|
||||
|
||||
@ -261,7 +261,6 @@ $sql_common = " ca_id = '$ca_id',
|
||||
ca_id3 = '$ca_id3',
|
||||
it_name = '$it_name',
|
||||
it_mobile_name = '$it_mobile_name',
|
||||
it_gallery = '$it_gallery',
|
||||
it_maker = '$it_maker',
|
||||
it_origin = '$it_origin',
|
||||
it_brand = '$it_brand',
|
||||
@ -421,7 +420,6 @@ if($supply_count) {
|
||||
|
||||
// 동일 분류내 상품 동일 옵션 적용
|
||||
$ca_fields = '';
|
||||
if(is_checked('chk_ca_it_gallery')) $ca_fields .= " , it_gallery = '$it_gallery' ";
|
||||
if(is_checked('chk_ca_it_order')) $ca_fields .= " , it_order = '$it_order' ";
|
||||
if(is_checked('chk_ca_it_type')) $ca_fields .= " , it_type1 = '$it_type1', it_type2 = '$it_type2', it_type3 = '$it_type3', it_type4 = '$it_type4', it_type5 = '$it_type5' ";
|
||||
if(is_checked('chk_ca_it_maker')) $ca_fields .= " , it_maker = '$it_maker' ";
|
||||
@ -439,7 +437,6 @@ if(is_checked('chk_ca_it_point')) $ca_fields .= " , it_point = '$i
|
||||
if(is_checked('chk_ca_it_point_type')) $ca_fields .= " , it_point_type = '$it_point_type' ";
|
||||
if(is_checked('chk_ca_it_stock_qty')) $ca_fields .= " , it_stock_qty = '$it_stock_qty' ";
|
||||
if(is_checked('chk_ca_it_sendcost')) $ca_fields .= " , it_sc_type = '$it_sc_type', it_sc_method = '$it_sc_method', it_sc_price = '$it_sc_price', it_sc_minimum = '$it_sc_minimum', it_sc_qty = '$it_sc_qty' ";
|
||||
if(is_checked('chk_ca_it_gallery')) $ca_fields .= " , it_gallery = '$it_gallery' ";
|
||||
if(is_checked('chk_ca_it_head_html')) $ca_fields .= " , it_head_html = '$it_head_html' ";
|
||||
if(is_checked('chk_ca_it_tail_html')) $ca_fields .= " , it_tail_html = '$it_tail_html' ";
|
||||
if(is_checked('chk_ca_it_mobile_head_html')) $ca_fields .= " , it_mobile_head_html = '$it_mobile_head_html' ";
|
||||
@ -455,7 +452,6 @@ if($ca_fields) {
|
||||
|
||||
// 모든 상품 동일 옵션 적용
|
||||
$all_fields = '';
|
||||
if(is_checked('chk_all_it_gallery')) $all_fields .= " , it_gallery = '$it_gallery' ";
|
||||
if(is_checked('chk_all_it_order')) $all_fields .= " , it_order = '$it_order' ";
|
||||
if(is_checked('chk_all_it_type')) $all_fields .= " , it_type1 = '$it_type1', it_type2 = '$it_type2', it_type3 = '$it_type3', it_type4 = '$it_type4', it_type5 = '$it_type5' ";
|
||||
if(is_checked('chk_all_it_maker')) $all_fields .= " , it_maker = '$it_maker' ";
|
||||
@ -473,7 +469,6 @@ if(is_checked('chk_all_it_point')) $all_fields .= " , it_point = '
|
||||
if(is_checked('chk_all_it_point_type')) $all_fields .= " , it_point_type = '$it_point_type' ";
|
||||
if(is_checked('chk_all_it_stock_qty')) $all_fields .= " , it_stock_qty = '$it_stock_qty' ";
|
||||
if(is_checked('chk_all_it_sendcost')) $all_fields .= " , it_sc_type = '$it_sc_type', it_sc_method = '$it_sc_method', it_sc_price = '$it_sc_price', it_sc_minimum = '$it_sc_minimum', it_sc_qty = '$it_sc_qty' ";
|
||||
if(is_checked('chk_all_it_gallery')) $all_fields .= " , it_gallery = '$it_gallery' ";
|
||||
if(is_checked('chk_all_it_head_html')) $all_fields .= " , it_head_html = '$it_head_html' ";
|
||||
if(is_checked('chk_all_it_tail_html')) $all_fields .= " , it_tail_html = '$it_tail_html' ";
|
||||
if(is_checked('chk_all_it_mobile_head_html')) $all_fields .= " , it_mobile_head_html = '$it_mobile_head_html' ";
|
||||
|
||||
@ -180,8 +180,6 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
$href = G4_SHOP_URL.'/item.php?it_id='.$row['it_id'];
|
||||
|
||||
$gallery = $row['it_gallery'] ? 'Y' : '';
|
||||
?>
|
||||
<tr>
|
||||
<td rowspan="2">
|
||||
|
||||
@ -387,7 +387,6 @@ CREATE TABLE IF NOT EXISTS `shop_item` (
|
||||
`ca_id3` varchar(255) NOT NULL DEFAULT '',
|
||||
`it_name` varchar(255) NOT NULL DEFAULT '',
|
||||
`it_mobile_name` varchar(255) NOT NULL DEFAULT '',
|
||||
`it_gallery` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`it_maker` varchar(255) NOT NULL DEFAULT '',
|
||||
`it_origin` varchar(255) NOT NULL DEFAULT '',
|
||||
`it_brand` varchar(255) NOT NULL DEFAULT '',
|
||||
|
||||
@ -1324,7 +1324,7 @@ function relation_item($it_id, $width, $height, $rows=3)
|
||||
if(!$it_id)
|
||||
return $str;
|
||||
|
||||
$sql = " select b.it_id, b.it_name, b.it_price, b.it_tel_inq, b.it_gallery from {$g4['shop_item_relation_table']} a left join {$g4['shop_item_table']} b on ( a.it_id2 = b.it_id ) where a.it_id = '$it_id' order by ir_no asc limit 0, $rows ";
|
||||
$sql = " select b.it_id, b.it_name, b.it_price, b.it_tel_inq from {$g4['shop_item_relation_table']} a left join {$g4['shop_item_table']} b on ( a.it_id2 = b.it_id ) where a.it_id = '$it_id' order by ir_no asc limit 0, $rows ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
@ -1334,12 +1334,9 @@ function relation_item($it_id, $width, $height, $rows=3)
|
||||
}
|
||||
|
||||
$it_name = get_text($row['it_name']); // 상품명
|
||||
$it_price = ''; // 상품가격
|
||||
if(!$row['it_gallery']) {
|
||||
$it_price = get_price($row);
|
||||
if(!$row['it_tel_inq'])
|
||||
$it_price = display_price($it_price);
|
||||
}
|
||||
$it_price = get_price($row); // 상품가격
|
||||
if(!$row['it_tel_inq'])
|
||||
$it_price = display_price($it_price);
|
||||
|
||||
$img = get_it_image($row['it_id'], $width, $height);
|
||||
|
||||
@ -1355,30 +1352,6 @@ function relation_item($it_id, $width, $height, $rows=3)
|
||||
// 상품이미지에 유형 아이콘 출력
|
||||
function item_icon($it)
|
||||
{
|
||||
/*
|
||||
$icon = '';
|
||||
|
||||
if($it['it_gallery']) // sold out
|
||||
$icon .= '<img src="'.G4_URL.'/img/shop/icon_soldout.gif" alt="품절" class="sct_icon_soldout">';
|
||||
|
||||
if($it['it_type1'])
|
||||
$icon .= '<img src="'.G4_URL.'/img/shop/icon_new.gif" alt="최신상품" class="sct_icon_new">';
|
||||
|
||||
if($it['it_type2'])
|
||||
$icon .= '<img src="'.G4_URL.'/img/shop/icon_hit.gif" alt="히트상품" class="sct_icon_hit">';
|
||||
|
||||
if($it['it_type3'])
|
||||
$icon .= '<img src="'.G4_URL.'/img/shop/icon_rec.gif" alt="추천상품" class="sct_icon_rec">';
|
||||
|
||||
if($it['it_type4'])
|
||||
$icon .= '<img src="'.G4_URL.'/img/shop/icon_best.gif" alt="인기상품" class="sct_icon_best">';
|
||||
|
||||
if($it['it_type5'])
|
||||
$icon .= '<img src="'.G4_URL.'/img/shop/icon_discount.gif" alt="할인상품" class="sct_icon_discount">';
|
||||
|
||||
return $icon;
|
||||
*/
|
||||
|
||||
$icon = '<span class="sit_icon">';
|
||||
// 품절
|
||||
$stock = get_it_stock_qty($it['it_id']);
|
||||
|
||||
@ -288,7 +288,6 @@ else
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<?php if (!$it['it_gallery']) { // 갤러리 형식이라면 가격, 구매하기 출력하지 않음 ?>
|
||||
<?php if ($it['it_tel_inq']) { // 전화문의일 경우 ?>
|
||||
|
||||
<tr>
|
||||
@ -426,17 +425,14 @@ else
|
||||
|
||||
<div id="sit_tot_price"></div>
|
||||
|
||||
<?php } // 갤러리가 아닐 경우 끝 ?>
|
||||
|
||||
<ul id="sit_ov_btn">
|
||||
<?php if (!$it['it_tel_inq'] && !$it['it_gallery']) { ?>
|
||||
<?php if (!$it['it_tel_inq']) { ?>
|
||||
<li><a href="javascript:fitemcheck(document.fitem, 'direct_buy');" id="sit_btn_buy">바로구매</a></li>
|
||||
<li><a href="javascript:fitemcheck(document.fitem, 'cart_update');" id="sit_btn_cart">장바구니</a></li>
|
||||
<?php } ?>
|
||||
<?php if (!$it['it_gallery']) { ?>
|
||||
|
||||
<li><a href="javascript:item_wish(document.fitem, '<?php echo $it['it_id']; ?>');" id="sit_btn_wish">위시리스트</a></li>
|
||||
<li><a href="javascript:popup_item_recommend('<?php echo $it['it_id']; ?>');" id="sit_btn_rec">추천하기</a></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
|
||||
<script>
|
||||
|
||||
@ -15,12 +15,12 @@ for ($i=1; $row=sql_fetch_array($result); $i++)
|
||||
<a href="<?php echo $href; ?>" class="sct_a">
|
||||
<span class="sct_img"><?php echo get_it_image($row['it_id'], $img_width, $img_height); ?></span>
|
||||
<b><?php echo stripslashes($row['it_name']); ?></b>
|
||||
<?php if ($row['it_cust_price'] && !$row['it_gallery']) { ?>
|
||||
<?php if ($row['it_cust_price']) { ?>
|
||||
<s><?php echo display_price($row['it_cust_price']); ?></s>
|
||||
<?php } ?>
|
||||
<?php if (!$row['it_gallery']) { // 전시 상품이 아닐 때 ?>
|
||||
|
||||
<span class="sct_cost"><?php echo display_price(get_price($row), $row['it_tel_inq']); ?></span>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($row['it_basic']) { ?>
|
||||
<p><?php echo $row['it_basic']; ?></p>
|
||||
<?php } ?>
|
||||
|
||||
@ -104,7 +104,6 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<?php if (!$it['it_gallery']) { // 갤러리 형식이라면 가격, 구매하기 출력하지 않음 ?>
|
||||
<?php if ($it['it_tel_inq']) { // 전화문의일 경우 ?>
|
||||
|
||||
<tr>
|
||||
@ -248,19 +247,17 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<!-- 총 구매액 -->
|
||||
<div id="sit_tot_price"></div>
|
||||
|
||||
<?php } // 갤러리가 아닐 경우 끝 ?>
|
||||
|
||||
<ul id="sit_ov_btn">
|
||||
<?php if (!$it['it_tel_inq'] && !$it['it_gallery']) { ?>
|
||||
<?php if (!$it['it_tel_inq']) { ?>
|
||||
<li><input type="submit" onclick="document.pressed=this.value;" value="바로구매" id="sit_btn_buy"></li>
|
||||
<li><input type="submit" onclick="document.pressed=this.value;" value="장바구니" id="sit_btn_cart"></li>
|
||||
<li><a href="javascript:fitemcheck(document.fitem, 'direct_buy');" id="sit_btn_buy">바로구매</a></li>
|
||||
<li><a href="javascript:fitemcheck(document.fitem, 'cart_update');" id="sit_btn_cart">장바구니</a></li>
|
||||
<?php } ?>
|
||||
<?php if (!$it['it_gallery']) { ?>
|
||||
|
||||
<li><a href="javascript:item_wish(document.fitem, '<?php echo $it['it_id']; ?>');" id="sit_btn_wish">위시리스트</a></li>
|
||||
<li><a href="javascript:popup_item_recommend('<?php echo $it['it_id']; ?>');" id="sit_btn_rec">추천하기</a></li>
|
||||
<?php } ?>
|
||||
|
||||
</ul>
|
||||
|
||||
<script>
|
||||
|
||||
Reference in New Issue
Block a user