최신글 출력시 리스트가 병렬? 형태로 나오게 하려면... > 그누4 질문답변

그누4 질문답변

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

최신글 출력시 리스트가 병렬? 형태로 나오게 하려면... 정보

최신글 출력시 리스트가 병렬? 형태로 나오게 하려면...

본문

안녕하세요
팁이나 질문답변 게시판을 찾아봐도 못찾아서 이렇게 질문드려봅니다

보통 최신글 출력하면



게시판제목              more
--------------------------
게시물제목
게시물제목
게시물제목
게시물제목
게시물제목


요런식인데  게시물 출력수를 50개정도 노출할때 세로로 한줄로만 저렇게 가면
화면이 길어지잖아요
아래처럼 한 20개 단위로 끈어서 21번째 리스트는 가로로 출력되게끔 하려면
latest.skin.php파일에서 어떻게 수정해야하나요?????


게시판제목                                                                            more
------------------------------------------------------------------
게시물제목...                게시물제목...              게시물제목...
게시물제목...                게시물제목...              게시물제목...
게시물제목...                게시물제목...              게시물제목...
게시물제목...                게시물제목...              게시물제목...
게시물제목...                게시물제목...              게시물제목...



이건 latest.skin.php 파일인데요...
답변좀 부탁드립니다 ㅠ

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<div style="text-align:center;">
<div id="Layer0" style="width: 100%; border: 1 solid #cccccc">

<table align="center" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
<table cellpadding="0" cellspacing="0" width="100%">

<tr>
<td width="10"></td>
<td>
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr height="5"><td colspan="2"></td></tr>
<tr height="28">
   
<td><img src="<?=$latest_skin_path?>/img/sub.gif"> &nbsp;
<a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><font color="#000000"><b><?=$board[bo_subject]?></b></font></a>
</td>
<td align="right"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><font color="#000000">더보기</font></a></td>
</tr>
</table>
</td>
<td width="10"></td>
</tr>
</table>

</td>
</tr>
<tr>
<td>
<table width=100% border=0 cellpadding=0 cellspacing=0 <?=$options?>>
<tr>
    <td align=center valign=top>
       
        <? for ($i=0; $i<$rows; $i++) { ?>

        <table width=95% border=0 cellpadding=0 cellspacing=0>
        <tr>
            <td height=25 <?if ($i<$rows-1) {?> style="padding:3px 0 0 0; border-bottom:1px dotted #ebebeb;" <?}?> >
                <img src='<?=$latest_skin_path?>/img/latest_icon.gif' align=absmiddle>&nbsp;
                <?
                echo $list[$i]['icon_reply'] . " ";
                echo "<a href='{$list[$i]['href']}'>";
                echo "{$list[$i]['subject']}";
                echo "</a>";

                if ($list[$i]['comment_cnt'])
                    echo " <a href=\"{$list[$i]['comment_href']}\"><span style='font-size:10px; color:#FF6600;'>{$list[$i]['comment_cnt']}</span></a>";

                // if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
                // if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }

                  echo " " . $list[$i]['icon_new'];
                //echo " " . $list[$i]['icon_file'];
                //echo " " . $list[$i]['icon_link'];
                //echo " " . $list[$i]['icon_hot'];
                echo " " . $list[$i]['icon_secret'];
                ?>
            </td>
        </tr>
        </table>

        <? } ?>
   
    </td>
</tr>

</table>
</td>
</tr>
</table>
</div>
</div>

댓글 전체

<table width=100% border=0 cellpadding=0 cellspacing=0 <?=$options?>>
<tr>
    <td align=center valign=top>
       
        <table width=95% border=0 cellpadding=0 cellspacing=0>

        <? for ($i=0; $i<$rows; $i++) {
              if($i < 20) { ?>
        <tr>
            <td colspan="3" height=25 <?if ($i<$rows-1) {?> style="padding:3px 0 0 0; border-bottom:1px dotted #ebebeb;" <?}?> >
                <img src='<?=$latest_skin_path?>/img/latest_icon.gif' align=absmiddle>&nbsp;
                <?
                echo $list[$i]['icon_reply'] . " ";
                echo "<a href='{$list[$i]['href']}'>";
                echo "{$list[$i]['subject']}";
                echo "</a>";

                if ($list[$i]['comment_cnt'])
                    echo " <a href="{$list[$i]['comment_href']}"><span style='font-size:10px; color:#FF6600;'>{$list[$i]['comment_cnt']}</span></a>";

                  echo " " . $list[$i]['icon_new'];
                  echo " " . $list[$i]['icon_secret'];
                ?>
            </td>
        </tr>
        <?
          } else {
                echo "<tr>";
                if($i%3=="0") {
                  echo "</tr><tr>";
                }
                <td height=25 <?if ($i<$rows-1) {?> style="padding:3px 0 0 0; border-bottom:1px dotted #ebebeb;" <?}?> >
                <img src='<?=$latest_skin_path?>/img/latest_icon.gif' align=absmiddle>&nbsp;
                <?
                echo $list[$i]['icon_reply'] . " ";
                echo "<a href='{$list[$i]['href']}'>";
                echo "{$list[$i]['subject']}";
                echo "</a>";

                if ($list[$i]['comment_cnt'])
                    echo " <a href="{$list[$i]['comment_href']}"><span style='font-size:10px; color:#FF6600;'>{$list[$i]['comment_cnt']}</span></a>";

                  echo " " . $list[$i]['icon_new'];
                  echo " " . $list[$i]['icon_secret'];
                echo "</td>";

        <? } } ?> 
        </table>


   
    </td>
</tr>
우선 신경써주셔서 감사합니다
<table width=100% border=0 cellpadding=0 cellspacing=0 <?=$options?>> 부터 붙여넣기 해봤는데...
아무것도 안뜨는데요... 다시한번만 봐주세요~
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

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