| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <?php
- if(!isset($back_url)) {
- $back_url = "";
- }
- ?>
- <?php include_once($_SERVER['DOCUMENT_ROOT'].'/m/inc/inc_top.php'); ?>
- <header>
- <div class="header--wrapper">
- <div class="header--contents">
- <?php if($HEADER_LOC != 'main' ){?>
- <div class="sub--title btn--wrap">
- <?php if($show_btn_back) {?>
- <button type="button" class="back--btn" id="btn_header_back"></button>
- <?php }else { ?>
- <button type="button" class="back--btn" style='background:none;' disabled></button>
- <?php } ?>
- <h2><?=$nav_title?></h2>
- </div>
- <?php }else{?>
- <h1 class="logo"></h1>
- <?php }?>
- <div class="hmb--btn"></div>
- </div>
- </div>
- </header>
- <aside>
- <button class="close--btn"></button>
- <div class="log--msg">
- <?php
- if(!empty($_SESSION['s_cd_userid'])){
- ?>
- <div class="thumb on"></div>
- <h2><strong><?=$_SESSION['s_nm_name']?></strong>님 환영합니다.</h2>
- <?php }else{?>
- <div class="thumb"></div>
- <h2 id="btn_aside_login"><strong>로그인</strong>후 확인하세요<i class="arrow--right"></i></h2>
- <?php }?>
- </div>
- <div class="gnb--wrapper">
- <a href="/m/company/company.php" class="<?if($MENU_ACTV == 1){?>actv<?}?>">이차조아란?</a>
- <a href="/m/sell/search.php" class="<?if($MENU_ACTV == 2){?>actv<?}?>">내차 사고이력 조회</a>
- <a href="/m/customer/notice_list.php" class="<?if($MENU_ACTV == 3){?>actv<?}?>">공지사항</a>
- <a href="/m/customer/faq.php" class="<?if($MENU_ACTV == 3){?>actv<?}?>">FAQ</a>
- <a href="/m/customer/qna.php" class="<?if($MENU_ACTV == 3){?>actv<?}?>">QNA</a>
- <?php
- if(!empty($_SESSION['s_cd_userid'])){
- ?>
- <a href="/m/member/standby_list.php" class="<?php if($MENU_ACTV == 4){?>actv<?}?>">입찰대기</a>
- <a href="/m/member/prepare_list.php" class="<?php if($MENU_ACTV == 5){?>actv<?}?>">입찰중</a>
- <a href="/m/member/underway_list.php" class="<?php if($MENU_ACTV == 6){?>actv<?}?>">거래중</a>
- <a href="/m/member/end_list.php" class="<?php if($MENU_ACTV == 7){?>actv<?}?>">판매완료</a>
- <a href="/m/member/fail_list.php" class="<?php if($MENU_ACTV == 8){?>actv<?}?>">유찰</a>
- <!-- <a href="#" class="<?php if($MENU_ACTV == 7){?>actv<?}?>">내차 사고이력 조회</a> -->
- <a href="/m/member/mypage.php" class="<?php if($MENU_ACTV == 9){?>actv<?}?>">마이페이지</a>
- <a ___href="/m/member/logout.php" id="btn_aside_logout" class="login--out"><i class="logout--ic"></i>로그아웃</a>
- <?php }else{?>
- <a href="/m/member/join.php" class="<?if($MENU_ACTV == 3){?>actv<?}?>">회원가입</a>
- <a href="/m/member/login.php" class="<?if($MENU_ACTV == 3){?>actv<?}?>">로그인</a>
- <?php }?>
- </div>
- </aside>
- <script>
- var back_url = "<?=$back_url?>";
- $(function() {
- $("#btn_header_back").on("click", function() {
- if($.trim(back_url) == "") {
- history.back(-1);
- }else {
- link(back_url);
- }
- });
- $("#btn_aside_login").on("click", function() {
- link("/m/member/login.php");
- });
- $("#btn_aside_logout").on("click", function() {
- setLogout();
- link("/m/member/logout.php");
- });
- })
- </script>
|