ÿØÿà JFIF ` ` ÿþ
Server : Apache System : Linux ruga7-004.fmcity.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : tkt_travelbus ( 1137) PHP Version : 7.0.0p1 Disable Function : mysql_pconnect Directory : /tkt_travelbus/www/toadmin/good_en/ |
Upload File : |
<? include "../include/top.html"; include "_common.php"; // 상품정보 $row = array(); // 상품코드 $g_code = Fnc_GetRes(); $lang = "en"; // 1차카테고리 $bc_arr = TO_get_bc("","N"," and tab='{$tab}' and b_lang='{$lang}' "); // 국가 목록 $city_arr = to_area_b("",""," and DelFlag='N' ",$lang); // 특징아이콘 $special_arr = base_codec("TGO","TSPE","","N"); // 관리자목록 $admin_arr = member_fetch(" and mb_level <= 10 "); // 환율목록 $m = new CommonTour(); $data_ex = $m->exchangeList(array("sql_where"=>" and del_fg='N' ")); ?> <div class="contents_wrap"> <div class="contents_wrap_in"> <div class="title">여행상품<span class="arrow">></span><strong>상품등록</strong></div> <div class="contents_detail"> <!-- 본문 --> <!-- 폼 --> <form name="frm_ins" id="frm_ins" method="post" enctype="multipart/form-data"> <input type="hidden" name="SqlType" value="good_ins" /> <input type="hidden" name="g_uid" value="<?=$g_uid?>" /> <input type="hidden" name="tab" value="<?=$tab?>" /> <div id="Content_box"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_register mt30"> <tbody> <tr> <th width="120" scope="row"><label for="hotel_nm">카테고리</label></th> <td> <select name="b_uid" id="b_uid" size="10" onchange="$('#ajax_sc').html('');ajax_obj_loader('good_edit_category_ajax.html?mode=mc&b_uid='+this.value,'ajax_mc');" style="width:140px;" hname="1차카테고리" required> <option value="" style="background:#000000;color:#ffffff;">==1차카테고리==</option> <? for($i=0 ; $i<count($bc_arr) ; $i++){ $arr = $bc_arr[$i]; ?> <option value="<?=$arr['b_uid']?>" <?=($arr['b_uid']==$b_uid_s)?"selected":""?>>[<?=$arr['b_uid']?>] <?=$arr['b_name']?></option> <? } ?> </select> <span id="ajax_mc"></span><!-- 2차 카테고리 --> <span id="ajax_sc"></span><!-- 3차 카테고리 --> </td> </tr> <tr> <th scope="row"><label for="Bidx">국가 > 도시</label></th> <td> <select name="Bidx" id="Bidx" size="10" style="width:140px;" onchange="ajax_obj_loader('good_edit_cityarea_ajax.html?mode=city&Bidx='+this.value,'ajax_city');" hname="국가" required> <option value="" style="background:#000000;color:#ffffff;">==국가==</option> <? for($i=0 ; $i < count($city_arr) ; $i++){ $arr = $city_arr[$i]; ?> <option value="<?=$arr['Bidx']?>" <?=($arr['Bidx']==$row['Bidx'])?"selected":""?>><?=$arr['NationName']?></option> <?}?> </select> <span id="ajax_city"></span><!-- 도시 --> </td> </tr> <?if($tab=="D") {?> <tr> <th scope="row"><label for="gdt">투어분류</label></th> <td> <select name="gdt" id="gdt" type="text" style="width:180px;" hname="투어분류" required> <option value="">==선택==</option> <option value="gr">단체투어</option> <option value="pe">단독투어</option> </select> </td> </tr> <?}?> <tr> <th scope="row"><label for="g_title">상품명</label></th> <td><input name="g_title" id="g_title" type="text" value="<?=$row['g_title']?>" style="width:750px;" class="input_text" maxlength="200" hname="상품명" required /> </td> </tr> <tr> <th scope="row"><label for="exchange">화폐단위</label></th> <td> <div style="width:500px;"> <div class="lo_left"> <label for="exchange_fg_n">원 화 </label><input type="radio" name="exchange_fg" id="exchange_fg_n" class="exchange" value="N" checked> <label for="exchange_fg_y">외 화 </label><input type="radio" name="exchange_fg" id="exchange_fg_y" class="exchange" value="Y"> </div> <div id="item_exchange" style="display: none;"> <select name="exid" style="width:170px;"> <option value="">==선택==</option>> <?foreach($data_ex as $r){?> <option value="<?=$r['exid']?>"><?=$r['ext_nm']?>(<?=$r['ext_eng']?>)</option> <?}?> </select> </div> </div> </td> </tr> <tr> <th scope="row"> <?if($tab=="T"){?> 취소수수료 <?}else{?> 상품간단설명 <?}?> </th> <td><div style="width:700px;"><textarea name="g_brief" id="g_brief" style="width:750px; height:100px;" class="" ><?=$row['g_brief']?></textarea></div></td> </tr> <tr> <th scope="row">상품특징아이콘</th> <td> <? $g_type_arr = explode(",",$row['g_type']); for( $i=0 ; $i<count($special_arr) ; $i++){ $arr = $special_arr[$i]; ?> <label for="g_type_<?=$i?>"><input type="checkbox" name="g_type_arr[]" id="g_type_<?=$i?>" value="<?=$arr['code']?>"> <img src="<?=$arr['cd_img']?>"></label> <? } ?> </td> </tr> <?if($tab!="T") {?> <tr> <th scope="row">여행지역</th> <td><input name="g_sch" id="g_sch" type="text" value="<?=$row['g_sch']?>" style="width:750px;" class="input_text" maxlength="100" /> </td> </tr> <?}?> <?if($tab=="D") {?> <tr> <th scope="row">미팅장소/미팅시간</th> <td> <table border="0" cellspacing="0" cellpadding="0" width="650px" class="setting_write" id="setting_write_meeting"> <tr> <th>미팅장소</th><th>미팅시간</th><th width="30px">-</th> </tr> <tr> <td><input type="text" class="input_text" name="meeting_place_arr[]" value="" size="50"></td> <td><input type="text" class="input_text" name="meeting_hh_arr[]" value="" style="width:20px;"maxlength="2"> : <input type="text" class="input_text" name="meeting_mm_arr[]" value="" size="5" style="width:20px;"maxlength="2"></td> <td><span onclick="meetingPlace('add');" style="cursor:pointer;">╂</span></td> </tr> </table> </td> </tr> <?}?> <tr> <th scope="row"> <?if($tab=="T"){?> 유효기간 <?}else{?> <span class="help_tooltip" title="HTML Tag사용 가능합니다.<br>아이프레임(iframe) Tag를 사용하셔서 입력하세요.">동영상</span> <?}?> </th> <td><div style="width:700px;"><textarea name="movie_i" id="movie_i" style="width:750px; height:100px;"><?=$row['movie_i']?></textarea></div></td> </tr> <tr> <th scope="row"> <?if($tab=="T"){?> 주의사항 <?}else{?> 이용특전 및 참조사항 <?}?> </th> <td><div style="width:750px;"><textarea name="g_special" id="g_special" class="ckeditor" ><?=$row['g_special']?></textarea></div></td> </tr> <tr> <th scope="row"> <?if($tab=="T"){?> 이용안내 <?}else{?> 포함내역 <?}?> </th> <td><div style="width:750px;"><textarea name="g_inclusion" id="g_inclusion" class="ckeditor" ><?=$row['g_inclusion']?></textarea></div></td> </tr> <tr> <th scope="row"> <?if($tab=="T"){?> 이용규칙 <?}else{?> 불포함내역 <?}?> </th> <td><div style="width:750px;"><textarea name="g_noinclusion" id="g_noinclusion" class="ckeditor" ><?=$row['g_noinclusion']?></textarea></div></td> </tr> <tr> <th scope="row"> <?if($tab=="T"){?> 환불안내 <?}else{?> 유의사항 및 예약규정 <?}?> </th> <td><div style="width:750px;"><textarea name="g_rule" id="g_rule" class="ckeditor" ><?=$row['g_rule']?></textarea></div></td> </tr> <?if($tab=="T"){?> <tr> <th scope="row">주문안내</th> <td><div style="width:750px;"><textarea name="g_heed" id="g_heed" class="ckeditor" ><?=$row['g_heed']?></textarea></div></td> </tr> <tr> <th scope="row">연속사용및 교환여부</th> <td><div style="width:750px;"><textarea name="g_ready" id="g_ready" class="ckeditor" ><?=$row['g_ready']?></textarea></div></td> </tr> <?}?> <!--<tr> <th scope="row">상세설명</th> <td><div style="width:700px;"><textarea name="g_explain" id="g_explain" class="ckeditor" ><?=$row['g_explain']?></textarea></div></td> </tr> --> <tr> <th scope="row">대표이미지</th> <td><input type="file" name="g_image1" id="g_image1" size="30" class="input_file"><span class="ml10">※ 넓이:높이 3:2 비율 ex) 720px x 480px</span><br> <?if($row['g_image1']){?><img src="<?=$row['img_src']?>" alt="상품이미지" width="239" height="180" style="cursor:pointer;" onClick="to_dialog.image(this.src,'메인이미지')" /><?}?> </td> </tr> <tr> <th scope="row">담당자</th> <td> <select name="admin_id" id="admin_id" hname="담당자" required> <option value="">==선택==</option> <? for($i=0 ; $i < count($admin_arr) ; $i++){ $arr = $admin_arr[$i]; ?> <option value="<?=$arr['mb_id']?>" <?=($arr['mb_id']==$row['admin_id'])?"selected":""?>><?=$arr['mb_nm']?></option> <?}?> </select> </td> </tr> </tbody> </table> </div> </form> <!-- /폼 --> <div class="btn_wrap_C mt30"> <a class="Bbtn red" onClick="edit_frm();">저장</a> <a class="Bbtn gray" href="javascript:;" onclick="history.go(-1);">목록보기</a> </div> <!-- /본문 --> </div> </div> </div> <script type="text/javascript"> function edit_frm(){ var f=document.frm_ins; var result = to_validation(f); if (result==false) return false; if($("#exchange_fg_y").prop("checked")==true && !f.exid.value){ alert('환율을 선택해 주세요.'); return false; } if(!confirm('저장하시겠습니까?')) return false; f.action = "good_proc.php?<?=$_href?>"; f.submit(); } function meetingPlace(_m,$o) { var str; str= '<tr>'+ '<td><input type="text" class="input_text" name="meeting_place_arr[]" value="" size="50"></td>'+ '<td><input type="text" class="input_text" name="meeting_hh_arr[]" value="" style="width:20px;" maxlength="2"> : <input type="text" class="input_text" name="meeting_mm_arr[]" value="" size="5" style="width:20px;" maxlength="2"></td>'+ '<td><span onclick="meetingPlace(\'add\');" style="cursor:pointer;">╂</span> <span onclick="meetingPlace(\'del\',$(this));" style="cursor:pointer;">─</span></td>'+ '</tr>'; switch(_m){ case "add": $("#setting_write_meeting tbody").append(str); break; case "del": $o.parent().parent("tr").remove(); break; } } $(function(){ $(".exchange").on("click",function(){ if($(this).attr("id")=="exchange_fg_n"){ $("#item_exchange").hide(). find("select option:eq(0)").attr("selected","selected"); }else{ $("#item_exchange").show(); } }); ajax_obj_loader('../good/good_edit_category_ajax.html?mode=mc&b_uid=<?=$b_uid_s?>&m_uid=<?=$m_uid_s?>','ajax_mc'); ajax_obj_loader('../good/good_edit_category_ajax.html?mode=sc&b_uid=<?=$b_uid_s?>&m_uid=<?=$m_uid_s?>','ajax_sc'); $(".ckeditor").each(function(){ var c=$(this).attr("id"); // /js/ckeditor_v4.9/plugins/upimgs,admin.lib.js 참고 CKEDITOR.replace(c).ui.addButton( 'Heart', { label: '이미지멀티업로드', command: 'insertHeart', toolbar: 'heart' }); }); }); </script> <? include "../include/footer.html"; ?>