<?php

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

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

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

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

  작성날짜 : 2024년 06월 11일 화요일 오전 01시 01분 / 맑음, 19.8, 무더위, 30, 19, 15%, 30%, 1.2ms / 상당히 나쁨, 62, 45, 0.011

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

=====================================================================
 피리 카페 심플 > 프로그램 > 피리 카페 관리 > 스킨 > PC > 카페 메인
=====================================================================


*/

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

  add_stylesheet('<link rel="stylesheet" href="'. $p770099__skin_pc_u .'/p770099.style.pc.css' .'">', 0);

?>

<!---- 시작 => 새로_개설된_카페____내가_가입한_카페 ---->
  <div class="cont_box_none">

    <div class="cont_box_none_left">

      <div class="cont_box_none_body">

        <div class="cont_box_none_title">
          <a href="<?php echo $loop_cafe_list_url ?>" class="str_4466ff_bold_13">새로 개설된 카페</a>
        </div>

<?php

  IF ( $cafe_new_t > 0 )
  {

    FOR ( $i=0; $row=sql_fetch_array($result_new); $i++ )
    {

        $loop_cafe_n = $row['cafe_row_n'];

        $loop_cafe_name_s = get_text($row['cafe_name_s']);

        $loop_cafe_url = cafe_index_go($loop_cafe_n);

        $piree_cafe_profile_image_url = '';

        $piree_cafe_profile_path = '/piree_cafe/'. $row['cafe_code_c'] .'/';

        IF ( $row['cafe_image_face_s'] )
        {

          $piree_cafe_profile_image_path = G5_DATA_PATH .'/'. $piree_cafe_profile_path .'/'. $row['cafe_image_face_s'];

          IF ( file_exists($piree_cafe_profile_image_path) )
          {

            $piree_cafe_profile_image_url = G5_DATA_URL .'/'. $piree_cafe_profile_path .'/'. $row['cafe_image_face_s'];

          }

        }

?>
        <div class="cl_bo td_left line_h_2_8 ov_hi">
          <div class="fl_left td_left_60">
<?php

          IF ( $piree_cafe_profile_image_url )
          {
?>
            <a href="<?php echo $loop_cafe_url ?>" target="_blank"><img src="<?php echo $piree_cafe_profile_image_url ?>" width="50"></a>
<?php
          }
          ELSE
          {
            ?>&nbsp;<?php
          }


?>
          </div>
          <div class="fl_left td_left_270">
            <a href="<?php echo $loop_cafe_url ?>" class="str_222_bold_11" target="_blank"><?php echo $loop_cafe_name_s ?></a>
          </div>
          <div class="fl_left td_right_140">
            <a href="<?php echo $loop_cafe_url ?>" class="str_999_9" target="_blank">개설 <?php echo date('Y-m-d H:i', $row['cafe_regi_time_n']); ?></a>
          </div>
        </div>
<?php
    }

  }
  ELSE
  {
?>
        <div class="cl_bo td_center">
          <span" class="font_777_12">새로 개설된 카페가 없습니다.</span">
        </div>
<?php
  }

?>

      </div>

    </div>


    <div class="cont_box_none_right">

      <div class="cont_box_none_body">

        <div class="cont_box_none_title">
          <a href="<?php echo $loop_cafe_list_url ?>" class="str_4466ff_bold_13">내가 가입한 카페</a>
        </div>

<?php

  IF ( $cafe_join_t > 0 )
  {

    FOR ( $i=0; $row=sql_fetch_array($result_cafe_join); $i++ )
    {

        $loop_cafe_n = $row['cafe_row_n'];

        $loop_cafe_name_s = get_text($row['cafe_name_s']);

        $loop_cafe_url = cafe_index_go($loop_cafe_n);

        $piree_cafe_profile_image_url = '';

        $piree_cafe_profile_path = '/piree_cafe/'. $row['cafe_code_c'] .'/';

        IF ( $row['cafe_image_face_s'] )
        {

          $piree_cafe_profile_image_path = G5_DATA_PATH .'/'. $piree_cafe_profile_path .'/'. $row['cafe_image_face_s'];

          IF ( file_exists($piree_cafe_profile_image_path) )
          {

            $piree_cafe_profile_image_url = G5_DATA_URL .'/'. $piree_cafe_profile_path .'/'. $row['cafe_image_face_s'];

          }

        }

?>
        <div class="cl_bo td_left line_h_2_8 ov_hi">
          <div class="fl_left td_left_60">
<?php

          IF ( $piree_cafe_profile_image_url )
          {
?>
            <a href="<?php echo $loop_cafe_url ?>" target="_blank"><img src="<?php echo $piree_cafe_profile_image_url ?>" width="50"></a>
<?php
          }
          ELSE
          {
            ?>&nbsp;<?php
          }


?>
          </div>
          <div class="fl_left td_left_270">
            <a href="<?php echo $loop_cafe_url ?>" class="str_222_bold_11" target="_blank"><?php echo $loop_cafe_name_s ?></a>
          </div>
          <div class="fl_left td_right_140">
            <a href="<?php echo $loop_cafe_url ?>" class="str_999_9" target="_blank">가입 <?php echo date('Y-m-d H:i', $row['cfml_join_time_n']); ?></a>
          </div>
        </div>
<?php
    }

  }
  ELSE
  {
?>
        <div class="cl_bo td_center line_h_4_0>
          <span" class="font_777_12">내가 가입한 카페가 없습니다.</span">
        </div>
<?php
  }

?>

      </div>

    </div>

  </div>
<!---- 끝 => 새로_개설된_카페____내가_가입한_카페 ---->
