'', 'ev_subject_strong'=>'', 'ev_id'=>'', 'ev_head_html'=>'', 'ev_tail_html'=>'' ); $res_item = null; $html_title = "이벤트"; $g5['title'] = $html_title.' 관리'; if ($w == "u") { $html_title .= " 수정"; $readonly = " readonly"; $sql = " select * from {$g5['g5_shop_event_table']} where ev_id = '$ev_id' "; $ev = sql_fetch($sql); if (! (isset($ev['ev_id']) && $ev['ev_id'])) alert("등록된 자료가 없습니다."); // 등록된 이벤트 상품 $sql = " select b.it_id, b.it_name from {$g5['g5_shop_event_item_table']} a left join {$g5['g5_shop_item_table']} b on ( a.it_id = b.it_id ) where a.ev_id = '$ev_id' "; $res_item = sql_query($sql); } else { $html_title .= " 입력"; $ev['ev_skin'] = 'list.10.skin.php'; $ev['ev_mobile_skin'] = 'list.10.skin.php'; $ev['ev_use'] = 1; $ev['ev_img_width'] = 230; $ev['ev_img_height'] = 230; $ev['ev_list_mod'] = 3; $ev['ev_list_row'] = 5; $ev['ev_mobile_img_width'] = 230; $ev['ev_mobile_img_height'] = 230; $ev['ev_mobile_list_mod'] = 3; $ev['ev_mobile_list_row'] = 5; } // 분류리스트 $category_select = ''; $sql = " select * from {$g5['g5_shop_category_table']} "; if ($is_admin != 'super') $sql .= " where ca_mb_id = '{$member['mb_id']}' "; $sql .= " order by ca_order, ca_id "; $result = sql_query($sql); for ($i=0; $row=sql_fetch_array($result); $i++) { $len = strlen($row['ca_id']) / 2 - 1; $nbsp = ""; for ($i=0; $i<$len; $i++) $nbsp .= " "; // 전체 카테고리 경로 표시 $category_path = function_exists('get_shop_category_path') ? get_shop_category_path($row['ca_id']) : $row['ca_name']; $category_select .= "\n"; } // 모바일 1줄당 이미지수 필드 추가 if(!sql_query(" select ev_mobile_list_row from {$g5['g5_shop_event_table']} limit 1 ", false)) { sql_query(" ALTER TABLE `{$g5['g5_shop_event_table']}` ADD `ev_mobile_list_row` int(11) NOT NULL DEFAULT '0' AFTER `ev_mobile_list_mod` ", true); } include_once (G5_ADMIN_PATH.'/admin.head.php'); ?>