최초 커밋
This commit is contained in:
@@ -0,0 +1,388 @@
|
||||
<!-- 회원정보 찾기 시작 { -->
|
||||
<!-- <head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>TOVA Join</title>
|
||||
<link rel="stylesheet" href="../css/reset.css" />
|
||||
<link rel="stylesheet" href="../css/font.css" />
|
||||
<link rel="stylesheet" href="../css/style.css" />
|
||||
<script src="../js/jquery-3.6.1.min.js"></script>
|
||||
<script src="../js/common.js"></script>
|
||||
</head> -->
|
||||
|
||||
|
||||
<!-- <body>
|
||||
<div class="wrapper"> -->
|
||||
<!-- Header -->
|
||||
<!-- <header class="header">
|
||||
<h1>
|
||||
<img src="../img/logo_w.svg" alt="">
|
||||
</h1>
|
||||
<div class="menu_wrap">
|
||||
<div class="menu_my"><img src="../img/ico_my.svg" alt=""></div>
|
||||
<div class="menu_ham"><img src="../img/ico_ham.svg" alt=""></div>
|
||||
</div>
|
||||
</header> -->
|
||||
<!-- //Header -->
|
||||
|
||||
<!--popup_wrap-->
|
||||
<div id="pop_search" class="popup_wrap">
|
||||
<!--popup_in-->
|
||||
<div class="popup_in">
|
||||
<button class="btn_close" onclick="$('#view_result').html('');">
|
||||
<div class="close_div"><img src="<?php echo G5_URL ?>/img/ico_close.svg" alt=""></div>
|
||||
</button>
|
||||
<!--popup_content-->
|
||||
<div class="popup_container search">
|
||||
<!--pop_join_left-->
|
||||
<div class="popup_tit">
|
||||
<h1 class="h_1">아이디 찾기/ <br> 비밀번호 변경 </h1>
|
||||
<h3 id="view_result1" class="h_3"></h3>
|
||||
<!--
|
||||
가입 시 등록된 이메일로<br>
|
||||
<strong>아이디 및 비밀번호를 발송</strong>
|
||||
합니다.
|
||||
//-->
|
||||
</div>
|
||||
<!--//pop_join_right-->
|
||||
<div class="popup_contents_wrap">
|
||||
<!-- 아이디/비번찾기 -->
|
||||
<ul class="btn_wrap">
|
||||
<li class="btn_id on" onclick="ufn_view_result('btn_id');"><span>아이디 찾기</span></li>
|
||||
<li class="btn_pw " onclick="ufn_view_result('btn_pw');"><span>비밀번호 변경</span></li>
|
||||
</ul>
|
||||
<!-- // 아이디/비번찾기 -->
|
||||
<div class="content id">
|
||||
<div class="box">
|
||||
<!-- 휴대전화 / 이메일 라디오 버튼 -->
|
||||
<div class="radio_wrap">
|
||||
<label><input type="radio" id="rdo_hp" class="find_ph on" checked> 휴대전화 번호로 찾기</label>
|
||||
<label><input type="radio" id="rdo_email" class="find_email"> 이메일 주소로 찾기</label>
|
||||
</div>
|
||||
<!-- // 휴대전화 / 이메일 라디오 버튼 -->
|
||||
<!-- 휴대전화 -->
|
||||
<table class="ph">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th class="h_4">이름</th>
|
||||
<td>
|
||||
<div class="id_wrap">
|
||||
<input id="txt_name" type="text" placeholder="이름 입력" required>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="h_4">휴대전화번호</th>
|
||||
<td>
|
||||
<div class="id_wrap">
|
||||
<input id="txt_hp" type="text" onkeyup="ufn_losthp_onkeyup(this);" placeholder="휴대전화번호 입력" required>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<!-- //휴대전화 -->
|
||||
<!-- 이메일 -->
|
||||
<table class="email" style="display: none;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th class="h_4">이름</th>
|
||||
<td>
|
||||
<div class="id_wrap">
|
||||
<input type="text" id="txt_name2" placeholder="이름 입력" required>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="h_4">이메일</th>
|
||||
<td>
|
||||
<div class="email_wrap">
|
||||
<input type="text" id="txt_email" onkeyup="ufn_email_onkeyup(this);" placeholder="이메일 입력" class="e_id" required>
|
||||
<div><span>@</span></div>
|
||||
<input type="text" id="custom_domain1" placeholder="직접 입력" style="display: none;" required>
|
||||
<select id="domain_list1" class="domain_list" required onchange="ufn_domain_list1_change(this);">
|
||||
<option value="-" hidden="" disabled="disabled" selected="selected">선택</option>
|
||||
<option value="naver.com">naver.com</option>
|
||||
<option value="gmail.com">gmail.com</option>
|
||||
<option value="daum.net">daum.net</option>
|
||||
<option value="hanmail.net">hanmail.net</option>
|
||||
<option value="nate.com">nate.com</option>
|
||||
<option value="hotmail.com">hotmail.com</option>
|
||||
<option value="yahoo.com">yahoo.com</option>
|
||||
<option value="type" type="text">직접입력</option>
|
||||
</select>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<!-- //이메일 -->
|
||||
<div id="view_result2" class="find_box">
|
||||
<!-- 등록된 아이디는 <em>egbim</em>입니다. -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="join_btn_wrap">
|
||||
<button type="button" id="btn_id" onclick="ufn_btn_id_click();">확인</button>
|
||||
</div>
|
||||
<div class="inquiry">
|
||||
계정이 기억나지 않을 경우<br class="brk"> <em>baroncs@baroncs.co.kr</em>로 문의하시기 바랍니다.
|
||||
</div>
|
||||
</div>
|
||||
<div id="div_pw" class="content pw" style="display: none;">
|
||||
<div class="box">
|
||||
<!-- <span class="text_m" style="display: none;">아이디와 이메일 일치시에 비밀번호는<br> <strong>등록된 휴대전화번호</strong>로 변경됩니다.</span> -->
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th class="h_4">아이디</th>
|
||||
<td>
|
||||
<div class="id_wrap">
|
||||
<input type="text" id="txt_lost_id" placeholder="아이디 입력" required>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="h_4">이메일</th>
|
||||
<td class="email_confirm">
|
||||
<div class="email_wrap">
|
||||
<input id="txt_lost_email2" onkeyup="ufn_email2_onkeyup(this);" type="text" placeholder="이메일 입력" class="e_id" required>
|
||||
<div><span>@</span></div>
|
||||
<input type="text" id="custom_domain2" placeholder="직접 입력" style="display: none;" required>
|
||||
<select id="domain_list2" class="domain_list" required onchange="ufn_domain_list2_change(this);">
|
||||
<option value="-" hidden="" disabled="disabled" selected="selected">선택</option>
|
||||
<option value="naver.com">naver.com</option>
|
||||
<option value="gmail.com">gmail.com</option>
|
||||
<option value="daum.net">daum.net</option>
|
||||
<option value="hanmail.net">hanmail.net</option>
|
||||
<option value="nate.com">nate.com</option>
|
||||
<option value="hotmail.com">hotmail.com</option>
|
||||
<option value="yahoo.com">yahoo.com</option>
|
||||
<option value="type" type="text">직접입력</option>
|
||||
</select>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div id="view_result" class="find_box">
|
||||
<!-- 비밀번호를 <em>휴대전화번호</em>로 변경했습니다. -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="join_btn_wrap">
|
||||
<button type="button" id="btn_pw2" onclick="ufn_btn_pw2_click()">확인</button>
|
||||
</div>
|
||||
<div class="inquiry">계정이 기억나지 않을 경우<br class="brk"> <em>baroncs@baroncs.co.kr</em>로 문의하시기 바랍니다.</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--//pop_join_right-->
|
||||
</div>
|
||||
<!--//popup_content-->
|
||||
</div>
|
||||
<!--//popup_in-->
|
||||
</div>
|
||||
<script>
|
||||
|
||||
function ufn_view_result(l_gbn){
|
||||
if(l_gbn == "btn_id"){
|
||||
$("#view_result").html("");
|
||||
}else{
|
||||
$("#view_result").html("아이디와 이메일 일치시에 비밀번호는<br> <strong>등록된 휴대전화번호</strong>로 변경됩니다.");
|
||||
}
|
||||
}
|
||||
|
||||
function ufn_domain_list1_change(l_list){
|
||||
if(l_list.value == 'type'){
|
||||
document.getElementById("custom_domain1").style.display = "block";
|
||||
}else{
|
||||
document.getElementById("custom_domain1").style.display = "none";
|
||||
}
|
||||
}
|
||||
|
||||
function ufn_domain_list2_change(l_list){
|
||||
if(l_list.value == 'type'){
|
||||
document.getElementById("custom_domain2").style.display = "block";
|
||||
}else{
|
||||
document.getElementById("custom_domain2").style.display = "none";
|
||||
}
|
||||
}
|
||||
|
||||
function ufn_email_onkeyup(l_email){
|
||||
if(l_email.value.length>0){
|
||||
document.getElementById('btn_id').disabled = false;
|
||||
}else{
|
||||
document.getElementById('btn_id').disabled = true;
|
||||
}
|
||||
}
|
||||
|
||||
function ufn_email2_onkeyup(l_email){
|
||||
if(l_email.value.length>0){
|
||||
document.getElementById('btn_pw2').disabled = false;
|
||||
}else{
|
||||
document.getElementById('btn_pw2').disabled = true;
|
||||
}
|
||||
}
|
||||
|
||||
function ufn_losthp_onkeyup(l_hp){
|
||||
if(l_hp.value.length>0){
|
||||
document.getElementById('btn_id').disabled = false;
|
||||
}else{
|
||||
document.getElementById('btn_id').disabled = true;
|
||||
}
|
||||
}
|
||||
|
||||
//아이디찾기
|
||||
function ufn_btn_id_click(){
|
||||
|
||||
let l_name = $('#txt_name').val();
|
||||
let l_hp = $('#txt_hp').val();
|
||||
let l_email = "";
|
||||
let l_domain = "";
|
||||
if(document.getElementById('rdo_email').checked){
|
||||
if(document.getElementById('domain_list1').value == '-'){
|
||||
alert("메일도메인을 선택해 주세요.");
|
||||
document.getElementById('domain_list1').focus();
|
||||
return false;
|
||||
}
|
||||
if(document.getElementById('domain_list1').value == 'type'){
|
||||
if(document.getElementById('custom_domain1').value=="" || document.getElementById('custom_domain1').value=="type" ){
|
||||
alert("메일도메인을 입력해 주세요.");
|
||||
document.getElementById('custom_domain1').focus();
|
||||
return false;
|
||||
}
|
||||
l_domain = document.getElementById('custom_domain1').value;
|
||||
}else{
|
||||
l_domain = document.getElementById('domain_list1').value;
|
||||
}
|
||||
|
||||
l_name = $('#txt_name2').val();
|
||||
l_email = $('#txt_email').val() + '@' + l_domain ;
|
||||
//alert(l_email);
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
url: '<?php echo G5_URL ?>/bbs/lost.php',
|
||||
type: "POST",
|
||||
datatype: "json",
|
||||
contentType: 'application/json; charset=utf-8',
|
||||
data: JSON.stringify({ // 데이터를 JSON 문자열로 변환
|
||||
'mb_name': l_name,
|
||||
'mb_hp': l_hp,
|
||||
'mb_email': l_email,
|
||||
}),
|
||||
success: function(data) {
|
||||
var ss = '';
|
||||
for (i = 0; i < data.length; i++) {
|
||||
if(i == 3 ||i == 4 ||i == 5){
|
||||
ss = ss + "*";
|
||||
}
|
||||
else{
|
||||
ss = ss + data[i];
|
||||
}
|
||||
ss = ss.replace('"','').replace('"','');
|
||||
}
|
||||
//alert(ss);
|
||||
if(ss.length > 0){
|
||||
if(ss == "nul*"){
|
||||
$("#view_result2").html("<strong>일치하는 정보가 없습니다.</strong>");
|
||||
}else{
|
||||
if(document.getElementById('rdo_email').checked){
|
||||
$('#txt_name2').val('');
|
||||
$('#txt_email').val('');
|
||||
$('#custom_domain1').val('');
|
||||
}
|
||||
$('#txt_name').val('');
|
||||
$('#txt_hp').val('');
|
||||
|
||||
document.getElementById('btn_id').disabled = true;
|
||||
$("#view_result2").html("등록된 아이디는 <strong>"+ss+"</strong> 입니다.");
|
||||
}
|
||||
}else{
|
||||
alert("일치하는 정보가 없습니다.");
|
||||
}
|
||||
|
||||
},
|
||||
error: function(err) {
|
||||
console.error("Error occurred:", err); // 콘솔에 에러 로그 출력
|
||||
alert("서버와의 통신 중 오류가 발생했습니다."); // 사용자에게 의미 있는 메시지 출력
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
//비밀번호 변경
|
||||
function ufn_btn_pw2_click(){
|
||||
|
||||
let l_id = $('#txt_lost_id').val();
|
||||
let l_email = "";
|
||||
let l_domain = "";
|
||||
|
||||
if(document.getElementById('domain_list2').value == '-'){
|
||||
alert("메일도메인을 선택해 주세요.");
|
||||
document.getElementById('domain_list2').focus();
|
||||
return false;
|
||||
}
|
||||
if(document.getElementById('domain_list2').value == 'type'){
|
||||
if(document.getElementById('custom_domain2').value=="" || document.getElementById('custom_domain2').value=="type" ){
|
||||
alert("메일도메인을 입력해 주세요.");
|
||||
document.getElementById('custom_domain2').focus();
|
||||
return false;
|
||||
}
|
||||
l_domain = document.getElementById('custom_domain2').value;
|
||||
}else{
|
||||
l_domain = document.getElementById('domain_list2').value;
|
||||
}
|
||||
|
||||
l_email = $('#txt_lost_email2').val() + '@' + l_domain ;
|
||||
|
||||
$.ajax({
|
||||
url: '<?php echo G5_URL ?>/bbs/lost.php',
|
||||
type: "POST",
|
||||
datatype: "json",
|
||||
contentType: 'application/json; charset=utf-8',
|
||||
data: JSON.stringify({ // 데이터를 JSON 문자열로 변환
|
||||
'mb_id': l_id,
|
||||
'mb_email': l_email,
|
||||
}),
|
||||
success: function(data) {
|
||||
var ss = '';
|
||||
for (i = 0; i < data.length; i++) {
|
||||
if(i == 3 ||i == 4 ||i == 5){
|
||||
ss = ss + "*";
|
||||
}
|
||||
else{
|
||||
ss = ss + data[i];
|
||||
}
|
||||
ss = ss.replace('"','').replace('"','');
|
||||
}
|
||||
//alert(ss);
|
||||
if(ss.length > 0){
|
||||
if(ss == "nul*"){
|
||||
$("#view_result").html("<strong>일치하는 정보가 없습니다.</strong>");
|
||||
}else{
|
||||
|
||||
$('#txt_lost_id').val('');
|
||||
$('#txt_lost_email2').val('');
|
||||
|
||||
document.getElementById('btn_pw2').disabled = true;
|
||||
|
||||
$("#view_result").html("비밀번호를 <strong>휴대전화번호</strong>로 변경했습니다.");
|
||||
alert("비밀번호를 등록하신 휴대전화번호로 변경했습니다.");
|
||||
}
|
||||
//$("#view_result").html(ss);
|
||||
}else{
|
||||
alert("일치하는 정보가 없습니다.");
|
||||
}
|
||||
},
|
||||
error: function(err) {
|
||||
console.error("Error occurred:", err); // 콘솔에 에러 로그 출력
|
||||
alert("서버와의 통신 중 오류가 발생했습니다."); // 사용자에게 의미 있는 메시지 출력
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
</script>
|
||||
<!--//popup_wrap-->
|
||||
<!-- </div>
|
||||
</body> -->
|
||||
|
||||
<!-- } 회원정보 찾기 끝 -->
|
||||
Reference in New Issue
Block a user