질문 & 답변 게시판
http://www.ad7.kr 이게 제가 지금 만들고 있는 홈페이지 입니다..
시안확인 게시판에
[부개해법영어] 전단 시안 을 클릭하면 새창이 뜹니다.
근데 원본 이미지가 커서, 이미지가 찌그러져서 본문에 나오는데요..
이걸 원본 이미지 사이즈대로 나오게 할 순 없나요? 몇일을 고생했는데 도저히 모르겠어요..
부탁드립니다.......
view 파일 내용입니다.
<?php
$fileimg1 = preg_match("/\.(gif|jpe?g|png|bmp)$/i", $data['file_name1']);
$fileimg2 = preg_match("/\.(gif|jpe?g|png|bmp)$/i", $data['file_name2']);
$upload_image1 = $fileimg1 ? "<img src='".str_replace("%2F", "/", rawurlencode($data['file_name1']))."' border='0' name='zb_target_resize' style='cursor:pointer' onclick='window.open(this.src)' /><br />" : "";
$upload_image2 = $fileimg2 ? "<img src='".str_replace("%2F", "/", rawurlencode($data['file_name2']))."' border='0' name='zb_target_resize' style='cursor:pointer' onclick='window.open(this.src)' /><br />" : "";
?>
<?
$name = str_replace(">","><font class=list_han>",$name);
$homepage = str_replace(">","><font class=list_eng></b>",$homepage);
$a_file_link1 = str_replace(">","><font class=list_eng></b>",$a_file_link1);
$a_file_link2 = str_replace(">","><font class=list_eng></b>",$a_file_link2);
$sitelink1 = str_replace(">","><font class=list_eng></b>",$sitelink1);
$sitelink2 = str_replace(">","><font class=list_eng></b>",$sitelink2);
$memo = str_replace("<table border=0 cellspacing=0 cellpadding=0 width=100% style=\"table-layout:fixed;\"><col width=100%></col><tr><td valign=top>","<table border=0 cellspacing=0 cellpadding=0 width=100% style=\"table-layout:fixed;\"><col width=100%></col><tr><td valign=top class=list_han>",$memo);
?>
<img src=<?=$dir?>/t.gif border=0 height=5><br>
<table border=0 cellspacing=0 cellpadding=0 width=<?=$width?>>
<tr class=title>
<td class=title_han style=padding:8px;word-break:break-all;>
<b><?=$subject?></b>
</td>
</tr>
<tr class=list1>
<td height=180 valign=top bgcolor=white>
<table border=0 cellspacing=0 width=100% style=table-layout:fixed height=30 class=list0>
<col width=></col><col width=240></col>
<tr>
<td nowrap style=padding-left:10px>
<?=$face_image?> <?=$name?></b>
<?
if($data['homepage']) {
?><a href="<?=$data['homepage']?>" target=_blank><font class=list_eng>(Homepage)</font></a><?
}
?>
</td>
<td align=right style=padding-right:10px class=list_eng><?=$date?>, 조회 : <b><?=number_format($hit)?></b>, 추천 : <b><?=$vote?></b></td>
</tr>
</table>
<table border=0 cellspacing=0 cellpadding=10 width=100% padding=8>
<tr>
<td>
<?=$memo?>
<?=$hide_sitelink1_start?><font class=list_eng>- <b>SiteLink #1</b> : <?=$sitelink1?></font><br><?=$hide_sitelink1_end?>
<?=$hide_sitelink2_start?><font class=list_eng>- <b>SiteLink #2</b> : <?=$sitelink2?></font><br><?=$hide_sitelink2_end?>
<?=$hide_download1_start?><font class=list_eng>- <b>Download #1</b> : <?=$a_file_link1?><?=$file_name1?> (<?=$file_size1?>)</a>, Download : <?=$file_download1?></font><br><?=$upload_image1?><?=$hide_download1_end?>
<?=$hide_download2_start?><font class=list_eng>- <b>Download #2</b> : <?=$a_file_link2?><?=$file_name2?> (<?=$file_size2?>)</a>, Download : <?=$file_download2?></font><br><?=$upload_image2?><?=$hide_download2_end?>
<img src=<?=$dir?>/t.gif border=0 width=10><br>
<div align=right class=list_eng><?=$ip?></div>
</td>
</tr>
</table>
</td>
</td>
</tr>
</table>
<img src=<?=$dir?>/t.gif border=0 height=2><br>
<?if($member['level']<=$setup['grant_comment']){?>
<?=$hide_comment_start?>
<table border=0 cellspacing=0 cellpadding=0 height=1 width=<?=$width?>>
<tr><td height=1 class=line1 style=height:1px><img src=<?=$dir?>/t.gif border=0 height=1></td></tr>
</table>
<img src=/images/t.gif border=0 height=8><br>
<table width=<?=$width?> cellspacing=1 cellpadding=4>
<col width=100></col><col width=8></col><col width=></col><col width=100></col>
<img src=/images/t.gif border=0 height=8><br>
<?=$hide_comment_end?>
<?}?>



위에 소스를 삭제를 하거나 소스앞에 주석처리를 해 보세요.
그리고 게시물 클릭시 본문이 바로 출력하는 것이 아니라...
본문이 팝업창으로 출력하는 식이라 팝업창을 띄우는 소스에서 창이 넓이를 적절히 줘보세요.