<?php

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

  프로젝트 이름 : 피리 카페 심플

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

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

  작성날짜 : 2024년 04월 11일 목요일 오후 12시 38분 / 흐림, 18.0, 건조주의보, 19, 10, 24%, 30%, 1.5ms / 나쁨, 64, 28

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

=====================================================================
 피리 카페 심플 > 피리 카페 관리 > 스킨 > PC > MAIN > 게시판 분류 목록
=====================================================================

*/

  IF ( !defined('_GNUBOARD_') )                             EXIT;
  // add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
  add_stylesheet('<link rel="stylesheet" href="'. get_cafe_skin_file('url', 'manage', 'p770099.manage.style.pc.css') .'">', 0);

  // add_javascript('js 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
//('<script src="'. $p770099__skin_pc_u .'/p770099.cafe.make.js"></script>', 0);

?>
<!---- 시작 => 설정_폼__박스 ---->
  <div class="piree_cafe_body_out">

    <div class="piree_cafe_body_title"><?php echo $g5['title']; ?></div>

    <div class="piree_cafe_body_line" style="margin-bottom:10px;">
      <div class="piree_cafe_body_label td_left_180">
        <span class="font_999">전체</span> 
        <strong><?php echo number_format(count($board_cate_list_a)); ?></strong> <span class="font_999">개</span>
<?php

      IF ( $list_all_t != $list_res_t && $list_res_t > 0 )
      {
?>
        &nbsp; 
        <span class="font_999">/</span> &nbsp; 
        <span class="font_999">결과</span> 
        <strong><?php echo number_format($cafe_member_view_t); ?></strong> <span class="font_999">개</span>
<?php
      }

?>
      </div>

      <div class="fl_right">
        <a href="board.category.regist.form.php?piree_cafe_n=<?php echo $piree_cafe_n ?>&view_mode=<?php echo $view_mode ?>" class="btn_green_p7">게시판 분류 등록하기</a>
        <a href="board.category.list.php?piree_cafe_n=<?php echo $piree_cafe_n ?>" class="btn_green_p7">전체보기</a>
      </div>
    </div>

<?php

  IF ( $list_pages )
  {
?>
    <div class="piree_cafe_body_line">
      <p style="text-align:center"><?php echo $list_pages;  ?></p>
    </div>
<?php
  }

?>

    <div id="piree_cafe_member_list" class="tbl_head01 tbl_wrap" style="margin-bottom:90px;">
      <table>
          <caption>게시판 분류 목록</caption>
        <thead>
        <tr>
          <th scope="col">분류<br>번호</th>
          <th scope="col">단계</th>
          <th scope="col">게시판 분류 이름</th>
          <th scope="col">목록<br>쓰기</th>
          <th scope="col">읽기<br>댓글</th>
          <th scope="col">PC 스킨<br>모바일 스킨</th>
          <th scope="col">추가</th>
          <th scope="col">수정</th>
          <th scope="col">삭제</th>
          <th scope="col">게시글</th>
          <th scope="col">생성일시</th>
        </tr>
        </thead>

        <tbody>
<?php

  IF ( count($board_cate_list_a) > 0 )
  {

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

      $loop_board_cate_n = (int)$key;

      IF ( $in_member_n%2 == 0 )                    $loop_bg_class = ' class="cl_bg_fbfbfb"';
      ELSE                                          $loop_bg_class = '';

      IF ( $in_member_n%2 == 0 )                    $loop_bg_class = '';
      ELSE                                          $loop_bg_class = ' class="cl_bg_fbfbfb"';

      $url_query_s = 'piree_cafe_n='. $piree_cafe_n .'&board_cate_n='. $loop_board_cate_n;

      $article_link_s = piree__url($piree_prog_a[770099]['num'], 'piree.cafe.board.php') .'?'. $url_query_s;

      SWITCH ( $cate_a['bca_depth_n'] )
      {
          CASE 1 :     $in_left_width = 2;      $in_left_image = $left_image_trans;     $depth_class = "str_3334dd_bold_11";     BREAK;
          CASE 2 :     $in_left_width = 27;     $in_left_image = $left_image_arrow;     $depth_class = "str_4466ff_11";          BREAK;
      }

?>
        <tr>
          <td class="td_center_50"><?php echo $loop_board_cate_n; ?></td>
          <td class="td_left_50"><?php echo $cate_a['bca_depth_n']; ?></td>
          <td class="td_left">
            <div style="float:left;width:<?php echo $in_left_width ?>px;text-align:right;"><img src="<?php echo $in_left_image ?>"></div>
            <div style="float:left;padding-left:5px;"><a href="<?php echo $article_link_s; ?>" class="str_3334dd_11" target="_blank"><?php echo $cate_a['bca_cate_s']; ?></a></div>
          </td>
          <td class="td_left_50">
            <div class="line_h_2_4">
              <p><span class="font_999">목록</span> <?php echo $cate_a['bca_list_level']; ?></p>
              <p><span class="font_999">쓰기</span> <?php echo $cate_a['bca_write_level']; ?></p>
            </div>
          </td>
          <td class="td_left_50">
            <div class="line_h_2_4">
              <p><span class="font_999">읽기</span> <?php echo $cate_a['bca_read_level']; ?></p>
              <p><span class="font_999">댓글</span> <?php echo $cate_a['bca_comment_level']; ?></p>
            </div>
          </td>
          <td class="td_left_80">
            <div class="line_h_2_4">
              <p><?php echo $cate_a['bca_pc_skin']; ?></p>
              <p><?php echo $cate_a['bca_mo_skin']; ?></p>
            </div>
          </td>
          <td class="td_center_40"><?php IF ( $cate_a['bca_depth_n'] < 2 ) { ?><a href="board.category.regist.form.php?<?php echo $url_query_s ?>" class="str_37b44a">추가</a><?php } ?></td>
          <td class="td_center_40"><a href="board.category.regist.form.php?<?php echo $url_query_s ?>&mode_c=modify" class="str_37b44a">수정</a></td>
          <td class="td_center_40"><?php IF ( $loop_board_cate_n > 0 ) { ?><a href="board.category.delete.form.php?<?php echo $url_query_s ?>" class="str_ff3333_9">삭제</a><?php } ?></td>
          <td class="td_right_60"><div style="padding-right:5px;"><span class="font_6799ff"><?php echo number_format($cate_a['bca_count_write']); ?></span></div></td>
          <td class="td_left_60"><?php echo date('y-m-d', $cate_a['bca_regi_time_n']); ?></td>
        </tr>
<?php
    }

  }
  ELSE
  {

?>
        <tr>
          <td colspan="9" class="empty_table">게시판 분류가 없습니다.</td>
        </tr>
<?php

  }

?>

        </tbody>
      </table>
    </div>

<?php

  IF ( $list_pages )
  {
?>
    <div class="piree_cafe_body_line">
      <p style="text-align:center"><?php echo $list_pages;  ?></p>
    </div>
<?php
  }

?>

  </div>
  <!-- 끝 => 내가__몸통이다 -->
