가로 배열로 보이게 하려면? 정보
그누보드 가로 배열로 보이게 하려면?본문
위 이미지는 http://www.sir.co.kr/?doc=bbs/gnuboard.php&bo_table=skin3&page=4&wr_id=40 이은태님의
썸네일 기능이 있는 갤러리 게시판과 그것을 최신이미지로 나타낼려고 하는데 세로로만 출력이 되는군요..
가로로 출력하려면 어떻게 해야 하는지요?
아래는 latest.skin.php 파일 내용입니다.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
<?
include_once $board_skin."/_include.php";
?>
<table width=100% cellpadding=0 cellspacing=1 bgcolor=#999999>
<tr><td bgcolor="white">
<!-- 여기부터 반복 부분 =================================================================================================================== -->
<table width=99% align=center cellpadding=3 border=0 >
<tr>
<?
for ($i=0; $i<count($list); $i++) {
$tr = "";
if ($i && $i%$board[bo_gallery_width]==0) {
$tr = "</tr><tr>";
}
echo "$tr";
//if (!file_exists($list[$i][file_image1])) { $list[$i][file_image1] = "$board_skin/noimage.gif"; }
####################################################################################################################################################
$ori = $list[$i][file_image1]; //[필수](URL) "./img/Test.gif"
$ext = strtolower(substr(strrchr($ori,"."), 1)); //확장자
//if ( file_exists($ori) ) $ori_info=getimagesize($ori); else $ori_info=""; //파일이 있을 경우, 확장자 지정.
if ( $ext=="gif"||$ext=="jpg"||$ext=="jpeg"||$ext=="png"||$ext=="bmp"||$ext=="tif"||$ext=="tiff") $ori_info=getimagesize($ori); else $ori_info="";
if ( $ori_info[2]=="2" || $ori_info[2]=="3" ) { //============================================================ 원파일이 [ 2JPG, 2JPEG, 3PNG ] 경우.
$thum = $ori.".Thum" ;
if ( file_exists($thum) ) { // Thumbnail [O] 경우
$thum_info = getimagesize ($thum);
$thum_W = $thum_info[0] ;
$thum_H = $thum_info[1] ;
} else { // Thumbnail [X] 경우
if ( smaller( $ori_info[0], $ori_info[1] ) ) {
maker( $thum_W, $thum_H );
}
}
} else if ( $ori_info[2]=="1" || $ori_info[2]=="6" || $ori_info[2]=="7" ) { //=================== 원파일이 [ 1GIF,6BMP,7TIF ] 경우.
if ( smaller( $ori_info[0], $ori_info[1] ) ) {
$thum = $ori ;
}
} else { //========================================================================================= 원파일이 [ 1,2,3,6,7 ] 아닐 경우.
$thum = $noIMG ;
$noIMG_info = getimagesize ($noIMG);
$thum_W = $noIMG_info[0] ;
$thum_H = $noIMG_info[1] ;
}
####################################################################################################################################################
?>
<td width='<?=$td_width?>%' valign=top align=center>
<table width='<?=$max+14?>' height='<?=$max+14?>' bgcolor=silver cellpadding=0 cellspacing=0 border=0 >
<tr>
<td style='border-width:1px; border-style:outset; ' align=center valign=middle bgcolor=#F2F4F4 >
<!-- <a href='<?=$list[$i][href]?>'><img src='<?=$list[$i][file_image1]?>' width='<?=$image_width?>' height='<?=$image_height?>' border=1 alt='<?=$list[$i][wr_subject]?>' style='border-color:red;'></a> -->
<TABLE cellpadding=0 cellspacing=0 border=0 >
<TR>
<TD style='border-width:1px; border-style:inset; border-right-color: white; border-bottom-color: white;' >
<a href='<?=$list[$i][href]?>' onfocus=blur()><img src='<?=$thum?>' width='<?=$thum_W?>' height='<?=$thum_H?>' alt='<?=$list[$i][wr_subject]?>' !style='border-color:white; border-width:1px; border-style:inset;' border=0 ></a></TD>
</TR>
</TABLE>
</td>
</tr>
</table>
<TABLE height=5 cellspacing=0 ><TR><TD></TD></TR></TABLE>
<? if ($is_checkdelete) { ?><input type=checkbox name=chk_wr_id[] value='<?=$list[$i][wr_id]?>'><? } ?> <a href='<?=$list[$i][href]?>'><? if ($list[$i][is_notice]) echo "<b>"; ?><?=cut_str($list[$i][subject],$str,"…");?></a> <?=$list[$i][icon_new]?><? if ($list[$i][is_notice]) echo "</b>"; ?>
<span style='font-size:8pt;'><?=$list[$i][commentcnt]?></span>
</td>
<? }
if (count($list) == 0) { echo "<tr><td colspan=8 align=center height=100 class='content contentbg'>자료가 없습니다.</td></tr>"; }
?>
</form>
</table>
<!-- 여기까지 반복 부분 =================================================================================================================== -->
</td>
</tr>
</table>
썸네일 기능이 있는 갤러리 게시판과 그것을 최신이미지로 나타낼려고 하는데 세로로만 출력이 되는군요..
가로로 출력하려면 어떻게 해야 하는지요?
아래는 latest.skin.php 파일 내용입니다.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
<?
include_once $board_skin."/_include.php";
?>
<table width=100% cellpadding=0 cellspacing=1 bgcolor=#999999>
<tr><td bgcolor="white">
<!-- 여기부터 반복 부분 =================================================================================================================== -->
<table width=99% align=center cellpadding=3 border=0 >
<tr>
<?
for ($i=0; $i<count($list); $i++) {
$tr = "";
if ($i && $i%$board[bo_gallery_width]==0) {
$tr = "</tr><tr>";
}
echo "$tr";
//if (!file_exists($list[$i][file_image1])) { $list[$i][file_image1] = "$board_skin/noimage.gif"; }
####################################################################################################################################################
$ori = $list[$i][file_image1]; //[필수](URL) "./img/Test.gif"
$ext = strtolower(substr(strrchr($ori,"."), 1)); //확장자
//if ( file_exists($ori) ) $ori_info=getimagesize($ori); else $ori_info=""; //파일이 있을 경우, 확장자 지정.
if ( $ext=="gif"||$ext=="jpg"||$ext=="jpeg"||$ext=="png"||$ext=="bmp"||$ext=="tif"||$ext=="tiff") $ori_info=getimagesize($ori); else $ori_info="";
if ( $ori_info[2]=="2" || $ori_info[2]=="3" ) { //============================================================ 원파일이 [ 2JPG, 2JPEG, 3PNG ] 경우.
$thum = $ori.".Thum" ;
if ( file_exists($thum) ) { // Thumbnail [O] 경우
$thum_info = getimagesize ($thum);
$thum_W = $thum_info[0] ;
$thum_H = $thum_info[1] ;
} else { // Thumbnail [X] 경우
if ( smaller( $ori_info[0], $ori_info[1] ) ) {
maker( $thum_W, $thum_H );
}
}
} else if ( $ori_info[2]=="1" || $ori_info[2]=="6" || $ori_info[2]=="7" ) { //=================== 원파일이 [ 1GIF,6BMP,7TIF ] 경우.
if ( smaller( $ori_info[0], $ori_info[1] ) ) {
$thum = $ori ;
}
} else { //========================================================================================= 원파일이 [ 1,2,3,6,7 ] 아닐 경우.
$thum = $noIMG ;
$noIMG_info = getimagesize ($noIMG);
$thum_W = $noIMG_info[0] ;
$thum_H = $noIMG_info[1] ;
}
####################################################################################################################################################
?>
<td width='<?=$td_width?>%' valign=top align=center>
<table width='<?=$max+14?>' height='<?=$max+14?>' bgcolor=silver cellpadding=0 cellspacing=0 border=0 >
<tr>
<td style='border-width:1px; border-style:outset; ' align=center valign=middle bgcolor=#F2F4F4 >
<!-- <a href='<?=$list[$i][href]?>'><img src='<?=$list[$i][file_image1]?>' width='<?=$image_width?>' height='<?=$image_height?>' border=1 alt='<?=$list[$i][wr_subject]?>' style='border-color:red;'></a> -->
<TABLE cellpadding=0 cellspacing=0 border=0 >
<TR>
<TD style='border-width:1px; border-style:inset; border-right-color: white; border-bottom-color: white;' >
<a href='<?=$list[$i][href]?>' onfocus=blur()><img src='<?=$thum?>' width='<?=$thum_W?>' height='<?=$thum_H?>' alt='<?=$list[$i][wr_subject]?>' !style='border-color:white; border-width:1px; border-style:inset;' border=0 ></a></TD>
</TR>
</TABLE>
</td>
</tr>
</table>
<TABLE height=5 cellspacing=0 ><TR><TD></TD></TR></TABLE>
<? if ($is_checkdelete) { ?><input type=checkbox name=chk_wr_id[] value='<?=$list[$i][wr_id]?>'><? } ?> <a href='<?=$list[$i][href]?>'><? if ($list[$i][is_notice]) echo "<b>"; ?><?=cut_str($list[$i][subject],$str,"…");?></a> <?=$list[$i][icon_new]?><? if ($list[$i][is_notice]) echo "</b>"; ?>
<span style='font-size:8pt;'><?=$list[$i][commentcnt]?></span>
</td>
<? }
if (count($list) == 0) { echo "<tr><td colspan=8 align=center height=100 class='content contentbg'>자료가 없습니다.</td></tr>"; }
?>
</form>
</table>
<!-- 여기까지 반복 부분 =================================================================================================================== -->
</td>
</tr>
</table>
댓글 전체