<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

?>
<link rel="stylesheet" href="<?php echo $outlogin_skin_url;?>/style.css">
<!-- 로그인 후 아웃로그인 시작 { -->
<div class="card border-danger mb-3">
  <div class="card-header bg-danger text-white text-center border-danger">
    <h6>나의 회원정보</h6>
  </div>
  <div class="card-body text-success">
    <div class="row">
      <div id="ol_after_hd" class="col-md-3 text-center">
        <span class="profile_img">
            <?php echo get_member_profile_img($member['mb_id']); ?>
            <a href="<?php echo G5_BBS_URL ?>/member_confirm.php?url=register_form.php" id="ol_after_info" title="정보수정"><i class="fa fa-cog" aria-hidden="true"></i><span class="sr-only">정보수정</span></a>
        </span>
      </div>
      <div class="col-md-9 text-center">
        <h6 class="pb-2"><strong><?php echo $nick ?>님</strong></h6>
        <a href="<?php echo G5_BBS_URL ?>/logout.php" id="ol_after_logout" class="btn btn-default btn-sm border">로그아웃</a>
        <?php if ($is_admin == 'super' || $is_auth) {  ?><a href="<?php echo G5_ADMIN_URL ?>" class="btn btn-danger btn-sm">관리자</a><?php }  ?>
      </div>
      </div>
  </div>
  <div class="card-footer bg-transparent border-danger">
    <div class="row">
      <div class="col-md-4 border-right text-center">
              <a href="<?php echo G5_BBS_URL ?>/memo.php" target="_blank" id="ol_after_memo" class="win_memo">
                   <span class="sr-only">안 읽은 </span>쪽지<br>
                  <strong><i class="fa fa-envelope-o" aria-hidden="true"></i> <?php echo $memo_not_read ?></strong>
              </a>
      </div>
      <div class="col-md-4 text-center">
              <a href="<?php echo G5_BBS_URL ?>/point.php" target="_blank" id="ol_after_pt" class="win_point">
                   포인트<br>
                  <strong><i class="fa fa-database" aria-hidden="true"></i> <?php echo $point ?></strong>
              </a>
      </div>
      <div class="col-md-4 border-left text-center">
              <a href="<?php echo G5_BBS_URL ?>/scrap.php" target="_blank" id="ol_after_scrap" class="win_scrap">스크랩<br>
              <strong class="scrap"><i class="fa fa-thumb-tack" aria-hidden="true"></i></strong>
              </a>

      </div>
    </div>
  </div>
</div>

<script>
// 탈퇴의 경우 아래 코드를 연동하시면 됩니다.
function member_leave()
{
    if (confirm("정말 회원에서 탈퇴 하시겠습니까?"))
        location.href = "<?php echo G5_BBS_URL ?>/member_confirm.php?url=member_leave.php";
}
</script>
<!-- } 로그인 후 아웃로그인 끝 -->
