채택완료

최신겔러리 첨부이미지 다수 노출

2016-08-16 (화) 11:26:26 4,302

베이직 최신 겔러리로 전후 사진 스킨을 만들고 있습니다.

첨부파일

1번 하고 2번 그리고 혹시 모를 34번 첨부파일도 뽑고 싶습니다 ^^;

많은 선배님 분들 조언 부탁드립니다!

<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가

// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨

include_once(G5_LIB_PATH.'/thumbnail.lib.php');

$sql = " select * from {$g5['board_table']} where bo_table = '{$bo_table}' ";
$board = sql_fetch($sql);

if ($options) list($width, $height, $wrap_width, $content_length) = explode(',', $options);
if (!$width) $width = 318;
if (!$height) $height = 349;
if (!$content_length) $content_length = 120;
?>

<?php
for ($i=0; $i<count($list); $i++) {
 
 $thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $width, $height);
 
?>

<ul>

  <li><img src="<? $=img1"/></li>

  <li><img src="<? $=img2"/></li>

  <li><img src="<? $=img3"/></li>

</ul>


<?php
 }

if (count($list) == 0) { //게시물이 없을 때  ?>
  게시물이 없습니다.
<?php }  ?>

|

답변 1개

채택된 답변
+20 포인트

http://sir.kr/g5_tip/2410 

참고하세요~

답변을 작성하려면 로그인이 필요합니다.