제목 옆에 첨부이미지 나오게 해 주세요
본문
베이직 게시판
목록의
제목옆에
파일1 으로 첨부된 이미지를
썸네일로
넣고 싶습니다
부탁드립니다 꾸벅~~
초보입니다ㅠ.ㅠ
답변 3
기본 갤러리 게시판 리스트 내용입니다.
if ($list[$i]['is_notice']) { // 공지사항 ?>
<strong style="width:<?php echo $board['bo_gallery_width'] ?>px;height:<?php echo $board['bo_gallery_height'] ?>px">공지</strong>
<?php } else {
$thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height']);
if($thumb['src']) {
$img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" width="'.$board['bo_gallery_width'].'" height="'.$board['bo_gallery_height'].'">';
} else {
$img_content = '<span style="width:'.$board['bo_gallery_width'].'px;height:'.$board['bo_gallery_height'].'px">no image</span>';
}
echo $img_content;
}
답변을 작성하시기 전에 로그인 해주세요.