회원정보 수정 할때 비밀번호 필드는 숨겨 놓기 > 그누보드5 팁자료실

그누보드5 팁자료실

회원정보 수정 할때 비밀번호 필드는 숨겨 놓기 정보

회원정보 수정 할때 비밀번호 필드는 숨겨 놓기

본문

테마/register_form.skin.php 파일을 수정

토글로 체크 하면 나오도록 보여주는 소스입니다.

 


<?php
if ($is_member)
{
?>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>

// function by welcome - @

$(function() {
  $("#pass_question").on("click",function() {
    $(".answer").toggle(this.checked);
  });
});

</script>
<style>

.answer { display:none }

</style>
 

<tr class="question">
  <label for="pass_question">비밀번호 변경하시겠습니까?</label>
  <input id="pass_question" type="checkbox" name="pass_question" value="1" />
  <span class="item-text">Yes</span>
</tr>


<tr class="answer">
    <th scope="row"><label for="reg_mb_password">비밀번호<strong class="sound_only">필수</strong></label></th>
            <td><input type="password" name="mb_password" id="reg_mb_password" <?php echo $required ?> class="frm_input <?php echo $required ?>" minlength="3" maxlength="20"></td>
        </tr>
<tr class="answer">
    <th scope="row"><label for="reg_mb_password_re">비밀번호 확인<strong class="sound_only">필수</strong></label></th>
    <td><input type="password" name="mb_password_re" id="reg_mb_password_re" <?php echo $required ?> class="frm_input <?php echo $required ?>" minlength="3" maxlength="20"></td>
</tr>




 

<?php
}
else
{
?>
        <tr>
            <th scope="row"><label for="reg_mb_password">비밀번호<strong class="sound_only">필수</strong></label></th>
            <td><input type="password" name="mb_password" id="reg_mb_password" <?php echo $required ?> class="frm_input <?php echo $required ?>" minlength="3" maxlength="20"></td>
        </tr>
        <tr>
            <th scope="row"><label for="reg_mb_password_re">비밀번호 확인<strong class="sound_only">필수</strong></label></th>
            <td><input type="password" name="mb_password_re" id="reg_mb_password_re" <?php echo $required ?> class="frm_input <?php echo $required ?>" minlength="3" maxlength="20"></td>
        </tr>
<?php
}
?>
추천
1

댓글 0개

전체 2,431 |RSS
그누보드5 팁자료실 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT