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.

92 lines
5.5 KiB

7 years ago
7 years ago
5 years ago
5 years ago
7 years ago
5 years ago
5 years ago
7 years ago
5 years ago
7 years ago
  1. <?php
  2. $this->site->add_css('https://fonts.googleapis.com/earlyaccess/notosanskr.css', TRUE);
  3. $this->site->add_css("/assets/css/admin.min.css", TRUE);
  4. $this->site->add_js('https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.4/jquery.min.js', TRUE);
  5. $this->site->add_js("/assets/js/admin.min.js", TRUE);
  6. $this->site->add_js('https://unpkg.com/devextreme-intl@19.1/dist/devextreme-intl.min.js', TRUE);
  7. ?><!DOCTYPE html>
  8. <html lang="ko">
  9. <head>
  10. <meta charset="utf-8">
  11. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  12. <meta name="viewport" content="width=1200">
  13. <?=$this->site->display_meta()?>
  14. <?=$this->site->display_css()?>
  15. </head>
  16. <body>
  17. <script>var menuActive="<?=$this->active?>";</script>
  18. <nav id="nav">
  19. <ul class="nav-menu" data-main-navigation>
  20. <li><a class="logo" href="<?=base_url('/admin')?>"><i class="fal fa-home"></i></a></li>
  21. <li class="dropdown">
  22. <span data-toggle="dropdown"><i class="fal fa-wrench"></i>사이트 관리</span>
  23. <ul class="dropdown-menu">
  24. <li data-active="management/popup"><a href="<?=base_url('admin/management/popup')?>">팝업 관리</a></li>
  25. <li data-active="management/banner"><a href="<?=base_url('admin/management/banner')?>">배너 관리</a></li>
  26. <li data-active="management/menu"><a href="<?=base_url('admin/management/menu')?>">메뉴 관리</a></li>
  27. <li data-active="management/faq"><a href="<?=base_url('admin/management/faq')?>">FAQ 관리</a></li>
  28. <li data-active="management/qna"><a href="<?=base_url('admin/management/qna')?>">Q&A 관리</a></li>
  29. </ul>
  30. </li>
  31. <li class="dropdown">
  32. <span data-toggle="dropdown"><i class="fal fa-users"></i>회원 관리</span>
  33. <ul class="dropdown-menu">
  34. <li data-active="members/lists"><a href="<?=base_url('admin/members/lists')?>">회원 목록</a></li>
  35. <li data-active="members/add"><a href="<?=base_url('admin/members/add')?>">회원 등록</a></li>
  36. <li data-active="members/log"><a href="<?=base_url('admin/members/log')?>">회원 로그인 기록</a></li>
  37. <?php if( $this->site->config('point_use') == 'Y' ) :?>
  38. <li data-active="members/points"><a href="<?=base_url('admin/members/points')?>"><?=$this->site->config('point_name')?> 관리</a></li>
  39. <?php endif;?>
  40. </ul>
  41. </li>
  42. <li class="dropdown">
  43. <span data-toggle="dropdown"><i class="fal fa-th-large"></i>게시판 관리</span>
  44. <ul class="dropdown-menu">
  45. <li data-active="board/lists"><a href="<?=base_url('admin/board/lists')?>">게시판 관리</a></li>
  46. <li class="divider"></li>
  47. <?php
  48. $board_list = $this->boardlib->getNewPostBoards();
  49. foreach($board_list as $row): ?>
  50. <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'>{$row['new_cnt']}</span>":''?></a></li>
  51. <?php endforeach;?>
  52. </ul>
  53. </li>
  54. <li class="dropdown">
  55. <span data-toggle="dropdown"><i class="fal fa-chart-bar"></i>방문 통계</span>
  56. <ul class="dropdown-menu">
  57. <li data-active="statics/visit"><a href="<?=base_url('admin/statics/visit')?>">사용자 접속 로그</a></li>
  58. <li data-active="statics/keyword"><a href="<?=base_url('admin/statics/keyword')?>">키워드별 통계</a></li>
  59. <li data-active="statics/times"><a href="<?=base_url('admin/statics/times')?>">방문 시간별 통계</a></li>
  60. <li data-active="statics/referrer"><a href="<?=base_url('admin/statics/referrer')?>">유입 경로별 통계</a></li>
  61. <li data-active="statics/device"><a href="<?=base_url('admin/statics/device')?>">PC/MOBILE 통계</a></li>
  62. <li data-active="statics/browser"><a href="<?=base_url('admin/statics/browser')?>">브라우져별 통계</a></li>
  63. <li data-active="statics/os"><a href="<?=base_url('admin/statics/os')?>">OS별 통계</a></li>
  64. </ul>
  65. </li>
  66. <li class="dropdown">
  67. <span data-toggle="dropdown"><i class="fal fa-cog"></i>환경 설정</span>
  68. <ul class="dropdown-menu">
  69. <li data-active="setting/basic"><a href="<?=base_url('admin/setting/basic')?>">사이트 기본 설정</a></li>
  70. <li data-active="setting/localize"><a href="<?=base_url('admin/setting/localize')?>">다국어 설정</a></li>
  71. <li data-active="setting/apis"><a href="<?=base_url('admin/setting/apis')?>">소셜/API 설정</a></li>
  72. <li data-active="setting/agreement"><a href="<?=base_url('admin/setting/agreement')?>">약관 설정</a></li>
  73. <li data-active="setting/member"><a href="<?=base_url('admin/setting/member')?>">회원 설정</a></li>
  74. <li data-active="management/sitemap"><a href="<?=base_url('admin/management/sitemap')?>">사이트맵 설정</a></li>
  75. <?php if($this->member->is_super()) :?>
  76. <li data-active="setting/admin"><a href="<?=base_url('admin/setting/admin')?>">관리자 설정</a></li>
  77. <?php endif;?>
  78. </ul>
  79. </li>
  80. </ul>
  81. <div class="nav-right">
  82. </div>
  83. </nav>
  84. <article id="contents">
  85. <?=$contents?>
  86. </article>
  87. </body>
  88. </html>