diff --git a/adm/shop_admin/itemlist.php b/adm/shop_admin/itemlist.php index 4fd0e7e68..ed163698b 100644 --- a/adm/shop_admin/itemlist.php +++ b/adm/shop_admin/itemlist.php @@ -8,7 +8,7 @@ $g4['title'] = '상품관리'; include_once (G4_ADMIN_PATH.'/admin.head.php'); // 분류 -$ca_list = ""; +$ca_list = ''.PHP_EOL; $sql = " select * from {$g4['shop_category_table']} "; if ($is_admin != 'super') $sql .= " where ca_mb_id = '{$member['mb_id']}' "; @@ -19,11 +19,10 @@ for ($i=0; $row=sql_fetch_array($result); $i++) $len = strlen($row['ca_id']) / 2 - 1; $nbsp = ""; for ($i=0; $i<$len; $i++) { - $nbsp .= "   "; + $nbsp .= '   '; } - $ca_list .= "'.PHP_EOL; } -$ca_list .= ""; $where = " and "; @@ -163,9 +162,6 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌 $href = G4_SHOP_URL.'/item.php?it_id='.$row['it_id']; $gallery = $row['it_gallery'] ? 'Y' : ''; - - $tmp_ca_list = ' + +
" required class="frm_input required" size="40"> diff --git a/lib/shop.lib.php b/lib/shop.lib.php index fdbfa988f..cf135408d 100644 --- a/lib/shop.lib.php +++ b/lib/shop.lib.php @@ -627,9 +627,10 @@ function conv_selected_option($options, $value) if(!$options) return ''; - $str = str_replace('value="'.$value.'"', 'value="'.$value.'" selected="selected"', $options); + //$options = str_replace('value="'.$value.'"', 'value="'.$value.'" selected="selected"', $options); + $options = preg_replace('/(value=[\'\"]'.$value.'[\'\"])/', '\\1 selected="selected"', $options); - return $str; + return $options; } // 주문서 번호를 얻는다.