<?php
if (!defined("_GNUBOARD_")) exit;
?>
 

            
        <!-- //컨텐츠 영역 -->

            <!-- tail.php -->    
        </div><!--/span-->
        <!-- //우측 컨텐츠 블럭 -->

    </div><!--/row-->

    <hr>

    <footer>
        <p>&copy; Company 2013</p>
    </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>
            <?php 
                foreach($amenu as $key=>$value){
                    $href1 = $href2 = "";
                    if ($menu["menu{$key}"][0][2]){
                        $href1 = "<a href='".$menu["menu{$key}"][0][2]."'>";
                        $href2 = "</a>";
                    }
                    //print_r2($menu["menu{$key}"]);
                    echo "<li><a href=\"#\" class='Label'>".$menu["menu{$key}"]['0']['1'] ."</a>";
                    echo "<ul>";
                    echo view_menu1("menu{$key}", 1);
                    echo "</ul></li>";
                }
            ?>
        </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?t=<?php sk_nocache();?>">&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><!--/.container-->
</div> <!--#page-->
<!-- <p>실행시간 : <?php echo get_microtime() - $begin_time;?> -->
<script type='text/javascript' src='<?php echo $g4['g4m_admin_path']?>/admin.js'></script>
<?php
include_once "{$g4['g4m_path']}/tail.sub.php";
?>