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

?>
<link rel="stylesheet" href="<?php echo $member_skin_url;?>/style.css">
<!-- 쪽지 보내기 시작 { -->
<div id="memo_write" class="new_win">
    <h1 id="win_title"><i class="fa fa-envelope-o" aria-hidden="true"></i> 쪽지 보내기</h1>
    <div class="new_win_con">
        <ul class="win_ul">
            <li><a href="./memo.php?kind=recv">받은쪽지</a></li>
            <li><a href="./memo.php?kind=send">보낸쪽지</a></li>
            <li class="selected"><a href="./memo_form.php">쪽지쓰기</a></li>
        </ul>

        <form name="fmemoform" action="<?php echo $memo_action_url; ?>" onsubmit="return fmemoform_submit(this);" method="post" autocomplete="off" class="form">
        <div class="form_01">
            <h2 class="sr-only">쪽지쓰기</h2>
            <ul>
                <li class="mt-2">
                    <label for="me_recv_mb_id" class="sr-only">받는 회원아이디<strong>필수</strong></label>

                    <input type="text" name="me_recv_mb_id" value="<?php echo $me_recv_mb_id ?>" id="me_recv_mb_id" required class="form-control" placeholder="받는 회원아이디">
                    <span class="frm_info">여러 회원에게 보낼때는 컴마(,)로 구분하세요.</span>
                    <?php if ($config['cf_memo_send_point']) { ?>
                    <br ><span class="frm_info">쪽지 보낼때 회원당 <?php echo number_format($config['cf_memo_send_point']); ?>점의 포인트를 차감합니다.</span>
                    <?php } ?>
                </li>
                <li class="mt-2 mb-2">
                    <label for="me_memo" class="sr-only">내용</label>
                    <textarea name="me_memo" id="me_memo" required class="form-control"><?php echo $content ?></textarea>
                </li>
                <li>
                    <span class="sr-only">자동등록방지</span>

                    <?php echo captcha_html(); ?>

                </li>
            </ul>
        </div>

        <div class="text-right mt-3">
            <input type="submit" value="보내기" id="btn_submit" class="btn btn-primary btn-sm">
            <button type="button" onclick="window.close();" class="btn btn-default border btn-sm">창닫기</button>
        </div>
    </div>
    </form>
</div>

<script>
function fmemoform_submit(f)
{
    <?php echo chk_captcha_js();  ?>

    return true;
}
</script>
<!-- } 쪽지 보내기 끝 -->
