header.php 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?php
  2. if(!isset($back_url)) {
  3. $back_url = "";
  4. }
  5. if(!isset($show_btn_back) || empty($show_btn_back)) {
  6. $show_btn_back = false;
  7. }
  8. ?>
  9. <?php include_once($_SERVER['DOCUMENT_ROOT']."/m/aap/include/top.php"); ?>
  10. <header>
  11. <div class="header--wrapper">
  12. <div class="header--contents">
  13. <?if($HEADER_LOC != 'main' ){?>
  14. <div class="sub--title btn--wrap">
  15. <?php if($show_btn_back) {?>
  16. <button type="button" class="back--btn" id="btn_header_back"></button>
  17. <?php }else { ?>
  18. <button type="button" class="back--btn" style='background:none;' disabled></button>
  19. <?php } ?>
  20. <h2><?=$nav_title?></h2>
  21. </div>
  22. <?}else{?>
  23. <h1 class="logo"></h1>
  24. <?}?>
  25. <div class="hmb--btn"></div>
  26. </div>
  27. </div>
  28. </header>
  29. <aside>
  30. <button class="close--btn"></button>
  31. <div class="log--msg">
  32. <?php if(!empty($_SESSION['s_cd_dealerid'])) { ?>
  33. <div class="thumb on"></div>
  34. <h2><strong><?=$_SESSION['s_nm_name']?></strong>님 환영합니다.</h2>
  35. <?php }else{?>
  36. <div class="thumb"></div>
  37. <h2 id="btn_aside_login"><strong>로그인</strong>후 확인하세요<i class="arrow--right"></i></h2>
  38. <?php }?>
  39. </div>
  40. <div class="gnb--wrapper">
  41. <!-- <a href="sell_car.php" class="<?if($MENU_ACTV == 1){?>actv<?}?>">차량 판매하기</a> -->
  42. <a href="standby_list.php" class="<?if($MENU_ACTV == 1){?>actv<?}?>">입찰대기</a>
  43. <a href="prepare_list.php" class="<?if($MENU_ACTV == 2){?>actv<?}?>">입찰중</a>
  44. <a href="complete_list.php" class="<?if($MENU_ACTV == 3){?>actv<?}?>">낙찰</a>
  45. <a href="underway_list.php" class="<?if($MENU_ACTV == 4){?>actv<?}?>">거래중</a>
  46. <a href="end_list.php" class="<?if($MENU_ACTV == 5){?>actv<?}?>">매입완료</a>
  47. <a href="delay_list.php" class="<?if($MENU_ACTV == 6){?>actv<?}?>">거래연기</a>
  48. <a href="fail_list.php" class="<?if($MENU_ACTV == 7){?>actv<?}?>">유찰</a>
  49. <?php if(isset($_SESSION['s_aap_ds_type']) && !empty($_SESSION['s_aap_ds_type']) && $_SESSION['s_aap_ds_type'] == "D0") { ?>
  50. <a href="manager_list.php" class="<?if($MENU_ACTV == 9){?>actv<?}?>">관리자 관리</a>
  51. <?php } ?>
  52. <?php if(!empty($_SESSION['s_cd_dealerid'])) { ?>
  53. <a href="mypage.php" class="<?if($MENU_ACTV == 8){?>actv<?}?>">마이페이지</a>
  54. <a __href="logout.php" class="login--out" id="btn_aside_logout"><i class="logout--ic"></i>로그아웃</a>
  55. <?php } else {?>
  56. <a href="login.php" class="login--out"><i class="login--ic"></i>로그인</a>
  57. <?php } ?>
  58. <!-- <a href="#" class="<?if($MENU_ACTV == 7){?>actv<?}?>">내차 사고이력 조회</a> -->
  59. <!-- <a href="#" class="<?if($MENU_ACTV == 9){?>actv<?}?>">관리자 관리</a> -->
  60. </div>
  61. </aside>
  62. <script>
  63. var back_url = "<?=$back_url?>";
  64. $(function() {
  65. $("#btn_header_back").on("click", function() {
  66. if($.trim(back_url) == "") {
  67. history.back(-1);
  68. }else {
  69. link(back_url);
  70. }
  71. });
  72. $("#btn_aside_login").on("click", function() {
  73. link("/m/sa/login.php");
  74. });
  75. $("#btn_aside_logout").on("click", function() {
  76. setLogout();
  77. link("/m/aap/logout.php");
  78. });
  79. })
  80. </script>