답변 2개
윗분의 답변을 이용하여 list.skin.php에서 처리하셔도 되겠습니다.
추가할 위치는 반복문 안에서 출력하고자 하는 적당한 위치면 되겠습니다.
if (!isset($list[$i]['file'])) $list[$i]['file'] = get_file($bo_table, $list[$i]['wr_id']);if ($list[$i]['file']['count'] && isset($list[$i]['file'][1]) && $list[$i]['file'][1]['href']) { // 2번 첨부파일 echo '<a href="'.$list[$i]['file'][1]['href'].'"><img src="'.$skin_url.'/img/icon_file.gif" alt="첨부파일 다운로드"></a>';}
common.lib.php
// 가변 파일
if ($board['bo_use_list_file'] || ($list['wr_file'] && $subject_len == 255) /* view 인 경우 */) {
$list['file'] = get_file($board['bo_table'], $list['wr_id']);
} else {
$list['file']['count'] = $list['wr_file'];
}
if ($list['file']['count'])
$list['icon_file'] = '<img src="'.$skin_url.'/img/icon_file.gif" alt="첨부파일">';
수정 해야합니다
답변을 작성하려면 로그인이 필요합니다.