상품정보 수정시 상품요약정보 초기화되는 오류 수정

This commit is contained in:
chicpro
2013-12-30 14:32:25 +09:00
parent 4aaaf63dc8
commit 361d963646

View File

@ -2,17 +2,16 @@
include_once('./_common.php'); include_once('./_common.php');
include_once(G5_LIB_PATH.'/iteminfo.lib.php'); include_once(G5_LIB_PATH.'/iteminfo.lib.php');
$it_id = trim($_POST['it_id']); if($it['it_id']) {
$gubun = $_POST['gubun'] ? $_POST['gubun'] : 'wear'; //$it_id = $it['it_id'];
if($it['it_id']) $gubun = $it['it_info_gubun'];
$it_id = $it['it_id']; } else {
else { $it_id = trim($_POST['it_id']);
$gubun = $_POST['gubun'] ? $_POST['gubun'] : 'wear';
$sql = " select it_id, it_info_gubun, it_info_value from {$g5['g5_shop_item_table']} where it_id = '$it_id' "; $sql = " select it_id, it_info_gubun, it_info_value from {$g5['g5_shop_item_table']} where it_id = '$it_id' ";
$it = sql_fetch($sql); $it = sql_fetch($sql);
} }
if(!$gubun && $it['it_info_gubun'])
$gubun = $it['it_info_gubun'];
?> ?>
<div class="tbl_frm01 tbl_wrap"> <div class="tbl_frm01 tbl_wrap">