
<?php
include_once "{$_SERVER['DOCUMENT_ROOT']}/common.inc.php";
include_once _SVC_INC_PATH_ ."/auth_check.php"; /* 권한 통합 코드 */
// 현재 날짜
$today = date('Y-m-d');
// 14일 후 날짜
$later = date('Y-m-d', strtotime('+14 days'));
// 달만
$month = date('Y-m');

//비회원 처리
//if( !$GLOBALS['_Umem']['member_id'] ) {
//    move_page(_SVC_URL_, $GLOBALS['_Auth_']['deny_view']);
//}

//접근 권한(조회) 불가 처리
if( !$GLOBALS['_Auth_']['menuObj']->hasMenuAuth("R", $GLOBALS['_Auth_']['cate_id']) ){
    hback($GLOBALS['_Auth_']['deny_view']);
}

$menu_hist = array();
if( $GLOBALS['_Auth_']['menuObj'] ){
    $menu_hist = $GLOBALS['_Auth_']['menuObj']->getMenuBrdcom($GLOBALS['_Auth_']['cate_id']);
}
if( $menu_hist ){
    $GLOBALS['_Menu_'] = array(
        "menu_code" => $menu_hist['cate_code'][count($menu_hist['cate_id'])-1],
        "menu_name" => $menu_hist['cate_name'][count($menu_hist['cate_id'])-1],
        "menu_class" => $menu_hist['cate_class'][count($menu_hist['cate_id'])-1],
        "menu_exp" => $menu_hist['cate_exp'][count($menu_hist['cate_id'])-1],
    );

}
?>


<!DOCTYPE html>
<html lang="kr">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="description" content="Member Login">
  <title>(주)한양공업 - <?=explode('.',$_SERVER['HTTP_HOST'])[0]?></title>

  <?php include _SVC_INC_PATH_ ."/header_common.php" ?>
  <!-- favicon 넣기 -->
</head>
<body>
  <!-- 헤더(로고, 홈-로그인 메뉴) -->
  <header>
    <div class="logo-container">
      <!-- 로고 이미지 -->
      <div class="logo-box" onclick="window.location.href = '/'">HANYANG INDUSTRIAL</div>
    </div>
    <!-- 홈-로그아웃 메뉴 -->
    <div class="status-menu">
      <ul>
        <li>
          <i class="bi bi-person-circle"></i>
          <?php echo $GLOBALS['_Umem']['member_name'].'('.$GLOBALS['_Umem']['member_id'].')' ?>
        </li>
        <li class="pw-change">
          비밀번호 변경
        </li>
        <li>
          <a href="/">HOME</a>
        </li>
        <li>
          <a href="javascript:" id="log_out_btn">로그아웃</a>
        </li>
      </ul>
    </div>
  </header>
  <!-- 헤더 종료 // -->