묻고답하기
● 갤러리에 첨부파일2도 나오게 하려면?
2007.11.04 20:24
<?
unset($size);
$size[0]=$size[1]=0;
$x_size=$img_w;
$y_size=$img_h;
$img_name=$dir."/no_img.gif";
$view_img="<a href='#none' onFocus='this.blur()'>";
if ($data[file_name1]) {
$size=@getimagesize($data[file_name1]);
if($size[0] == 0 ) $size[0]=1;
if($size[1] == 0 ) $size[1]=1;
if($size[0]>$size[1]) { $per=$size_factor / $size[0]; }
else { $per=$size_factor / $size[1]; }
$x_size=$size[0]*$per;
$y_size=$size[1]*$per;
$img_name="$data[file_name1]";
$win_width = $size[0] + 10;
$win_height = $size[1] + 50;
$view_img="<a
href='#' onclick=\"new_win=window.open('$dir/view_img.php?file=$data[file_name1]','img_win','left=0,top=0,width=0, height=0, resizable=no, scrollbar=no,status=no'); new_win.resizeTo($win_width,$win_height); new_win.focus(); return false;\" onFocus='this.blur()'>";
}
?>
<td width=<?echo (100 / $max_show_image);?>% valign=top align=center style='padding:15 5 0 5;'>
<table align=center border=0 cellpadding=0 cellspacing=0>
<tr valign=top>
<td>
<table align=center border=0 cellpadding=0 cellspacing=0 width=<?=$img_w?>>
<tr>
<td align=center style='padding:5;' class=input><?=$view_img?><img src=<?=$img_name?> width=<?=$img_w?> height=<?=$img_h?> border=0></a></td>
</tr>
<tr>
<td width=<?=$img_w?> style='padding-top:5;' align=center><?=$subject?><?=$hide_cart_start?><input type=checkbox name=cart value="<?=$data[no]?>"><?=$hide_cart_end?></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
--------------
위와같은 list_main.php 소스에서
목록에서 첨부1만 나오는데 첨부2도 나오게 하려면 어떻게할까요?