에티테마

로고를 하단으로 조금 내리고 싶습니다.

페이지 정보

작성자 no_profile 안영균 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 댓글 0건 작성일 20-03-23 17:15

본문

2c38272a5a308858f994e18202b13cb3_1584951327_73.jpg


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

if (G5_IS_MOBILE) {
    include_once(G5_THEME_MOBILE_PATH.'/head.php');
    return;
}

include_once(G5_THEME_PATH.'/head.sub.php');
include_once(G5_LIB_PATH.'/latest.lib.php');
include_once(G5_LIB_PATH.'/outlogin.lib.php');
include_once(G5_LIB_PATH.'/poll.lib.php');
include_once(G5_LIB_PATH.'/visit.lib.php');
include_once(G5_LIB_PATH.'/connect.lib.php');
include_once(G5_LIB_PATH.'/popular.lib.php');

if($bo_table) {
 $E_bo = sql_fetch("SELECT * FROM g5_board where bo_table ='$bo_table'");
}
// 오늘 새글
function bo_count($bo){
 $cnt = 0;
 foreach (func_get_args() as $bo) {
  $table = "g5_write_".$bo;
  $sql = "select count(*) cnt from $table where wr_datetime >= CURRENT_DATE() and wr_is_comment=0";
  $row = sql_fetch($sql);
  $cnt += $row['cnt'];
 }
 return $cnt;;
}
?>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-------------------------- 네비게이션 -------------------------->
<div class="container-fluid top-line fixed-header">
 <div class="container">
  <div class="row">
   <div class="col-md-12">
    <div id="tnb-left">
     <!-- social -->
     <div class="sns_icon">
     <a href="https://www.facebook.com/leejongo" target="_blank"><i class="fab fa-facebook-f"></i></a>
     </div>
     <div class="sns_icon">
     <a href="#"><i class="fab fa-twitter"></i></a>
     </div>
     <div class="sns_icon">
     <a href="https://www.instagram.com/site_developer" target="_blank"><i class="fab fa-instagram"></i></a>
     </div>
    </div>
    <div id="tnb">
     <ul>
     <?php if($is_member) { ?>
      <li><a href="<?php echo G5_URL?>/bbs/logout.php">로그아웃</a></li>
      <li><a href="<?php echo G5_BBS_URL ?>/member_confirm.php?url=<?php echo G5_BBS_URL ?>/register_form.php">정보수정</a></li>
     <?php }else{ ?>
      <li><a href="<?php echo G5_URL?>/bbs/register.php"><i class="fa fa-user-plus" aria-hidden="true"></i> 회원가입</a></li>
      <li><a href="<?php echo G5_URL?>/bbs/login.php"><i class="fas fa-sign-in-alt"></i> 로그인</a></li>
     <?php }?>
      <li><a href="<?php echo G5_URL?>/bbs/faq.php"><i class="fa fa-question" aria-hidden="true"></i> <span>FAQ</span></a></li>
      <li><a href="<?php echo G5_URL?>/bbs/qalist.php"><i class="fa fa-comments" aria-hidden="true"></i> <span>1:1문의</span></a></li>
      <li><a href="<?php echo G5_URL?>/bbs/current_connect.php" class="visit"><i class="fa fa-users" aria-hidden="true"></i> <span>접속자</span><strong class="visit-num">
      1</strong></a></li>
      <li><a href="<?php echo G5_URL?>/bbs/new.php"><i class="fa fa-history" aria-hidden="true"></i> <span>새글</span></a></li>
      <?php if($is_admin) { ?>
      <li><a href="<?php echo G5_URL?>/adm">관리자</a></li>
      <?php } ?>
     </ul>
    </div>
   </div><!-- /col -->
  </div><!-- /row -->
 </div><!-- /container -->
</div>

<nav class="navbar fixed-top navbar-expand-lg navbar-white bg-white fixed-top">
  <div class="container">
<div class="container">
    <div id="hd_wrapper">
<div id="logo">
<img src="<?php echo G5_IMG_URL ?>/img/dlogo.png" alt="<?php echo $config['cf_title']; ?>"></a>
</div>
</div> <div class="container">
 <button class="navbar-toggler navbar-dark navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
   <span class="navbar-toggler-icon"></span>
 </button>
 <div class="collapse navbar-collapse" id="navbarResponsive" data-hover="dropdown" data-animations="fadeIn fadeIn fadeInUp fadeInRight">
   <ul class="navbar-nav ml-auto">
  <?php
  $sql = " select *
     from {$g5['menu_table']}
     where me_use = '1'
       and length(me_code) = '2'
     order by me_order, me_id ";
  $result = sql_query($sql, false);
  $gnb_zindex = 999; // gnb_1dli z-index 값 설정용
  $menu_datas = array();
  for ($i=0; $row=sql_fetch_array($result); $i++) {
   $menu_datas[$i] = $row;

   $sql2 = " select *
      from {$g5['menu_table']}
      where me_use = '1'
        and length(me_code) = '4'
        and substring(me_code, 1, 2) = '{$row['me_code']}'
      order by me_order, me_id ";
   $result2 = sql_query($sql2);
   for ($k=0; $row2=sql_fetch_array($result2); $k++) {
    $menu_datas[$i]['sub'][$k] = $row2;
   }
  }
  $i = 0;
  foreach( $menu_datas as $row ){
   if( empty($row) ) continue;
  ?>   
   <?php if($row['sub']['0']) { ?>
    <li class="nav-item dropdown">
     <a class="nav-link dropdown-toggle en2 f16" href="<?php echo $row['me_link']; ?>" id="navbarDropdownBlog" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" target="_<?php echo $row['me_target']; ?>">
     <?php echo $row['me_name'] ?>
     </a>
      <!-- 서브 -->
      <ul class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownPortfolio">
       <?php
       // 하위 분류
       $k = 0;
       foreach( (array) $row['sub'] as $row2 ){

       if( empty($row2) ) continue;

       ?>
       <a class="dropdown-item ko1 f15 fw4" href="<?php echo $row2['me_link']; ?>" target="_<?php echo $row2['me_target']; ?>"><?php echo $row2['me_name'] ?></a>

       <?php
       $k++;
       }   //end foreach $row2

       if($k > 0)
       echo '</ul>'.PHP_EOL;
       ?>
   <?php }else{?>
    <li class="nav-item">
    <a class="nav-link en2 f16" href="<?php echo $row['me_link']; ?>" target="_<?php echo $row['me_target']; ?>"><?php echo $row['me_name'] ?></a>
    </li>
   <?php }?>
  </li>

  <?php
  $i++;
  }   //end foreach $row

  if ($i == 0) {  ?>
   <li class="gnb_empty">메뉴 준비 중입니다.<?php if ($is_admin) { ?> <br><a href="<?php echo G5_ADMIN_URL; ?>/menu_list.php">관리자모드 &gt; 환경설정 &gt; 메뉴설정</a>에서 설정하실 수 있습니다.<?php } ?></li>
  <?php } ?>
  <li class="nav-item dropdown login">
    <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownBlog" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
   LOGIN
    </a>
    <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownBlog">
   
   <?php if($is_admin) { ?><a class="dropdown-item" href="<?php echo G5_URL?>/adm">관리자</a><?php } ?>
   <a class="dropdown-item" href="<?php echo G5_URL?>/bbs/new.php">새글</a>
   <a class="dropdown-item" href="<?php echo G5_URL?>/bbs/qalist.php">1:1문의</a>
   <?php if($is_member) { ?>
   <a class="dropdown-item" href="<?php echo G5_BBS_URL ?>/member_confirm.php?url=<?php echo G5_BBS_URL ?>/register_form.php">정보수정</a>
   <a class="dropdown-item" href="<?php echo G5_URL?>/bbs/logout.php">로그아웃</a>
   <?php }else{ ?>
   <a class="dropdown-item" href="<?php echo G5_URL?>/bbs/login.php">로그인</a>
   <a class="dropdown-item" href="<?php echo G5_URL?>/bbs/register.php">회원가입</a>
   <?php } ?>
    </div>
  </li>
   </ul>
 </div>
  </div>
</nav>

<!-------------------------- /네비게이션 -------------------------->
<?php if($bo_table) { ?>
 <div class="ety-mt"></div>
    <div class="container">
      <h1 class="mt-4 mb-3">
        <small><?php echo $E_bo['bo_subject']?></small>
      </h1>
      <ol class="breadcrumb">
        <li class="breadcrumb-item">
          <a href="<?php echo G5_URL?>">Home</a>
        </li>
        <li class="breadcrumb-item active"><?php echo $E_bo['bo_subject']?></li>
      </ol>
      <div class="row">
        <div class="col-lg-3 mb-4">
          <div class="list-group">
            <a href="<?php echo G5_URL?>" class="list-group-item">Home</a>
   <a href="<?php echo G5_URL?>/bbs/board.php?bo_table=notice" class="list-group-item<?php if($bo_table == "notice") echo " active";?>">공지사항</a>
   <a href="<?php echo G5_URL?>/bbs/board.php?bo_table=free" class="list-group-item<?php if($bo_table == "free") echo " active";?>">게시판 스킨 1</a>
   <a href="<?php echo G5_URL?>/bbs/board.php?bo_table=free_responsive" class="list-group-item<?php if($bo_table == "free_responsive") echo " active";?>">게시판 스킨 2</a>
   <a href="<?php echo G5_URL?>/bbs/board.php?bo_table=free_scroll" class="list-group-item<?php if($bo_table == "free_scroll") echo " active";?>">게시판 스킨 3</a>
   <a href="<?php echo G5_URL?>/bbs/board.php?bo_table=gallery" class="list-group-item <?php if($bo_table == "gallery") echo " active";?>">포트폴리오</a>
            <a href="<?php echo G5_URL?>/bbs/qalist.php" class="list-group-item">Custom</a>
   <a href="<?php echo G5_URL?>/bbs/faq.php" class="list-group-item">FAQ</a>
          </div>
        </div>
        <div class="col-lg-9 mb-4">
<?php }?>
[/code]

  • 트위터로 보내기
  • 페이스북으로 보내기
  • 구글플러스로 보내기

댓글목록

등록된 댓글이 없습니다.

Total 1,243건 38 페이지
질문답변 목록
번호 제목 날짜
133
시간 : 03-26
03-26
132
시간 : 03-25
03-25
131
시간 : 03-25
03-25
130
시간 : 03-26
03-26
129
시간 : 03-25
03-25
128
시간 : 03-25
03-25
127
시간 : 03-24
03-24
126
시간 : 03-25
03-25
125
시간 : 03-24
03-24
124
시간 : 03-24
03-24
123
시간 : 03-25
03-25
열람중
시간 : 03-23
03-23
121
시간 : 03-23
03-23
120
시간 : 03-20
03-20
119
시간 : 03-22
03-22
118
시간 : 03-22
03-22
117
시간 : 03-23
03-23
116
시간 : 03-20
03-20
115
시간 : 03-20
03-20
114
시간 : 03-20
03-20
113
시간 : 03-20
03-20
112
시간 : 03-16
03-16
111
시간 : 03-16
03-16
110
시간 : 03-15
03-15
109
시간 : 03-11
03-11
108
시간 : 03-11
03-11
107
시간 : 03-10
03-10
106
시간 : 03-09
03-09
105
시간 : 03-09
03-09
104
시간 : 03-09
03-09
게시물 검색

카테고리

카테고리
질문답변
 메뉴얼