첨부파일 2 > 그누4 질문답변

그누4 질문답변

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

첨부파일 2 정보

첨부파일 2

본문

그누3 쓰고 있는데요...
겔러리 스킨에서 일반적으로
 
 
gbview.skin.php 에서 그림 볼 때
 
첨부파일 1을 가져오는데....
 
그걸 첨부파일 2를 가져오게하려면
무얼 만져야 하나요.....
 
조금만 도와주세요....
 
 
 
  • 복사

댓글 전체

코멧님 그럼 부탁좀 드릴게요

<? //------------##### 첫번째 이미지 파일 새창열기
if($write[wr_file1]){
$row = $write;

$img1_width  = 200;  // 이미지 가로크기
$img1_height = 200;  // 이미지 세로크기

$win1_width  = 200;  // 새창 가로크기
$win1_height = 200;  // 새창 세로크기

//수정된 부분
$win1_size = @getimagesize("./data/file/$board[bo_table]/$row[wr_file1]");
    $win1_source_width  = $win1_size[0];
    $win1_source_height = $win1_size[1];
    $file1_view= "<img src='./data/file/$board[bo_table]/$row[wr_file1]' width='$img1_width' height='$img1_height' border=0>";
$index_view= "<a href=\"javascript:;\" onclick=\"image_window('./data/file/$board[bo_table]/$row[wr_file1]', $win1_source_width, $win1_source_height);\"><img src='$board_skin/btn_bigphoto.gif' border=0></a>";
}else if(!$write[wr_file1]) {
$file1_view = "<img src='$board_skin/noimage1.gif'>";
}
?>

<!-- //----- 이미지 불러오기 --//-->
<?
echo "<table border=0 cellpadding=2 align=center style='border=1px solid #cccccc'><tr>";
    echo "<td align=center valign=middle width=$img1_width>". $file1_view ."<br>".$index_view."</td>"; // 첫번째 파일 불러오기
echo "</tr></table>";
?>

<!-- 이미지 삽입 끝 --//-->
© SIRSOFT
현재 페이지 제일 처음으로