You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

105 lines
6.7 KiB

7 years ago
7 years ago
7 years ago
  1. <?php
  2. // CSS 파일과 JS파일 추가 (TRUE 옵션을 준경우 옵션을 주지않은경우보다 상위에 위치한다.)
  3. $this->site->add_css('//spoqa.github.io/spoqa-han-sans/css/SpoqaHanSans-kr.css', TRUE);
  4. $this->site->add_css('//fonts.googleapis.com/css?family=Roboto:400,100,700', TRUE);
  5. $this->site->add_css('https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css',TRUE);
  6. $this->site->add_css("/assets/css/admin.min.css", TRUE);
  7. $this->site->add_js('https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.4/jquery.min.js', TRUE);
  8. $this->site->add_js('https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js', TRUE);
  9. $this->site->add_js("/assets/js/admin.min.js", TRUE);
  10. ?>
  11. <script>var menuActive="<?=$this->active?>";</script>
  12. <div id="wrap" class="application">
  13. <div id="nav-bar">
  14. <a class="logo" href="<?=base_url('admin')?>">ADMINISTRATOR</a>
  15. <button class="btn-menu-toggle" type="button" class=""><i class="far fa-bars"></i></button>
  16. <a class="btn-logout" href="<?=base_url('members/logout')?>?reurl=<?=current_full_url()?>" title="사용자 로그아웃"><i class="far fa-sign-out"></i></a>
  17. </div>
  18. <div class="background-container">
  19. <div class="bg-1"></div>
  20. <div class="bg-2"></div>
  21. </div>
  22. <div id="content">
  23. <nav id="left-panel">
  24. <ul id="main-navigation">
  25. <li>
  26. <a href="#" class="parent"><i class="far fa-wrench"></i> 사이트 관리</a>
  27. <ul>
  28. <li data-active="management/popup"><a href="<?=base_url('admin/management/popup')?>">팝업 관리</a></li>
  29. <li data-active="management/banner"><a href="<?=base_url('admin/management/banner')?>">배너 관리</a></li>
  30. <li data-active="management/menu"><a href="<?=base_url('admin/management/menu')?>">메뉴 관리</a></li>
  31. <li data-active="management/faq"><a href="<?=base_url('admin/management/faq')?>">FAQ 관리</a></li>
  32. <li data-active="management/faq_setting"><a href="<?=base_url('admin/management/faq_setting')?>">FAQ 환경설정</a></li>
  33. </ul>
  34. </li>
  35. <li>
  36. <a href="#" class="parent"><i class="far fa-users"></i>&nbsp;회원 관리</a>
  37. <ul>
  38. <li data-active="members/lists"><a href="<?=base_url('admin/members/lists')?>">회원 목록</a></li>
  39. <li data-active="members/add"><a href="<?=base_url('admin/members/add')?>">회원 등록</a></li>
  40. <li data-active="members/log"><a href="<?=base_url('admin/members/log')?>">회원 로그인 기록</a></li>
  41. <?php if( $this->site->config('point_use') == 'Y' ) :?>
  42. <li data-active="members/points"><a href="<?=base_url('admin/members/points')?>"><?=$this->site->config('point_name')?> 관리</a></li>
  43. <?php endif;?>
  44. </ul>
  45. </li>
  46. <?php if(USE_BOARD OR IS_TEST) : ?>
  47. <li>
  48. <a href="#" class="parent"><i class="far fa-th-large"></i>&nbsp;게시판 관리</a>
  49. <ul>
  50. <li data-active="board/lists"><a href="<?=base_url('admin/board/lists')?>">게시판 관리</a></li>
  51. <li class="divider"></li>
  52. <?php
  53. $board_list = $this->db->select('B.brd_key,B.brd_title,BPN.new_cnt')->from('board AS B')->join('board_post_new AS BPN','BPN.brd_key=B.brd_key','left')->order_by('B.brd_title')->get()->result_array();
  54. foreach($board_list as $row): ?>
  55. <li data-active="board/<?=$row['brd_key']?>"><a href="<?=base_url('admin/board/posts/'.$row['brd_key'])?>"><?=$row['brd_title']?><?=$row['new_cnt']>0?" <span class='badge pull-right'>{$row['new_cnt']}</span>":''?></a></li>
  56. <?php endforeach;?>
  57. </ul>
  58. </li>
  59. <?php endif;?>
  60. <li>
  61. <a href="#" class="parent"><i class="far fa-chart-bar"></i>&nbsp;방문 통계</a>
  62. <ul>
  63. <li data-active="statics/visit"><a href="<?=base_url('admin/statics/visit')?>">사용자 접속 로그</a></li>
  64. <li data-active="statics/keyword"><a href="<?=base_url('admin/statics/keyword')?>">키워드별 통계</a></li>
  65. <li data-active="statics/times"><a href="<?=base_url('admin/statics/times')?>">방문 시간별 통계</a></li>
  66. <li data-active="statics/referrer"><a href="<?=base_url('admin/statics/referrer')?>">유입 경로별 통계</a></li>
  67. <li data-active="statics/device"><a href="<?=base_url('admin/statics/device')?>">PC/MOBILE 통계</a></li>
  68. <li data-active="statics/browser"><a href="<?=base_url('admin/statics/browser')?>">브라우져별 통계</a></li>
  69. <li data-active="statics/os"><a href="<?=base_url('admin/statics/os')?>">OS별 통계</a></li>
  70. </ul>
  71. </li>
  72. <li>
  73. <a href="#" class="parent"><i class="far fa-cog"></i>&nbsp;환경 설정</a>
  74. <ul>
  75. <li data-active="setting/basic"><a href="<?=base_url('admin/setting/basic')?>">사이트 기본 설정</a></li>
  76. <li data-active="setting/localize"><a href="<?=base_url('admin/setting/localize')?>">다국어 설정</a></li>
  77. <li data-active="setting/apis"><a href="<?=base_url('admin/setting/apis')?>">소셜/API 설정</a></li>
  78. <li data-active="setting/agreement"><a href="<?=base_url('admin/setting/agreement')?>">약관 설정</a></li>
  79. <li data-active="setting/member"><a href="<?=base_url('admin/setting/member')?>">회원 설정</a></li>
  80. <li data-active="management/sitemap"><a href="<?=base_url('admin/management/sitemap')?>">사이트맵 설정</a></li>
  81. <?php if($this->member->is_super()) :?>
  82. <li data-active="setting/admin"><a href="<?=base_url('admin/setting/admin')?>">관리자 설정</a></li>
  83. <?php endif;?>
  84. <li data-active="tools/index"><a href="<?=base_url('admin/tools')?>">기타 도구</a></li>
  85. </ul>
  86. </li>
  87. </ul>
  88. </nav>
  89. <section id="main" role="main">
  90. <div class="main"><?=$contents?></div>
  91. </section>
  92. </div>
  93. </div>