99) alert("포인트 비율을 0과 99 사이의 값으로 입력해 주십시오."); $it_name = strip_tags(trim($_POST['it_name'])); // KVE-2019-0708 $check_sanitize_keys = array( 'it_order', // 출력순서 'it_maker', // 제조사 'it_origin', // 원산지 'it_brand', // 브랜드 'it_model', // 모델 'it_tel_inq', // 전화문의 'it_use', // 판매가능 'it_nocoupon', // 쿠폰적용안함 'ec_mall_pid', // 네이버쇼핑 상품ID 'it_sell_email', // 판매자 e-mail 'it_price', // 판매가격 'it_cust_price', // 시중가격 'it_point_type', // 포인트 유형 'it_point', // 포인트 'it_supply_point', // 추가옵션상품 포인트 'it_soldout', // 상품품절 'it_stock_sms', // 재입고SMS 알림 'it_stock_qty', // 재고수량 'it_noti_qty', // 재고 통보수량 'it_buy_min_qty', // 최소구매수량 'it_notax', // 상품과세 유형 'it_sc_type', // 배송비 유형 'it_sc_method', // 배송비 결제 'it_sc_price', // 기본배송비 'it_sc_minimum', // 배송비 상세조건 ); foreach( $check_sanitize_keys as $key ){ $$key = isset($_POST[$key]) ? strip_tags($_POST[$key]) : ''; } if ($it_name == "") alert("상품명을 입력해 주십시오."); $sql_common = " ca_id = '$ca_id', ca_id2 = '$ca_id2', ca_id3 = '$ca_id3', it_skin = '$it_skin', it_mobile_skin = '$it_mobile_skin', it_name = '$it_name', it_maker = '$it_maker', it_origin = '$it_origin', it_brand = '$it_brand', it_model = '$it_model', it_option_subject = '$it_option_subject', it_supply_subject = '$it_supply_subject', it_type1 = '$it_type1', it_type2 = '$it_type2', it_type3 = '$it_type3', it_type4 = '$it_type4', it_type5 = '$it_type5', it_basic = '$it_basic', it_explan = '$it_explan', it_explan2 = '".strip_tags(trim($_POST['it_explan']))."', it_mobile_explan = '$it_mobile_explan', it_cust_price = '$it_cust_price', it_price = '$it_price', it_point = '$it_point', it_point_type = '$it_point_type', it_supply_point = '$it_supply_point', it_notax = '$it_notax', it_sell_email = '$it_sell_email', it_use = '$it_use', it_nocoupon = '$it_nocoupon', it_soldout = '$it_soldout', it_stock_qty = '$it_stock_qty', it_stock_sms = '$it_stock_sms', it_noti_qty = '$it_noti_qty', 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', it_buy_min_qty = '$it_buy_min_qty', it_buy_max_qty = '$it_buy_max_qty', it_head_html = '$it_head_html', it_tail_html = '$it_tail_html', it_mobile_head_html = '$it_mobile_head_html', it_mobile_tail_html = '$it_mobile_tail_html', it_ip = '{$_SERVER['REMOTE_ADDR']}', it_order = '$it_order', it_tel_inq = '$it_tel_inq', it_info_gubun = '$it_info_gubun', it_info_value = '$it_info_value', it_shop_memo = '$it_shop_memo', ec_mall_pid = '$ec_mall_pid', it_img1 = '$it_img1', it_img2 = '$it_img2', it_img3 = '$it_img3', it_img4 = '$it_img4', it_img5 = '$it_img5', it_img6 = '$it_img6', it_img7 = '$it_img7', it_img8 = '$it_img8', it_img9 = '$it_img9', it_img10 = '$it_img10', it_1_subj = '$it_1_subj', it_2_subj = '$it_2_subj', it_3_subj = '$it_3_subj', it_4_subj = '$it_4_subj', it_5_subj = '$it_5_subj', it_6_subj = '$it_6_subj', it_7_subj = '$it_7_subj', it_8_subj = '$it_8_subj', it_9_subj = '$it_9_subj', it_10_subj = '$it_10_subj', it_1 = '$it_1', it_2 = '$it_2', it_3 = '$it_3', it_4 = '$it_4', it_5 = '$it_5', it_6 = '$it_6', it_7 = '$it_7', it_8 = '$it_8', it_9 = '$it_9', it_10 = '$it_10' "; if ($w == "") { $it_id = $_POST['it_id']; if (!trim($it_id)) { alert('상품 코드가 없으므로 상품을 추가하실 수 없습니다.'); } $t_it_id = preg_replace("/[A-Za-z0-9\-_]/", "", $it_id); if($t_it_id) alert('상품 코드는 영문자, 숫자, -, _ 만 사용할 수 있습니다.'); $sql_common .= " , it_time = '".G5_TIME_YMDHIS."' "; $sql_common .= " , it_update_time = '".G5_TIME_YMDHIS."' "; $sql = " insert {$g5['g5_shop_item_table']} set it_id = '$it_id', $sql_common "; sql_query($sql); } else if ($w == "u") { $sql_common .= " , it_update_time = '".G5_TIME_YMDHIS."' "; $sql = " update {$g5['g5_shop_item_table']} set $sql_common where it_id = '$it_id' "; sql_query($sql); } /* else if ($w == "d") { if ($is_admin != 'super') { $sql = " select it_id from {$g5['g5_shop_item_table']} a, {$g5['g5_shop_category_table']} b where a.it_id = '$it_id' and a.ca_id = b.ca_id and b.ca_mb_id = '{$member['mb_id']}' "; $row = sql_fetch($sql); if (!$row['it_id']) alert("\'{$member['mb_id']}\' 님께서 삭제 할 권한이 없는 상품입니다."); } itemdelete($it_id); } */ if ($w == "" || $w == "u") { // 관련상품 등록 $it_id2 = explode(",", $it_list); for ($i=0; $i"; ?>