first
This commit is contained in:
398
modules/member/themes/_mobile/rc-default/settings/_main.js
Normal file
398
modules/member/themes/_mobile/rc-default/settings/_main.js
Normal file
@@ -0,0 +1,398 @@
|
||||
$(function() {
|
||||
|
||||
var f = document.getElementById("memberForm");
|
||||
var page_main = $('#page-main')
|
||||
var page_profile = $('#page-profile')
|
||||
var page_name = $('#page-name')
|
||||
var page_tel1 = $('#page-tel1')
|
||||
var page_tel2 = $('#page-tel2')
|
||||
var page_birth = $('#page-birth')
|
||||
var page_sex = $('#page-sex')
|
||||
var page_addr = $('#page-addr')
|
||||
var page_bio = $('#page-bio')
|
||||
var page_home = $('#page-home')
|
||||
var page_job = $('#page-job')
|
||||
var page_marr = $('#page-marr')
|
||||
|
||||
function _submit() {
|
||||
getIframeForAction(f);
|
||||
f.submit();
|
||||
}
|
||||
|
||||
$(".js-avatar-img").tap(function() {
|
||||
$("#rb-upfile-avatar").click();
|
||||
});
|
||||
$("#rb-upfile-avatar").change(function() {
|
||||
var f = document.MbrPhotoForm;
|
||||
getIframeForAction(f);
|
||||
setTimeout(function() {
|
||||
page_profile.find('.content').loader({
|
||||
text: "업로드중...",
|
||||
position: "overlay"
|
||||
});
|
||||
}, 300); //가상 키보드가 내려오는 시간동안 대기
|
||||
f.submit();
|
||||
});
|
||||
|
||||
|
||||
$(".js-btn-action-iframe").click(function() {
|
||||
getIframeForAction('');
|
||||
frames.__iframe_for_action__.location.href = $(this).attr("data-href");
|
||||
});
|
||||
|
||||
$('#reception_sms').on('changed.rc.switch', function (event) {
|
||||
var handle = $(event.relatedTarget)
|
||||
var button = handle.closest('.switch')
|
||||
if (button.hasClass('active')){
|
||||
console.log('문자 수신설정 되었습니다.')
|
||||
page_main.find('[name="sms"]').val(1);
|
||||
} else {
|
||||
console.log('문자 수신해제 되었습니다.')
|
||||
page_main.find('[name="sms"]').val(0);
|
||||
}
|
||||
_submit() // submit 실행
|
||||
})
|
||||
|
||||
$('#reception_email').on('changed.rc.switch', function (event) {
|
||||
var handle = $(event.relatedTarget)
|
||||
var button = handle.closest('.switch')
|
||||
if (button.hasClass('active')){
|
||||
console.log('이메일 수신설정 되었습니다.')
|
||||
page_main.find('[name="remail"]').val(1);
|
||||
} else {
|
||||
console.log('이메일 수신해제 되었습니다.')
|
||||
page_main.find('[name="remail"]').val(0);
|
||||
}
|
||||
_submit() // submit 실행
|
||||
})
|
||||
|
||||
// 닉네임 시작
|
||||
page_profile.find('.js-save').tap(function() {
|
||||
var nic = page_profile.find('[name="nic"]').val()
|
||||
page_main.find('[data-role="nic"]').removeClass('animated fadeIn');
|
||||
page_main.find('[name="nic"]').val(nic);
|
||||
|
||||
setTimeout(function() {
|
||||
page_profile.find('.content').loader({
|
||||
text: "변경중...",
|
||||
position: "overlay"
|
||||
});
|
||||
}, 300); //가상 키보드가 내려오는 시간동안 대기
|
||||
|
||||
setTimeout(function() {
|
||||
page_profile.find('.content').loader("hide");
|
||||
window.history.back(); // 메인 페이지로 복귀
|
||||
setTimeout(function() {
|
||||
_submit() // submit 실행
|
||||
page_main.find('[data-role="nic"]').text(nic).addClass('animated fadeIn');
|
||||
}, 500); //페이지 전환효과 소요시간동안 대기
|
||||
}, 700);
|
||||
});
|
||||
|
||||
// 이름변경 시작
|
||||
page_name.find('.js-save').tap(function() {
|
||||
var name = page_name.find('[name="name"]').val()
|
||||
page_main.find('[data-role="name"]').removeClass('animated fadeIn');
|
||||
page_main.find('[name="name"]').val(name);
|
||||
|
||||
setTimeout(function() {
|
||||
page_name.find('.content').loader({
|
||||
text: "변경중...",
|
||||
position: "overlay"
|
||||
});
|
||||
}, 300); //가상 키보드가 내려오는 시간동안 대기
|
||||
|
||||
setTimeout(function() {
|
||||
page_name.find('.content').loader("hide");
|
||||
window.history.back(); // 메인 페이지로 복귀
|
||||
setTimeout(function() {
|
||||
_submit() // submit 실행
|
||||
page_main.find('[data-role="name"]').text(name).addClass('animated fadeIn');
|
||||
}, 500); //페이지 전환효과 소요시간동안 대기
|
||||
}, 700);
|
||||
});
|
||||
|
||||
// 유선전화 시작
|
||||
page_tel1.find('.js-save').tap(function() {
|
||||
var tel1_1 = page_tel1.find('[name="tel1_1"]').val()
|
||||
var tel1_2 = page_tel1.find('[name="tel1_2"]').val()
|
||||
var tel1_3 = page_tel1.find('[name="tel1_3"]').val()
|
||||
var tel1 = tel1_1+'-'+tel1_2+'-'+tel1_3
|
||||
page_main.find('[data-role="tel1"]').removeClass('animated fadeIn');
|
||||
page_main.find('[name="tel1_1"]').val(tel1_1);
|
||||
page_main.find('[name="tel1_2"]').val(tel1_2);
|
||||
page_main.find('[name="tel1_3"]').val(tel1_3);
|
||||
|
||||
setTimeout(function() {
|
||||
page_tel1.find('.content').loader({
|
||||
text: "변경중...",
|
||||
position: "overlay"
|
||||
});
|
||||
}, 300); //가상 키보드가 내려오는 시간동안 대기
|
||||
|
||||
setTimeout(function() {
|
||||
page_tel1.find('.content').loader("hide");
|
||||
window.history.back(); // 메인 페이지로 복귀
|
||||
setTimeout(function() {
|
||||
_submit() // submit 실행
|
||||
page_main.find('[data-role="tel1"]').text(tel1).addClass('animated fadeIn');
|
||||
}, 500); //페이지 전환효과 소요시간동안 대기
|
||||
}, 700);
|
||||
});
|
||||
|
||||
// 휴대전화 시작
|
||||
page_tel2.find('.js-save').tap(function() {
|
||||
var tel2_1 = page_tel2.find('[name="tel2_1"]').val()
|
||||
var tel2_2 = page_tel2.find('[name="tel2_2"]').val()
|
||||
var tel2_3 = page_tel2.find('[name="tel2_3"]').val()
|
||||
var tel2 = tel2_1+'-'+tel2_2+'-'+tel2_3
|
||||
page_main.find('[data-role="tel2"]').removeClass('animated fadeIn');
|
||||
page_main.find('[name="tel2_1"]').val(tel2_1);
|
||||
page_main.find('[name="tel2_2"]').val(tel2_2);
|
||||
page_main.find('[name="tel2_3"]').val(tel2_3);
|
||||
|
||||
setTimeout(function() {
|
||||
page_tel2.find('.content').loader({
|
||||
text: "변경중...",
|
||||
position: "overlay"
|
||||
});
|
||||
}, 300); //가상 키보드가 내려오는 시간동안 대기
|
||||
|
||||
setTimeout(function() {
|
||||
page_tel2.find('.content').loader("hide");
|
||||
window.history.back(); // 메인 페이지로 복귀
|
||||
setTimeout(function() {
|
||||
_submit() // submit 실행
|
||||
page_main.find('[data-role="tel2"]').text(tel2).addClass('animated fadeIn');
|
||||
}, 500); //페이지 전환효과 소요시간동안 대기
|
||||
}, 700);
|
||||
});
|
||||
|
||||
// 생년월일 시작
|
||||
page_birth.find('.js-save').tap(function() {
|
||||
var birth_1 = page_birth.find('[name="birth_1"]').val()
|
||||
var birth_2 = page_birth.find('[name="birth_2"]').val()
|
||||
var birth_3 = page_birth.find('[name="birth_3"]').val()
|
||||
var birthtype = page_birth.find('[name="birthtype"]:checked').val()
|
||||
var birth = birth_1+'.'+birth_2+'.'+birth_3
|
||||
page_main.find('[data-role="birth"]').removeClass('animated fadeIn');
|
||||
page_main.find('[name="birth_1"]').val(birth_1);
|
||||
page_main.find('[name="birth_2"]').val(birth_2);
|
||||
page_main.find('[name="birth_3"]').val(birth_3);
|
||||
page_main.find('[name="birthtype"]').val(birthtype);
|
||||
|
||||
setTimeout(function() {
|
||||
page_birth.find('.content').loader({
|
||||
text: "변경중...",
|
||||
position: "overlay"
|
||||
});
|
||||
}, 300); //가상 키보드가 내려오는 시간동안 대기
|
||||
|
||||
setTimeout(function() {
|
||||
page_birth.find('.content').loader("hide");
|
||||
window.history.back(); // 메인 페이지로 복귀
|
||||
setTimeout(function() {
|
||||
_submit() // submit 실행
|
||||
page_main.find('[data-role="birth"]').text(birth).addClass('animated fadeIn');
|
||||
}, 500); //페이지 전환효과 소요시간동안 대기
|
||||
}, 700);
|
||||
});
|
||||
|
||||
// 성별 시작
|
||||
page_sex.find('.js-save').tap(function() {
|
||||
var sex = page_sex.find('[name="sex"]:checked').val()
|
||||
page_main.find('[data-role="sex"]').removeClass('animated fadeIn');
|
||||
page_main.find('[name="sex"]').val(sex);
|
||||
|
||||
setTimeout(function() {
|
||||
page_sex.find('.content').loader({
|
||||
text: "변경중...",
|
||||
position: "overlay"
|
||||
});
|
||||
}, 300); //가상 키보드가 내려오는 시간동안 대기
|
||||
|
||||
setTimeout(function() {
|
||||
page_sex.find('.content').loader("hide");
|
||||
window.history.back(); // 메인 페이지로 복귀
|
||||
setTimeout(function() {
|
||||
_submit() // submit 실행
|
||||
if (sex==1) page_main.find('[data-role="sex"]').text('남성').addClass('animated fadeIn');
|
||||
if (sex==2) page_main.find('[data-role="sex"]').text('여성').addClass('animated fadeIn');
|
||||
}, 500); //페이지 전환효과 소요시간동안 대기
|
||||
}, 700);
|
||||
});
|
||||
|
||||
// 주소 시작
|
||||
page_addr.find('.js-save').tap(function() {
|
||||
var zip = page_addr.find('[name="zip"]').val()
|
||||
var addr1 = page_addr.find('[name="addr1"]').val()
|
||||
var addr2 = page_addr.find('[name="addr2"]').val()
|
||||
page_main.find('[data-role="addr1"]').removeClass('animated fadeIn');
|
||||
page_main.find('[name="zip"]').val(zip);
|
||||
page_main.find('[name="addr1"]').val(addr1);
|
||||
page_main.find('[name="addr2"]').val(addr2);
|
||||
|
||||
setTimeout(function() {
|
||||
page_addr.find('.content').loader({
|
||||
text: "변경중...",
|
||||
position: "overlay"
|
||||
});
|
||||
}, 300); //가상 키보드가 내려오는 시간동안 대기
|
||||
|
||||
setTimeout(function() {
|
||||
page_addr.find('.content').loader("hide");
|
||||
_submit() // submit 실행
|
||||
page_main.find('[data-role="addr1"]').text(addr1).addClass('animated fadeIn');
|
||||
page_main.find('[data-role="addr"]').text('');
|
||||
}, 700);
|
||||
});
|
||||
|
||||
// 간단설명 시작
|
||||
page_bio.find('.js-save').tap(function() {
|
||||
var bio = page_bio.find('[name="bio"]').val()
|
||||
page_main.find('[data-role="bio"]').removeClass('animated fadeIn');
|
||||
page_main.find('[name="bio"]').val(bio);
|
||||
|
||||
setTimeout(function() {
|
||||
page_bio.find('.content').loader({
|
||||
text: "변경중...",
|
||||
position: "overlay"
|
||||
});
|
||||
}, 300); //가상 키보드가 내려오는 시간동안 대기
|
||||
|
||||
setTimeout(function() {
|
||||
page_bio.find('.content').loader("hide");
|
||||
window.history.back(); // 메인 페이지로 복귀
|
||||
setTimeout(function() {
|
||||
_submit() // submit 실행
|
||||
page_main.find('[data-role="bio"]').text(bio).addClass('animated fadeIn');
|
||||
page_main.find('[data-role="_bio"]').text('').addClass('animated fadeIn');
|
||||
}, 500); //페이지 전환효과 소요시간동안 대기
|
||||
}, 700);
|
||||
});
|
||||
|
||||
// 홈페이지 변경 시작
|
||||
page_home.find('.js-save').tap(function() {
|
||||
var home = page_home.find('[name="home"]').val()
|
||||
page_main.find('[data-role="home"]').removeClass('animated fadeIn');
|
||||
page_main.find('[name="home"]').val(home);
|
||||
|
||||
setTimeout(function() {
|
||||
page_home.find('.content').loader({
|
||||
text: "변경중...",
|
||||
position: "overlay"
|
||||
});
|
||||
}, 300); //가상 키보드가 내려오는 시간동안 대기
|
||||
|
||||
setTimeout(function() {
|
||||
page_home.find('.content').loader("hide");
|
||||
window.history.back(); // 메인 페이지로 복귀
|
||||
setTimeout(function() {
|
||||
_submit() // submit 실행
|
||||
page_main.find('[data-role="home"]').text(home).addClass('animated fadeIn');
|
||||
}, 500); //페이지 전환효과 소요시간동안 대기
|
||||
}, 700);
|
||||
});
|
||||
|
||||
// 직업 변경 시작
|
||||
page_job.find('.js-save').tap(function() {
|
||||
var job = page_job.find('[name="job"]').val()
|
||||
page_main.find('[data-role="job"]').removeClass('animated fadeIn');
|
||||
page_main.find('[name="job"]').val(job);
|
||||
|
||||
setTimeout(function() {
|
||||
page_job.find('.content').loader({
|
||||
text: "변경중...",
|
||||
position: "overlay"
|
||||
});
|
||||
}, 300); //가상 키보드가 내려오는 시간동안 대기
|
||||
|
||||
setTimeout(function() {
|
||||
page_job.find('.content').loader("hide");
|
||||
window.history.back(); // 메인 페이지로 복귀
|
||||
setTimeout(function() {
|
||||
_submit() // submit 실행
|
||||
page_main.find('[data-role="job"]').text(job).addClass('animated fadeIn');
|
||||
}, 500); //페이지 전환효과 소요시간동안 대기
|
||||
}, 700);
|
||||
});
|
||||
|
||||
// 결혼기념일 시작
|
||||
page_marr.find('.js-save').tap(function() {
|
||||
var marr_1 = page_marr.find('[name="marr_1"]').val()
|
||||
var marr_2 = page_marr.find('[name="marr_2"]').val()
|
||||
var marr_3 = page_marr.find('[name="marr_3"]').val()
|
||||
var marr = marr_1+'.'+marr_2+'.'+marr_3
|
||||
page_main.find('[data-role="marr"]').removeClass('animated fadeIn');
|
||||
page_main.find('[name="marr_1"]').val(marr_1);
|
||||
page_main.find('[name="marr_2"]').val(marr_2);
|
||||
page_main.find('[name="marr_3"]').val(marr_3);
|
||||
|
||||
setTimeout(function() {
|
||||
page_marr.find('.content').loader({
|
||||
text: "변경중...",
|
||||
position: "overlay"
|
||||
});
|
||||
}, 300); //가상 키보드가 내려오는 시간동안 대기
|
||||
|
||||
setTimeout(function() {
|
||||
page_marr.find('.content').loader("hide");
|
||||
window.history.back(); // 메인 페이지로 복귀
|
||||
setTimeout(function() {
|
||||
_submit() // submit 실행
|
||||
page_main.find('[data-role="marr"]').text(marr).addClass('animated fadeIn');
|
||||
}, 500); //페이지 전환효과 소요시간동안 대기
|
||||
}, 700);
|
||||
});
|
||||
|
||||
|
||||
$(document).on('click','#execDaumPostcode',function(){
|
||||
|
||||
// 우편번호 찾기 화면을 넣을 element
|
||||
var element_wrap = document.getElementById('postLayer');
|
||||
|
||||
function execDaumPostcode() {
|
||||
daum.postcode.load(function(){
|
||||
new daum.Postcode({
|
||||
oncomplete: function(data) {
|
||||
// 검색결과 항목을 클릭했을때 실행할 코드를 작성하는 부분.
|
||||
// 각 주소의 노출 규칙에 따라 주소를 조합한다.
|
||||
// 내려오는 변수가 값이 없는 경우엔 공백('')값을 가지므로, 이를 참고하여 분기 한다.
|
||||
var fullAddr = data.address; // 최종 주소 변수
|
||||
var extraAddr = ''; // 조합형 주소 변수
|
||||
|
||||
// 기본 주소가 도로명 타입일때 조합한다.
|
||||
if(data.addressType === 'R'){
|
||||
//법정동명이 있을 경우 추가한다.
|
||||
if(data.bname !== ''){
|
||||
extraAddr += data.bname;
|
||||
}
|
||||
// 건물명이 있을 경우 추가한다.
|
||||
if(data.buildingName !== ''){
|
||||
extraAddr += (extraAddr !== '' ? ', ' + data.buildingName : data.buildingName);
|
||||
}
|
||||
// 조합형주소의 유무에 따라 양쪽에 괄호를 추가하여 최종 주소를 만든다.
|
||||
fullAddr += (extraAddr !== '' ? ' ('+ extraAddr +')' : '');
|
||||
}
|
||||
|
||||
// 우편번호와 주소 정보를 해당 필드에 넣는다.
|
||||
document.getElementById('zip1').value = data.zonecode; //5자리 새우편번호 사용
|
||||
document.getElementById('addr1').value = fullAddr;
|
||||
$('#modal-DaumPostcode').removeClass('active') // 우편번호 검색모달을 숨김
|
||||
},
|
||||
|
||||
// 우편번호 찾기 화면 크기가 조정되었을때 실행할 코드를 작성하는 부분. iframe을 넣은 element의 높이값을 조정한다.
|
||||
width : '100%',
|
||||
height : '100%'
|
||||
}).embed(element_wrap);
|
||||
});
|
||||
// element_wrap.style.display = 'block';
|
||||
|
||||
$('#modal-DaumPostcode').modal('show')
|
||||
}
|
||||
execDaumPostcode()
|
||||
|
||||
})
|
||||
|
||||
|
||||
});
|
||||
106
modules/member/themes/_mobile/rc-default/settings/account.php
Normal file
106
modules/member/themes/_mobile/rc-default/settings/account.php
Normal file
@@ -0,0 +1,106 @@
|
||||
<div class="page center" id="page-main">
|
||||
<header class="bar bar-nav bar-dark bg-primary px-0">
|
||||
<a class="icon icon-left-nav pull-left p-x-1" role="button" data-history="back"></a>
|
||||
<h1 class="title" data-location="reload">
|
||||
<i class="fa fa-user fa-fw mr-1 text-muted" aria-hidden="true"></i> 회원계정 관리
|
||||
</h1>
|
||||
</header>
|
||||
<main class="content bg-faded">
|
||||
<ul class="table-view bg-white m-t-0 animated fadeIn delay-1">
|
||||
<li class="table-view-cell">
|
||||
<a class="navigate-right" data-toggle="page" data-start="#page-main" href="#page-pw">
|
||||
<?php if ($my['last_pw']): ?>
|
||||
<span class="badge badge-default badge-inverted"><?php echo -getRemainDate($my['last_pw'])?>일전 변경</span>
|
||||
<?php endif; ?>
|
||||
<i class="fa fa-key fa-fw mr-1 text-muted" aria-hidden="true"></i> 비밀번호 <?php echo $my['last_pw']?'변경':'등록' ?>
|
||||
</a>
|
||||
</li>
|
||||
<li class="table-view-cell">
|
||||
<a class="navigate-right" data-toggle="page" data-start="#page-main" href="#page-id">
|
||||
<span class="badge badge-default badge-inverted"><?php echo $my['id'] ?></span>
|
||||
<i class="fa fa-id-badge fa-fw mr-1 text-muted" aria-hidden="true"></i> 아이디 변경
|
||||
</a>
|
||||
</li>
|
||||
<li class="table-view-cell">
|
||||
<a class="navigate-right" data-toggle="page" data-start="#page-main" href="#page-leave">
|
||||
<i class="fa fa-ban fa-fw mr-1 text-muted" aria-hidden="true"></i> 탈퇴
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</main>
|
||||
</div><!-- /.page -->
|
||||
|
||||
<!-- Target Page : 비밀번호 변경 -->
|
||||
<div id="page-pw" class="page right">
|
||||
<header class="bar bar-nav bar-dark bg-primary px-0">
|
||||
<a class="icon icon-left-nav pull-left p-x-1" role="button" data-history="back"></a>
|
||||
<h1 class="title"><i class="fa fa-key fa-fw text-muted" aria-hidden="true"></i> 비밀번호 <?php echo $my['only_sns']?'등록':'변경' ?></h1>
|
||||
</header>
|
||||
<div class="bar bar-standard bar-footer bar-light bg-faded">
|
||||
<button type="button" class="btn btn-outline-primary btn-block">변경하기</button>
|
||||
</div>
|
||||
<div class="content bg-faded">
|
||||
|
||||
<form name="procForm" class="content-padded" role="form" action="<?php echo $g['s']?>/" method="post" autocomplete="off">
|
||||
<input type="hidden" name="r" value="<?php echo $r?>">
|
||||
<input type="hidden" name="m" value="<?php echo $m?>">
|
||||
<input type="hidden" name="front" value="<?php echo $front?>">
|
||||
<input type="hidden" name="a" value="pw_update">
|
||||
|
||||
<div class="form-group">
|
||||
<label>새 비밀번호</label>
|
||||
<input type="password" class="form-control" name="pw1" id="pw1" placeholder="8자이상 영문과 숫자만 사용할 수 있습니다.">
|
||||
<small class="form-text text-muted"></small>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>새 비밀번호 확인</label>
|
||||
<input type="password" class="form-control" name="pw2" id="pw2" placeholder="변경할 비밀번호를 한번 더 입력하세요">
|
||||
<small class="form-text text-muted"></small>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div class="content-padded">
|
||||
<?php if ($my['only_sns']): ?>
|
||||
<p class="text-muted">비밀번호를 등록하면 비밀번호를 통한 로그인이 가능합니다.</p>
|
||||
<?php else: ?>
|
||||
<p class="text-muted">현재 비밀번호는 <code><?php echo getDateFormat($my['last_pw'],'Y.m.d')?></code> 에 변경(등록)되었으며 <code>
|
||||
<?php echo -getRemainDate($my['last_pw'])?>일</code>이 경과되었습니다.
|
||||
비밀번호는 가급적 주기적으로 변경해 주세요.</p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div><!-- /.page -->
|
||||
|
||||
<div class="page right" id="page-id">
|
||||
<header class="bar bar-nav bar-dark bg-primary px-0">
|
||||
<a class="icon icon-left-nav pull-left p-x-1" role="button" data-history="back"></a>
|
||||
<h1 class="title"><i class="fa fa-id-badge fa-fw text-muted" aria-hidden="true"></i> 아이디 변경</h1>
|
||||
</header>
|
||||
<div class="content">
|
||||
<div class="content-padded">
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /.page -->
|
||||
|
||||
<!-- Target Page : 회원탈퇴 -->
|
||||
<div id="page-leave" class="page right">
|
||||
<header class="bar bar-nav bar-dark bg-primary px-0">
|
||||
<a class="icon icon-left-nav pull-left p-x-1" role="button" data-history="back"></a>
|
||||
<h1 class="title"><i class="fa fa-ban fa-fw text-muted" aria-hidden="true"></i> 회원탈퇴</h1>
|
||||
</header>
|
||||
<div class="bar bar-standard bar-footer bar-light bg-faded">
|
||||
<button type="button" class="btn btn-outline-danger btn-block">탈퇴</button>
|
||||
</div>
|
||||
<div class="content">
|
||||
<div class="content-padded">
|
||||
|
||||
회원님은 <span class="badge badge-default badge-inverted"><?php echo -getRemainDate($my['d_regis'])?>일전 가입</span>에 가입
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /.page -->
|
||||
425
modules/member/themes/_mobile/rc-default/settings/component.js
Normal file
425
modules/member/themes/_mobile/rc-default/settings/component.js
Normal file
@@ -0,0 +1,425 @@
|
||||
var memberForm = document.getElementById("memberForm");
|
||||
|
||||
var modal_settings_general = $('#modal-settings-general'); // 계정설정 모달
|
||||
var modal_settings_profile = $('#modal-settings-profile'); // 프로필 설정
|
||||
|
||||
var page_settings_main = $('#page-settings-main'); // 설정메인
|
||||
var page_settings_account = $('#page-settings-account'); //회원계정
|
||||
var page_settings_pw = $('#page-settings-pw'); //비밀번호 변경
|
||||
var page_settings_email = $('#page-settings-email'); //이메일 관리
|
||||
var page_settings_phone = $('#page-settings-phone'); //휴대폰 관리
|
||||
var page_settings_noti = $('#page-settings-noti'); //알림설정
|
||||
var page_settings_connect = $('#page-settings-connect'); //연결계정
|
||||
var page_settings_shipping = $('#page-settings-shipping'); //배송지관리
|
||||
var page_settings_name = $('#page-settings-name'); //이름변경
|
||||
|
||||
var page_settings_profile = $('#page-settings-profile') //프로필 수정 메인
|
||||
var page_settings_avatar = $('#page-settings-avatar') //아바타
|
||||
var page_settings_cover = $('#page-settings-cover') //배경이미지
|
||||
var page_settings_nic = $('#page-settings-nic') //닉네임
|
||||
var page_settings_tel1 = $('#page-settings-tel1'); //유선전화
|
||||
var page_settings_bio = $('#page-settings-bio'); //간단설명
|
||||
|
||||
function saveMemberInfo(mbruid,field) {
|
||||
var wrapper = settings.wrapper;
|
||||
var keyword=settings.keyword; // keyword
|
||||
|
||||
$.post(rooturl+'/?r='+raccount+'&m=member&a=info_update',{
|
||||
sort : sort,
|
||||
keyword : keyword,
|
||||
recnum : recnum,
|
||||
p : currentPage,
|
||||
markup_file : markup_file,
|
||||
start : start
|
||||
},function(response,status){
|
||||
if(status=='success'){
|
||||
var result = $.parseJSON(response);
|
||||
var list=result.list;
|
||||
var num=result.num;
|
||||
|
||||
wrapper.loader('hide');
|
||||
if (num) wrapper.html(list)
|
||||
else wrapper.html(none)
|
||||
|
||||
|
||||
} else {
|
||||
alert(status);
|
||||
}
|
||||
});
|
||||
|
||||
} // saveMemberInfo
|
||||
|
||||
function pwChangeCheck(obj,layer) {
|
||||
var f = document.getElementById('pwChangeForm');
|
||||
if (!obj.value)
|
||||
{
|
||||
obj.classList.remove('is-invalid');
|
||||
layer.innerHTML = '';
|
||||
}
|
||||
else
|
||||
{
|
||||
if (obj.name == 'pw1') {
|
||||
f.classList.remove('was-validated');
|
||||
|
||||
if (f.pw1.value.length < 6 || f.pw1.value.length > 16) {
|
||||
|
||||
f.check_pw1.value = '0';
|
||||
f.classList.remove('was-validated');
|
||||
obj.classList.add('is-invalid');
|
||||
obj.classList.remove('is-valid');
|
||||
|
||||
|
||||
layer.innerHTML = '영문/숫자 2개 이상 조합 6~16자로 입력';
|
||||
obj.focus();
|
||||
return false;
|
||||
}
|
||||
if (getTypeCheck(f.pw1.value,"abcdefghijklmnopqrstuvwxyz")) {
|
||||
layer.innerHTML = '비밀번호가 영문만으로 입력되었습니다.\n영문/숫자 2개 이상의 조합으로 최소 6자이상 입력하셔야 합니다.';
|
||||
obj.focus();
|
||||
return false;
|
||||
}
|
||||
if (getTypeCheck(f.pw1.value,"1234567890")) {
|
||||
layer.innerHTML = '비밀번호가 숫자만으로 입력되었습니다.\n영문/숫자 2개 이상의 조합으로 최소 6자이상 입력하셔야 합니다.';
|
||||
obj.focus();
|
||||
return false;
|
||||
}
|
||||
f.pw1.classList.add('is-valid');
|
||||
f.pw1.classList.remove('is-invalid');
|
||||
layer.innerHTML = '';
|
||||
f.check_pw1.value = '1';
|
||||
}
|
||||
|
||||
if (obj.name == 'pw2') {
|
||||
f.classList.remove('was-validated');
|
||||
obj.classList.add('is-invalid');
|
||||
obj.classList.remove('is-valid');
|
||||
|
||||
if (f.pw1.value != f.pw2.value)
|
||||
{
|
||||
layer.innerHTML = '비밀번호가 일치하지 않습니다.';
|
||||
f.classList.remove('was-validated');
|
||||
obj.focus();
|
||||
f.check_pw2.value = '0';
|
||||
return false;
|
||||
}
|
||||
|
||||
f.pw2.classList.add('is-valid');
|
||||
f.pw2.classList.remove('is-invalid');
|
||||
layer.innerHTML = '';
|
||||
|
||||
f.check_pw2.value = '1';
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
modal_settings_general.on('show.rc.modal', function(event) {
|
||||
var button = $(event.relatedTarget);
|
||||
var modal = $(this);
|
||||
modal.attr('data-mbruid','');
|
||||
$('#modal-post-view').find('[data-act="pauseVideo"]').click(); //유튜브 비디오 일시정지
|
||||
if ($('#drawer-left').length) {
|
||||
setTimeout(function(){ $('#drawer-left').drawer('hide'); }, 1000); // 왼쪽 드로워 닫기
|
||||
}
|
||||
})
|
||||
|
||||
page_settings_main.on('show.rc.page', function(event) {
|
||||
var button = $(event.relatedTarget);
|
||||
var page = $(this);
|
||||
|
||||
})
|
||||
|
||||
// 비밀번호 변경
|
||||
page_settings_pw.on('show.rc.page', function(event) {
|
||||
var button = $(event.relatedTarget);
|
||||
var page = $(this);
|
||||
page.find('[type="password"]').val('')
|
||||
})
|
||||
|
||||
|
||||
//비밀번호 유용성 체크
|
||||
page_settings_pw.find('input').keyup(function(){
|
||||
var item = $(this).attr('data-role')
|
||||
var item_pw_check = page_settings_pw.find('#page-settings-pw [name=check_pw]').val()
|
||||
if (item =='pw1') {
|
||||
element = document.querySelector('#page-settings-pw [name="pw1"]');
|
||||
feedback = document.querySelector('#page-settings-pw [data-role="pw1CodeBlock"]');
|
||||
pwChangeCheck(element,feedback)
|
||||
}
|
||||
if (item =='pw2') {
|
||||
element = document.querySelector('#page-settings-pw [name="pw2"]');
|
||||
feedback = document.querySelector('#page-settings-pw [data-role="pw2CodeBlock"]');
|
||||
pwChangeCheck(element,feedback)
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
page_settings_pw.find('[data-act="changePW"]').click(function(){
|
||||
var button = $(this)
|
||||
var page = page_settings_pw;
|
||||
var f = document.getElementById('pwChangeForm');
|
||||
button.attr('disabled',true);
|
||||
|
||||
if (f.check_pw1.value == '0' || f.check_pw2.value == '0') {
|
||||
button.attr('disabled',false);
|
||||
return false;
|
||||
}
|
||||
|
||||
page.find('.form-control').removeClass('is-invalid') //에러이력 초기화
|
||||
|
||||
setTimeout(function(){
|
||||
getIframeForAction(f);
|
||||
f.submit();
|
||||
}, 1000);
|
||||
});
|
||||
|
||||
// 이메일 관리
|
||||
page_settings_email.on('show.rc.page', function(event) {
|
||||
var button = $(event.relatedTarget);
|
||||
var page = $(this);
|
||||
|
||||
page.find('.content').loader({ position: 'inside' });
|
||||
|
||||
setTimeout(function(){
|
||||
|
||||
$.post(rooturl+'/?r='+raccount+'&m=member&a=get_emailList',{
|
||||
},function(response){
|
||||
var result = $.parseJSON(response);
|
||||
var error=result.error;
|
||||
var list=result.list;
|
||||
|
||||
if (error) {
|
||||
history.back();
|
||||
setTimeout(function(){ $.notify({message: error},{type: 'default'}) }, 500);
|
||||
} else {
|
||||
page.find('.content').html(list)
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
}, 300);
|
||||
|
||||
})
|
||||
|
||||
|
||||
// 휴대폰 관리
|
||||
page_settings_phone.on('show.rc.page', function(event) {
|
||||
var button = $(event.relatedTarget);
|
||||
var page = $(this);
|
||||
|
||||
page.find('.content').loader({ position: 'inside' });
|
||||
|
||||
setTimeout(function(){
|
||||
|
||||
$.post(rooturl+'/?r='+raccount+'&m=member&a=get_phoneList',{
|
||||
},function(response){
|
||||
var result = $.parseJSON(response);
|
||||
var error=result.error;
|
||||
var list=result.list;
|
||||
|
||||
if (error) {
|
||||
history.back();
|
||||
setTimeout(function(){ $.notify({message: error},{type: 'default'}) }, 500);
|
||||
} else {
|
||||
page.find('.content').html(list)
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
}, 300);
|
||||
|
||||
})
|
||||
|
||||
// 알림설정
|
||||
page_settings_noti.on('show.rc.page', function(event) {
|
||||
var button = $(event.relatedTarget);
|
||||
var page = $(this);
|
||||
|
||||
console.log('알림설정')
|
||||
|
||||
})
|
||||
|
||||
// 연결계정
|
||||
page_settings_connect.on('show.rc.page', function(event) {
|
||||
var button = $(event.relatedTarget);
|
||||
var page = $(this);
|
||||
|
||||
console.log('연결계정')
|
||||
|
||||
})
|
||||
|
||||
// 배송지관리
|
||||
page_settings_shipping.on('show.rc.page', function(event) {
|
||||
var button = $(event.relatedTarget);
|
||||
var page = $(this);
|
||||
|
||||
page.find('.content').loader({ position: 'inside' });
|
||||
|
||||
setTimeout(function(){
|
||||
|
||||
$.post(rooturl+'/?r='+raccount+'&m=member&a=get_shippingList',{
|
||||
},function(response){
|
||||
var result = $.parseJSON(response);
|
||||
var error=result.error;
|
||||
var list=result.list;
|
||||
|
||||
if (error) {
|
||||
history.back();
|
||||
setTimeout(function(){ $.notify({message: error},{type: 'default'}) }, 500);
|
||||
} else {
|
||||
page.find('.content').html(list)
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
}, 300);
|
||||
|
||||
})
|
||||
|
||||
// 아바타 변경
|
||||
page_settings_avatar.find(".js-avatar-img").tap(function() {
|
||||
$("#rb-upfile-avatar").click();
|
||||
});
|
||||
page_settings_avatar.find("#rb-upfile-avatar").change(function() {
|
||||
var f = document.MbrPhotoForm;
|
||||
getIframeForAction(f);
|
||||
setTimeout(function() {
|
||||
page_settings_avatar.find('.content').loader({
|
||||
text: "업로드중...",
|
||||
position: "overlay"
|
||||
});
|
||||
}, 300); //가상 키보드가 내려오는 시간동안 대기
|
||||
f.submit();
|
||||
});
|
||||
|
||||
// 배경이미지 변경
|
||||
page_settings_cover.find(".js-cover-img").tap(function() {
|
||||
$("#rb-upfile-cover").click();
|
||||
});
|
||||
page_settings_cover.find("#rb-upfile-cover").change(function() {
|
||||
var f = document.MbrCoverForm;
|
||||
getIframeForAction(f);
|
||||
setTimeout(function() {
|
||||
page_settings_cover.find('.content').loader({
|
||||
text: "업로드중...",
|
||||
position: "overlay"
|
||||
});
|
||||
}, 300); //가상 키보드가 내려오는 시간동안 대기
|
||||
f.submit();
|
||||
});
|
||||
|
||||
// 이름변경
|
||||
page_settings_name.on('shown.rc.page', function(event) {
|
||||
setTimeout(function() {
|
||||
page_settings_name.find('input').focus().putCursorAtEnd();
|
||||
}, 300);
|
||||
})
|
||||
page_settings_name.on('hidden.rc.page', function(event) {
|
||||
page_settings_name.find('input').blur()
|
||||
})
|
||||
page_settings_name.find('[data-act="submit"]').click(function(){
|
||||
var input = page_settings_name.find('[name="name"]')
|
||||
var name = input.val()
|
||||
if (!name) {
|
||||
input.focus();
|
||||
return false
|
||||
}
|
||||
page_settings_profile.find('[data-role="name"]').removeClass('animated fadeIn');
|
||||
$('#memberForm').find('[name="name"]').val(name);
|
||||
setTimeout(function() {
|
||||
page_settings_name.find('.content').loader({
|
||||
text: "변경중...",
|
||||
position: "overlay"
|
||||
});
|
||||
}, 300); //가상 키보드가 내려오는 시간동안 대기
|
||||
setTimeout(function() {
|
||||
page_settings_name.find('.content').loader("hide");
|
||||
history.back(); // 메인 페이지로 복귀
|
||||
setTimeout(function() {
|
||||
getIframeForAction(memberForm);
|
||||
memberForm.submit();
|
||||
page_settings_profile.find('[data-role="name"]').text(name).addClass('animated fadeIn');
|
||||
}, 500); //페이지 전환효과 소요시간동안 대기
|
||||
}, 700);
|
||||
});
|
||||
|
||||
// 닉네임(채널) 변경
|
||||
page_settings_nic.on('shown.rc.page', function(event) {
|
||||
setTimeout(function() {
|
||||
page_settings_nic.find('input').focus().putCursorAtEnd();
|
||||
}, 300);
|
||||
})
|
||||
page_settings_nic.on('hidden.rc.page', function(event) {
|
||||
page_settings_nic.find('input').blur();
|
||||
})
|
||||
page_settings_nic.find('[data-act="submit"]').click(function(){
|
||||
var input = page_settings_nic.find('[name="nic"]')
|
||||
var nic = input.val()
|
||||
if (!nic) {
|
||||
input.focus();
|
||||
return false
|
||||
}
|
||||
page_settings_profile.find('[data-role="nic"]').removeClass('animated fadeIn');
|
||||
$('#memberForm').find('[name="nic"]').val(nic);
|
||||
setTimeout(function() {
|
||||
page_settings_nic.find('.content').loader({
|
||||
text: "변경중...",
|
||||
position: "overlay"
|
||||
});
|
||||
}, 300); //가상 키보드가 내려오는 시간동안 대기
|
||||
setTimeout(function() {
|
||||
page_settings_nic.find('.content').loader("hide");
|
||||
history.back(); // 메인 페이지로 복귀
|
||||
setTimeout(function() {
|
||||
getIframeForAction(memberForm);
|
||||
memberForm.submit();
|
||||
page_settings_profile.find('[data-role="nic"]').text(nic).addClass('animated fadeIn');
|
||||
}, 500); //페이지 전환효과 소요시간동안 대기
|
||||
}, 700);
|
||||
});
|
||||
|
||||
|
||||
// 유선전화
|
||||
page_settings_tel1.on('show.rc.page', function(event) {
|
||||
var button = $(event.relatedTarget);
|
||||
var page = $(this);
|
||||
|
||||
console.log('유선전화')
|
||||
|
||||
})
|
||||
|
||||
// 간단설명
|
||||
page_settings_bio.on('show.rc.page', function(event) {
|
||||
setTimeout(function() {
|
||||
page_settings_bio.find('textarea').focus().putCursorAtEnd();
|
||||
}, 300);
|
||||
})
|
||||
page_settings_bio.on('hidden.rc.page', function(event) {
|
||||
page_settings_bio.find('textarea').blur();
|
||||
})
|
||||
page_settings_bio.find('[data-act="submit"]').click(function(){
|
||||
var textarea = page_settings_bio.find('[name="bio"]')
|
||||
var bio = textarea.val()
|
||||
if (!bio) {
|
||||
textarea.focus();
|
||||
return false
|
||||
}
|
||||
page_settings_profile.find('[data-role="bio"]').removeClass('animated fadeIn');
|
||||
$('#memberForm').find('[name="bio"]').val(bio);
|
||||
setTimeout(function() {
|
||||
page_settings_bio.find('.content').loader({
|
||||
text: "변경중...",
|
||||
position: "overlay"
|
||||
});
|
||||
}, 300); //가상 키보드가 내려오는 시간동안 대기
|
||||
setTimeout(function() {
|
||||
page_settings_bio.find('.content').loader("hide");
|
||||
history.back(); // 메인 페이지로 복귀
|
||||
setTimeout(function() {
|
||||
getIframeForAction(memberForm);
|
||||
memberForm.submit();
|
||||
page_settings_profile.find('[data-role="bio"]').text(bio).addClass('animated fadeIn');
|
||||
}, 500); //페이지 전환효과 소요시간동안 대기
|
||||
}, 700);
|
||||
|
||||
});
|
||||
1344
modules/member/themes/_mobile/rc-default/settings/component.php
Normal file
1344
modules/member/themes/_mobile/rc-default/settings/component.php
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,91 @@
|
||||
<header class="bar bar-nav bar-dark bg-primary px-0">
|
||||
<a class="icon icon-left-nav pull-left p-x-1" role="button" data-history="back"></a>
|
||||
<h1 class="title" data-location="reload">
|
||||
<i class="fa fa-user-plus fa-fw mr-1 text-muted" aria-hidden="true"></i> 연결계정 관리
|
||||
</h1>
|
||||
</header>
|
||||
|
||||
<main class="content bg-faded">
|
||||
|
||||
<ul class="table-view bg-white m-t-0 animated fadeIn delay-1">
|
||||
<?php if ($d['connect']['use_n']): ?>
|
||||
<li class="table-view-cell" style="padding-right: 6rem ">
|
||||
<img class="media-object pull-left rounded-circle <?php echo !$my_naver['uid']?' filter grayscale':'' ?>" src="/_core/images/sns/naver.png" alt="네이버" width="28">
|
||||
<div class="media-body">
|
||||
네이버
|
||||
<?php if ($my_naver['uid']): ?>
|
||||
<p><?php echo getDateFormat($my_naver['d_regis'],'Y.m.d H:i') ?> 연결</p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div data-toggle="switch" class="switch<?php echo $my_naver['uid']?' active':'' ?>" id="reception_sms">
|
||||
<div class="switch-handle"></div>
|
||||
</div>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($d['connect']['use_k']): ?>
|
||||
<li class="table-view-cell" style="padding-right: 6rem ">
|
||||
<img class="media-object pull-left rounded-circle<?php echo !$my_kakao['uid']?' filter grayscale':'' ?>" src="/_core/images/sns/kakao.png" alt="카카오" width="28">
|
||||
<div class="media-body">
|
||||
카카오
|
||||
<?php if ($my_kakao['uid']): ?>
|
||||
<p><?php echo getDateFormat($my_kakao['d_regis'],'Y.m.d H:i') ?> 연결</p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div data-toggle="switch" class="switch<?php echo $my_kakao['uid']?' active':'' ?>" id="reception_sms">
|
||||
<div class="switch-handle"></div>
|
||||
</div>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($d['connect']['use_g']): ?>
|
||||
<li class="table-view-cell" style="padding-right: 6rem ">
|
||||
<img class="media-object pull-left rounded-circle<?php echo !$my_google['uid']?' filter grayscale':'' ?>" src="/_core/images/sns/google.png" alt="구글" width="28">
|
||||
<div class="media-body">
|
||||
구글
|
||||
<?php if ($my_google['uid']): ?>
|
||||
<p><?php echo getDateFormat($my_google['d_regis'],'Y.m.d H:i') ?> 연결</p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div data-toggle="switch" class="switch<?php echo $my_google['uid']?' active':'' ?>" id="reception_sms">
|
||||
<div class="switch-handle"></div>
|
||||
</div>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($d['connect']['use_f']): ?>
|
||||
<li class="table-view-cell" style="padding-right: 6rem ">
|
||||
<img class="media-object pull-left rounded-circle<?php echo !$my_facebook['uid']?' filter grayscale':'' ?>" src="/_core/images/sns/facebook.png" alt="페이스북" width="28">
|
||||
<div class="media-body">
|
||||
페이스북
|
||||
<?php if ($my_facebook['uid']): ?>
|
||||
<p><?php echo getDateFormat($my_facebook['d_regis'],'Y.m.d H:i') ?> 연결</p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div data-toggle="switch" class="switch<?php echo $my_facebook['uid']?' active':'' ?>" id="reception_sms">
|
||||
<div class="switch-handle"></div>
|
||||
</div>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($d['connect']['use_i']): ?>
|
||||
<li class="table-view-cell" style="padding-right: 6rem ">
|
||||
<img class="media-object pull-left rounded-circle<?php echo !$my_instagram['uid']?' filter grayscale':'' ?>" src="/_core/images/sns/instagram.png" alt="인스타그램" width="28">
|
||||
<div class="media-body">
|
||||
인스타그램
|
||||
<?php if ($my_instagram['uid']): ?>
|
||||
<p><?php echo getDateFormat($my_instagram['d_regis'],'Y.m.d H:i') ?> 연결</p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div data-toggle="switch" class="switch<?php echo $my_instagram['uid']?' active':'' ?>" id="reception_sms">
|
||||
<div class="switch-handle"></div>
|
||||
</div>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
|
||||
<div class="content-padded">
|
||||
<p class="text-muted">외부의 소셜미디어 계정을 연결하고 통합관리 합니다. 연결된 소셜미디어로 사용자인증 및 연결을 지원합니다.</p>
|
||||
</div>
|
||||
|
||||
</main>
|
||||
67
modules/member/themes/_mobile/rc-default/settings/email.php
Normal file
67
modules/member/themes/_mobile/rc-default/settings/email.php
Normal file
@@ -0,0 +1,67 @@
|
||||
<?php
|
||||
$vtype = $vtype ? $vtype : 'point';
|
||||
$sort = $sort ? $sort : 'uid';
|
||||
$orderby= $orderby ? $orderby : 'desc';
|
||||
$recnum = $recnum && $recnum < 200 ? $recnum : 10;
|
||||
|
||||
$sqlque = 'my_mbruid='.$my['uid'];
|
||||
if ($type == '1') $sqlque .= ' and price > 0';
|
||||
if ($type == '2') $sqlque .= ' and price < 0';
|
||||
if ($where && $keyword)
|
||||
{
|
||||
$sqlque .= getSearchSql($where,$keyword,$ikeyword,'or');
|
||||
}
|
||||
$RCD = getDbArray($table['s_'.$vtype],$sqlque,'*',$sort,$orderby,$recnum,$p);
|
||||
$NUM = getDbRows($table['s_'.$vtype],$sqlque);
|
||||
$TPG = getTotalPage($NUM,$recnum);
|
||||
|
||||
$PageLink = './point?';
|
||||
if ($type) $PageLink .= 'type='.$type.'&';
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<header class="bar bar-nav bar-dark bg-primary px-0">
|
||||
<a class="icon icon-left-nav pull-left p-x-1" role="button" href="<?php echo RW('mod=settings') ?>"></a>
|
||||
<h1 class="title" data-location="reload">
|
||||
<i class="fa fa-envelope-o mr-1 fa-fw text-muted" aria-hidden="true"></i> 이메일 관리
|
||||
</h1>
|
||||
</header>
|
||||
|
||||
<?php if ($TPG > 1): ?>
|
||||
<footer class="bar bar-standard bar-footer bar-light bg-white p-x-0">
|
||||
<div class="">
|
||||
<?php echo getPageLink($d['theme']['pagenum'],$p,$TPG,'')?>
|
||||
</div>
|
||||
</footer>
|
||||
<?php endif; ?>
|
||||
|
||||
<main class="content bg-faded animated fadeIn delay-1">
|
||||
|
||||
<ul class="table-view bg-white" style="margin-top: -.0625rem">
|
||||
<?php while($R=db_fetch_array($RCD)):?>
|
||||
<li class="table-view-cell">
|
||||
<?php echo $R['content']?>
|
||||
<?php if(getNew($R['d_regis'],24)):?><small class="text-danger">new</small><?php endif?>
|
||||
<p><?php echo getDateFormat($R['d_regis'],'Y.m.d H:i')?></p>
|
||||
<span class="badge badge-primary badge-outline"><?php echo ($R['price']>0?'+':'').number_format($R['price'])?></span>
|
||||
</li>
|
||||
<?php endwhile?>
|
||||
|
||||
<?php if(!$NUM):?>
|
||||
<li class="table-view-cell text-xs-center p-5 text-muted d-flex align-items-center justify-content-center bg-faded" style="height: calc(100vh - 10.5rem);">
|
||||
내역이 없습니다.
|
||||
</li>
|
||||
<?php endif?>
|
||||
</ul>
|
||||
|
||||
</main>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
$(function() {
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 67 B |
Binary file not shown.
|
After Width: | Height: | Size: 66 B |
793
modules/member/themes/_mobile/rc-default/settings/main.php
Normal file
793
modules/member/themes/_mobile/rc-default/settings/main.php
Normal file
@@ -0,0 +1,793 @@
|
||||
<?php
|
||||
$NT_DATA = explode('|',$my['noticeconf']);
|
||||
$nt_web = $NT_DATA[0];
|
||||
$_add = file($g['path_var'].'site/'.$_HS['id'].'/member.add_field.txt');
|
||||
$my_shipping_num = getDbRows($table['s_mbrshipping'],'mbruid='.$my['uid']);
|
||||
?>
|
||||
|
||||
<!-- Start Page -->
|
||||
<div id="page-main" class="page center">
|
||||
<header class="bar bar-nav bar-dark bg-primary px-0">
|
||||
<a class="icon icon-home pull-left p-x-1" role="button" data-href="<?php echo RW(0) ?>"></a>
|
||||
<h1 class="title" data-location="reload">설정</h1>
|
||||
</header>
|
||||
<main class="content bg-faded">
|
||||
|
||||
<ul class="table-view bg-white m-t-0 animated fadeIn delay-1">
|
||||
<li class="table-view-cell">
|
||||
<a class="navigate-right" data-toggle="page" data-start="#page-main" href="#page-profile">
|
||||
|
||||
<?php if($d['member']['form_settings_avatar']):?>
|
||||
<img class="media-object pull-left img-circle bg-faded" data-role="avatar" src="<?php echo getAvatarSrc($my['uid'],'100') ?>" width="49">
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="media-body">
|
||||
|
||||
<?php if (!$my['nic']): ?>
|
||||
<span data-role="name"><?php echo $my['name'] ?></span>
|
||||
<?php else: ?>
|
||||
<span data-role="nic"><?php echo $my['nic'] ?></span>
|
||||
<?php endif; ?>
|
||||
<?php if ($my['admin']): ?><span class="badge badge-danger badge-outline">ADMIN</span><?php endif; ?>
|
||||
<p> <?php echo $d['member']['form_settings_nic']?'닉네임과 ':'' ?>사진을 변경해 보세요.</p>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li class="table-view-cell">
|
||||
<a class="navigate-right" data-href="<?php echo$g['url_reset']?>&page=account">
|
||||
<span class="badge badge-default badge-inverted"><?php echo $my['id'] ?></span>
|
||||
<i class="fa fa-user fa-fw text-muted mr-1" aria-hidden="true"></i> 회원계정
|
||||
</a>
|
||||
</li>
|
||||
<li class="table-view-cell">
|
||||
<a class="navigate-right" data-href="<?php echo$g['url_reset']?>&page=email">
|
||||
<span class="badge badge-default badge-inverted"><?php echo $my['email']?$my['email']:'미등록' ?></span>
|
||||
<i class="fa fa-envelope fa-fw mr-1 text-muted" aria-hidden="true"></i> 이메일
|
||||
</a>
|
||||
</li>
|
||||
<li class="table-view-cell">
|
||||
<a class="navigate-right" data-href="<?php echo$g['url_reset']?>&page=phone">
|
||||
<span class="badge badge-default badge-inverted"><?php echo $my['phone']?$my['phone']:'미등록' ?></span>
|
||||
<i class="fa fa-mobile fa-lg fa-fw text-muted" aria-hidden="true"></i> 휴대폰
|
||||
</a>
|
||||
</li>
|
||||
<li class="table-view-cell">
|
||||
<a class="navigate-right" data-href="<?php echo$g['url_reset']?>&page=noti">
|
||||
<?php if ($nt_web==''): ?>
|
||||
<span class="badge badge-primary badge-pill">ON</span>
|
||||
<?php else: ?>
|
||||
<span class="badge badge-default badge-outline">OFF</span>
|
||||
<?php endif; ?>
|
||||
<i class="fa fa-bell fa-fw mr-1 text-muted" aria-hidden="true"></i> 알림설정
|
||||
</a>
|
||||
</li>
|
||||
<!-- 소셜미디어 연결 -->
|
||||
<?php if ($d['member']['login_social']): ?>
|
||||
<?php $isSNSlogin = getDbData($table['s_mbrsns'],'memberuid='.$my['uid'],'*'); ?>
|
||||
<li class="table-view-cell">
|
||||
<a class="navigate-right" data-href="<?php echo$g['url_reset']?>&page=connect">
|
||||
<span class="badge badge-inverted">
|
||||
<?php if ($my_naver['uid']): ?><img class="rounded-circle" src="/_core/images/sns/naver.png" alt="네이버" width="22"><?php endif; ?>
|
||||
<?php if ($my_kakao['uid']): ?><img class="rounded-circle" src="/_core/images/sns/kakao.png" alt="카카오" width="22"><?php endif; ?>
|
||||
<?php if ($my_google['uid']): ?><img class="rounded-circle" src="/_core/images/sns/google.png" alt="구글" width="22"><?php endif; ?>
|
||||
<?php if ($my_facebook['uid']): ?><img class="rounded-circle" src="/_core/images/sns/facebook.png" alt="페이스북" width="22"><?php endif; ?>
|
||||
<?php if ($my_instagram['uid']): ?><img class="rounded-circle" src="/_core/images/sns/instagram.png" alt="인스타그램" width="22"><?php endif; ?>
|
||||
</span>
|
||||
<i class="fa fa-user-plus fa-fw mr-1 text-muted" aria-hidden="true"></i> 연결계정
|
||||
</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<li class="table-view-cell">
|
||||
<a class="navigate-right" data-href="<?php echo$g['url_reset']?>&page=shipping">
|
||||
<span class="badge badge-default badge-inverted">
|
||||
<?php echo $my_shipping_num?number_format($my_shipping_num).' 곳':'미등록'?>
|
||||
</span>
|
||||
<i class="fa fa-truck fa-fw text-muted mr-1" aria-hidden="true"></i> 배송지 관리
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="table-view-cell">
|
||||
<a class="navigate-right" data-href="<?php echo$g['url_reset']?>&page=point">
|
||||
<span class="badge badge-default badge-inverted"><?php echo number_format($my['point'])?> P</span>
|
||||
<i class="fa fa-product-hunt mr-1 fa-fw text-muted" aria-hidden="true"></i> 포인트 내역
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="table-view-cell">
|
||||
<a class="navigate-right" href="#popup-logout" data-toggle="popup">
|
||||
<i class="fa fa-sign-out fa-fw mr-1 text-muted" aria-hidden="true"></i> 로그아웃
|
||||
</a>
|
||||
</li>
|
||||
<li class="table-view-divider">
|
||||
<i class="fa fa-address-card-o fa-fw mr-1" aria-hidden="true"></i> 개인정보
|
||||
</li>
|
||||
<li class="table-view-cell">
|
||||
<a class="navigate-right" data-toggle="page" data-start="#page-main" href="#page-name">
|
||||
<span class="badge badge-default badge-inverted" data-role="name"><?php echo $my['name'] ?></span>
|
||||
이름
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<?php if($d['member']['form_settings_tel1']):?>
|
||||
<li class="table-view-cell">
|
||||
<a class="navigate-right" data-toggle="page" data-start="#page-main" href="#page-tel1">
|
||||
<?php if ($my['tel1']): ?>
|
||||
<span class="badge badge-default badge-inverted" data-role="tel1"><?php echo $my['tel1'] ?></span>
|
||||
<?php else: ?>
|
||||
<span class="badge badge-default badge-inverted" data-role="tel1">미등록</span>
|
||||
<?php endif; ?>
|
||||
유선전화
|
||||
</a>
|
||||
</li>
|
||||
<?php endif?>
|
||||
|
||||
<?php if($d['member']['form_settings_birth']):?>
|
||||
<li class="table-view-cell">
|
||||
<a class="navigate-right" data-toggle="page" data-start="#page-main" href="#page-birth">
|
||||
<?php if ($my['birth1']): ?>
|
||||
<span class="badge badge-default badge-inverted" data-role="birth"><?php echo $my['birth1'] ?>.<?php echo substr($my['birth2'],0,2) ?>.<?php echo substr($my['birth2'],2,4) ?></span>
|
||||
<?php else: ?>
|
||||
<span class="badge badge-default badge-inverted" data-role="birth">미등록</span>
|
||||
<?php endif; ?>
|
||||
생년월일
|
||||
</a>
|
||||
</li>
|
||||
<?php endif?>
|
||||
|
||||
<?php if($d['member']['form_settings_sex']):?>
|
||||
<li class="table-view-cell">
|
||||
<a class="navigate-right" data-toggle="page" data-start="#page-main" href="#page-sex">
|
||||
<?php if ($my['sex']): ?>
|
||||
<span class="badge badge-default badge-inverted" data-role="sex"><?php echo $my['sex']==1?'남성':'여성' ?></span>
|
||||
<?php else: ?>
|
||||
<span class="badge badge-default badge-inverted" data-role="sex">미등록</span>
|
||||
<?php endif; ?>
|
||||
성별
|
||||
</a>
|
||||
</li>
|
||||
<?php endif?>
|
||||
|
||||
<?php if($d['member']['form_settings_bio']):?>
|
||||
<li class="table-view-cell">
|
||||
<a class="navigate-right" data-toggle="page" data-start="#page-main" href="#page-bio">
|
||||
<div class="media-body">
|
||||
간단소개
|
||||
<p data-role="bio"><?php echo $my['bio']?></p>
|
||||
</div>
|
||||
<?php if (!$my['bio']): ?>
|
||||
<span class="badge badge-default badge-inverted" data-role="_bio">미등록</span>
|
||||
<?php endif; ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif?>
|
||||
|
||||
<?php if($d['member']['form_settings_home']):?>
|
||||
<li class="table-view-cell">
|
||||
<a class="navigate-right" data-toggle="page" data-start="#page-main" href="#page-home">
|
||||
<?php if ($my['home']): ?>
|
||||
<span class="badge badge-default badge-inverted" data-role="home"><?php echo $my['home'] ?></span>
|
||||
<?php else: ?>
|
||||
<span class="badge badge-default badge-inverted" data-role="home">미등록</span>
|
||||
<?php endif; ?>
|
||||
홈페이지
|
||||
</a>
|
||||
</li>
|
||||
<?php endif?>
|
||||
|
||||
<?php if($d['member']['form_settings_job']):?>
|
||||
<li class="table-view-cell">
|
||||
<a class="navigate-right" data-toggle="page" data-start="#page-main" href="#page-job">
|
||||
<?php if ($my['job']): ?>
|
||||
<span class="badge badge-default badge-inverted" data-role="job"><?php echo $my['job'] ?></span>
|
||||
<?php else: ?>
|
||||
<span class="badge badge-default badge-inverted" data-role="job">미등록</span>
|
||||
<?php endif; ?>
|
||||
직업
|
||||
</a>
|
||||
</li>
|
||||
<?php endif?>
|
||||
|
||||
<?php if($d['member']['form_settings_marr']):?>
|
||||
<li class="table-view-cell">
|
||||
<a class="navigate-right" data-toggle="page" data-start="#page-main" href="#page-marr">
|
||||
<?php if ($my['marr1']): ?>
|
||||
<span class="badge badge-default badge-inverted" data-role="marr"><?php echo $my['marr1'] ?>.<?php echo substr($my['marr2'],0,2) ?>.<?php echo substr($my['marr2'],2,4) ?></span>
|
||||
<?php else: ?>
|
||||
<span class="badge badge-default badge-inverted" data-role="marr">미등록</span>
|
||||
<?php endif; ?>
|
||||
결혼기념일
|
||||
</a>
|
||||
</li>
|
||||
<?php endif?>
|
||||
|
||||
<?php if($_add):?>
|
||||
<li class="table-view-cell">
|
||||
<a class="navigate-right" data-toggle="page" data-start="#page-main" href="#page-addfield">
|
||||
추가정보
|
||||
</a>
|
||||
</li>
|
||||
<?php endif?>
|
||||
</ul>
|
||||
|
||||
|
||||
<form id="memberForm" role="form" action="<?php echo $g['s']?>/" method="post" hidden>
|
||||
<input type="hidden" name="r" value="<?php echo $r?>">
|
||||
<input type="hidden" name="m" value="<?php echo $m?>">
|
||||
<input type="hidden" name="front" value="<?php echo $front?>">
|
||||
<input type="hidden" name="a" value="info_update">
|
||||
<input type="hidden" name="act" value="info">
|
||||
<input type="hidden" name="send_mod" value="ajax">
|
||||
<input type="hidden" name="check_nic" value="<?php echo $my['nic']?1:0?>">
|
||||
<input type="hidden" name="check_email" value="<?php echo $my['email']?1:0?>">
|
||||
<input type="hidden" name="name" value="<?php echo $my['name']?>">
|
||||
<input type="hidden" name="nic" value="<?php echo $my['nic']?>">
|
||||
<input type="hidden" name="email" value="<?php echo $my['email']?>">
|
||||
|
||||
<?php $tel1=explode('-',$my['tel1'])?>
|
||||
<input type="hidden" name="tel1_1" value="<?php echo $tel1[0]?>">
|
||||
<input type="hidden" name="tel1_2" value="<?php echo $tel1[1]?>">
|
||||
<input type="hidden" name="tel1_3" value="<?php echo $tel1[2]?>">
|
||||
|
||||
<?php $tel2=explode('-',$my['tel2'])?>
|
||||
<input type="hidden" name="tel2_1" value="<?php echo $tel2[0]?>">
|
||||
<input type="hidden" name="tel2_2" value="<?php echo $tel2[1]?>">
|
||||
<input type="hidden" name="tel2_3" value="<?php echo $tel2[2]?>">
|
||||
|
||||
<?php $birth_2=substr($my['birth2'],0,2)?>
|
||||
<?php $birth_3=substr($my['birth2'],2,2)?>
|
||||
<input type="hidden" name="birth_1" value="<?php echo $my['birth1']?>">
|
||||
<input type="hidden" name="birth_2" value="<?php echo $birth_2?>">
|
||||
<input type="hidden" name="birth_3" value="<?php echo $birth_3?>">
|
||||
<input type="hidden" name="birthtype" value="<?php echo $my['birthtype']?>">
|
||||
|
||||
<input type="hidden" name="remail" value="<?php echo $my['mailing']?>">
|
||||
<input type="hidden" name="sms" value="<?php echo $my['sms']?>">
|
||||
|
||||
<input type="hidden" name="sex" value="<?php echo $my['sex']?>">
|
||||
|
||||
<input type="hidden" name="zip" value="<?php echo $my['zip']?>">
|
||||
<input type="hidden" name="addr1" value="<?php echo $my['addr1']?>">
|
||||
<input type="hidden" name="addr2" value="<?php echo $my['addr2']?>">
|
||||
|
||||
<input type="hidden" name="bio" value="<?php echo $my['bio']?>">
|
||||
<input type="hidden" name="home" value="<?php echo $my['home']?>">
|
||||
<input type="hidden" name="job" value="<?php echo $my['job']?>">
|
||||
|
||||
<input type="hidden" name="marr_1" value="<?php echo $my['marr1']?>">
|
||||
<input type="hidden" name="marr_2" value="<?php echo substr($my['marr2'],0,2)?>">
|
||||
<input type="hidden" name="marr_3" value="<?php echo substr($my['marr2'],2,4)?>">
|
||||
|
||||
<?php foreach($_add as $_key):?>
|
||||
<?php $_val = explode('|',trim($_key))?>
|
||||
<?php if($_val[6]) continue?>
|
||||
<?php $_myadd1 = explode($_val[0].'^^^',$my['addfield'])?>
|
||||
<?php $_myadd2 = explode('|||',$_myadd1[1])?>
|
||||
|
||||
<?php if ($_val[2]=='checkbox'): ?>
|
||||
<input type="hidden" name="add_<?php echo $_val[0]?>[]" value="<?php echo $_myadd2[0]?>">
|
||||
<?php else: ?>
|
||||
<input type="hidden" name="add_<?php echo $_val[0]?>" value="<?php echo $_myadd2[0]?>">
|
||||
<?php endif; ?>
|
||||
<?php endforeach?>
|
||||
|
||||
</form>
|
||||
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<!-- Target Page : 프로필 설정 -->
|
||||
<div id="page-profile" class="page right">
|
||||
<header class="bar bar-nav bar-dark bg-primary px-0">
|
||||
<a class="icon icon-left-nav pull-left p-x-1" role="button" data-history="back"></a>
|
||||
<h1 class="title">프로필 설정</h1>
|
||||
</header>
|
||||
|
||||
<div class="bar bar-standard bar-footer bar-light bg-faded">
|
||||
<button type="button" class="btn btn-outline-primary btn-block js-save">저장하기</button>
|
||||
</div>
|
||||
<div class="content bg-faded">
|
||||
<div class="content-padded">
|
||||
<div class="input-group input-group-lg">
|
||||
<span class="input-group-addon">닉네임</span>
|
||||
<input type="text" class="form-control" name="nic" value="<?php echo $my['nic']?>" maxlength="20" required autocomplete="off">
|
||||
</div>
|
||||
|
||||
<div class="form-control-feedback" id="hLayernic"></div>
|
||||
<div class="invalid-feedback">
|
||||
닉네임을 입력해 주세요.
|
||||
</div>
|
||||
<small class="form-text text-muted">
|
||||
사용하고 싶은 닉네임을 입력해 주세요 (8자이내 중복불가)
|
||||
</small>
|
||||
|
||||
<?php if($d['member']['form_settings_avatar']):?>
|
||||
<div class="avatar-wrapper p-t-2<?php echo $my['photo']?' active':'' ?>" data-role="avatar-wrapper">
|
||||
|
||||
<div class="avatar-blank">
|
||||
<span>
|
||||
<img class="img-circle js-avatar-img m-x-auto" src="<?php echo $g['s'].'/files/avatar/0.svg' ?>" alt="" width="160">
|
||||
<span class="fa-stack fa-lg js-avatar-img">
|
||||
<i class="fa fa-circle fa-stack-2x"></i>
|
||||
<i class="fa fa-camera fa-stack-1x fa-inverse"></i>
|
||||
</span>
|
||||
</span>
|
||||
<p class="m-t-1 text-muted">아바타를 등록해 보세요.</p>
|
||||
</div><!-- /.avatar-blank -->
|
||||
|
||||
<div class="avatar-photo">
|
||||
<span class="avatar-photo">
|
||||
<img class="img-circle m-x-auto" data-role="avatar" src="<?php echo getAvatarSrc($my['uid'],'320') ?>" alt="<?php echo $my[$_HS['nametype']]?>" width="160">
|
||||
</span>
|
||||
<div class="m-t-1">
|
||||
<a class="btn btn-secondary" href="<?php echo $g['s']?>/?r=<?php echo $r?>&m=<?php echo $m?>&a=member_photo_delete" onclick="return hrefCheck(this,true,'정말로 삭제 하시겠습니까?');">
|
||||
<i class="fa fa-trash-o" aria-hidden="true"></i>
|
||||
현재 사진삭제
|
||||
</a>
|
||||
|
||||
<div class="btn-group btn-group-lg m-t-2" role="group" hidden>
|
||||
<button type="button" class="btn btn-secondary"><i class="fa fa-undo" aria-hidden="true"></i> 반시계방향</button>
|
||||
<button type="button" class="btn btn-secondary"><i class="fa fa-repeat" aria-hidden="true"></i> 시계방향</button>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /.avatar-photo -->
|
||||
|
||||
</div><!-- /.avatar-wrapper -->
|
||||
|
||||
<form name="MbrPhotoForm" action="<?php echo $g['s']?>/" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="r" value="<?php echo $r?>">
|
||||
<input type="hidden" name="m" value="<?php echo $m?>">
|
||||
<input type="hidden" name="a" value="member_photo">
|
||||
<input type="file" name="upfile" class="hidden" id="rb-upfile-avatar" accept="image/jpg">
|
||||
</form>
|
||||
<?php endif?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Target Page : 이름 설정 -->
|
||||
<div id="page-name" class="page right">
|
||||
<header class="bar bar-nav bar-dark bg-primary px-0">
|
||||
<a class="icon icon-left-nav pull-left p-x-1" role="button" data-history="back"></a>
|
||||
<h1 class="title">이름 설정</h1>
|
||||
</header>
|
||||
|
||||
<div class="bar bar-standard bar-footer bar-light bg-faded">
|
||||
<button type="button" class="btn btn-outline-primary btn-block js-save">변경하기</button>
|
||||
</div>
|
||||
<div class="content">
|
||||
<div class="content-padded">
|
||||
|
||||
<input type="text" class="form-control form-control-lg" name="name" value="<?php echo $my['name']?>" maxlength="20" required autocomplete="off">
|
||||
<div class="form-control-feedback"></div>
|
||||
<div class="invalid-feedback">
|
||||
이름 입력해 주세요.
|
||||
</div>
|
||||
<small class="form-text text-muted">
|
||||
사용하고 싶은 이름 입력해 주세요 (8자이내 중복불가)
|
||||
</small>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if($d['member']['form_settings_tel1']):?>
|
||||
<!-- Target Page : 전화번호 설정 -->
|
||||
<div id="page-tel1" class="page right">
|
||||
<header class="bar bar-nav bar-dark bg-primary px-0">
|
||||
<a class="icon icon-left-nav pull-left p-x-1" role="button" data-history="back"></a>
|
||||
<h1 class="title">유선전화 설정</h1>
|
||||
</header>
|
||||
<div class="bar bar-standard bar-footer bar-light bg-faded">
|
||||
<button type="button" class="btn btn-outline-primary btn-block js-save">변경하기</button>
|
||||
</div>
|
||||
<div class="content">
|
||||
<div class="content-padded">
|
||||
|
||||
<div class="form-group">
|
||||
<label>전화번호 <?php if($d['member']['form_settings_tel1_required']):?><span class="text-danger">*</span><?php endif?></label>
|
||||
<?php $tel1=explode('-',$my['tel1'])?>
|
||||
<div class="form-row">
|
||||
<div class="col-xs-4">
|
||||
<input type="text" name="tel1_1" value="<?php echo $tel1[0]?>" maxlength="4" size="4" class="form-control form-control-lg" autocomplete="off">
|
||||
<div class="invalid-feedback">
|
||||
입력필요
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<input type="text" name="tel1_2" value="<?php echo $tel1[1]?>" maxlength="4" size="4" class="form-control form-control-lg" autocomplete="off">
|
||||
<div class="invalid-feedback">
|
||||
입력필요
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<input type="text" name="tel1_3" value="<?php echo $tel1[2]?>" maxlength="4" size="4" class="form-control form-control-lg" autocomplete="off">
|
||||
<div class="invalid-feedback">
|
||||
입력필요
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif?>
|
||||
|
||||
<?php if($d['member']['form_settings_birth']):?>
|
||||
<!-- Target Page : 생년월일 설정 -->
|
||||
<div id="page-birth" class="page right">
|
||||
<header class="bar bar-nav bar-dark bg-primary px-0">
|
||||
<a class="icon icon-left-nav pull-left p-x-1" role="button" data-history="back"></a>
|
||||
<h1 class="title">생년월일 설정</h1>
|
||||
</header>
|
||||
<div class="bar bar-standard bar-footer bar-light bg-faded">
|
||||
<button type="button" class="btn btn-outline-primary btn-block js-save">변경하기</button>
|
||||
</div>
|
||||
<div class="content">
|
||||
<div class="content-padded">
|
||||
|
||||
<div class="form-group">
|
||||
<label>생년월일 <?php if($d['member']['form_settings_birth_required']):?> <span class="text-danger">*</span><?php endif?></label>
|
||||
<div class="form-row m-b-1">
|
||||
<div class="col-xs-4">
|
||||
<select class="form-control custom-select" name="birth_1">
|
||||
<option value="">년도</option>
|
||||
<?php for($i = substr($date['today'],0,4); $i > 1930; $i--):?>
|
||||
<option value="<?php echo $i?>"<?php if($my['birth1']==$i):?> selected="selected"<?php endif?>><?php echo $i?></option>
|
||||
<?php endfor?>
|
||||
</select>
|
||||
<div class="invalid-feedback">
|
||||
입력필요
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<select class="form-control custom-select" name="birth_2">
|
||||
<option value="">월</option>
|
||||
<?php $birth_2=substr($my['birth2'],0,2)?>
|
||||
<?php for($i = 1; $i < 13; $i++):?>
|
||||
<option value="<?php echo sprintf('%02d',$i)?>"<?php if($birth_2==$i):?> selected="selected"<?php endif?>><?php echo $i?></option>
|
||||
<?php endfor?>
|
||||
</select>
|
||||
<div class="invalid-feedback">
|
||||
입력필요
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<select class="form-control custom-select" name="birth_3">
|
||||
<option value="">일</option>
|
||||
<?php $birth_3=substr($my['birth2'],2,2)?>
|
||||
<?php for($i = 1; $i < 32; $i++):?>
|
||||
<option value="<?php echo sprintf('%02d',$i)?>"<?php if($birth_3==$i):?> selected="selected"<?php endif?>><?php echo $i?></option>
|
||||
<?php endfor?>
|
||||
</select>
|
||||
<div class="invalid-feedback">
|
||||
입력필요
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<label class="custom-control custom-checkbox m-t-3">
|
||||
<input type="checkbox" class="custom-control-input" name="birthtype" id="birthtype" value="1"<?php if($my['birthtype']):?> checked="checked"<?php endif?>>
|
||||
<span class="custom-control-indicator"></span>
|
||||
<span class="custom-control-description">음력</span>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif?>
|
||||
|
||||
<?php if($d['member']['form_settings_sex']):?>
|
||||
<!-- Target Page : 성별 설정 -->
|
||||
<div id="page-sex" class="page right">
|
||||
<header class="bar bar-nav bar-dark bg-primary px-0">
|
||||
<a class="icon icon-left-nav pull-left p-x-1" role="button" data-history="back"></a>
|
||||
<h1 class="title">성별 설정</h1>
|
||||
</header>
|
||||
<div class="bar bar-standard bar-footer bar-light bg-faded">
|
||||
<button type="button" class="btn btn-outline-primary btn-block js-save">변경하기</button>
|
||||
</div>
|
||||
<div class="content">
|
||||
<div class="content-padded">
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label>성별 <?php if($d['member']['form_settings_sex_required']):?><span class="text-danger">*</span><?php endif?></label>
|
||||
<div class="form-group">
|
||||
<label class="custom-control custom-radio">
|
||||
<input type="radio" class="custom-control-input" name="sex" class="custom-control-input" value="1"<?php if($my['sex']==1):?> checked="checked"<?php endif?>>
|
||||
<span class="custom-control-indicator"></span>
|
||||
<span class="custom-control-description">남성</span>
|
||||
</label>
|
||||
<label class="custom-control custom-radio">
|
||||
<input type="radio" class="custom-control-input" name="sex" class="custom-control-input" value="2"<?php if($my['sex']==2):?> checked="checked"<?php endif?>>
|
||||
<span class="custom-control-indicator"></span>
|
||||
<span class="custom-control-description">여성</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif?>
|
||||
|
||||
<?php if($d['member']['form_settings_bio']):?>
|
||||
<!-- Target Page : 간단소개 설정 -->
|
||||
<div id="page-bio" class="page right">
|
||||
<header class="bar bar-nav bar-dark bg-primary px-0">
|
||||
<a class="icon icon-left-nav pull-left p-x-1" role="button" data-history="back"></a>
|
||||
<h1 class="title">간단소개 설정</h1>
|
||||
</header>
|
||||
<div class="bar bar-standard bar-footer bar-light bg-faded">
|
||||
<button type="button" class="btn btn-outline-primary btn-block js-save">변경하기</button>
|
||||
</div>
|
||||
<div class="content">
|
||||
<div class="content-padded">
|
||||
|
||||
<div class="form-group">
|
||||
<label>간단소개 <?php if($d['member']['form_settings_bio_required']):?> <span class="text-danger">*</span><?php endif?></label>
|
||||
<textarea class="form-control" name="bio" rows="5" placeholder="간략한 소개글을 입력해주세요."><?php echo $my['bio']?></textarea>
|
||||
<div class="invalid-feedback">
|
||||
간단소개를 입력해 주세요.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif?>
|
||||
|
||||
<?php if($d['member']['form_settings_home']):?>
|
||||
<!-- Target Page : 홈페이지 설정 -->
|
||||
<div id="page-home" class="page right">
|
||||
<header class="bar bar-nav bar-dark bg-primary px-0">
|
||||
<a class="icon icon-left-nav pull-left p-x-1" role="button" data-history="back"></a>
|
||||
<h1 class="title">홈페이지 설정</h1>
|
||||
</header>
|
||||
<div class="bar bar-standard bar-footer bar-light bg-faded">
|
||||
<button type="button" class="btn btn-outline-primary btn-block js-save">변경하기</button>
|
||||
</div>
|
||||
<div class="content">
|
||||
<div class="content-padded">
|
||||
|
||||
<div class="form-group">
|
||||
<label>홈페이지<?php if($d['member']['form_settings_home_required']):?> <span class="text-danger">*</span><?php endif?></label>
|
||||
<input type="url" class="form-control form-control-lg" name="home" value="<?php echo $my['home']?>" placeholder="URL을 입력하세요." autocomplete="off">
|
||||
<div class="invalid-feedback">
|
||||
홈페이지 주소를 입력해주세요.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif?>
|
||||
|
||||
<?php if($d['member']['form_settings_job']):?>
|
||||
<!-- Target Page : 직업 설정 -->
|
||||
<div id="page-job" class="page right">
|
||||
<header class="bar bar-nav bar-dark bg-primary px-0">
|
||||
<a class="icon icon-left-nav pull-left p-x-1" role="button" data-history="back"></a>
|
||||
<h1 class="title">직업 설정</h1>
|
||||
</header>
|
||||
<div class="bar bar-standard bar-footer bar-light bg-faded">
|
||||
<button type="button" class="btn btn-outline-primary btn-block js-save">변경하기</button>
|
||||
</div>
|
||||
<div class="content">
|
||||
<div class="content-padded">
|
||||
|
||||
<div class="form-group">
|
||||
<label>직업<?php if($d['member']['form_settings_job_required']):?> <span class="text-danger">*</span><?php endif?></label>
|
||||
<select class="form-control custom-select" name="job">
|
||||
<option value=""> + 선택하세요</option>
|
||||
<option value="" disabled>------------------</option>
|
||||
<?php
|
||||
$g['memberJobVarForSite'] = $g['path_var'].'site/'.$r.'/member.job.txt';
|
||||
$_tmpvfile = file_exists($g['memberJobVarForSite']) ? $g['memberJobVarForSite'] : $g['path_module'].$module.'/var/member.job.txt';
|
||||
$_job=file($_tmpvfile);
|
||||
?>
|
||||
<?php foreach($_job as $_val):?>
|
||||
<option value="<?php echo trim($_val)?>"<?php if(trim($_val)==$my['job']):?> selected="selected"<?php endif?>>ㆍ<?php echo trim($_val)?></option>
|
||||
<?php endforeach?>
|
||||
</select>
|
||||
<div class="invalid-feedback">
|
||||
직업을 선택해 주세요.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif?>
|
||||
|
||||
<?php if($d['member']['form_settings_marr']):?>
|
||||
<!-- Target Page : 결혼기념일 설정 -->
|
||||
<div id="page-marr" class="page right">
|
||||
<header class="bar bar-nav bar-dark bg-primary px-0">
|
||||
<a class="icon icon-left-nav pull-left p-x-1" role="button" data-history="back"></a>
|
||||
<h1 class="title">결혼기념일 설정</h1>
|
||||
</header>
|
||||
<div class="bar bar-standard bar-footer bar-light bg-faded">
|
||||
<button type="button" class="btn btn-outline-primary btn-block js-save">변경하기</button>
|
||||
</div>
|
||||
<div class="content">
|
||||
<div class="content-padded">
|
||||
|
||||
<div class="form-group">
|
||||
<label>결혼기념일 <?php if($d['member']['form_settings_marr_required']):?> <span class="text-danger">*</span><?php endif?></label>
|
||||
<?php $tel2=explode('-',$my['tel2'])?>
|
||||
<div class="form-row m-b-1">
|
||||
<div class="col-xs-4">
|
||||
<select class="form-control custom-select" name="marr_1">
|
||||
<option value="">년도</option>
|
||||
<?php for($i = substr($date['today'],0,4); $i > 1930; $i--):?>
|
||||
<option value="<?php echo $i?>"<?php if($i==$my['marr1']):?> selected="selected"<?php endif?>><?php echo $i?></option>
|
||||
<?php endfor?>
|
||||
</select>
|
||||
<div class="invalid-feedback">
|
||||
입력필요
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<select class="form-control custom-select" name="marr_2">
|
||||
<option value="">월</option>
|
||||
<?php for($i = 1; $i < 13; $i++):?>
|
||||
<option value="<?php echo sprintf('%02d',$i)?>"<?php if($i==substr($my['marr2'],0,2)):?> selected="selected"<?php endif?>><?php echo $i?></option>
|
||||
<?php endfor?>
|
||||
</select>
|
||||
<div class="invalid-feedback">
|
||||
입력필요
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<select class="form-control custom-select" name="marr_3">
|
||||
<option value="">일</option>
|
||||
<?php for($i = 1; $i < 32; $i++):?>
|
||||
<option value="<?php echo sprintf('%02d',$i)?>"<?php if($i==substr($my['marr2'],2,2)):?> selected="selected"<?php endif?>><?php echo $i?></option>
|
||||
<?php endfor?>
|
||||
</select>
|
||||
<div class="invalid-feedback">
|
||||
입력필요
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif?>
|
||||
|
||||
<!-- Target Page : 추가 가입항목 -->
|
||||
<div id="page-addfield" class="page right">
|
||||
<header class="bar bar-nav bar-dark bg-primary px-0">
|
||||
<a class="icon icon-left-nav pull-left p-x-1" role="button" data-history="back"></a>
|
||||
<h1 class="title">추가정보</h1>
|
||||
</header>
|
||||
<div class="bar bar-standard bar-footer bar-light bg-faded">
|
||||
<button type="button" class="btn btn-outline-primary btn-block js-save">변경하기</button>
|
||||
</div>
|
||||
<div class="content">
|
||||
<div class="content-padded">
|
||||
|
||||
<?php $_add = file($g['path_var'].'site/'.$_HS['id'].'/member.add_field.txt')?>
|
||||
<?php foreach($_add as $_key):?>
|
||||
<?php $_val = explode('|',trim($_key))?>
|
||||
<?php if($_val[6]) continue?>
|
||||
<?php $_myadd1 = explode($_val[0].'^^^',$my['addfield'])?>
|
||||
<?php $_myadd2 = explode('|||',$_myadd1[1])?>
|
||||
|
||||
<div class="form-group">
|
||||
<label><?php echo $_val[1]?><?php if($_val[5]):?> <span class="text-danger">*</span><?php endif?></label>
|
||||
<?php if($_val[2]=='text'):?>
|
||||
<input type="text" name="add_<?php echo $_val[0]?>" class="form-control" value="<?php echo $_myadd2[0]?>" />
|
||||
<?php endif?>
|
||||
<?php if($_val[2]=='password'):?>
|
||||
<input type="password" name="add_<?php echo $_val[0]?>" class="form-control" value="<?php echo $_myadd2[0]?>" />
|
||||
<?php endif?>
|
||||
<?php if($_val[2]=='select'): $_skey=explode(',',$_val[3])?>
|
||||
<select name="add_<?php echo $_val[0]?>" class="form-control custom-select">
|
||||
<option value=""> + 선택하세요</option>
|
||||
<?php foreach($_skey as $_sval):?>
|
||||
<option value="<?php echo trim($_sval)?>"<?php if(trim($_sval)==$_myadd2[0]):?> selected="selected"<?php endif?>>ㆍ<?php echo trim($_sval)?></option>
|
||||
<?php endforeach?>
|
||||
</select>
|
||||
<?php endif?>
|
||||
<?php if($_val[2]=='radio'): $_skey=explode(',',$_val[3])?>
|
||||
<div class="custom-controls-stacked">
|
||||
<?php foreach($_skey as $_sval):?>
|
||||
<div class="custom-control custom-radio">
|
||||
<input type="radio" class="custom-control-input" id="add_<?php echo $_val[0]?>_<?php echo trim($_sval)?>" name="add_<?php echo $_val[0]?>" value="<?php echo trim($_sval)?>"<?php if(trim($_sval)==$_myadd2[0]):?> checked="checked"<?php endif?> class="custom-control-input">
|
||||
<span class="custom-control-indicator"></span>
|
||||
<label class="custom-control-description" for="add_<?php echo $_val[0]?>_<?php echo trim($_sval)?>"><?php echo trim($_sval)?></label>
|
||||
</div>
|
||||
<?php endforeach?>
|
||||
</div>
|
||||
<?php endif?>
|
||||
<?php if($_val[2]=='checkbox'): $_skey=explode(',',$_val[3])?>
|
||||
<div class="custom-controls-stacked">
|
||||
<?php foreach($_skey as $_sval):?>
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input type="checkbox" class="custom-control-input" id="add_<?php echo $_val[0]?>_<?php echo trim($_sval)?>" name="add_<?php echo $_val[0]?>[]" value="<?php echo trim($_sval)?>"<?php if(strstr($_myadd2[0],'['.trim($_sval).']')):?> checked="checked"<?php endif?> >
|
||||
<span class="custom-control-indicator"></span>
|
||||
<label class="custom-control-description" for="add_<?php echo $_val[0]?>_<?php echo trim($_sval)?>"><?php echo trim($_sval)?></label>
|
||||
</div>
|
||||
|
||||
<?php endforeach?>
|
||||
</div>
|
||||
<?php endif?>
|
||||
<?php if($_val[2]=='textarea'):?>
|
||||
<textarea name="add_<?php echo $_val[0]?>" rows="5" class="form-control"><?php echo $_myadd2[0]?></textarea>
|
||||
<?php endif?>
|
||||
</div>
|
||||
|
||||
<?php endforeach?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if ($_add): ?>
|
||||
<script>
|
||||
|
||||
//추가정보 전용
|
||||
var f = document.getElementById("memberForm");
|
||||
var page_main = $('#page-main')
|
||||
var page_addfield = $('#page-addfield')
|
||||
|
||||
page_addfield.find('.js-save').tap(function() {
|
||||
|
||||
<?php foreach($_add as $_key):?>
|
||||
|
||||
<?php $_val = explode('|',trim($_key))?>
|
||||
<?php if($_val[6]) continue?>
|
||||
<?php $_myadd1 = explode($_val[0].'^^^',$my['addfield'])?>
|
||||
<?php $_myadd2 = explode('|||',$_myadd1[1])?>
|
||||
|
||||
<?php if ($_val[2]=='radio'): ?>
|
||||
var add_<?php echo $_val[0]?> = page_addfield.find('[name="add_<?php echo $_val[0]?>"]:checked').val()
|
||||
page_main.find('[name="add_<?php echo $_val[0]?>"]').val(add_<?php echo $_val[0]?>);
|
||||
|
||||
<?php elseif ($_val[2]=='checkbox'): ?>
|
||||
var add_checkbox = page_main.find('[name="add_<?php echo $_val[0]?>[]"]')
|
||||
add_checkbox.val('');
|
||||
|
||||
page_addfield.find('[name="add_<?php echo $_val[0]?>[]"]:checked').each(function() {
|
||||
var item = $(this).val();
|
||||
var item2 = add_checkbox.val();
|
||||
add_checkbox.val(item2+'['+item+']');
|
||||
});
|
||||
|
||||
<?php else: ?>
|
||||
var add_<?php echo $_val[0]?> = page_addfield.find('[name="add_<?php echo $_val[0]?>"]').val()
|
||||
page_main.find('[name="add_<?php echo $_val[0]?>"]').val(add_<?php echo $_val[0]?>);
|
||||
<?php endif; ?>
|
||||
|
||||
<?php endforeach?>
|
||||
|
||||
setTimeout(function() {
|
||||
$('#page-addfield').find('.content').loader({
|
||||
text: "변경중...",
|
||||
position: "overlay"
|
||||
});
|
||||
}, 300); //가상 키보드가 내려오는 시간동안 대기
|
||||
|
||||
setTimeout(function() {
|
||||
$('#page-addfield').find('.content').loader("hide");
|
||||
window.history.back(); // 메인 페이지로 복귀
|
||||
setTimeout(function() {
|
||||
getIframeForAction(f);
|
||||
f.submit();
|
||||
}, 500); //페이지 전환효과 소요시간동안 대기
|
||||
}, 700);
|
||||
});
|
||||
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
424
modules/member/themes/_mobile/rc-default/settings/noti.php
Normal file
424
modules/member/themes/_mobile/rc-default/settings/noti.php
Normal file
@@ -0,0 +1,424 @@
|
||||
<?php
|
||||
$emailque= 'mbruid='.$my['uid'].' and d_verified<>0';
|
||||
$RCD = getDbArray($table['s_mbremail'],$emailque,'*','uid','asc',0,1);
|
||||
|
||||
$NT_DATA = explode('|',$my['noticeconf']);
|
||||
$nt_web = $NT_DATA[0];
|
||||
$nt_email = $NT_DATA[1];
|
||||
$nt_fcm = $NT_DATA[2];
|
||||
$nt_modules = getArrayString($NT_DATA[3]);
|
||||
$nt_members = getArrayString($NT_DATA[4]);
|
||||
?>
|
||||
|
||||
<style>
|
||||
.nt-label.badge-primary:before {
|
||||
content: 'ON'
|
||||
}
|
||||
.nt-label.badge-default:before {
|
||||
content: 'OFF'
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<?php getImport('font-kimsq','css/font-kimsq',false,'css')?>
|
||||
|
||||
<div class="page center" id="page-main">
|
||||
<header class="bar bar-nav bar-dark bg-primary px-0">
|
||||
<a class="icon icon-left-nav pull-left p-x-1" role="button" data-history="back"></a>
|
||||
<h1 class="title" data-location="reload">
|
||||
<i class="fa fa-bell-o fa-fw mr-1 text-muted" aria-hidden="true"></i> 알림설정
|
||||
</h1>
|
||||
</header>
|
||||
|
||||
<main class="content bg-faded">
|
||||
|
||||
<form id="procForm" role="form" action="<?php echo $g['s']?>/" method="post">
|
||||
<input type="hidden" name="r" value="<?php echo $r?>">
|
||||
<input type="hidden" name="m" value="notification">
|
||||
<input type="hidden" name="a" value="notice_config_user">
|
||||
<input type="hidden" name="mobile" value="1">
|
||||
<input type="hidden" name="nt_web" value="<?php echo $nt_web ?>">
|
||||
<input type="hidden" name="nt_email" value="<?php echo $nt_email ?>">
|
||||
<input type="hidden" name="nt_fcm" value="<?php echo $nt_fcm ?>">
|
||||
<input type="hidden" name="reload" value="">
|
||||
|
||||
<ul class="table-view bg-white mt-0 mb-0 animated fadeIn delay-1">
|
||||
<li class="table-view-cell media" style="padding-right: 6rem ">
|
||||
<i class="media-object pull-left fa fa-bell-o fa-fw mt-1 mr-2 text-muted" aria-hidden="true"></i>
|
||||
<div class="media-body">
|
||||
사이트 알림
|
||||
<p>OFF 설정시 모든알림이 차단됩니다.</p>
|
||||
</div>
|
||||
<div data-toggle="switch" class="switch<?php echo $nt_web==''?' active':'' ?>" id="nt_web">
|
||||
<div class="switch-handle"></div>
|
||||
</div>
|
||||
</li>
|
||||
<?php if ($nt_web==''): ?>
|
||||
<li class="table-view-cell">
|
||||
<a class="navigate-right" data-toggle="page" data-start="#page-main" href="#page-email">
|
||||
<span class="badge badge-<?php echo $nt_email=='1'?'primary badge-pill':'default badge-outline' ?> nt-label" data-role="email"> </span>
|
||||
<i class="fa fa-envelope-o fa-fw mr-2 text-muted" aria-hidden="true"></i> 이메일 알림
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
<?php if ($g['push_active']==1): ?>
|
||||
<li class="table-view-cell" id="push_setting" style="display: block">
|
||||
<a class="navigate-right" data-toggle="page" data-start="#page-main" href="#page-fcm">
|
||||
<span class="badge badge-<?php echo $nt_fcm=='1'?'primary badge-pill':'default badge-outline' ?> nt-label" data-role="fcm"> </span>
|
||||
<i class="fa fa-bolt fa-fw fa-lg mr-1 text-muted" aria-hidden="true"></i> 푸시 알림
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="table-view-cell" id="permission_div" style="display: none">
|
||||
<a class="navigate-right" href="" id="RequestPermission">
|
||||
<span class="badge badge-primary badge-outline">권한요청</span>
|
||||
<i class="fa fa-bolt fa-lg fa-fw mt-2 mr-2 text-muted" aria-hidden="true"></i> 푸시 알림
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="table-view-cell" id="push_disabled" style="display: none">
|
||||
<a class="navigate-right" href="https://support.google.com/chrome/answer/114662?hl=ko&co=GENIE.Platform%3DAndroid&oco=1" target="_blank">
|
||||
<i class="media-object pull-left fa fa-bolt fa-lg fa-fw mt-2 mr-2 text-muted" aria-hidden="true"></i>
|
||||
<span class="badge badge-danger badge-outline">해제</span>
|
||||
<div class="media-body">
|
||||
푸시 알림 차단됨
|
||||
<p class="mr-4">
|
||||
알림발송이 차단되었습니다.<br> 상태를 해제하려면 설정변경이 필요합니다.
|
||||
</p>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<?php elseif ($g['push_active']==2): ?>
|
||||
<li class="table-view-cell">
|
||||
<i class="media-object pull-left fa fa-bolt fa-fw mt-1 mr-2 text-muted" aria-hidden="true"></i>
|
||||
<div class="media-body">
|
||||
푸시 알림이 지원되지 않습니다.
|
||||
<p class="text-danger">푸시알림을 위한 연결정보가 없습니다.<br>관리자에게 문의하세요.</p>
|
||||
</div>
|
||||
</li>
|
||||
<?php else: ?>
|
||||
<li class="table-view-cell">
|
||||
<i class="media-object pull-left fa fa-bolt fa-fw mt-1 mr-2 text-muted" aria-hidden="true"></i>
|
||||
<div class="media-body">
|
||||
푸시 알림이 지원되지 않습니다.
|
||||
<p>안드로이드(Android)기기에서 지원됩니다.</p>
|
||||
</div>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="table-view-cell table-view-divider">
|
||||
모듈별 설정
|
||||
</li>
|
||||
<?php $_MODULES=getDbArray($table['s_module'],'','*','gid','asc',0,1)?>
|
||||
<?php while($_MD=db_fetch_array($_MODULES)):?>
|
||||
|
||||
<li class="table-view-cell<?php if(strstr($d['ntfc']['cut_modules'],'['.$_MD['id'].']')):?> d-none<?php endif?>" style="padding-right: 6rem " >
|
||||
<div class="media-body">
|
||||
<i class="<?php echo $_MD['icon']?> fa-fw mr-2 text-muted"></i>
|
||||
<?php echo $_MD['name']?>
|
||||
</div>
|
||||
<div data-toggle="switch" class="module_members switch<?php echo strstr($NT_DATA[3],'['.$_MD['id'].']')?'':' active' ?>" data-module="<?php echo $_MD['id']?>" id="module_members_<?php echo $_MD['id']?>">
|
||||
<div class="switch-handle"></div>
|
||||
</div>
|
||||
</li>
|
||||
<?php endwhile?>
|
||||
<li class="table-view-cell table-view-divider">알림발송이 차단된 회원</li>
|
||||
|
||||
<?php $_i=0;foreach($nt_members['data'] as $_md):?>
|
||||
<?php $_R=getDbData($table['s_mbrdata'],'memberuid='.$_md,'*')?>
|
||||
<li class="table-view-cell">
|
||||
<div class="media">
|
||||
<img class="img-circle mr-3" src="<?php echo getAvatarSrc($_R['memberuid'],'96') ?>" alt="" width="48" height="48">
|
||||
<div class="media-body">
|
||||
<h5 class="f14 mt-1 mb-0">
|
||||
<?php if($_R['name']):?>
|
||||
<?php echo $_R['name']?> <span class="badge badge-default badge-inverted align-text-top ml-2"><?php echo $_R['nic']?></span>
|
||||
<?php else: ?>
|
||||
<span class="badge badge-outline">시스템</span>
|
||||
<?php endif?>
|
||||
</h5>
|
||||
<span class="badge badge-default badge-inverted"><?php echo getDateFormat($_R['d_regis'],'Y.m.d')?> 가입</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<a class="btn btn-secondary btn-sm" href="<?php echo $g['s']?>/?r=<?php echo $r?>&m=notification&a=notice_config_user&member_uid=<?php echo $_R['memberuid']?>" onclick="return hrefCheck(this,true,'정말로 해제하시겠습니까?');">
|
||||
차단해제
|
||||
</a>
|
||||
</li>
|
||||
<?php $_i++;endforeach?>
|
||||
|
||||
<?php if(!$nt_members['count']):?>
|
||||
<li class="table-view-cell text-xs-center p-4 small text-muted">
|
||||
차단된 회원이 없습니다.
|
||||
</li>
|
||||
<?php endif?>
|
||||
|
||||
<?php endif?>
|
||||
|
||||
</ul>
|
||||
|
||||
<?php if ($nt_web): ?>
|
||||
<div class="p-5 text-xs-center text-muted">
|
||||
알림이 꺼져서 소식을 받을 수 없습니다. <br>
|
||||
알림을 켜서 글, 댓글, 나 언급한 글 등<br>
|
||||
중요알림을 받아보세요.
|
||||
</div>
|
||||
<?php endif?>
|
||||
|
||||
</form>
|
||||
|
||||
</main>
|
||||
|
||||
</div><!-- /.page -->
|
||||
|
||||
<div class="page right" id="page-email">
|
||||
<header class="bar bar-nav bar-dark bg-primary px-0">
|
||||
<a class="icon icon-left-nav pull-left p-x-1" role="button" data-history="back"></a>
|
||||
<h1 class="title" data-location="reload"><i class="fa fa-envelope-o fa-fw text-muted" aria-hidden="true"></i> 이메일 알림</h1>
|
||||
</header>
|
||||
<main class="content bg-faded">
|
||||
<ul class="table-view bg-white m-t-0 animated fadeIn delay-1">
|
||||
<li class="table-view-cell" style="padding-right: 6rem ">
|
||||
<div class="media-body">
|
||||
이메일 알림
|
||||
<p>알림발송시 이메일도 받음</p>
|
||||
</div>
|
||||
<div data-toggle="switch" class="switch<?php echo $nt_email==1?' active':'' ?>" id="nt_email">
|
||||
<div class="switch-handle"></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="content-padded">
|
||||
<div class="form-group">
|
||||
<label for="exampleSelect2">수신 이메일</label>
|
||||
<select class="form-control custom-select form-control-lg" name="email_noti">
|
||||
<option value="">사용안함</option>
|
||||
<?php while($R=db_fetch_array($RCD)):?>
|
||||
<option value="<?php echo $R['email'] ?>"<?php echo ($my['email_noti']==$R['email'])?' selected':'' ?>>
|
||||
<?php echo $R['email'] ?>
|
||||
</option>
|
||||
<?php endwhile?>
|
||||
</select>
|
||||
<p class="form-text text-muted mt-3">
|
||||
<a href="/?r=home&mod=settings&page=email">이메일 관리</a>에서 추가 할수있으며, 본인인증된 메일만 추가할 수 있습니다.
|
||||
</p>
|
||||
<button type="button" class="btn btn-outline-primary btn-block mt-3 js-submit">
|
||||
<span class="not-loading">저장</span>
|
||||
<span class="is-loading">저장중..</span>
|
||||
</button>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</main>
|
||||
</div><!-- /.page -->
|
||||
|
||||
|
||||
<div class="page right" id="page-fcm">
|
||||
<header class="bar bar-nav bar-dark bg-primary px-0">
|
||||
<a class="icon icon-left-nav pull-left p-x-1" role="button" data-history="back"></a>
|
||||
<h1 class="title" data-history="back"><i class="fa fa-bolt fa-fw text-muted" aria-hidden="true"></i> 푸시 알림</h1>
|
||||
</header>
|
||||
<main class="content bg-faded">
|
||||
|
||||
<ul class="table-view bg-white mt-0 mb-0 animated fadeIn delay-1">
|
||||
<li class="table-view-cell" style="padding-right: 6rem ">
|
||||
<div class="media-body">
|
||||
푸시 알림
|
||||
</div>
|
||||
<div data-toggle="switch" class="switch<?php echo $nt_fcm==1?' active':'' ?>" id="nt_fcm">
|
||||
<div class="switch-handle"></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div id="token_div" class="<?php echo $nt_fcm==1?'':'d-none' ?>">
|
||||
|
||||
<ul class="table-view bg-white m-t-0 animated fadeIn delay-1" style="margin-top: -.0625rem!important ">
|
||||
<li class="table-view-divider">
|
||||
<i class="fa fa-mobile fa-lg mr-2 text-muted" aria-hidden="true"></i>
|
||||
인스턴스 ID 토큰
|
||||
</li>
|
||||
<li class="table-view-cell" style="line-height: 1.2;">
|
||||
<small class="token text-muted" style="word-break: break-all;"></small>
|
||||
<button class="btn btn-secondary js-deleteToken">
|
||||
재발급
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="content-padded text-muted small">
|
||||
|
||||
<button type="button" class="btn btn-secondary btn-block js-sendTest">
|
||||
<span class="not-loading">나에게 푸시알림 보내기</span>
|
||||
<span class="is-loading"><i class="fa fa-spinner fa-lg fa-spin fa-fw"></i> 보내는중 ...</span>
|
||||
</button>
|
||||
<p class="mt-3">
|
||||
푸시알림이 수신되지 않는다면, 토큰 '재발급'을 시도해 보세요. 알림메시지를 받았다면 정상 입니다.
|
||||
</p>
|
||||
<p>
|
||||
인스턴스 ID 토큰은 푸시알림에 활용됩니다.
|
||||
접속한 기기가 변경되면 토큰 또한 변경됩니다.
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
</div><!-- /#token_div -->
|
||||
|
||||
</main>
|
||||
</div><!-- /.page -->
|
||||
|
||||
|
||||
<div id="popup-noti" class="popup zoom">
|
||||
<div class="popup-content">
|
||||
<header class="bar bar-nav bar-light bg-faded">
|
||||
<h1 class="title text-xs-left pl-3">
|
||||
<i class="fa fa-bell-o fa-fw" aria-hidden="true"></i>
|
||||
<span data-role="from"></span>
|
||||
</h1>
|
||||
<div class="btn pull-right">
|
||||
<span class="badge badge-default badge-inverted"><i class="fa fa-clock-o" aria-hidden="true"></i> </span>
|
||||
<span class="badge badge-default badge-inverted" data-role="d_regis"></span>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="bar bar-standard bar-footer bg-faded d-none" data-role="not-referer">
|
||||
<button type="button" class="btn btn-secondary btn-block" data-history="back">닫기</button>
|
||||
</nav>
|
||||
|
||||
|
||||
<nav class="bar bar-standard bar-footer bg-faded" data-role="has-referer">
|
||||
<div class="row">
|
||||
<div class="col-xs-6">
|
||||
<button type="button" class="btn btn-secondary btn-block" data-history="back">닫기</button>
|
||||
</div>
|
||||
<div class="col-xs-6 p-l-0">
|
||||
<a href="" class="btn btn-primary btn-block" data-role="referer">내용확인</a>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
|
||||
<div class="content">
|
||||
<p class="content-padded" data-role="message"></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
$(function() {
|
||||
|
||||
var f = document.getElementById("procForm");
|
||||
var form = $('#procForm')
|
||||
|
||||
putCookieAlert('member_settings_result') // 실행결과 알림 메시지 출력
|
||||
|
||||
//알림수신설정(웹알림)
|
||||
$('#nt_web').on('changed.rc.switch', function (event) {
|
||||
var handle = $(event.relatedTarget)
|
||||
var button = handle.closest('.switch')
|
||||
form.find('[name="reload"]').val(1);
|
||||
if (button.hasClass('active')){
|
||||
form.find('[name="nt_web"]').val('');
|
||||
} else {
|
||||
form.find('[name="nt_web"]').val(1);
|
||||
}
|
||||
getIframeForAction(f);
|
||||
f.submit();
|
||||
})
|
||||
|
||||
//알림수신설정(이메일 알림)
|
||||
$('#nt_email').on('changed.rc.switch', function (event) {
|
||||
var handle = $(event.relatedTarget)
|
||||
var button = handle.closest('.switch')
|
||||
if (button.hasClass('active')){
|
||||
form.find('[name="nt_email"]').val(1);
|
||||
} else {
|
||||
form.find('[name="nt_email"]').val('');
|
||||
}
|
||||
getIframeForAction(f);
|
||||
f.submit();
|
||||
})
|
||||
|
||||
// 알림 수신용 이메일 지정
|
||||
$('#page-email').find('.js-submit').tap(function() {
|
||||
var form = $('#page-email')
|
||||
var email_noti = form.find('[name=email_noti]').val();
|
||||
var act = 'save_config'
|
||||
var url = rooturl+'/?r='+raccount+'&m=member&a=settings_noti&act='+act+'&email_noti='+email_noti+'&mobile=1'
|
||||
$(this).attr('disabled',true)
|
||||
getIframeForAction();
|
||||
setTimeout(function(){
|
||||
frames.__iframe_for_action__.location.href = url;
|
||||
}, 300);
|
||||
});
|
||||
|
||||
|
||||
//알림수신설정(FCM 알림)
|
||||
$('#nt_fcm').on('changed.rc.switch', function (event) {
|
||||
var handle = $(event.relatedTarget)
|
||||
var button = handle.closest('.switch')
|
||||
if (button.hasClass('active')){
|
||||
form.find('[name="nt_fcm"]').val(1);
|
||||
$('#token_div').removeClass('d-none')
|
||||
} else {
|
||||
form.find('[name="nt_fcm"]').val('');
|
||||
$('#token_div').addClass('d-none')
|
||||
}
|
||||
getIframeForAction(f);
|
||||
f.submit();
|
||||
})
|
||||
|
||||
//모듈별 차단설정
|
||||
$('.module_members').on('changed.rc.switch', function (event) {
|
||||
var handle = $(event.relatedTarget)
|
||||
var button = handle.closest('.switch')
|
||||
var mid = button.data('module')
|
||||
if (button.hasClass('active')){
|
||||
var url = rooturl+'/?r='+raccount+'&m=notification&a=notice_config_user&module_id='+mid+'&mobile=1'
|
||||
} else {
|
||||
var url = rooturl+'/?r='+raccount+'&m=notification&a=multi_delete_user&module_id='+mid+'&deltype=off_module&mobile=1'
|
||||
}
|
||||
console.log(url)
|
||||
getIframeForAction();
|
||||
frames.__iframe_for_action__.location.href = url;
|
||||
})
|
||||
|
||||
$('#RequestPermission').click(function(event) {
|
||||
event.preventDefault();
|
||||
requestPermission()
|
||||
});
|
||||
$('.js-deleteToken').click(function(event) {
|
||||
event.preventDefault();
|
||||
deleteToken()
|
||||
});
|
||||
$('.js-sendTest').click(function(event) {
|
||||
event.preventDefault();
|
||||
var btn = $(this)
|
||||
btn.attr('disabled',true)
|
||||
var title = '<?php echo $_HS['name'] ?> 모바일에서 보낸 푸시알림'
|
||||
var message = '푸시알림이 정상적으로 수신되었습니다.'
|
||||
$.post(rooturl+'/?r='+raccount+'&m=notification&a=push_testonly',{
|
||||
mbruid : '<?php echo $my['uid'] ?>',
|
||||
title : title,
|
||||
message : message
|
||||
},function(response){
|
||||
var result = $.parseJSON(response);
|
||||
var error=result.error;
|
||||
if (!error) {
|
||||
btn.attr('disabled',false)
|
||||
console.log('테스트 푸시알림가 수신 되었습니다.')
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
67
modules/member/themes/_mobile/rc-default/settings/phone.php
Normal file
67
modules/member/themes/_mobile/rc-default/settings/phone.php
Normal file
@@ -0,0 +1,67 @@
|
||||
<?php
|
||||
$vtype = $vtype ? $vtype : 'point';
|
||||
$sort = $sort ? $sort : 'uid';
|
||||
$orderby= $orderby ? $orderby : 'desc';
|
||||
$recnum = $recnum && $recnum < 200 ? $recnum : 10;
|
||||
|
||||
$sqlque = 'my_mbruid='.$my['uid'];
|
||||
if ($type == '1') $sqlque .= ' and price > 0';
|
||||
if ($type == '2') $sqlque .= ' and price < 0';
|
||||
if ($where && $keyword)
|
||||
{
|
||||
$sqlque .= getSearchSql($where,$keyword,$ikeyword,'or');
|
||||
}
|
||||
$RCD = getDbArray($table['s_'.$vtype],$sqlque,'*',$sort,$orderby,$recnum,$p);
|
||||
$NUM = getDbRows($table['s_'.$vtype],$sqlque);
|
||||
$TPG = getTotalPage($NUM,$recnum);
|
||||
|
||||
$PageLink = './point?';
|
||||
if ($type) $PageLink .= 'type='.$type.'&';
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<header class="bar bar-nav bar-dark bg-primary px-0">
|
||||
<a class="icon icon-left-nav pull-left p-x-1" role="button" href="<?php echo RW('mod=settings') ?>"></a>
|
||||
<h1 class="title" data-location="reload">
|
||||
<i class="fa fa-mobile fa-lg fa-fw text-muted" aria-hidden="true"></i> 휴대폰 관리
|
||||
</h1>
|
||||
</header>
|
||||
|
||||
<?php if ($TPG > 1): ?>
|
||||
<footer class="bar bar-standard bar-footer bar-light bg-white p-x-0">
|
||||
<div class="">
|
||||
<?php echo getPageLink($d['theme']['pagenum'],$p,$TPG,'')?>
|
||||
</div>
|
||||
</footer>
|
||||
<?php endif; ?>
|
||||
|
||||
<main class="content bg-faded animated fadeIn delay-1">
|
||||
|
||||
<ul class="table-view bg-white" style="margin-top: -.0625rem">
|
||||
<?php while($R=db_fetch_array($RCD)):?>
|
||||
<li class="table-view-cell">
|
||||
<?php echo $R['content']?>
|
||||
<?php if(getNew($R['d_regis'],24)):?><small class="text-danger">new</small><?php endif?>
|
||||
<p><?php echo getDateFormat($R['d_regis'],'Y.m.d H:i')?></p>
|
||||
<span class="badge badge-primary badge-outline"><?php echo ($R['price']>0?'+':'').number_format($R['price'])?></span>
|
||||
</li>
|
||||
<?php endwhile?>
|
||||
|
||||
<?php if(!$NUM):?>
|
||||
<li class="table-view-cell text-xs-center p-5 text-muted d-flex align-items-center justify-content-center bg-faded" style="height: calc(100vh - 10.5rem);">
|
||||
내역이 없습니다.
|
||||
</li>
|
||||
<?php endif?>
|
||||
</ul>
|
||||
|
||||
</main>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
$(function() {
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
74
modules/member/themes/_mobile/rc-default/settings/point.php
Normal file
74
modules/member/themes/_mobile/rc-default/settings/point.php
Normal file
@@ -0,0 +1,74 @@
|
||||
<?php
|
||||
$vtype = $vtype ? $vtype : 'point';
|
||||
$sort = $sort ? $sort : 'uid';
|
||||
$orderby= $orderby ? $orderby : 'desc';
|
||||
$recnum = $recnum && $recnum < 200 ? $recnum : 10;
|
||||
|
||||
$sqlque = 'my_mbruid='.$my['uid'];
|
||||
if ($type == '1') $sqlque .= ' and price > 0';
|
||||
if ($type == '2') $sqlque .= ' and price < 0';
|
||||
if ($where && $keyword)
|
||||
{
|
||||
$sqlque .= getSearchSql($where,$keyword,$ikeyword,'or');
|
||||
}
|
||||
$RCD = getDbArray($table['s_'.$vtype],$sqlque,'*',$sort,$orderby,$recnum,$p);
|
||||
$NUM = getDbRows($table['s_'.$vtype],$sqlque);
|
||||
$TPG = getTotalPage($NUM,$recnum);
|
||||
|
||||
$PageLink = './point?';
|
||||
if ($type) $PageLink .= 'type='.$type.'&';
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<header class="bar bar-nav bar-dark bg-primary px-0">
|
||||
<a class="icon icon-left-nav pull-left p-x-1" role="button" href="<?php echo RW('mod=settings') ?>"></a>
|
||||
<span class="btn badge badge-pill badge-primary mr-2 pull-right"><?php echo number_format($my['point'])?> P</span>
|
||||
<h1 class="title" data-location="reload">
|
||||
<i class="fa fa-product-hunt mr-1 fa-fw text-muted" aria-hidden="true"></i> 포인트 내역
|
||||
</h1>
|
||||
</header>
|
||||
<div class="bar bar-standard bar-header-secondary bar-light bg-faded p-x-0">
|
||||
<nav class="nav nav-inline">
|
||||
<a class="nav-link<?php echo !$type?' active':'' ?>" href="<?php echo $g['s'] ?>/?r=<?php echo $r ?>&mod=settings&page=point" data-control="push">전체</a>
|
||||
<a class="nav-link<?php echo $type==1?' active':'' ?>" href="<?php echo $g['s'] ?>/?r=<?php echo $r ?>&mod=settings&page=point&type=1" data-control="push">획득</a>
|
||||
<a class="nav-link<?php echo $type==2?' active':'' ?>" href="<?php echo $g['s'] ?>/?r=<?php echo $r ?>&mod=settings&page=point&type=2" data-control="push">사용</a>
|
||||
</nav>
|
||||
</div>
|
||||
<?php if ($TPG > 1): ?>
|
||||
<footer class="bar bar-standard bar-footer bar-light bg-white p-x-0">
|
||||
<div class="">
|
||||
<?php echo getPageLink($d['theme']['pagenum'],$p,$TPG,'')?>
|
||||
</div>
|
||||
</footer>
|
||||
<?php endif; ?>
|
||||
|
||||
<main class="content bg-faded animated fadeIn delay-1">
|
||||
|
||||
<ul class="table-view bg-white" style="margin-top: -.0625rem">
|
||||
<?php while($R=db_fetch_array($RCD)):?>
|
||||
<li class="table-view-cell">
|
||||
<?php echo $R['content']?>
|
||||
<?php if(getNew($R['d_regis'],24)):?><small class="text-danger">new</small><?php endif?>
|
||||
<p><?php echo getDateFormat($R['d_regis'],'Y.m.d H:i')?></p>
|
||||
<span class="badge badge-outline badge-default"><?php echo ($R['price']>0?'+':'').number_format($R['price'])?></span>
|
||||
</li>
|
||||
<?php endwhile?>
|
||||
|
||||
<?php if(!$NUM):?>
|
||||
<li class="table-view-cell text-xs-center p-5 text-muted d-flex align-items-center justify-content-center bg-faded" style="height: calc(100vh - 10.5rem);">
|
||||
내역이 없습니다.
|
||||
</li>
|
||||
<?php endif?>
|
||||
</ul>
|
||||
|
||||
</main>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
$(function() {
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
260
modules/member/themes/_mobile/rc-default/settings/shipping.php
Normal file
260
modules/member/themes/_mobile/rc-default/settings/shipping.php
Normal file
@@ -0,0 +1,260 @@
|
||||
<?php
|
||||
$sqlque0 = 'mbruid='.$my['uid'];
|
||||
$sqlque1 = 'mbruid='.$my['uid'].' and base=1';
|
||||
$sqlque2 = 'mbruid='.$my['uid'].' and base=0';
|
||||
|
||||
$PCD = getDbArray($table['s_mbrshipping'],$sqlque1,'*','uid','asc',0,1);
|
||||
$RCD = getDbArray($table['s_mbrshipping'],$sqlque2,'*','uid','asc',0,1);
|
||||
|
||||
$NUM = getDbRows($table['s_mbrshipping'],$sqlque0);
|
||||
?>
|
||||
|
||||
<div class="page center" id="page-main">
|
||||
<header class="bar bar-nav bar-dark bg-primary px-0">
|
||||
<a class="icon icon-left-nav pull-left p-x-1" role="button" data-history="back"></a>
|
||||
<h1 class="title" data-location="reload">
|
||||
<i class="fa fa-truck fa-fw text-muted mr-1" aria-hidden="true"></i> 배송지 관리
|
||||
</h1>
|
||||
</header>
|
||||
<div class="bar bar-standard bar-footer bar-light bg-faded">
|
||||
<button class="btn btn-outline-primary btn-block"
|
||||
data-toggle="page"
|
||||
data-target="#page-edit"
|
||||
data-start="#page-main"
|
||||
data-act="edit"
|
||||
data-title="배송지 등록">
|
||||
배송지 등록
|
||||
</button>
|
||||
</div>
|
||||
<?php if ($TPG > 1): ?>
|
||||
<footer class="bar bar-standard bar-footer bar-light bg-white p-x-0">
|
||||
<div class="">
|
||||
<?php echo getPageLink($d['theme']['pagenum'],$p,$TPG,'')?>
|
||||
</div>
|
||||
</footer>
|
||||
<?php endif; ?>
|
||||
|
||||
<main class="content bg-faded animated fadeIn delay-1">
|
||||
|
||||
<ul class="table-view bg-white" style="margin-top: -.0625rem">
|
||||
|
||||
<?php while($P=db_fetch_array($PCD)):?>
|
||||
<li class="table-view-cell">
|
||||
<div class="media-body">
|
||||
<?php echo $P['label'] ?><span class="badge badge-primary badge-outline ml-2">기본배송지</span>
|
||||
<p>
|
||||
<span class="text-muted"><?php echo $P['zip'] ?></span>
|
||||
<?php echo $P['addr1'] ?><br><?php echo $P['addr2'] ?>
|
||||
<span class="ml-1"><?php echo $P['tel1'] ?></span>
|
||||
<span class="ml-1"><?php echo $P['tel2'] ?></span>
|
||||
<span class="ml-1"><?php echo $P['name'] ?></span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<button class="btn btn-secondary"
|
||||
data-toggle="page"
|
||||
data-target="#page-edit"
|
||||
data-start="#page-main"
|
||||
data-uid="<?php echo $P['uid'] ?>"
|
||||
data-act="edit"
|
||||
data-title="<?php echo $P['label'] ?>"
|
||||
data-url="">
|
||||
관리
|
||||
</button>
|
||||
</li>
|
||||
<?php endwhile?>
|
||||
|
||||
<?php while($R=db_fetch_array($RCD)):?>
|
||||
<li class="table-view-cell">
|
||||
<div class="media-body">
|
||||
<?php echo $R['label'] ?>
|
||||
<p>
|
||||
<span class="text-muted"><?php echo $R['zip'] ?></span>
|
||||
<?php echo $R['addr1'] ?><br><?php echo $R['addr2'] ?>
|
||||
<span class="ml-1"><?php echo $R['tel1'] ?></span>
|
||||
<span class="ml-1"><?php echo $R['tel2'] ?></span>
|
||||
<span class="ml-1"><?php echo $R['name'] ?></span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<button class="btn btn-secondary"
|
||||
data-toggle="page"
|
||||
data-target="#page-edit"
|
||||
data-start="#page-main"
|
||||
data-uid="<?php echo $R['uid'] ?>"
|
||||
data-act="edit"
|
||||
data-title="<?php echo $R['label'] ?>"
|
||||
data-url="">
|
||||
관리
|
||||
</button>
|
||||
</li>
|
||||
<?php endwhile?>
|
||||
|
||||
<?php if(!$NUM):?>
|
||||
<li class="table-view-cell text-xs-center p-5 text-muted d-flex align-items-center justify-content-center bg-faded" style="height: calc(100vh - 10.5rem);">
|
||||
내역이 없습니다.
|
||||
</li>
|
||||
<?php endif?>
|
||||
</ul>
|
||||
|
||||
</main>
|
||||
|
||||
</div><!-- /.page -->
|
||||
|
||||
<div class="page right" id="page-edit">
|
||||
<header class="bar bar-nav bar-dark bg-primary px-0">
|
||||
<a class="icon icon-left-nav pull-left p-x-1" role="button" data-history="back"></a>
|
||||
<button class="btn btn-link pull-right mr-3">
|
||||
저장
|
||||
</button>
|
||||
<h1 class="title" data-location="reload">
|
||||
<i class="fa fa-truck fa-fw text-muted mr-1" aria-hidden="true"></i> <span data-role="title"></span>
|
||||
</h1>
|
||||
</header>
|
||||
<div class="bar bar-standard bar-footer bar-light bg-faded">
|
||||
<button class="btn btn-outline-danger btn-block">
|
||||
배송지 삭제
|
||||
</button>
|
||||
</div>
|
||||
<main class="content bg-faded">
|
||||
|
||||
<div class="content-padded">
|
||||
|
||||
<div class="form-group">
|
||||
<label>배송지명</label>
|
||||
<input type="text" class="form-control" name="label" value="" placeholder="배송지명을 입력하세요." autocomplete="off">
|
||||
<div class="invalid-feedback">
|
||||
배송지명을 입력해주세요.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>수령인 <span class="text-danger">*</span></label>
|
||||
<input type="text" class="form-control" name="name" value="" placeholder="수령인을 입력하세요." autocomplete="off">
|
||||
<div class="invalid-feedback">
|
||||
수령인을 입력해주세요.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>주소 <span class="text-danger">*</span></label>
|
||||
<div id="addrbox"<?php if($my['addr0']=='해외'):?> class="hidden"<?php endif?>>
|
||||
<div class="input-group" style="margin-bottom: 5px">
|
||||
<input type="number" class="form-control" name="zip" value="<?php echo substr($my['zip'],0,5)?>" id="zip1" placeholder="" readonly>
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-secondary" type="button" id="execDaumPostcode">
|
||||
<i class="fa fa-search"></i>우편번호
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
<input class="form-control" type="text" value="<?php echo $my['addr1']?>" name="addr1" id="addr1" readonly placeholder="우편번호를 선택" style="margin-bottom: 5px">
|
||||
<input class="form-control" type="text" value="<?php echo $my['addr2']?>" name="addr2" id="addr2" style="margin-bottom: 5px" placeholder="상세 주소를 입력">
|
||||
<div class="invalid-feedback">
|
||||
주소를 입력해주세요.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if($d['member']['form_settings_overseas']):?>
|
||||
<div class="m-t-1">
|
||||
<?php if($my['addr0']=='해외'):?>
|
||||
<label class="custom-control custom-checkbox">
|
||||
<input type="checkbox" class="custom-control-input" name="overseas" value="1" checked="checked" onclick="overseasChk(this);">
|
||||
<span class="custom-control-indicator"></span>
|
||||
<span class="custom-control-description" id="overseas_ment">해외거주자 입니다.</span>
|
||||
</label>
|
||||
<?php else:?>
|
||||
<label class="custom-control custom-checkbox">
|
||||
<input type="checkbox" class="custom-control-input" name="overseas" value="1" onclick="overseasChk(this);">
|
||||
<span class="custom-control-indicator"></span>
|
||||
<span class="custom-control-description" id="overseas_ment">해외거주자일 경우 체크해 주세요.</span>
|
||||
</label>
|
||||
<?php endif?>
|
||||
</div>
|
||||
<?php endif?>
|
||||
|
||||
</div><!-- /.form-group -->
|
||||
|
||||
<div class="form-group">
|
||||
<label>연락처 <span class="text-danger">*</span></label>
|
||||
<?php $tel1=explode('-',$my['tel1'])?>
|
||||
<div class="form-row">
|
||||
<div class="col-xs-4">
|
||||
<input type="text" name="tel1_1" value="<?php echo $tel1[0]?>" maxlength="4" size="4" class="form-control" autocomplete="off">
|
||||
<div class="invalid-feedback">
|
||||
입력필요
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<input type="text" name="tel1_2" value="<?php echo $tel1[1]?>" maxlength="4" size="4" class="form-control" autocomplete="off">
|
||||
<div class="invalid-feedback">
|
||||
입력필요
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<input type="text" name="tel1_3" value="<?php echo $tel1[2]?>" maxlength="4" size="4" class="form-control" autocomplete="off">
|
||||
<div class="invalid-feedback">
|
||||
입력필요
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>연락처2</label>
|
||||
<?php $tel1=explode('-',$my['tel1'])?>
|
||||
<div class="form-row">
|
||||
<div class="col-xs-4">
|
||||
<input type="text" name="tel1_1" value="<?php echo $tel1[0]?>" maxlength="4" size="4" class="form-control" autocomplete="off">
|
||||
<div class="invalid-feedback">
|
||||
입력필요
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<input type="text" name="tel1_2" value="<?php echo $tel1[1]?>" maxlength="4" size="4" class="form-control" autocomplete="off">
|
||||
<div class="invalid-feedback">
|
||||
입력필요
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<input type="text" name="tel1_3" value="<?php echo $tel1[2]?>" maxlength="4" size="4" class="form-control" autocomplete="off">
|
||||
<div class="invalid-feedback">
|
||||
입력필요
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<label class="custom-control custom-checkbox m-t-3">
|
||||
<input type="checkbox" class="custom-control-input" name="birthtype" id="birthtype" value="1">
|
||||
<span class="custom-control-indicator"></span>
|
||||
<span class="custom-control-description">기본 배송지로 등록</span>
|
||||
</label>
|
||||
|
||||
</div><!-- /.content-padded -->
|
||||
|
||||
</main>
|
||||
</div><!-- /.page -->
|
||||
|
||||
<!-- Modal -->
|
||||
<div id="modal-DaumPostcode" class="modal">
|
||||
<header class="bar bar-nav bar-light bg-faded px-0">
|
||||
<a class="icon icon-close pull-right p-x-1" data-history="back" role="button"></a>
|
||||
<h1 class="title">우편번호 검색</h1>
|
||||
</header>
|
||||
<div class="content" id="postLayer">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if($_SERVER['HTTPS'] == 'on'):?>
|
||||
<script src="https://ssl.daumcdn.net/dmaps/map_js_init/postcode.v2.js"></script>
|
||||
<?php else:?>
|
||||
<script src="http://dmaps.daum.net/map_js_init/postcode.v2.js"></script>
|
||||
<?php endif?>
|
||||
|
||||
<script>
|
||||
|
||||
$(function() {
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
Reference in New Issue
Block a user