뷰화면에 프린트하기를 넣었는데 첨부파일 링크가 안되요.

· 14년 전 · 1592
http://sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=937

링크참조해서 프린트하기 기능을 넣었는데요

첨부파일이 1개일때는 다운링크가 잘 걸리는데
첨부파일이 2번째부터는 링크가 1번째꺼가 나와요.

왜그런걸까요?
아래는 print_view 페이지소스 에요..

<?
// 가변 파일
$cnt = 0;
for ($i=0; $i<count($view[file]); $i++) {
if ($view[file][$i][source] && !$view[file][$i][view]) {

// 새창에서 파일다운로드시, 파일경로
$view[file][$i][href] = "{$g4[bbs_path]}/download.php?bo_table=$bo_table&wr_id=$wr_id&no=$no" . $qstr;

$cnt++;
echo "
<tr>
<td height=22 colspan=2>
  <img src='{$board_skin_path}/img/icon_file.gif' align=absmiddle>
 <span class='sub_tt'>FILE #{$cnt} :</span>
 <a href='{$view[file][$i][href]}'>{$view[file][$i][source]}</a>
 <span class='sub_tt'>({$view[file][$i][size]}), Down:{$view[file][$i][download]}, {$view[file][$i][datetime]}</span>
</td></tr>
<tr><td colspan=2 height=1 bgcolor='#cccccc'></td></tr>
";

}
}

// 링크
$cnt = 0;
for ($i=1; $i<=$g4[link_count]; $i++) {
if ($view[link][$i]) {
$cnt++;
$link = cut_str($view[link][$i], 70);
echo "
<tr>
<td height=22 colspan=2>
  <img src='{$board_skin_path}/img/icon_link.gif' align=absmiddle>
 <span class='sub_tt'>LINK #{$cnt} :</span>
 <a class='v1' href='{$view[link_href][$i]}' target='_blank'>{$link}</a>
 <span class='sub_tt'>({$view[link_hit][$i]})</span>
</td></tr>
<tr><td colspan=2 height=1 bgcolor='#cccccc'></td></tr>
";
}
}
?>
|
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
14년 전 조회 1,017
14년 전 조회 643
14년 전 조회 741
14년 전 조회 574
14년 전 조회 978
14년 전 조회 992
14년 전 조회 711
14년 전 조회 854
14년 전 조회 2,529
14년 전 조회 1,593
14년 전 조회 678
14년 전 조회 1,533
14년 전 조회 2,113
14년 전 조회 970
14년 전 조회 720
14년 전 조회 626
14년 전 조회 744
14년 전 조회 953
14년 전 조회 1,074
14년 전 조회 893