<?php
if (!defined('_GNUBOARD_')) {
    exit;
} // 개별 페이지 접근 불가
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="' . G5_THEME_CSS_URL . '/skin/asktheme.member.css">', 0);
include G5_THEME_PATH . "/head.php";
$active_form = 'active';
?>
<div class='page-wrap memoform-page'>
    <div class='page-title'>
        <h1><?php echo $g5['title'] ?></h1>
    </div>

    <div class='tab-wrap'>
        <ul class="tabs tab-header" id='tabs'>
            <li class='<?php echo $active_recv ?>'><a href="./memo.php?kind=recv">받은쪽지</a></li>
            <li class='<?php echo $active_send ?>'><a href="./memo.php?kind=send">보낸쪽지</a></li>
            <li class='<?php echo $active_form ?>'><a href="./memo_form.php">쪽지쓰기</a></li>
        </ul>
        <div class='tab-contents'>
            <form name="fmemoform" action="<?php echo $memo_action_url; ?>" onsubmit="return fmemoform_submit(this);" method="post" autocomplete="off">
                <div class='memo-form'>
                    <div class='row'>
                        <div class='small-12 medium-12 large-2 columns'><label for="me_recv_mb_id" class="middle">받는 회원아이디<strong class="sound-only">필수</strong></label></div>
                        <div class='small-12 medium-12 large-10 columns'>
                            <input type="text" name="me_recv_mb_id" value="<?php echo $me_recv_mb_id ?>" id="me_recv_mb_id" required class="input required" placeholder="받는분 회원아이디">
                            <span class="help-text">여러 회원에게 보낼때는 컴마(,)로 구분하세요.</span>
                        </div>
                    </div>
                    <div class='row'>
                        <div class='small-12 medium-12 large-2 columns'><label for="me_memo" class="middle">내용</label></div>
                        <div class='small-12 medium-12 large-10 columns'><textarea name="me_memo" id="me_memo" required class="textarea required" placeholder="내용입력"><?php echo $content ?></textarea></div>
                    </div>
                    <div class='row'>
                        <div class='small-12 medium-12 large-2 columns show-for-large'><label  class="middle">자동등록방지</label></div>
                        <div class='small-12 medium-12 large-10 columns'>
                            <?php
                            $captcha_html = ask_captcha_html();
                            echo $captcha_html;
                            ?>
                        </div>
                    </div>
                </div>
                <div class='form-action'>
                    <button type="submit" class="button"><i class="fa fa-paper-plane-o"></i> 보내기</button>
                </div>
            </form>
        </div>
    </div>
</div>
<script type="text/javascript">
    function fmemoform_submit(f)
    {
<?php echo chk_captcha_js(); ?>

        return true;
    }
</script>
<?php
include G5_THEME_PATH . "/tail.php";
