From 1fa73a0569d153512183b56a3cd04bc6a15e15fd Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 4 Mar 2013 16:31:26 +0900 Subject: [PATCH 1/3] =?UTF-8?q?=EB=A6=AC=EC=8A=A4=ED=8A=B8=EC=97=90?= =?UTF-8?q?=EC=84=9C=20=ED=8C=8C=EC=9D=BC=EC=A0=95=EB=B3=B4=EB=A5=BC=20?= =?UTF-8?q?=EC=96=BB=EA=B8=B0=EC=9C=84=ED=95=9C=20get=5Flist=5Ffile=20?= =?UTF-8?q?=ED=95=A8=EC=88=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/common.lib.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/common.lib.php b/lib/common.lib.php index 80cb4d5d7..9eaea123f 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -295,6 +295,18 @@ function get_file($bo_table, $wr_id) } +// 게시글 리스트에 쓰일 1개의 파일 정보를 얻는다. +function get_list_file($bo_table, $wr_id) +{ + global $g4; + + $sql = " select * from {$g4['board_file_table']} where bo_table = '$bo_table' and wr_id = '$wr_id' order by bf_no "; + $row = sql_fetch($sql); + + return $row; +} + + // 폴더의 용량 ($dir는 / 없이 넘기세요) function get_dirsize($dir) { From c58ae4f763bc3d108933d096fef19aad633ea552 Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 4 Mar 2013 16:32:01 +0900 Subject: [PATCH 2/3] =?UTF-8?q?=EB=A6=AC=EC=8A=A4=ED=8A=B8=EC=97=90?= =?UTF-8?q?=EC=84=9C=20=EC=8D=B8=EB=84=A4=EC=9D=BC=20=EC=83=9D=EC=84=B1?= =?UTF-8?q?=EC=9D=84=20=EC=9C=84=ED=95=9C=20get=5Flist=5Fthumbnail=20?= =?UTF-8?q?=ED=95=A8=EC=88=98=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/thumbnail.lib.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/thumbnail.lib.php b/lib/thumbnail.lib.php index d103f793b..cab6d626d 100644 --- a/lib/thumbnail.lib.php +++ b/lib/thumbnail.lib.php @@ -8,6 +8,12 @@ function it_img_thumb($filename, $filepath, $thumb_width, $thumb_height, $is_cre return thumbnail($filename, $filepath, $filepath, $thumb_width, $thumb_height, $is_create); } +// 게시글리스트 썸네일 생성 +function get_list_thumbnail($filename, $filepath, $thumb_width, $thumb_height, $is_create=false) +{ + return thumbnail($filename, $filepath, $filepath, $thumb_width, $thumb_height, $is_create); +} + // 게시글보기 썸네일 생성 function get_view_thumbnail($contents) { From 6e5f707f7e3cb9236445655c11158342266bd107 Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 4 Mar 2013 16:32:21 +0900 Subject: [PATCH 3/3] =?UTF-8?q?=EA=B0=A4=EB=9F=AC=EC=8B=9C=20=EC=8A=A4?= =?UTF-8?q?=ED=82=A8=20=EC=8D=B8=EB=84=A4=EC=9D=BC=20=EC=83=9D=EC=84=B1=20?= =?UTF-8?q?=EC=BD=94=EB=93=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- skin/board/gallery/list.skin.php | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/skin/board/gallery/list.skin.php b/skin/board/gallery/list.skin.php index 02a98cdca..8cb7427b8 100644 --- a/skin/board/gallery/list.skin.php +++ b/skin/board/gallery/list.skin.php @@ -1,5 +1,6 @@

@@ -44,8 +45,13 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가

이미지 목록

    - -
  • + 0 && ($i % $board['bo_gallery_cols'] == 0)) + $style = 'style="clear:both;"'; + else + $style = ''; + ?> +
  • > - + + <?=$imgalt?> +