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.

67 lines
2.6 KiB

7 years ago
  1. <?php
  2. function display_member_menu($mem_idx, $mem_name, $mem_status='Y')
  3. {
  4. $CI =& get_instance();
  5. $str = '<div class="btn-group ML10 ">';
  6. $str .= '<button type="button" class="btn btn-xs btn-primary dropdown-toggle" data-toggle="dropdown">'.$mem_name.' <span class="caret"></span></button>';
  7. $str .= '<ul class="dropdown-menu dropdown-menu-dark">';
  8. $str .= '<li><a href="javascript:;" onclick="APP.MEMBER.POP_INFO_ADMIN('.$mem_idx.');">회원정보</a></li>';
  9. $str .= '<li><a href="javascript:;" onclick="APP.MEMBER.POP_MODIFY_ADMIN('.$mem_idx.');">정보수정</a></li>';
  10. $str .= '<li><a href="javascript:;" onclick="APP.MEMBER.POP_PASSWORD_ADMIN('.$mem_idx.');">비밀번호 변경</a></li>';
  11. if( $mem_status != 'N')
  12. {
  13. $str .= '<li class="divider"></li>';
  14. }
  15. if( $mem_status == 'Y' )
  16. {
  17. $str .= '<li><a href="#" onclick="APP.MEMBER.STATUS_CHANGE('.$mem_idx.',\'Y\',\'H\');">휴면처리</a></li>';
  18. $str .= '<li><a href="#" onclick="APP.MEMBER.STATUS_CHANGE('.$mem_idx.',\'Y\',\'D\');">로그인금지</a></li>';
  19. }
  20. else if ( $mem_status == 'H')
  21. {
  22. $str .= '<li><a href="#" onclick="APP.MEMBER.STATUS_CHANGE('.$mem_idx.',\'H\',\'Y\');">휴면해제</a></li>';
  23. }
  24. else if ( $mem_status == 'D' )
  25. {
  26. $str .= '<li><a href="#" onclick="APP.MEMBER.STATUS_CHANGE('.$mem_idx.',\'D\',\'Y\');">로그인금지 해제</a></li>';
  27. }
  28. if( $mem_status != 'N')
  29. {
  30. $str .= '<li><a href="#" onclick="APP.MEMBER.STATUS_CHANGE('.$mem_idx.',\''.$mem_status.'\',\'N\');">회원탈퇴</a></li>';
  31. }
  32. $str .= '<li class="divider"></li>';
  33. $str .= '<li><a href="'.base_url('admin/members/log?sc=idx&st='.$mem_idx).'">로그인 기록</a></li>';
  34. if( $CI->site->config('point_use') == 'Y' ) {
  35. $str .= '<li><a href="javascript:;" onclick="APP.MEMBER.POP_POINT_ADMIN('.$mem_idx.');">'.$CI->site->config('point_name').' 관리</a></li>';
  36. $str .= '<li><a href="javascript:;" onclick="APP.MEMBER.POP_POINT_FORM_ADMIN('.$mem_idx.');">'.$CI->site->config('point_name').' 추가</a></li>';
  37. }
  38. $str .= '</ul>';
  39. $str .= '</div>';
  40. return $str;
  41. }
  42. function get_skin_list( $skin_type="")
  43. {
  44. $skin_path = VIEWPATH . DIRECTORY_SEPARATOR . DIR_SKIN . DIRECTORY_SEPARATOR . $skin_type;
  45. $CI =& get_instance();
  46. $CI->load->helper('directory');
  47. $map = directory_map($skin_path, 1);
  48. $return = array();
  49. if( is_array($map)) {
  50. foreach($map as $skins)
  51. {
  52. $return[] = str_replace(DIRECTORY_SEPARATOR , "", $skins);
  53. }
  54. }
  55. return $return;
  56. }