| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <?php
- if(!isset($back_url)) {
- $back_url = "";
- }
- if(!isset($show_btn_back) || empty($show_btn_back)) {
- $show_btn_back = false;
- }
- ?>
- <?php include_once($_SERVER['DOCUMENT_ROOT']."/m/sa/include/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" id="btn_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_staff_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="sell_init.php" class="<?php if($MENU_ACTV == 1){?>actv<?}?>">차량 판매하기</a>
- <?php if(!empty($_SESSION['s_staff_userid'])) { ?>
- <a href="standby_list.php" class="<?php if($MENU_ACTV == 2){?>actv<?}?>">입찰대기</a>
- <a href="prepare_list.php" class="<?php if($MENU_ACTV == 3){?>actv<?}?>">입찰중</a>
- <a href="underway_list.php" class="<?php if($MENU_ACTV == 4){?>actv<?}?>">거래중</a>
- <a href="end_list.php" class="<?php if($MENU_ACTV == 5){?>actv<?}?>">판매완료</a>
- <a href="fail_list.php" class="<?php if($MENU_ACTV == 6){?>actv<?}?>">유찰</a>
- <!-- <a href="#" class="<?php if($MENU_ACTV == 7){?>actv<?}?>">내차 사고이력 조회</a> -->
- <a href="mypage.php" class="<?php if($MENU_ACTV == 8){?>actv<?}?>">마이페이지</a>
- <a ___href="logout.php" class="login--out" id="btn_aside_logout"><i class="logout--ic"></i>로그아웃</a>
- <?php }else { ?>
- <a href="login.php" class="login--out"><i class="login--ic"></i>로그인</a>
- <a href="join.php" class="login--out"><i class="join--ic"></i>회원가입</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_logo").on("click", function() {
- link("/m/sa/main.php");
- })
- $("#btn_aside_login").on("click", function() {
- link("/m/sa/login.php");
- });
- $("#btn_aside_logout").on("click", function() {
- setLogout();
- link("/m/sa/logout.php");
- });
- })
- </script>
|