최근 갤러리를 랜덤하게 뿌리고 싶습니다 채택완료
<div class="pic_lt">
<ul>
<?php
for ($i=0; $i<$list_count; $i++) {
$thumb = get_list_thumbnail($bo_table, $list[$i]['wr_id'], $thumb_width, $thumb_height, true, true);
if($thumb['src']) {
$img = $thumb['src'];
} else {
$img = G5_IMG_URL.'/no_img.png';
$thumb['alt'] = '이미지가 없습니다.';
}
$img_content = '<img src="'.$img.'" alt="'.$thumb['alt'].'" >';
?>
<li class="galley_li">
<a href="<?php echo $list[$i]['href'] ?>" class="lt_img">
<?php echo $img_content; ?>
</a>
<a href="<?php echo $list[$i]['href'] ?>" class="lt_info">
<span class="lt_subject"><?php echo $list[$i]['subject'];?></span>
<span class="lt_date"><?php echo $list[$i]['datetime'] ?></span>
</a>
</li>
<?php } ?>
<?php if ($list_count == 0) { //게시물이 없을 때 ?>
<li class="empty_li">게시물이 없습니다.</li>
<?php } ?>
</ul>
</div>
어디를 수정 해야 할까요 ?
중간인거는 알겠는데... ^^;;;
답변 3개
답변을 작성하려면 로그인이 필요합니다.
로그인