현재 세로배열 스킨인데요 가로 배열로 변경 부탁드립니다. 정보
현재 세로배열 스킨인데요 가로 배열로 변경 부탁드립니다.본문
마음에 드는 스킨을 찾았는데, 세로 배열이라 맘고생이 심하네요.
가로배열로 변경 부탁드립니다.
----------------------------------------------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$row_page = 4; // 한페이지에 보여질 게시물수
$pages = ceil(count($list) / $row_page);
?>
<script language="javascript">
var gallery_page = 1;
var gallery_page_max = <?=$pages?>;
function gallery_prev() {
if( gallery_page <= 1 )
return;
$('#gallery_'+gallery_page).css('display','none');
gallery_page--;
$('#gallery_'+gallery_page).css('display','block');
}
function gallery_next() {
if( gallery_page >= gallery_page_max )
return;
$('#gallery_'+gallery_page).css('display','none');
gallery_page++;
$('#gallery_'+gallery_page).css('display','block');
}
</script>
<style type="text/css">
.latest_gallery { border:1px solid #d7d5d5; width:185px; }
.latest_gallery table { margin:7px 4px; }
.latest_gallery table td { line-height:17px; font-size:11px; }
.latest_gallery table td a { color:#707070; }
.latest_gallery .title { color:#3cb1fb; font-weight:bold; padding-left:5px; }
.latest_gallery .arrow img { cursor:pointer; }
.latest_gallery .member { display:inline-block; margin-top:3px; color:#0836a3; cursor:pointer; }
.latest_gallery .hit { font-size:11px; color:#30323f; }
.latest_img { border:1px solid #d7d5d5; }
</style>
<div class="latest_gallery">
<table width="175" cellpadding="0" cellspacing="0">
<tr height="20">
<td class="title"><span style='font-size:12px'><?=$board[bo_subject]?></span></td>
<td width="15" align="right"><span class="arrow"><img src="<?=$latest_skin_path?>/img/ico_arrow_up.gif" border="0" onclick="gallery_prev()" /></span></td>
<td width="5"></td>
<td width="21" align="left"><span class="arrow"><img src="<?=$latest_skin_path?>/img/ico_arrow_down.gif" border="0" onclick="gallery_next()" /></span></td>
</tr>
<tr height="5"><td colspan="4"></td></tr>
<tr height="1"><td background="<?=$latest_skin_path?>/img/dotline.gif" colspan="4"></td></tr>
</table>
<?
$display = "block";
for( $i=1; $i <= $pages; $i++ ) {
?>
<table id='gallery_<?=$i?>' width='175' cellpadding='0' cellspacing='0' style='display:<?=$display?>;'>
<?
$display = "none";
for( $j=0; $j < $row_page; $j++ ) {
$idx = ($i-1) * $row_page + $j;
if( $list[$idx]['wr_id'] ) {
$image_path = "$g4[path]/data/file/$board[bo_table]/".$list[$idx][file][0][file];
if( file_exists($image_path) ) {
if( $list[$idx][file][0][image_type]==1 || $list[$idx][file][0][image_type]==2 || $list[$idx][file][0][image_type]==3 ) {
;
} else {
$image_path = $latest_skin_path."/img/noimage.gif";
}
} else {
$image_path = $latest_skin_path."/img/noimage.gif";
}
?>
<tr height="60">
<td width="78" align="center"><a href='<?=$list[$idx]['href']?>'><img src='<?=$image_path?>' border='0' align='absmiddle' width='66' height='47' class='latest_img'/></a></td>
<td valign="top" style='padding:6px 0'><a href='<?=$list[$idx]['href']?>'><?=$list[$idx]['subject']?></a></td>
</tr>
<?
}
}
?>
</table>
<?
}
?>
</div>
가로배열로 변경 부탁드립니다.
----------------------------------------------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$row_page = 4; // 한페이지에 보여질 게시물수
$pages = ceil(count($list) / $row_page);
?>
<script language="javascript">
var gallery_page = 1;
var gallery_page_max = <?=$pages?>;
function gallery_prev() {
if( gallery_page <= 1 )
return;
$('#gallery_'+gallery_page).css('display','none');
gallery_page--;
$('#gallery_'+gallery_page).css('display','block');
}
function gallery_next() {
if( gallery_page >= gallery_page_max )
return;
$('#gallery_'+gallery_page).css('display','none');
gallery_page++;
$('#gallery_'+gallery_page).css('display','block');
}
</script>
<style type="text/css">
.latest_gallery { border:1px solid #d7d5d5; width:185px; }
.latest_gallery table { margin:7px 4px; }
.latest_gallery table td { line-height:17px; font-size:11px; }
.latest_gallery table td a { color:#707070; }
.latest_gallery .title { color:#3cb1fb; font-weight:bold; padding-left:5px; }
.latest_gallery .arrow img { cursor:pointer; }
.latest_gallery .member { display:inline-block; margin-top:3px; color:#0836a3; cursor:pointer; }
.latest_gallery .hit { font-size:11px; color:#30323f; }
.latest_img { border:1px solid #d7d5d5; }
</style>
<div class="latest_gallery">
<table width="175" cellpadding="0" cellspacing="0">
<tr height="20">
<td class="title"><span style='font-size:12px'><?=$board[bo_subject]?></span></td>
<td width="15" align="right"><span class="arrow"><img src="<?=$latest_skin_path?>/img/ico_arrow_up.gif" border="0" onclick="gallery_prev()" /></span></td>
<td width="5"></td>
<td width="21" align="left"><span class="arrow"><img src="<?=$latest_skin_path?>/img/ico_arrow_down.gif" border="0" onclick="gallery_next()" /></span></td>
</tr>
<tr height="5"><td colspan="4"></td></tr>
<tr height="1"><td background="<?=$latest_skin_path?>/img/dotline.gif" colspan="4"></td></tr>
</table>
<?
$display = "block";
for( $i=1; $i <= $pages; $i++ ) {
?>
<table id='gallery_<?=$i?>' width='175' cellpadding='0' cellspacing='0' style='display:<?=$display?>;'>
<?
$display = "none";
for( $j=0; $j < $row_page; $j++ ) {
$idx = ($i-1) * $row_page + $j;
if( $list[$idx]['wr_id'] ) {
$image_path = "$g4[path]/data/file/$board[bo_table]/".$list[$idx][file][0][file];
if( file_exists($image_path) ) {
if( $list[$idx][file][0][image_type]==1 || $list[$idx][file][0][image_type]==2 || $list[$idx][file][0][image_type]==3 ) {
;
} else {
$image_path = $latest_skin_path."/img/noimage.gif";
}
} else {
$image_path = $latest_skin_path."/img/noimage.gif";
}
?>
<tr height="60">
<td width="78" align="center"><a href='<?=$list[$idx]['href']?>'><img src='<?=$image_path?>' border='0' align='absmiddle' width='66' height='47' class='latest_img'/></a></td>
<td valign="top" style='padding:6px 0'><a href='<?=$list[$idx]['href']?>'><?=$list[$idx]['subject']?></a></td>
</tr>
<?
}
}
?>
</table>
<?
}
?>
</div>
댓글 전체
따로 테스트는 못해봤습니다;
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$row_page = 4; // 한페이지에 보여질 게시물수
$row_num = 4;
$pages = ceil(count($list) / $row_page);
?>
<script language="javascript">
var gallery_page = 1;
var gallery_page_max = <?=$pages?>;
function gallery_prev() {
if( gallery_page <= 1 )
return;
$('#gallery_'+gallery_page).css('display','none');
gallery_page--;
$('#gallery_'+gallery_page).css('display','block');
}
function gallery_next() {
if( gallery_page >= gallery_page_max )
return;
$('#gallery_'+gallery_page).css('display','none');
gallery_page++;
$('#gallery_'+gallery_page).css('display','block');
}
</script>
<style type="text/css">
.latest_gallery { border:1px solid #d7d5d5; width:185px; }
.latest_gallery table { margin:7px 4px; }
.latest_gallery table td { line-height:17px; font-size:11px; }
.latest_gallery table td a { color:#707070; }
.latest_gallery .title { color:#3cb1fb; font-weight:bold; padding-left:5px; }
.latest_gallery .arrow img { cursor:pointer; }
.latest_gallery .member { display:inline-block; margin-top:3px; color:#0836a3; cursor:pointer; }
.latest_gallery .hit { font-size:11px; color:#30323f; }
.latest_img { border:1px solid #d7d5d5; }
</style>
<div class="latest_gallery">
<table width="175" cellpadding="0" cellspacing="0">
<tr height="20">
<td class="title"><span style='font-size:12px'><?=$board[bo_subject]?></span></td>
<td width="15" align="right"><span class="arrow"><img src="<?=$latest_skin_path?>/img/ico_arrow_up.gif" border="0" onclick="gallery_prev()" /></span></td>
<td width="5"></td>
<td width="21" align="left"><span class="arrow"><img src="<?=$latest_skin_path?>/img/ico_arrow_down.gif" border="0" onclick="gallery_next()" /></span></td>
</tr>
<tr height="5"><td colspan="4"></td></tr>
<tr height="1"><td background="<?=$latest_skin_path?>/img/dotline.gif" colspan="4"></td></tr>
</table>
<?
$display = "block";
for( $i=1; $i <= $pages; $i++ ) {
?>
<table id='gallery_<?=$i?>' width='175' cellpadding='0' cellspacing='0' style='display:<?=$display?>;'>
<tr height="60">
<?
$display = "none";
for( $j=0; $j < $row_page; $j++ ) {
$idx = ($i-1) * $row_page + $j;
if( $list[$idx]['wr_id'] ) {
$image_path = "$g4[path]/data/file/$board[bo_table]/".$list[$idx][file][0][file];
if( file_exists($image_path) ) {
if( $list[$idx][file][0][image_type]==1 || $list[$idx][file][0][image_type]==2 || $list[$idx][file][0][image_type]==3 ) {
;
} else {
$image_path = $latest_skin_path."/img/noimage.gif";
}
} else {
$image_path = $latest_skin_path."/img/noimage.gif";
}
?>
<td width="78" align="center"><a href='<?=$list[$idx]['href']?>'><img src='<?=$image_path?>' border='0' align='absmiddle' width='66' height='47' class='latest_img'/></a></td>
<td valign="top" style='padding:6px 0'><a href='<?=$list[$idx]['href']?>'><?=$list[$idx]['subject']?></a></td>
<?if($i%$row_num == 0){?>
</tr><tr height="60">
<?}?>
<?
}
}
?>
</table>
<?
}
?>
</div>
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$row_page = 4; // 한페이지에 보여질 게시물수
$row_num = 4;
$pages = ceil(count($list) / $row_page);
?>
<script language="javascript">
var gallery_page = 1;
var gallery_page_max = <?=$pages?>;
function gallery_prev() {
if( gallery_page <= 1 )
return;
$('#gallery_'+gallery_page).css('display','none');
gallery_page--;
$('#gallery_'+gallery_page).css('display','block');
}
function gallery_next() {
if( gallery_page >= gallery_page_max )
return;
$('#gallery_'+gallery_page).css('display','none');
gallery_page++;
$('#gallery_'+gallery_page).css('display','block');
}
</script>
<style type="text/css">
.latest_gallery { border:1px solid #d7d5d5; width:185px; }
.latest_gallery table { margin:7px 4px; }
.latest_gallery table td { line-height:17px; font-size:11px; }
.latest_gallery table td a { color:#707070; }
.latest_gallery .title { color:#3cb1fb; font-weight:bold; padding-left:5px; }
.latest_gallery .arrow img { cursor:pointer; }
.latest_gallery .member { display:inline-block; margin-top:3px; color:#0836a3; cursor:pointer; }
.latest_gallery .hit { font-size:11px; color:#30323f; }
.latest_img { border:1px solid #d7d5d5; }
</style>
<div class="latest_gallery">
<table width="175" cellpadding="0" cellspacing="0">
<tr height="20">
<td class="title"><span style='font-size:12px'><?=$board[bo_subject]?></span></td>
<td width="15" align="right"><span class="arrow"><img src="<?=$latest_skin_path?>/img/ico_arrow_up.gif" border="0" onclick="gallery_prev()" /></span></td>
<td width="5"></td>
<td width="21" align="left"><span class="arrow"><img src="<?=$latest_skin_path?>/img/ico_arrow_down.gif" border="0" onclick="gallery_next()" /></span></td>
</tr>
<tr height="5"><td colspan="4"></td></tr>
<tr height="1"><td background="<?=$latest_skin_path?>/img/dotline.gif" colspan="4"></td></tr>
</table>
<?
$display = "block";
for( $i=1; $i <= $pages; $i++ ) {
?>
<table id='gallery_<?=$i?>' width='175' cellpadding='0' cellspacing='0' style='display:<?=$display?>;'>
<tr height="60">
<?
$display = "none";
for( $j=0; $j < $row_page; $j++ ) {
$idx = ($i-1) * $row_page + $j;
if( $list[$idx]['wr_id'] ) {
$image_path = "$g4[path]/data/file/$board[bo_table]/".$list[$idx][file][0][file];
if( file_exists($image_path) ) {
if( $list[$idx][file][0][image_type]==1 || $list[$idx][file][0][image_type]==2 || $list[$idx][file][0][image_type]==3 ) {
;
} else {
$image_path = $latest_skin_path."/img/noimage.gif";
}
} else {
$image_path = $latest_skin_path."/img/noimage.gif";
}
?>
<td width="78" align="center"><a href='<?=$list[$idx]['href']?>'><img src='<?=$image_path?>' border='0' align='absmiddle' width='66' height='47' class='latest_img'/></a></td>
<td valign="top" style='padding:6px 0'><a href='<?=$list[$idx]['href']?>'><?=$list[$idx]['subject']?></a></td>
<?if($i%$row_num == 0){?>
</tr><tr height="60">
<?}?>
<?
}
}
?>
</table>
<?
}
?>
</div>
감사합니다. 덕분에 잘 적용했습니다. ^^