현재 세로배열 스킨인데요 가로 배열로 변경 부탁드립니다. > 그누4 질문답변

그누4 질문답변

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

현재 세로배열 스킨인데요 가로 배열로 변경 부탁드립니다. 정보

현재 세로배열 스킨인데요 가로 배열로 변경 부탁드립니다.

본문

마음에 드는 스킨을 찾았는데, 세로 배열이라 맘고생이 심하네요.
가로배열로 변경 부탁드립니다.
----------------------------------------------------------------------
<?
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>
전체 66,558 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT