최초 커밋
This commit is contained in:
@@ -0,0 +1,210 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
include_once('./_common.php');
|
||||
|
||||
//add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">', 0);
|
||||
?>
|
||||
<!--popup_wrap-->
|
||||
<div class="popup_wrap" id="pop_mypage03">
|
||||
<!--popup_in-->
|
||||
<div class="popup_in">
|
||||
<button class="btn_close">
|
||||
<div class="close_div"><img src="<?php echo G5_URL ?>/img/ico_close.svg" alt=""></div>
|
||||
</button>
|
||||
<!--popup_content-->
|
||||
<div class="popup_content mypage_edit join">
|
||||
<!--pop_join_left-->
|
||||
<div class="pop_join_left">
|
||||
<span class="bg_tit_left">My pa</span>
|
||||
<div class="join_info">
|
||||
<h1 class="h_1">내 정보 수정</h1>
|
||||
<h3 class="h_3">
|
||||
소중한 <em>내 정보</em>를 <br>
|
||||
<em>최신</em>으로 관리하세요.
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
<!--//pop_join_right-->
|
||||
<div class="pop_input_wrap pop_join_right">
|
||||
<span class="bg_tit_right">ge</span>
|
||||
<form id="fregisterform_up" name="fregisterform_up" action="<?php //echo $register_action_url?>" onsubmit="return fregisterform_submit(this);" method="post" enctype="multipart/form-data" autocomplete="off">
|
||||
<!-- <input type="hidden" name="w" value="<?php echo $w ?>">
|
||||
<input type="hidden" name="url" value="<?php echo $urlencode ?>">
|
||||
<input type="hidden" name="agree" value="<?php echo $agree ?>">
|
||||
<input type="hidden" name="agree2" value="<?php echo $agree2 ?>">
|
||||
<input type="hidden" name="cert_type" value="<?php echo $member['mb_certify']; ?>">
|
||||
<input type="hidden" name="cert_no" value=""> -->
|
||||
<!-- <?php //if (isset($member['mb_sex'])) { ?><input type="hidden" name="mb_sex" value="<?php //echo $member['mb_sex'] ?>"><?php //} ?> -->
|
||||
<?php //if (isset($member['mb_nick_date']) && $member['mb_nick_date'] > date("Y-m-d", G5_SERVER_TIME - ($config['cf_nick_modify'] * 86400))) { // 닉네임수정일이 지나지 않았다면 ?>
|
||||
<!-- <input type="hidden" name="mb_nick_default" value="<?php //echo get_text($member['mb_nick']) ?>">
|
||||
<input type="hidden" name="mb_nick" value="<?php //echo get_text($member['mb_nick']) ?>"> -->
|
||||
<?php //} ?>
|
||||
<h6 class="important_msg pop_notice h_6">*항목은 필수 항목 입니다.</h6>
|
||||
<fieldset>
|
||||
<!--tbl_wrap-->
|
||||
<div id="register_form" class="tbl_wrap">
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th class="h_4">아이디<span class="important_msg">*</span></th>
|
||||
<td>
|
||||
<div class="id_wrap">
|
||||
<input type="text" class="full_input" id="update_mb_id" name="mb_id" onchange="PG_pro('change');" placeholder="아이디 입력" <?php if($member['mb_id']!=""){ ?> style="width: 100% ;"<?php }?> autocomplete="off" value="<?php echo $member['mb_id'] ?>" <?php echo $required ?> <?php echo $readonly ?> maxlength="12" disabled>
|
||||
<?php if($member['mb_id']==""){ ?>
|
||||
<button type="button" class="chk_id" onclick="PG_pro('dupl_check');">중복확인</button>
|
||||
<!-- hidden --><input type="hidden" id="dupl_check_yn" name="dupl_check_yn" value="" placeholder="아이디중복확인여부YN" style="width:250px; background-color:#dfe4ea "/>
|
||||
<!-- hidden --><input type="hidden" id="GB_mb_id" name="GB_mb_id" value="<?php echo $member['mb_id'] ?>">
|
||||
<?php }else{ ?>
|
||||
<!-- hidden --><input type="hidden" id="update_mb_id" name="mb_id" value="<?php echo $member['mb_id'] ?>">
|
||||
<!-- hidden --><input type="hidden" id="dupl_check_yn" name="dupl_check_yn" value="Y" onclick="" style="width:250px; background-color:#dfe4ea "/>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<span class="important_msg h_6">영문+숫자 4~12자(영문으로 시작)</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th class="h_4">비밀번호<span class="important_msg">*</span></th>
|
||||
<td>
|
||||
<div class="password_wrap">
|
||||
<input type="password" name="mb_password" id="update_mb_password" <?php echo $required ?> class="frm_input full_input <?php echo $required ?>" minlength="3" maxlength="20" placeholder="비밀번호 입력">
|
||||
<input type="password" name="mb_password_re" id="update_mb_password_re" <?php echo $required ?> class="frm_input full_input <?php echo $required ?>" minlength="3" maxlength="20" placeholder="비밀번호 확인">
|
||||
</div>
|
||||
<span class="important_msg h_6">영문+숫자+특수기호 8자 이상</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th class="h_4">이름<span class="important_msg">*</span></th>
|
||||
<td>
|
||||
<div class="name_wrap">
|
||||
<input type="text" id="update_mb_name" name="mb_name" value="<?php echo get_text($member['mb_name']) ?>" <?php echo $required ?> <?php echo $name_readonly; ?> class="frm_input full_input <?php echo $required ?> <?php echo $name_readonly ?>" size="10" placeholder="이름 입력">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th class="h_4">이메일<span class="important_msg">*</span></th>
|
||||
<?php
|
||||
if($member['mb_email']){
|
||||
$mb_email_confirm = isset($member['mb_email'])?$member['mb_email']:'';
|
||||
if($mb_email_confirm!=""){
|
||||
$mb_email_temp = explode('@',$mb_email_confirm);
|
||||
$mb_email_domain = array_pop(explode('@',$mb_email_confirm));
|
||||
}
|
||||
|
||||
$array_domain = array('naver.com','gmail.com','daum.net' ,'hanmail.net','nate.com' ,'hotmail.com' ,'yahoo.com');
|
||||
$exist_domain = false;
|
||||
if (stripos(json_encode($array_domain),$mb_email_domain) !== false) {
|
||||
$exist_domain = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<td>
|
||||
<div class="email_wrap">
|
||||
<!-- <input type="hidden" name="old_email" value="<?php //echo $member['mb_email'] ?>">
|
||||
<input type="text" name="mb_email" value="<?php //echo isset($member['mb_email'])?$member['mb_email']:''; ?>" id="reg_mb_email" required class="frm_input email full_input required" size="70" maxlength="100" placeholder="이메일 입력"> -->
|
||||
<input type="text" id="update_mb_email1" name="mb_email1" value="<?php echo $mb_email_temp[0]; ?>" required class="frm_input email full_input required" size="50" maxlength="100" placeholder="메일입력" autocomplete="off">
|
||||
<div>
|
||||
<span>@</span>
|
||||
</div>
|
||||
<input type="text" id="update_domain2" value="<?php echo $mb_email_domain; ?>" placeholder="직접 입력" style="<?php echo $exist_domain===false?"display:block":"display:none"; ?>" required>
|
||||
<select name="mb_email2" id="update_mb_email2" onchange="PG_changeSelect1(this);">
|
||||
<option value="@naver.com" <?php echo "@".$mb_email_domain=="@naver.com"?"selected":""; ?> >naver.com</option>
|
||||
<option value="@gmail.com" <?php echo "@".$mb_email_domain=="@gmail.com"?"selected":""; ?> >gmail.com</option>
|
||||
<option value="@daum.net" <?php echo "@".$mb_email_domain=="@daum.net"?"selected":""; ?> >daum.net</option>
|
||||
<option value="@hanmail.net" <?php echo "@".$mb_email_domain=="@hanmail.net"?"selected":""; ?> >hanmail.net</option>
|
||||
<option value="@nate.com" <?php echo "@".$mb_email_domain=="@nate.com"?"selected":""; ?> >nate.com</option>
|
||||
<option value="@hotmail.com" <?php echo "@".$mb_email_domain=="@hotmail.com"?"selected":""; ?> >hotmail.com</option>
|
||||
<option value="@yahoo.com" <?php echo "@".$mb_email_domain=="@yahoo.com"?"selected":""; ?> >yahoo.com</option>
|
||||
<option value="type" <?php echo $exist_domain===false?"selected":""; ?> type="text">직접입력</option>
|
||||
</select>
|
||||
<input type="hidden" name="mb_email" value="<?php echo isset($member['mb_email'])?$member['mb_email']:''; ?>" id="update_mb_email" size="50" maxlength="100">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="h_4">휴대전화번호<span class="important_msg">*</span></th>
|
||||
<td>
|
||||
<div class="phone_wrap">
|
||||
<input type="text" name="mb_hp" value="<?php echo preg_replace("/[^0-9]*/s", "", $member['mb_hp']); ?>" id="update_mb_hp" <?php echo $hp_required; ?> <?php echo $hp_readonly; ?> class="frm_input full_input <?php echo $hp_required; ?> <?php echo $hp_readonly; ?>" maxlength="20" placeholder="휴대폰 번호">
|
||||
<!-- <button type="button" onclick="" name="" class="cert_number">인증번호</button> -->
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- <tr class="code" style="display: none;">
|
||||
<th class="h_4">인증번호</th>
|
||||
<td>
|
||||
<div class="phone_wrap">
|
||||
<input type="text" placeholder="인증번호 입력" required>
|
||||
<span class="timer">03:00</span>
|
||||
<button type="button" onclick="" name="" class="check">확인</button>
|
||||
<button type="button " onclick="" name="" class="check complete" style="display: none;">인증완료</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr> -->
|
||||
|
||||
<tr>
|
||||
<th class="h_4">회사정보<span class="important_msg">*</span></th>
|
||||
<td>
|
||||
<div class="company_wrap">
|
||||
<input type="text" name="mb_comp" value="<?php echo get_text($member['mb_comp'])?>" id="update_mb_comp" size="70" class="frm_input" maxlength="100" placeholder="회사명 입력">
|
||||
<input type="text" name="mb_comp_team" value="<?php echo get_text($member['mb_comp_team'])?>" id="update_mb_comp_team" size="70" class="frm_input" maxlength="100" placeholder="부서명 입력">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!--//tbl_wrap-->
|
||||
<div class="btn_confirm">
|
||||
<button type="button" onclick="mypage02();" class="btn_cancel">취소</button>
|
||||
<button type="submit" id="btn_submit" class="btn_submit" >정보수정</button>
|
||||
</div>
|
||||
<div class="sign_out">
|
||||
<a href="javascript:member_leave();"><i class="signout"></i>회원 탈퇴하기</a>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
<!--//pop_join_right-->
|
||||
</div>
|
||||
<!--//popup_content-->
|
||||
</div>
|
||||
<!--//popup_in-->
|
||||
</div>
|
||||
<!--//popup_wrap-->
|
||||
<!-- <div class="join_btn_wrap">
|
||||
<button type="button" onclick="" name="" class="btn_cancel">취소</button>
|
||||
<button type="button" onclick="" name="" class="btn_regist">수정</button>
|
||||
</div>
|
||||
<div class="sign_out"><a href=""><i class="signout"></i>회원 탈퇴하기</a></div> -->
|
||||
<script>
|
||||
function PG_changeSelect1(p_list){
|
||||
if(p_list.value == 'type'){
|
||||
document.getElementById("update_domain2").style.display = "block";
|
||||
}else{
|
||||
document.getElementById("update_domain2").style.display = "none";
|
||||
}
|
||||
// if(p_list.value=='@naver.com'||p_list.value=='@gmail.com'||p_list.value=='@google.com'||p_list.value=='@hanmail.net'||p_list.value=='@nate.com'||p_list.value=='@kakao.com'){
|
||||
// document.getElementById("update_domain2").style.display = "none";
|
||||
// }else{
|
||||
// document.getElementById("update_domain2").style.display = "block";
|
||||
// }
|
||||
}
|
||||
|
||||
//이메일 직접입력 선택 시 값 초기화
|
||||
$("#update_mb_email2").change(function() {
|
||||
if($("#update_mb_email2").val() == "type"){
|
||||
$("#update_domain2").val('');
|
||||
// $(document).on('keyup','#email_direct',function(){
|
||||
// email();
|
||||
// });
|
||||
}
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user