diff --git a/adm/shop_admin/item_info_check.php b/adm/shop_admin/item_info_check.php new file mode 100644 index 000000000..94f2b9958 --- /dev/null +++ b/adm/shop_admin/item_info_check.php @@ -0,0 +1,17 @@ + - 요약상품정보 - + - 상품설명 @@ -408,7 +408,7 @@ if ($ii) { 이미지(대) - size=40> + var f = document.fitemform; - -$(document).ready(function() { +$(function() { + // 선택옵션등록 변경 $("input[name=it_option_use]").click(function() { var val = $(this).val(); @@ -805,8 +805,14 @@ $(document).ready(function() { } } }); + + + // 상품요약정보설정 + $("#item_info_set").click(function() { + var it_id = $.trim($('input[name=it_id]').val()); + window.open('./iteminfo.php?it_id='+it_id, '_blank', 'width=670 height=800'); + }); }); - function codedupcheck(id) { diff --git a/adm/shop_admin/itemformupdate.php b/adm/shop_admin/itemformupdate.php index 631e9fee9..b233dc655 100644 --- a/adm/shop_admin/itemformupdate.php +++ b/adm/shop_admin/itemformupdate.php @@ -379,8 +379,19 @@ if ($w == "") } } + // 상품등록시 등록된 상품요약정보의 it_id가 변경됐을 경우 처리 + if(get_session('ss_ii_item_code')) { + $ii_item_code = get_session('ss_ii_item_code'); + + if($it_id != $ii_item_code) { + $sql = " update {$g4['yc4_item_info_table']} set it_id = '$it_id' where it_id = '$ii_item_code' "; + sql_query($sql); + } + } + unset($_SESSION['ss_op_item_code']); unset($_SESSION['ss_sp_item_code']); + unset($_SESSION['ss_ii_item_code']); } else if ($w == "u") { @@ -455,6 +466,9 @@ if ($w == "" || $w == "u") // 선택, 추가 옵션 테이블을 체크해 상품정보가 없는 것은 삭제 include_once('./item_option_check.php'); +// 상품요약정보 테이블을 체크해 상품정보가 없는 것은 삭제 +include_once('./item_info_check.php'); + $qstr = "$qstr&sca=$sca&page=$page"; if ($w == "u") { diff --git a/adm/shop_admin/iteminfoupdate.php b/adm/shop_admin/iteminfoupdate.php index 8cea65c62..595762182 100644 --- a/adm/shop_admin/iteminfoupdate.php +++ b/adm/shop_admin/iteminfoupdate.php @@ -25,6 +25,9 @@ foreach ($_POST as $key=>$value) { $item_info_gubun = item_info_gubun($gubun); $item_info_gubun .= $item_info_gubun ? " 등록됨" : ""; +// it_id 변경을 체크하기 위해 세션에 it_id 저장 +set_session('ss_ii_item_code', $_POST['it_id']); + include_once(G4_PATH.'/head.sub.php'); ?> '; diff --git a/adm/shop_admin/supplementformupdate.php b/adm/shop_admin/supplementformupdate.php index f6a71d267..53a93a5bb 100644 --- a/adm/shop_admin/supplementformupdate.php +++ b/adm/shop_admin/supplementformupdate.php @@ -32,10 +32,10 @@ for($i = 0; $i < $count; $i++) { } sql_query($sql); +} - if($w == '') { - set_session('ss_sp_item_code', $it_id); - } +if($w == '') { + set_session('ss_sp_item_code', $it_id); } echo ''; diff --git a/bbs/list.php b/bbs/list.php index a2d164537..c27531ea4 100644 --- a/bbs/list.php +++ b/bbs/list.php @@ -6,12 +6,21 @@ $is_category = false; $category_option = ''; if ($board['bo_use_category']) { $is_category = true; - $category_location = './board.php?bo_table='.$bo_table.'&sca='; + $category_href = G4_BBS_URL.'/board.php?bo_table='.$bo_table; + + $category_option .= '
  • '; + $category = trim($categories[$i]); + if ($category=='') continue; + $category_option .= '
  • '; } } diff --git a/skin/board/neo/list.skin.php b/skin/board/neo/list.skin.php index 310eaad96..a74ea439d 100644 --- a/skin/board/neo/list.skin.php +++ b/skin/board/neo/list.skin.php @@ -16,7 +16,6 @@ if ($is_nogood) $colspan++; @@ -32,13 +31,13 @@ if ($is_nogood) $colspan++; @@ -165,11 +164,6 @@ if ($is_nogood) $colspan++; 페이지

    - -