답변 2개
채택된 답변
+20 포인트
9년 전
윗분의 답변을 이용하여 list.skin.php에서 처리하셔도 되겠습니다.
추가할 위치는 반복문 안에서 출력하고자 하는 적당한 위치면 되겠습니다.
</p><p>if (!isset($list[$i]['file'])) $list[$i]['file'] = get_file($bo_table, $list[$i]['wr_id']);</p><p>if ($list[$i]['file']['count'] && isset($list[$i]['file'][1]) && $list[$i]['file'][1]['href']) { // 2번 첨부파일</p><p><span class="Apple-tab-span" style="white-space:pre"> </span>echo '<a href="'.$list[$i]['file'][1]['href'].'"><img src="'.$skin_url.'/img/icon_file.gif" alt="첨부파일 다운로드"></a>';</p><p>}</p><p>
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
9년 전
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="첨부파일">';
수정 해야합니다
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인