이미지가 짤려요 > 그누4 질문답변

그누4 질문답변

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

이미지가 짤려요 정보

이미지가 짤려요

본문

글보기에서 이미지를 클릭하면 새창에서 띄우게 하였는데요.
새창에서 이미지가 짤리네요.
 
이 사이트입니다.
 
참고로 아래는 view.skin.php 파일입니다.
 
고수님들 도움 부탁드립니다!
 
 
---------------------------------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
//길이 설정
// 이미지 가로 갯수
$mod = "3";
?>
<link rel='stylesheet' type='text/css' href='<?=$board_skin_path?>/board_style.css'>
<script language="javascript">
<!--
 function view(what) {
var imgwin = window.open("",'WIN','scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=10,height=10');
imgwin.focus();
imgwin.document.open();
imgwin.document.write("<html>\n");
imgwin.document.write("<head>\n");
imgwin.document.write("<title>Close Window..</title>\n"); //오픈창 타이틀 이름 지정하는 부분
imgwin.document.write("<sc"+"ript>\n");
imgwin.document.write("function resize() {\n");
imgwin.document.write("pic = document.il;\n");
//imgwin.document.write("alert(eval(pic).height);\n");
imgwin.document.write("if (eval(pic).height) { var name = navigator.appName\n");
imgwin.document.write(" if (name == 'Microsoft Internet Explorer') { myHeight = eval(pic).height +20; myWidth = eval(pic).width + 0;\n");
imgwin.document.write(" } else { myHeight = eval(pic).height + 9; myWidth = eval(pic).width; }\n");
imgwin.document.write(" clearTimeout();\n");
imgwin.document.write(" var height = screen.height;\n");
imgwin.document.write(" var width = screen.width;\n");
imgwin.document.write(" var leftpos = width / 2 - myWidth / 2;\n");
imgwin.document.write(" var toppos = height / 2 - myHeight / 2; \n");
imgwin.document.write(" self.moveTo(leftpos, toppos);\n");
imgwin.document.write(" self.resizeTo(myWidth, myHeight);\n");
imgwin.document.write("}else setTimeOut(resize(), 100);}\n");
imgwin.document.write("</sc"+"ript>\n");
imgwin.document.write("</head>\n");
imgwin.document.write('<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" bgcolor="white">\n');
imgwin.document.write("<img border=0 src="+what+" xwidth=100 xheight=9 name=il onload='resize();' onclick='window.close();' style='cursor:pointer'>\n");
imgwin.document.write("</body>\n");
imgwin.document.close();
}
-->
</script>
<!-- 게시글 보기 시작 -->
<table width="<?=$width?>" align="center" cellpadding="0" cellspacing="0"><tr><td>
<!-- 링크 버튼 -->
<?
ob_start();
?>
<table width='100%' cellpadding=0 cellspacing=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%" border="0" cellspacing="0" cellpadding="5">
  <tr>
    <td width="12%" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="1">
      <tr>
        <td align="center" bgcolor="#eeeeee"><?
if($view[file][0][file]){
$image = $view[file][0][file];
$file1_v= "<img src='$g4[path]/data/file/$board[bo_table]/$image' width='200' height='200' align='center' onclick=\"view('$g4[path]/data/file/$bo_table/$image')\">";}
else{echo "<center><img src='$board_skin_path/img/no_banner.gif' width='200' height='200' align='absmiddle'></center>";}
for ($i=0; $i<=count; $i++){
if ($view[file][$i]){
echo "<a href='javascript:;'>$file1_v</a>";}
}
?></td>
      </tr>
      <tr>
        <td align="center"><?
$image1 = $view[file][1][file];
$image2 = $view[file][2][file];
$image3 = $view[file][3][file];
$image4 = $view[file][4][file];
/*$image5 = $view[file][5][file];
$image6 = $view[file][6][file];*/
$file1= "<img src='$g4[path]/data/file/$board[bo_table]/$image1' width='60' height='60' align='center' onclick=\"view('$g4[path]/data/file/$bo_table/$image1')\">";
$file2= "<img src='$g4[path]/data/file/$board[bo_table]/$image2' width='60' height='60' align='center' onclick=\"view('$g4[path]/data/file/$bo_table/$image2')\">";
$file3= "<img src='$g4[path]/data/file/$board[bo_table]/$image3' width='60' height='60' align='center' onclick=\"view('$g4[path]/data/file/$bo_table/$image3')\">";
$file4= "<img src='$g4[path]/data/file/$board[bo_table]/$image4' width='60' height='60' align='center' onclick=\"view('$g4[path]/data/file/$bo_table/$image4')\">";
/*$file5= "<img src='$g4[path]/data/file/$board[bo_table]/$image5' width='110' height='100' align='center' onclick=\"view('$g4[path]/data/file/$bo_table/$image5')\">";
$file6= "<img src='$g4[path]/data/file/$board[bo_table]/$image6' width='110' height='100' align='center' onclick=\"view('$g4[path]/data/file/$bo_table/$image6')\">";  */
if ($view[file][1][view]){
echo "<a href='javascript:;'>$file1</a>";
}
if ($view[file][2][view]){
echo "  <a href='javascript:;'>$file2</a>";
}
if ($view[file][3][view]){
echo "  <a href='javascript:;'>$file3</a>";
}
if ($view[file][4][view]){
echo "  <a href='javascript:;'>$file4</a><br /><br />";
}
/*if ($view[file][5][view]){
echo "  <a href='javascript:;'>$file5</a>";
}
if ($view[file][6][view]){
echo "  <a href='javascript:;'>$file6</a>";
}*/

else if(!$view[file][1][file] && !$view[file][2][file] && !$view[file][3][file] && !$view[file][4][file] && !$view[file][5][file] && !$view[file][6][file])
 echo "";
?></td>
      </tr>
    </table></td>
     <td width="88%" valign="top"><table width="100%" cellspacing="0" cellpadding="0">
       <tr>
         <td height="2" bgcolor="#B0ADF5"></td>
       </tr>
       <!-- <tr><td height=30 bgcolor=#F8F8F9 style="padding:5 0 5 0;">  
        <strong>
        <?
        if ($is_category) {
            if ($view[wr_10]) {
                $wr_10 =  " > $view[wr_10]";
            }
            echo ($category_name ? "[$view[ca_name]". "$wr_10]" : "");
        }
        ?>
        <?=$view[subject]?>
        </strong>
    </td></tr> -->
       <!-- <tr><td height=30>  <font color=#7A8FDB>글쓴이</font> : <?=$view[name]?><? if ($is_ip_view) { echo " ($ip)"; } ?>    
       <font color=#7A8FDB>날짜</font> : <?=substr($view[wr_datetime],2,14)?>    
       <font color=#7A8FDB>조회</font> : <?=$view[wr_hit]?>    
       <? if ($is_good) { ?><font color=#7A8FDB>추천</font> : <?=$view[wr_good]?>    <?}?>
       <? if ($is_nogood) { ?><font color=#7A8FDB>비추천</font> : <?=$view[wr_nogood]?>    <?}?></td></tr>
<tr><td height=1 bgcolor=#E7E7E7></td></tr> -->
       <!-- <? if ($trackback_url) { ?>
<tr><td height=30>  트랙백 주소 : <a href="javascript:clipboard_trackback('<?=$trackback_url?>');" style="letter-spacing:0;" title='이 글을 소개할 때는 이 주소를 사용하세요'><?=$trackback_url?></a>
<script language="JavaScript">
function clipboard_trackback(str)
{
    if (g4_is_gecko)
        prompt("이 글의 고유주소입니다. Ctrl+C를 눌러 복사하세요.", str);
    else if (g4_is_ie) {
        window.clipboardData.setData("Text", str);
        alert("트랙백 주소가 복사되었습니다.\n\n<?=$trackback_url?>");
    }
}
</script></td></tr>
<?}?> -->
       <?
// 가변 파일
$cnt = 0;
for ($i=0; $i<count($view[file]); $i++)
{
    if ($view[file][$i][source] && !$view[file][$i][view])
    {
        $cnt++;
        echo "<tr><td height=22>  <img src='{$board_skin_path}/img/icon_file.gif' align=absmiddle> <a href='{$view[file][$i][href]}' title='{$view[file][$i][content]}'><strong>{$view[file][$i][source]}</strong> ({$view[file][$i][size]}), Down : {$view[file][$i][download]}, {$view[file][$i][datetime]}</a></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>  <img src='{$board_skin_path}/img/icon_link.gif' align=absmiddle> <a href='{$view[link_href][$i]}' target=_blank><strong>{$link}</strong> ({$view[link_hit][$i]})</a></td></tr>";
    }
}
?>
       <!-- <tr><td height=1 bgcolor=#E7E7E7></td></tr> -->
       <!-- 추가필드0 시작-->
       <tr>
         <td height="30">  <b>제품분류</b> : <?php echo($view[ca_name]); ?> </td>
       </tr>
       <tr>
         <td height="1" bgcolor="#E7E7E7"></td>
       </tr>
       <!-- 추가필드0 끝-->
       <!-- 추가필드1 시작-->
       <tr>
         <td height="30">  <b>제 품  명</b> : <?php echo($view[subject]); ?> </td>
       </tr>
       <tr>
         <td height="1" bgcolor="#E7E7E7"></td>
       </tr>
       <!-- 추가필드1 끝-->
       <!-- 추가필드1 시작-->
       <tr>
         <td height="30">  <b>제품코드</b> : <?php echo($view[wr_1]); ?> <a href="./write.php?bo_table=request&bunru=w&subject1=<?php echo $view[subject] ?>&code1=<?php echo $view[wr_1] ?>"><?php echo "<img src='{$board_skin_path}/img/bt_order.gif'  border=0  align=absmiddle>"; ?></a></td>
       </tr>
       <tr>
         <td height="1" bgcolor="#E7E7E7"></td>
       </tr>
       <!-- 추가필드1 끝-->
       <!-- 추가필드1 시작-->
       <tr>
         <td height="30">  <b>제품가격</b> : <?php echo($view[wr_3]); ?> </td>
       </tr>
       <tr>
         <td height="1" bgcolor="#E7E7E7"></td>
       </tr>
              <tr>
         <td height="30">  <b>원산지</b> : <?php echo($view[wr_5]); ?> </td>
       </tr>
       <tr>
         <td height="1" bgcolor="#E7E7E7"></td>
       </tr>
              <tr>
         <td height="30">  <b>최소주문수량</b> : <?php echo($view[wr_6]); ?> </td>
       </tr>
       <tr>
         <td height="1" bgcolor="#E7E7E7"></td>
       </tr>
     </table></td>
  </tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0">
<tr><td height=2 bgcolor=#B0ADF5></td></tr>
<!-- <tr><td height=30 bgcolor=#F8F8F9 style="padding:5 0 5 0;">  
        <strong>
        <?
        if ($is_category) {
            if ($view[wr_10]) {
                $wr_10 =  " > $view[wr_10]";
            }
            echo ($category_name ? "[$view[ca_name]". "$wr_10]" : "");
        }
        ?>
        <?=$view[subject]?>
        </strong>
    </td></tr> -->
<!-- <tr><td height=30>  <font color=#7A8FDB>글쓴이</font> : <?=$view[name]?><? if ($is_ip_view) { echo " ($ip)"; } ?>    
       <font color=#7A8FDB>날짜</font> : <?=substr($view[wr_datetime],2,14)?>    
       <font color=#7A8FDB>조회</font> : <?=$view[wr_hit]?>    
       <? if ($is_good) { ?><font color=#7A8FDB>추천</font> : <?=$view[wr_good]?>    <?}?>
       <? if ($is_nogood) { ?><font color=#7A8FDB>비추천</font> : <?=$view[wr_nogood]?>    <?}?></td></tr>
<tr><td height=1 bgcolor=#E7E7E7></td></tr> -->
<!-- <? if ($trackback_url) { ?>
<tr><td height=30>  트랙백 주소 : <a href="javascript:clipboard_trackback('<?=$trackback_url?>');" style="letter-spacing:0;" title='이 글을 소개할 때는 이 주소를 사용하세요'><?=$trackback_url?></a>
<script language="JavaScript">
function clipboard_trackback(str)
{
    if (g4_is_gecko)
        prompt("이 글의 고유주소입니다. Ctrl+C를 눌러 복사하세요.", str);
    else if (g4_is_ie) {
        window.clipboardData.setData("Text", str);
        alert("트랙백 주소가 복사되었습니다.\n\n<?=$trackback_url?>");
    }
}
</script></td></tr>
<?}?> -->
<?
// 가변 파일
$cnt = 0;
for ($i=0; $i<count($view[file]); $i++)
{
    if ($view[file][$i][source] && !$view[file][$i][view])
    {
        $cnt++;
        echo "<tr><td height=22>  <img src='{$board_skin_path}/img/icon_file.gif' align=absmiddle> <a href='{$view[file][$i][href]}' title='{$view[file][$i][content]}'><strong>{$view[file][$i][source]}</strong> ({$view[file][$i][size]}), Down : {$view[file][$i][download]}, {$view[file][$i][datetime]}</a></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>  <img src='{$board_skin_path}/img/icon_link.gif' align=absmiddle> <a href='{$view[link_href][$i]}' target=_blank><strong>{$link}</strong> ({$view[link_hit][$i]})</a></td></tr>";
    }
}
?>
<tr><td height=1 bgcolor=#E7E7E7></td></tr>
<!-- 추가필드2 끝-->
<tr>
    <td height="150" style='word-break:break-all; padding:10px;' bgcolor=#FFFFFF>

        <span class="ct lh"><?=$view[content];?></span>
       
       
        <?//echo $view[rich_content]; // 과 같은 코드를 사용할 경우?>
        <!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>
       
        <? if ($is_signature) { echo "<br>$signature<br><br>"; } // 서명 출력 ?></td>
</tr>
</table>
<br>
<?
include_once("./view_comment.php");
?>
<?=$link_buttons?>
</td></tr></table><br>
<script language="JavaScript" src="<?="$g4[path]/js/board.js"?>"></script>
<script language="JavaScript">
window.onload=function() {
    resizeBoardImage(<?=(int)$board[bo_image_width]?>);
    drawFont();
}
</script>
<!-- 게시글 보기 끝 -->
  • 복사

댓글 전체

© SIRSOFT
현재 페이지 제일 처음으로