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


    
// 사용자 화면 우측과 하단을 담당하는 페이지입니다.
// 우측, 하단 화면을 꾸미려면 이 파일을 수정합니다.
?>



</div><!--/#wrap .span-->
</div><!--/row-->

<hr/>

<footer>
    <a href="<?php echo $g4['url'] ?>?from=mobile">PC버전</a>,
    <a href="#">이용약관</a>,
    <a href="#">개인정보취급방침</a>,
    <a href='<?php echo $g4['url'] ?>/m/G4mob-debug-unaligned.apk'>앱데모</a>

    <address class="cr">&copy; <a href="#">G4Mobile</a></address>
</footer>
<!-- 좌측슬라이드 메뉴 -->
<nav id="navigations">
    <ul>
        <li>
            <div style="padding: 30px">
                <form action="<?php echo $g4['g4m_bbs_path'] ?>/search.php" name="fsearchbox" method="get" class="form-horizontal" role="form">
                    <input type="hidden" name="sfl" value="wr_subject||wr_content"/>
                    <input type="hidden" name="sop" value="and"/>
                    <input type="hidden" value="m" name="where"/>
                    <input type="hidden" value="mtp_hty" name="sm"/>
                    <div class="form-group">
                        <label class="sr-only" for="autocomplete_input">검색</label>
                        <input type="text" value="" title="검색어 입력" class="form-control" name="stx" id="autocomplete_input" placeholder="검색어 입력" style="margin-bottom: 5px"/>
                        <button type="submit" class="btn btn-primary btn-aw-100">검색</button>
                    </div>
                </form>
            </div>
        </li>
        <li><a href="<?php echo $g4['g4m_path'] ?>">Home</a></li>
        <li><a href="<?php echo $g4['g4m_bbs_path'] ?>/new.php">최신게시물</a></li>

        
        <?php
            //관리자 그룹 설정 첫번째 추가필드gr_1 를 정렬에 사용한다.
            $hide_group = ""; //출력하지 않을 그룹 id 입력, 여러 그룹일 경우 쉼표(,)로 구분
            echo group_menu($hide_group, 'sidemenu');
        ?>
    </ul>
</nav>

<!-- 우측슬라이드 메뉴 -->
<nav id="menu-right">
    <ul>
        
        <?php if ($is_admin) { ?>
            <li><a href="<?php echo $g4['g4m_admin_path'] ?>">&middot; Admin</a></li>
        <?php } ?>
        <?php if ($is_member) { ?>
            <li><a href="<?php echo $g4['g4m_bbs_path'] ?>/memo.php">&middot; 쪽지</a></li>
            <!-- <li><a href="<?php echo $g4['g4m_path'] ?>/bbs/member_confirm.php?url=register_form.php">정보수정</a></li> -->
        <?php } ?>
        <?php if ($is_member) { ?>
        <li><a href="<?php echo $g4['g4m_bbs_path'] ?>/member_confirm.php?url=register_form.php">&middot; 정보수정</a></li>
        <li><a href="<?php echo $g4['g4m_bbs_path'] ?>/logout.php">&middot; 로그아웃</a></li>
        <?php } else { ?>
        <li><a href='<?php echo $g4['g4m_bbs_path'] ?>/login.php?url=<?php echo urlencode($_SERVER['REQUEST_URI']) ?>' class="submenu">&middot; 로그인</a>
            <li><a href='<?php echo $g4['g4m_bbs_path'] ?>/register.php' class="submenu">&middot; 가입</a>
        <?php } ?>

    </ul>
</nav>
</div><!--/.fluid-container-->

</div><!-- //wrapper -->
<?php
include_once "{$g4['g4m_path']}/tail.sub.php";