<?
require_once ("./static_data/admin_menu.php");

# session 정보
$SES_ADM_NAME 		= $this->session->userdata('Adm_Name');
$SES_ADM_LAST_LOGIN = $this->session->userdata('Adm_Last_Login');

$top_menu       	= $this->uri->segment(4);
$top_img = '';
if($admin_logo=='') {
	$top_img = '/img/admin/main_logo.gif';
} else {
	$top_img = $admin_logo;
}


?>


<div class="tablet_header">
    <div id="header">
        <div class="logo">
            <a href="/admin/main"><img src="<?=$top_img?>" width="100"></a>
       </div>
           <ul class="utilmenu">
               <li><?=$SES_ADM_NAME?>님 환영합니다<a href="/admin/admin_member/member_edit">정보수정</a></li>
               <li>최근 접속일 <?=$SES_ADM_LAST_LOGIN?><a href='/admin/login/logout_proc'>로그아웃</a></li>
           </ul>
           <a href="#;" class="bars">
           <i class="b1 fa fa-2x fa-bars"></i>
           <i class="a1 fa fa-2x fa-angle-right" style="display:none;"></i>
           </a>
        <dl class="skip hid">
            <dt>스킵메뉴</dt>
            <dd><a href="#container">본문 바로가기</a></dd>
            <dd><a href="#gnb">메인메뉴 바로가기</a></dd>
        </dl>

    </div>

    <div id="tablet_wrap" class="moving_all">
        <a href="#;" class="push"></a>
        <div class="m_gnb_wrap">
            <ul id="tablet_gnb" class="clearfix">

				<? 	foreach ($arr_menu1 as $key=>$val) {
						$menu_css = '';
						if($top_menu == $key) {
							$menu_css=' class="onar"';
						}
					?>
                    <li id="top_menu<?=$key?>">
						<a href="<?=$val['menu_url']?>" <?=$menu_css?>><i class="fa fa-<?=$val['menu_icon']?>"></i><?=$val['menu_name']?></a>
							<ul class="depth2 clearfix">
				<?		if(!empty($arr_menu2[$key])) {

                foreach ($arr_menu2[$key] as $key2=>$val2) {


				    ?>
								<li><a href="<?=$val2['menu_url']?>" id="left_menu<?=$key?>_<?=$key2?>">-<?=$val2['menu_name']?></a></li>

				<?		}}?>
							</ul>
						  </li>
				<?	}?>

            </ul>
            <!--tablet_gnb-->
        </div>
        <!--m_gnb_wrap-->
    </div>
    <!--tablet_wrap-->
</div>
<!--tablet_header-->

<script>
$("#top_menu<?=$top_menu?>").find(".depth2").show();

</script>