갤러리에서 게시판 상단 큰 이미지 출력
본문
위 이미지처럼 갤러리 목록에서 기본적으로 가장 최신글 이미지가 자동으로 뜨는것까진 max wr_id 받아서
<!--큰이미지-->
<?php
$file = get_file($bo_table, $list['번호']['wr_id']);
$thumb = get_list_thumbnail($board['bo_table'], $list['번호']['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height'], false, true);
if($thumb['src']) {
$img_content = '<img src="'.$file[0]['path'].'/'.$file[0]['file'].'" alt="'.$thumb['alt'].'" width=50%><img src="'.$file[1]['path'].'/'.$file[1]['file'].'" alt="'.$thumb['alt'].'" width=50%>';
} else {
$img_content = '<span class="no_image">no image</span>';
}
echo $img_content;
?>
<div style="background:#ececec;height:30px;padding-top:7px;text-align:center;">
[<?php echo $list['번호']['ca_name'] ?>] <?php echo $list['번호']['subject'] ?>
</div>
<!--큰이미지 끝-->
<!--리스트시작-->
이런식으로 했는데
아래 목록에서 B를 눌렀을때 상단 큰이미지가 B로 바뀌고 설명도 바뀌는 걸 어떻게 해야할까요?ㅜ
!-->
답변을 작성하시기 전에 로그인 해주세요.