갤러리 view 화면에서 이미지가 테이블에 맞게 줄지를 않습니다.. > 그누4 질문답변

그누4 질문답변

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

갤러리 view 화면에서 이미지가 테이블에 맞게 줄지를 않습니다.. 정보

갤러리 view 화면에서 이미지가 테이블에 맞게 줄지를 않습니다..

본문

보통 갤러리에서 이미지를 클릭하면
테이블에 맞춰서 그림이 줄어드는데요..
전 이상하게 안되네요..
같은 스킨인데도 다른 분은 되는것 같은데 저만 안되는 듯..

아래는 view.skin.php의 소스 전문입니다..

고수님들 좀 체크해주세요 ^^

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$exif = @exif_read_data("{$view[file][0][path]}/{$view[file][0][file]}");
?>

<!-- 게시글 보기 시작 -->
<table width="<?=$width?>" align="center" cellpadding="0" cellspacing="0"><tr><td>

<!-- 링크 버튼 -->
<?
ob_start();
?>
<table width="100%" cellpadding=0 cellspacing="0" border="0">
<tr height="35">
    <td width="75%">
        <? if ($search_href) { echo "<a href=\"$search_href\"><img src='$board_skin_path/img/btn_search_list.gif' border='0' align='absmiddle'></a> "; } ?>
        <? echo "<a href=\"$list_href\"><img src='$board_skin_path/img/btn_list.gif' border='0' align='absmiddle'></a> "; ?>

        <? if ($write_href) { echo "<a href=\"$write_href\"><img src='$board_skin_path/img/btn_write.gif' border='0' align='absmiddle'></a> "; } ?>
        <? if ($reply_href) { echo "<a href=\"$reply_href\"><img src='$board_skin_path/img/btn_reply.gif' border='0' align='absmiddle'></a> "; } ?>

        <? if ($update_href) { echo "<a href=\"$update_href\"><img src='$board_skin_path/img/btn_update.gif' border='0' align='absmiddle'></a> "; } ?>
        <? if ($delete_href) { echo "<a href=\"$delete_href\"><img src='$board_skin_path/img/btn_delete.gif' border='0' align='absmiddle'></a> "; } ?>

        <? if ($good_href) { echo "<a href=\"$good_href\" target='hiddenframe'><img src='$board_skin_path/img/btn_good.gif' border='0' align='absmiddle'></a> "; } ?>
        <? if ($nogood_href) { echo "<a href=\"$nogood_href\" target='hiddenframe'><img src='$board_skin_path/img/btn_nogood.gif' border='0' align='absmiddle'></a> "; } ?>

        <? if ($scrap_href) { echo "<a href=\"javascript:;\" onclick=\"win_scrap('./scrap_popin.php?bo_table=$bo_table&wr_id=$wr_id');\"><img src='$board_skin_path/img/btn_scrap.gif' border='0' align='absmiddle'></a> "; } ?>

        <? if ($copy_href) { echo "<a href=\"$copy_href\"><img src='$board_skin_path/img/btn_copy.gif' border='0' align='absmiddle'></a> "; } ?>
        <? if ($move_href) { echo "<a href=\"$move_href\"><img src='$board_skin_path/img/btn_move.gif' border='0' align='absmiddle'></a> "; } ?>
    </td>
    <td width=25% align=right>
        <? if ($prev_href) { echo "<a href=\"$prev_href\" title=\"$prev_wr_subject\"><img src='$board_skin_path/img/btn_prev.gif' border='0' align='absmiddle'></a>"; } ?>
        <? if ($next_href) { echo "<a href=\"$next_href\" title=\"$next_wr_subject\"><img src='$board_skin_path/img/btn_next.gif' border='0' align='absmiddle'></a>"; } ?>
    </td>
</tr>
</table>
<?
$link_buttons = ob_get_contents();
ob_end_flush();
?>

<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr><td height="2" bgcolor="#0A7299"></td></tr>
<tr><td height="35">

<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td style='word-break:break-all; height:30px;'>&nbsp;&nbsp;<strong><span style="font-size:15px;"><? if ($is_category) { echo ($category_name ? "[$view[ca_name]] " : ""); } ?><?=cut_hangul_last(get_text($view[wr_subject]))?></span></strong></td>
<td width=70><a href="javascript:scaleFont(+1);"><img src='<?=$board_skin_path?>/img/icon_zoomin.gif' border=0 title='글자 확대'></a>&nbsp;<a href="javascript:scaleFont(-1);"><img src='<?=$board_skin_path?>/img/icon_zoomout.gif' border=0 title='글자 축소'></a></td>
</tr>
</table>

</td></tr>
<tr><td height="1" bgcolor="#DDDDDD"></td></tr>
<tr><td height="3" bgcolor="#F6F6F6"></td></tr>
<tr><td height=30>&nbsp;&nbsp;<font color=#7A8FDB>글쓴이</font> : <?=$view[name]?><? if ($is_admin == "super" || $is_auth) {  if ($is_ip_view) {  echo "&nbsp;(<font style='font-size:8pt;'>$ip</font>)"; }} ?>&nbsp;&nbsp;
      <font color=#7A8FDB>날짜</font> : <span style='font:normal 11px tahoma; color:#BABABA;'><?=substr($view[wr_datetime],2,14)?></font>&nbsp;&nbsp;
      <font color=#7A8FDB>조회</font> : <span style='font:normal 11px tahoma; color:#BABABA;'><?=$view[wr_hit]?></font>&nbsp;&nbsp;&nbsp;&nbsp;<? if ($trackback_url) { ?><a href="javascript:trackback_send_server('<?=$trackback_url?>');" style="letter-spacing:0;" title='주소 복사'><img src="<?=$board_skin_path?>/img/icon_trackback.gif" alt="" align="absmiddle" border="0"></a>&nbsp;&nbsp;&nbsp;&nbsp;<?}?>
      <? if ($is_good) { ?><font color=#7A8FDB>추천</font> : <?=$view[wr_good]?>&nbsp;&nbsp;<?}?>
      <? if ($is_nogood) { ?><font color=#7A8FDB>비추천</font> : <?=$view[wr_nogood]?>&nbsp;&nbsp;<?}?></td></tr>
  <tr><td height='1' bgcolor='#e7e7e7'></td></tr>


<?if ($view[wr_email]) { ?>
<!-- <tr><td height=25>&nbsp;&nbsp;<font color=#7A8FDB>이메일</font> : <?=$view[wr_email]?></td></tr>
<tr><td height=1 bgcolor=#E7E7E7></td></tr> -->
<?}?>

<?
// 가변 파일

$cnt = 0;
$table_line = 0;
for ($i=0; $i<count($view[file]); $i++)
{
    if ($view[file][$i][source] && !$view[file][$i][view])
    {

        $cnt++;
$table_line = 1;
        echo "<tr><td height=25>&nbsp;&nbsp;<img src='{$board_skin_path}/img/icon_file.gif' align=absmiddle> <a href=\"javascript:file_download('{$view[file][$i][href]}', '{$view[file][$i][source]}');\" title='{$view[file][$i][content]}'><strong>{$view[file][$i][source]}</strong></a> (<font style='font-size:8pt;'>{$view[file][$i][size]}</font>),&nbsp;&nbsp;&nbsp;다운로드 : <span style='font-size:8pt;font-family:tahoma;color:#EE5A00; vertical-align:1px;'>{$view[file][$i][download]}</span><!--,  {$view[file][$i][datetime]} --></td></tr>";
    }
}

// 링크
$cnt = 0;
for ($i=1; $i<=$g4[link_count]; $i++)
{
  if ($view[link][$i])
    {
        $cnt++;
$table_line = 1;
        $link = cut_str($view[link][$i], 70);
        echo "<tr><td height=25>&nbsp;&nbsp;<img src='{$board_skin_path}/img/icon_link.gif' align=absmiddle> <a href='{$view[link_href][$i]}' target=_blank>{$link}</a>&nbsp;(<font style='font-size:8pt;'>{$view[link_hit][$i]}</font>)</td></tr>";
    }

}
if($table_line == 1)echo "<tr><td height='1' bgcolor='#e7e7e7'></td></tr>";
?>
<tr><td>

<table width="100%" border="0" cellpadding="0" cellspacing="0"  bgcolor="#ffffff">

<tr>
    <td>
<table border="0" width="100%" cellpadding="0" cellspacing="0" style="table-layout:fixed;">

<tr>
<td style='word-break:break-all; padding:10px;'>
<?
// 파일 출력
        for ($i=0; $i<=count($view[file]); $i++) {
            if ($view[file][$i][view])
                echo $view[file][$i][view] . "<p>";
        }

                echo "<p><b>다음은 이 갤러리의 EXIF 정보입니다</b><br><br>" ;
                //$exif = @exif_read_data("{$view[file][$i][path]}/{$view[file][$i][file]}");
                if (isset($exif[Make]) || isset($exif[Model])) echo "카메라모델 : $exif[Make] - $exif[Model]<br>";
                if (isset($exif[DateTimeOriginal])) echo "촬영일시 : $exif[DateTimeOriginal]&nbsp;&nbsp;&nbsp;";
                if (isset($exif[COMPUTED][Width]) || isset($exif[COMPUTED][Height])) echo "원본 이미지크기 : {$exif[COMPUTED][Width]} x {$exif[COMPUTED][Height]} 픽셀<br>";
                if (isset($exif[COMPUTED][ApertureFNumber])) echo "조리개 : {$exif[COMPUTED][ApertureFNumber]}<br>";
                if (isset($exif[ISOSpeedRatings])) echo "ISO : $exif[ISOSpeedRatings]<br>";
                if (isset($exif[WhiteBalance])) echo "화이트밸런스 : {$exif[WhiteBalance]}<br>";
                if (isset($exif[ExposureTime])) echo "노출시간 : $exif[ExposureTime] 초<br>";
                if (isset($exif[ExposureBiasValue])) echo "노출보정 : $exif[ExposureBiasValue]<br>";
                if (isset($exif[COMPUTED][CCDWidth])) echo "CCD : {$exif[COMPUTED][CCDWidth]}<br>";
                if (isset($exif[Flash])) echo "플래쉬 : {$exif[Flash]}<br>";
                echo "<p>" ;
        ?>
       
       
<font style="line-height:120%;">
<span id="writeContents"><?=$view[content];?></span>
</font>
<?//echo $view[rich_content]; // 과 같은 코드를 사용할 경우?>
<!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a></td>
</tr>
</table>
</td></tr>

<tr><td align="right"><?=exp_bar($mb[mb_id],$mb[mb_point],0);?></td></tr>
<tr height="5"> <td></td></tr>
<tr><td height="1" bgcolor="#DDDDDD"></td></tr>
<tr height="5"> <td></td></tr>
<tr height="25"><td> <? if ($is_signature) {?><? echo "&nbsp;&nbsp;$signature"; ?><?} // 서명 출력 ?></td></tr>
<tr height="5"> <td></td></tr>
<tr><td height="1" bgcolor="#DDDDDD"></td></tr>
<tr><td height="3" bgcolor="#F6F6F6"></td></tr>
</table>

</td>
</tr>
</table>

<?
include_once("./view_comment.php");
?>

<?=$link_buttons?>

</td></tr></table>

<script language="JavaScript">
function file_download(link, file) {
    <? if ($board[bo_download_point] < 0) { ?>if (confirm("'"+file+"' 파일을 다운로드 하시면 포인트가 차감(<?=number_format($board[bo_download_point])?>점)됩니다.\n\n포인트는 게시물당 한번만 차감되며 다음에 다시 다운로드 하셔도 중복하여 차감하지 않습니다.\n\n파일을 다운로드 하시겠습니까?"))<?}?>
    document.location.href=link;
}
</script>

<script language="JavaScript" src="<?="$g4[path]/js/board.js"?>"></script>
<script language="JavaScript">
window.onload=function() {
    resizeBoardImage(<?=(int)$board[bo_image_width]?>);
    drawFont();
}
</script>

<!-- 게시글 보기 끝 -->

댓글 전체

전체 66 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT