<?php

/*
=====================================================================

  프로젝트 이름 : 피리 카페 For 그누보드5.5 순정

  만든사람 : 피리 PIREE ( tosports@naver.com )

  홈페이지 : https://piree.kr/nett_dev

  작성날짜 : 2024년 04월 03일 수요일 오후 18시 05분 / 흐림, 14.7, 쾌적, 17, 11, 38%, 11.4mm, 20%, 1.7ms / 양호, 25, 17

  저 작 권 : Copyright ⓒ 2024 피리 piree.kr All right reserved
              그누보드 외에 추가된 소스는~
              만든사람의 허락없이 무단으로 사용할수 없습니다.
              사용하고자 할 경우 만든사람의 허락을 받아야 합니다.
              http://www.piree.kr 에 문의해 주세요.

=====================================================================
 피리 카페 For 그누보드5.5 순정 > 프로그램 > 피리 카페 관리 > 내 카페 > 스킨 > LAYOUT > PC > HEAD > 사이드 메뉴
=====================================================================

*/

  IF ( !defined('_GNUBOARD_') )                             EXIT;

?>

  <div id="cafe_side_menu_top">
<?php

  IF ( $piree_cafe_profile_image_url )
  {
?>
    <div id="cafe_profile_image">
      <a href="<?php echo cafe_index_go($piree_cafe_n, $piree_cafe_code_c, 1); ?>"><img src="<?php echo $piree_cafe_profile_image_url; ?>" width="<?php echo $piree_prog_a[$piree_prog_a[770100]['num']]['profile_image_width_n']; ?>" height="<?php echo $piree_prog_a[$piree_prog_a[770100]['num']]['profile_image_height_n']; ?>"></a>
    </div>
<?php

  }

?>

    <div id="cafe_owner_nick">
      <a href="<?php echo cafe_index_go(0, $piree_cafe_code_c, 1); ?>" class="str_222_bold_11"><?php echo $piree_cafe_a['cafe_mem_nick']; ?></a>
    </div>

    <div id="cafe_owner_domain">
      <div class="fl_left">
        <a href="<?php echo cafe_index_go(0, $piree_cafe_code_c, 1); ?>" class="str_3334dd_bold_10"><?php echo get_piree_cafe_domain($piree_cafe_code_c); ?></a>
      </div>
<?php

    IF ($piree_cafe_a['cafe_mem_id'] == $member['mb_id'] )
    {
?>
      <div class="fl_right">
        <a href="<?php echo PIREE_CAFE_MANAGE_URL .'?piree_cafe_n='. $piree_cafe_n; ?>" class="str_37b44a_10">[관리]</a>
      </div>
<?php
    }

?>
    </div>

    <div id="cafe_owner_menu">
      <div id="cafe_owner_join">
<?php

      IF ( $cafe_member_a['member_n'] > 0 && $cafe_member_a['mem_id'] )
      {
?>
        <a href="<?php echo piree__url($piree_prog_a[770100]['num'], 'member.info.view.php') .'?piree_cafe_n='. $piree_cafe_n; ?>" class="font_777_10">회원정보</a>
<?php
      }
      ELSE
      {
?>
        <a href="<?php echo piree__url($piree_prog_a[770100]['num'], 'member.join.form.php') .'?piree_cafe_n='. $piree_cafe_n; ?>" class="font_777_10">회원가입</a>
<?php
      }

?>
       </div>
     <div id="cafe_owner_letter">
        <a href="<?php echo get_piree_cafe_page('member.face.php', 'cafe_mem_n='. $piree_cafe_a['cafe_mem_n']); ?>" class="font_777_10">쪽지</a>
      </div>
    </div>

    <div id="cafe_profile_intro">
      <span class="str_999"><?php echo stripslashes(nl2br($piree_cafe_a['cafe_intro_s'])); ?></span>
    </div>

<?php

/*
    <div class="cafe_level_score_out">
      <div class="cafe_level_score_line">
        <div class="cafe_level_score_cell">
          <a href="<?php echo get_piree_cafe_page('member.face.php', 'cafe_mem_n='. $piree_cafe_a['cafe_mem_n']); ?>" class="str_666"><span class="str_999">회원</span>
          <span class="str_222"><?php echo number_format($piree_cafe_a['cafe_member_formally_n']); ?></span></a>
        </div>
        <div class="cafe_level_score_cell">
          <a href="<?php echo get_piree_cafe_page('member.face.php', 'cafe_mem_n='. $piree_cafe_a['cafe_mem_n']); ?>" class="str_666"><span class="str_999">게시물</span>
          <span class="str_222"><?php echo number_format($piree_cafe_a['cafe_article_all_n']); ?></span></a>
        </div>
      </div>

      <div class="cafe_level_score_line">
        <div class="cafe_level_score_cell">
          <a href="<?php echo get_piree_cafe_page('member.face.php', 'cafe_mem_n='. $piree_cafe_a['cafe_mem_n']); ?>" class="str_666"><span class="str_999">나바라기</span>
          <span class="str_222"><?php echo number_format($piree_cafe_a['cafe_my_baragi_n']); ?></span></a>
        </div>
        <div class="cafe_level_score_cell">
          <a href="<?php echo get_piree_cafe_page('member.face.php', 'cafe_mem_n='. $piree_cafe_a['cafe_mem_n']); ?>" class="str_666"><span class="str_999">너바라기</span>
          <span class="str_222"><?php echo number_format($piree_cafe_a['cafe_neo_baragi_n']); ?></span></a>
        </div>
      </div>
    </div>

<?php

  IF ( !$piree_cafe_a['cafe_score_activity_n'] || $piree_cafe_a['cafe_score_knowledge_n'] > 0 || $piree_cafe_a['cafe_score_reputation_n'] > 0 )
  {
?>
    <div class="cafe_level_score_out">
<?php

    IF ( $piree_cafe_a['cafe_score_activity_n'] == 0 )
    {
?>
      <div class="cafe_level_score_line">
        <div class="cafe_level_score_cell">
          <a href="<?php echo get_piree_cafe_page('member.face.php', 'cafe_mem_n='. $piree_cafe_a['cafe_mem_n']); ?>" class="str_666"><span class="str_999">활동 LV</span> 
          <span class="str_222"><?php echo number_format($piree_cafe_a['cafe_level_activity_n']); ?></span></a>
        </div>
        <div class="cafe_level_score_cell">
          <a href="<?php echo get_piree_cafe_page('member.face.php', 'cafe_mem_n='. $piree_cafe_a['cafe_mem_n']); ?>" class="str_666"><span class="str_999">점수</span> 
          <span class="str_222"><?php echo number_format($piree_cafe_a['cafe_score_activity_n']); ?></span></a>
        </div>
      </div>
<?php
    }

    IF ( $piree_cafe_a['cafe_score_knowledge_n'] == 0 )
    {
?>
      <div class="cafe_level_score_line">
        <div class="cafe_level_score_cell">
          <a href="<?php echo get_piree_cafe_page('member.face.php', 'cafe_mem_n='. $piree_cafe_a['cafe_mem_n']); ?>" class="str_666"><span class="str_999">지식 LV</span> 
          <span class="str_222"><?php echo number_format($piree_cafe_a['cafe_level_knowledge_n']); ?></span></a>
        </div>
        <div class="cafe_level_score_cell">
          <a href="<?php echo get_piree_cafe_page('member.face.php', 'cafe_mem_n='. $piree_cafe_a['cafe_mem_n']); ?>" class="str_666"><span class="str_999">점수</span> 
          <span class="str_222"><?php echo number_format($piree_cafe_a['cafe_score_knowledge_n']); ?></span></a>
        </div>
      </div>
<?php
    }

    IF ( $piree_cafe_a['cafe_score_reputation_n'] == 0 )
    {
?>
      <div class="cafe_level_score_line">
        <div class="cafe_level_score_cell">
          <a href="<?php echo get_piree_cafe_page('member.face.php', 'cafe_mem_n='. $piree_cafe_a['cafe_mem_n']); ?>" class="str_666"><span class="str_999">평판 LV</span> 
          <span class="str_222"><?php echo number_format($piree_cafe_a['cafe_level_reputation_n']); ?></span></a>
        </div>
        <div class="cafe_level_score_cell">
          <a href="<?php echo get_piree_cafe_page('member.face.php', 'cafe_mem_n='. $piree_cafe_a['cafe_mem_n']); ?>" class="str_666"><span class="str_999">점수</span> 
          <span class="str_222"><?php echo number_format($piree_cafe_a['cafe_score_reputation_n']); ?></span></a>
        </div>
      </div>
<?php
    }

?>
    </div>
<?php
  }

*/

?>

  </div>

  <!-- 시작 => 게시판_분류 -->
  <div id="cafe_side_category">
    <div id="cafe_side_category_title">
      <a href="<?php echo get_piree_cafe_page('member.face.php', 'cafe_mem_n='. $piree_cafe_a['cafe_mem_n']); ?>" class="font_37b44a_11">게시판 분류</a>
    </div>
    <div id="cafe_side_category_body">

<?php

  IF ( $board_cate_all_t > 0 )
  {

    $ok_style_a = array();
    $ok_style_a[0] = 'str_3334dd_bold_11';
    $ok_style_a[1] = 'str_4466ff_bold_11';
    $ok_style_a[2] = 'str_4466ff_11';

    $no_style_a = array();
    $no_style_a[0] = 'str_222_bold_10';
    $no_style_a[1] = 'str_333_10';
    $no_style_a[2] = 'str_555_9';

    $left_image_a = array();
    $left_image_a[0] = piree__url($piree_prog_a[770100]['num'], '/images/trans_1_1.gif');
    $left_image_a[1] = piree__url($piree_prog_a[770100]['num'], '/images/trans_1_1.gif');
    $left_image_a[2] = piree__url($piree_prog_a[770100]['num'], '/images/icon_reply.gif');

    $left_padd_a = array();
    $left_padd_a[0] = 1;
    $left_padd_a[1] = 1;
    $left_padd_a[2] = 15;

    FOREACH ( $board_cate_list_a AS $key=>$val )
    {

      IF ( $board_cate_n == $val['bca_cate_n'] && !$page_code_c )
      {
        $loop_style_c  = $ok_style_a[$val['bca_depth_n']];
        $loop_choice_s = G5_IMG_URL .'/btn_next.gif';
        $loop_choice_s = G5_IMG_URL .'/require.png';
      }
      ELSE
      {
        $loop_style_c  = $no_style_a[$val['bca_depth_n']];
        $loop_choice_s = piree__url($piree_prog_a[770100]['num'], '/images/trans_1_1.gif');
      }

?>
      <div class="cl_bo line_h_2_4" style="margin-left:<?php echo $left_padd_a[$val['bca_depth_n']]; ?>px">
        <img src="<?php echo $left_image_a[$val['bca_depth_n']]; ?>">
        <img src="<?php echo $loop_choice_s; ?>">
        <a href="<?php echo go_piree_cafe_board('', $piree_cafe_n, $val['bca_cate_n']); ?>" class="<?php echo $loop_style_c; ?>"><?php echo $val['bca_cate_s']; ?></a>
        <span class="font_777" style="float:right;"><?php  IF ( $val['bca_count_write'] > 0 ) { echo number_format($val['bca_count_write']); }  ?></span>
      </div>
<?php
    }

?>
<?php

  }
  ELSE
  {

?>
      <p>게시판 분류가 없습니다.</p>
<?php
  }

?>
    </div>

<?php

    $loop_style_a = array();
    $loop_style_a['member.list.view'] = 'str_555_9';
    $loop_style_a['ember.join.for']   = 'str_555_9';
    $loop_style_a['member.withdraw']  = 'str_555_9';
    $loop_style_a['cafe.make.form']   = 'str_555_9';

    $loop_choice_a = array();
    $loop_choice_a['member.list.view'] = piree__url($piree_prog_a[770100]['num'], '/images/trans_1_1.gif');
    $loop_choice_a['member.join.form'] = piree__url($piree_prog_a[770100]['num'], '/images/trans_1_1.gif');
    $loop_choice_a['member.withdraw']  = piree__url($piree_prog_a[770100]['num'], '/images/trans_1_1.gif');
    $loop_choice_a['cafe.make.form']   = piree__url($piree_prog_a[770100]['num'], '/images/trans_1_1.gif');

    SWITCH ( $page_code_c )
    {

      CASE 'member.list.view' :
        $loop_style_a['member.list.view']  = 'str_4466ff_bold_11';
        $loop_choice_a['member.list.view'] = G5_IMG_URL .'/require.png';
      BREAK;

      CASE 'member.join.form' :
        $loop_style_a['member.join.form']  = 'str_4466ff_bold_11';
        $loop_choice_a['member.join.form'] = G5_IMG_URL .'/require.png';
      BREAK;

      CASE 'member.info.view' :
        $loop_style_a['member.info.view']  = 'str_4466ff_bold_11';
        $loop_choice_a['member.info.view'] = G5_IMG_URL .'/require.png';
      BREAK;

      CASE 'member.withdraw' :
        $loop_style_a['member.withdraw']  = 'str_4466ff_bold_11';
        $loop_choice_a['member.withdraw'] = G5_IMG_URL .'/require.png';
      BREAK;

    }

?>
    <div id="cafe_side_member_title" style="margin-top:15px;">
      <span class="font_37b44a_11">기타 메뉴</span>
    </div>
    <div id="cafe_side_member_body">
      <div class="cl_bo line_h_2_4" style="margin-left:1px">
        <img src="<?php echo $loop_choice_a['member.list.view']; ?>">
        <a href="<?php echo piree__url($piree_prog_a[770100]['num'], 'member.list.php') .'?piree_cafe_n='. $piree_cafe_n; ?>" class="<?php echo $loop_style_a['member.list.view']; ?>">회원 목록</a>
        <span class="font_777" style="float:right;"><?php  IF ( $piree_cafe_a['cafe_member_t'] > 0 ) { echo number_format($piree_cafe_a['cafe_member_t']); }  ?> 명</span>
      </div>

<?php

    IF ( $cafe_member_a['member_n'] > 0 && $cafe_member_a['mem_id'] )
    {
?>
      <div class="cl_bo line_h_2_4" style="margin-left:1px">
        <img src="<?php echo $loop_choice_a['member.info.view']; ?>">
        <a href="<?php echo piree__url($piree_prog_a[770100]['num'], 'member.info.view.php') .'?piree_cafe_n='. $piree_cafe_n; ?>" class="<?php echo $loop_style_a['member.info.view']; ?>">회원 정보 보기</a>
      </div>
<?php
    }
    ELSE
    {
?>
      <div class="cl_bo line_h_2_4" style="margin-left:1px">
        <img src="<?php echo $loop_choice_a['member.join.form']; ?>">
        <a href="<?php echo piree__url($piree_prog_a[770100]['num'], 'member.join.form.php') .'?piree_cafe_n='. $piree_cafe_n; ?>" class="<?php echo $loop_style_a['member.join.form']; ?>">회원 가입</a>
      </div>
<?php
    }

?>

      <div class="cl_bo line_h_2_4" style="margin-left:1px">
        <img src="<?php echo $loop_choice_a['member.withdraw']; ?>">
        <a href="<?php echo piree__url($piree_prog_a[770100]['num'], 'member.withdraw.form.php') .'?piree_cafe_n='. $piree_cafe_n; ?>" class="<?php echo $loop_style_a['member.withdraw']; ?>">회원 탈퇴</a>
      </div>

      <div class="cl_bo line_h_2_4" style="margin-left:1px">
        <img src="<?php echo $loop_choice_a['cafe.make.form']; ?>">
        <a href="<?php echo piree__url($piree_prog_a[770100]['num'], 'section.cafe.make.php'); ?>" class="<?php echo $loop_style_a['cafe.make.form']; ?>">카페 만들기</a>
      </div>

    </div>

  </div>
  <!-- 끝 => 게시판_분류 -->
