<?php
if (!defined('_GNUBOARD_')) {
    exit;
} // 개별 페이지 접근 불가
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="' . G5_THEME_CSS_URL . '/skin/mobile/asktheme.member.css">', 0);
?>
<div id="header" class="single-header">
    <div class="ask-row">
        <div class="ask-logo">
            <a href="/" class="ask-logo-link">
                <img src="<?php echo G5_THEME_URL ?>/img/ask-logo.png" width="127" height="27" class="ask-logo-img" title="">
            </a>
        </div>
    </div>
</div>
<div class="content-background"></div>
<div class="member-confirm-page row">
    <div class="small-12 medium-8 large-6 columns">
        <!-- 회원 비밀번호 확인 시작 { -->
        <div class="panel panel-default mdl-shadow--10dp">
            <div class="panel-header">
                <h1 class="panel-title"><?php echo $g5['title'] ?></h1>
            </div>    
            <div class="panel-body">
                <form name="fmemberconfirm" action="<?php echo $url ?>" onsubmit="return fmemberconfirm_submit(this);" method="post">
                    <input type="hidden" name="mb_id" value="<?php echo $member['mb_id'] ?>">
                    <input type="hidden" name="w" value="u">
                    <div class="row">
                        <div class="small-12 medium-8 large-6 center-field">
                            <input type="text" value="<?php echo $member['mb_id'] ?>" class="disabled" disabled="disable"/>
                        </div>
                        <div class="small-12 medium-8 large-6 center-field">
                            <input type="password" name="mb_password" id="confirm_mb_password" required class="required input" size="15" maxLength="20" placeholder="비밀번호">
                            <div class="help-text">
                                <strong>비밀번호를 한번 더 입력해주세요.</strong><br/>
                                <?php if ($url == 'member_leave.php') { ?>
                                    비밀번호를 입력하시면 회원탈퇴가 완료됩니다.
                                <?php } else { ?>
                                    회원님의 정보를 안전하게 보호하기 위해 비밀번호를 한번 더 확인합니다.
                                <?php } ?>
                            </div>
                        </div>
                        <div class="small-12 medium-8 large-6 center-field">
                            <input type="submit" value="확인" id="btn_submit" class="button float-right">
                        </div>
                    </div>
                </form>
            </div>
            <div class="panel-footer">
                <div class="button-group">
                    <a href="<?php echo G5_URL ?>" class="button"><i class="fa fa-reply"></i> 메인으로 돌아가기</a>
                </div>
            </div>
        </div>
    </div>

    <script type="text/javascript">
        function fmemberconfirm_submit(f) {
            document.getElementById("btn_submit").disabled = true;

            return true;
        }
    </script>
    <!-- } 회원 비밀번호 확인 끝 -->
</div>
