diff --git a/adm/shop_admin/item_copy_update.php b/adm/shop_admin/item_copy_update.php index 802edf912..d2c8f2536 100644 --- a/adm/shop_admin/item_copy_update.php +++ b/adm/shop_admin/item_copy_update.php @@ -38,6 +38,14 @@ $sql = " insert {$g4['shop_item_table']} $sql_common "; sql_query($sql); +// 선택/추가 옵션 copy +$opt_sql = " insert ignore into {$g4['shop_item_option_table']} ( io_id, io_type, it_id, io_price, io_stock_qty, io_noti_qty, io_use ) + select io_id, io_type, '$new_it_id', io_price, io_stock_qty, io_noti_qty, io_use + from {$g4['shop_item_option_table']} + where it_id = '$it_id' + order by io_no asc "; +sql_query($opt_sql); + // html 에디터로 첨부된 이미지 파일 복사 if($cp['it_explan']) { $matchs = get_editor_image($cp['it_explan']); diff --git a/adm/shop_admin/itemformupdate.php b/adm/shop_admin/itemformupdate.php index 21819a130..b4ae6a454 100644 --- a/adm/shop_admin/itemformupdate.php +++ b/adm/shop_admin/itemformupdate.php @@ -21,14 +21,25 @@ function itemdelete($it_id) $it = sql_fetch($sql); // 상품 이미지 삭제 + $dir_list = array(); for($i=1; $i<=10; $i++) { $file = G4_DATA_PATH.'/item/'.$it['it_img'.$i]; if(is_file($file) && $it['it_img'.$i]) { @unlink($file); - delete_item_thumbnail(dirname($file), basename($file)); + $dir = dirname($file); + delete_item_thumbnail($dir, basename($file)); + + if(!in_array($dir, $dir_list)) + $dir_list[] = $dir; } } + // 이미지디렉토리 삭제 + for($i=0; $i>>>>>> g4s hr {display:none} pre {overflow-x:scroll;font-size:1.1em} a:link, @@ -26,8 +36,7 @@ a:active {color:#000;text-decoration:underline} /* 화면낭독기 사용자용 */ #hd_login_msg {position:absolute;top:0;left:0;width:0;height:0;overflow:hidden} -.msg_sound_only, -.sound_only {display:inline-block;position:absolute;top:0;left:0;margin:0 !important;padding:0 !important;width:1px !important;height:1px !important;font-size:0 !important;line-height:0 !important;overflow:hidden} +.msg_sound_only, .sound_only {display:inline-block;position:absolute;top:0;left:0;margin:0 !important;padding:0 !important;width:1px !important;height:1px !important;font-size:0 !important;line-height:0 !important;overflow:hidden} /* 본문 바로가기 */ .to_content a {z-index:100000;position:absolute;top:0;left:0;width:0;height:0;font-size:0;line-height:0;overflow:hidden} @@ -104,11 +113,9 @@ a:active {color:#000;text-decoration:underline} /* 버튼 */ .btn01 {display:inline-block;padding:0 0.5em;height:2em;border:1px solid #ccc !important;background:#fafafa !important;color:#000 !important;font-size:1em;text-decoration:none !important;line-height:2em;vertical-align:middle} -.btn01:focus, -.btn01:hover {text-decoration:none !important} +.btn01:focus, .btn01:hover {text-decoration:none !important} .btn02 {display:inline-block;padding:0 0.5em;height:2em;border:1px solid #333 !important;background:#333 !important;color:#fff !important;font-size:1em;text-decoration:none !important;line-height:2em;vertical-align:middle} -.btn02:focus, -.btn02:hover {text-decoration:none !important} +.btn02:focus, .btn02:hover {text-decoration:none !important} .btn_confirm {text-align:center} /* 서식단계 진행 */ .btn_submit {padding:0 1em;height:2.6em;border:0;background:#333;color:#fff;letter-spacing:-0.1em;vertical-align:top;cursor:pointer;-webkit-appearance:none} .btn_cancel {display:inline-block;padding:0 1em;height:2.5em;border:1px solid #ccc;background:#fafafa;color:#000;font-size:1em;text-decoration:none;line-height:2.5em} @@ -117,14 +124,11 @@ a:active {color:#000;text-decoration:underline} .btn_win a {display:inline-block;padding:0 1em;height:2.5em;border:1px solid #ccc;background:#fafafa;color:#000;text-decoration:none;vertical-align:middle;line-height:2.5em;cursor:pointer} /* 게시판용 버튼 */ .btn_b01 {display:inline-block;margin:0 0 0.3em;padding:0 1em;border:1px solid #eee !important;background:#fafafa !important;color:#000 !important;text-decoration:none !important;line-height:2em;vertical-align:middle} -.btn_b01:focus, -.btn_b01:hover {text-decoration:none !important} +.btn_b01:focus, .btn_b01:hover {text-decoration:none !important} .btn_b02 {display:inline-block;margin:0 0 0.3em;padding:0 1em;border:1px solid #eee !important;background:#fafafa !important;color:#000 !important;text-decoration:none !important;line-height:2em;vertical-align:middle} -.btn_b02:focus, -.btn_b02:hover {text-decoration:none !important} +.btn_b02:focus, .btn_b02:hover {text-decoration:none !important} .btn_admin {display:inline-block;margin:0 0 0.3em;padding:0 1em;border:1px solid #e8180c !important;background:#e8180c !important;color:#fff !important;text-decoration:none !important;line-height:2em;vertical-align:middle} /* 관리자 전용 버튼 */ -.btn_admin:focus, -.btn_admin:hover {text-decoration:none !important} +.btn_admin:focus, .btn_admin:hover {text-decoration:none !important} /* 기본테이블 */ .basic_tbl {margin-bottom:1em;width:100%;border-collapse:collapse;border-spacing:0} @@ -183,14 +187,9 @@ td.empty_table {padding:5em 0;text-align:center} /* pagination */ .pg_wrap {clear:both;margin:0 0 1em;padding-top:1em;text-align:center} .pg {display:inline-block;border:1px solid #cfded8;letter-spacing:-4px} -.pg a:focus, -.pg a:hover, -.pg a:active {text-decoration:none} -.pg_page, -.pg_current {display:inline-block;padding:0 0.6em;color:#000;letter-spacing:0;line-height:1.9em;vertical-align:middle} +.pg a:focus, .pg a:hover, .pg a:active {text-decoration:none} +.pg_page, .pg_current {display:inline-block;padding:0 0.6em;color:#000;letter-spacing:0;line-height:1.9em;vertical-align:middle} .pg_page {background:#f9f9f9;text-decoration:none} -.pg_start, -.pg_prev {border-right:1px solid #cfded8} -.pg_end, -.pg_next {border-left:1px solid #cfded8} +.pg_start, .pg_prev {border-right:1px solid #cfded8} +.pg_end, .pg_next {border-left:1px solid #cfded8} .pg_current {background:#333;color:#fff;font-weight:bold} \ No newline at end of file diff --git a/lib/common.lib.php b/lib/common.lib.php index fd2ec5d0a..de8628a2b 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -997,9 +997,11 @@ function get_sideview($mb_id, $name='', $email='', $homepage='') if ($config['cf_use_member_icon'] == 2) // 회원아이콘+이름 $tmp_name = $tmp_name.' '.$name; - } - } else { - $tmp_name = $tmp_name.' '.$name; + } else { + $tmp_name = $tmp_name.' '.$name; + } + } else { + $tmp_name = $tmp_name.' '.$name; } $tmp_name .= ''; @@ -1008,7 +1010,7 @@ function get_sideview($mb_id, $name='', $email='', $homepage='') if(!$bo_table) return $name; - $tmp_name = "$name"; + $tmp_name = ''.$name.''; $title_mb_id = '[비회원]'; }