리스트 게시판에서 > 그누4 질문답변

그누4 질문답변

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

리스트 게시판에서 정보

리스트 게시판에서

본문

리스트 갤러리 게시판에서 가로 2줄로 보이게 하고 싶습니다...
아래 태그중 어디를 변경해야 할까요??
도움 부탁합니다
--------------------------
<table width=100% border=0 cellpadding=0 cellspacing=0>

<!-- 목록 -->
<? for ($i=0; $i<count($list); $i++) { ?>
<tr height=55 align=center>
    <td width="50">
        <?
            if ($list[$i][is_notice]) // 공지사항
                echo "<b>공지</b>";
            else if ($wr_id == $list[$i][wr_id]) // 현재위치
                echo "<span class='current'>{$list[$i][num]}</span>";
            else
                echo $list[$i][num];
            ?>
    </td>
    <? if ($is_checkbox) { ?><td width=40><input type=checkbox name=chk_wr_id[] value="<?=$list[$i][wr_id]?>"></td><? } ?>
    <td width="400" align="center">
<?
 $img = "$data_path/".urlencode($list[$i][file][0][file]);// 첫번째 파일이 이미지라면
  if (preg_match("/\.(gif|jpg|png)$/i", $img)) {
        $img2 = "<img src='{$img}' border='0' width='300' height='200'  align=middle>";
  } else if(preg_match("/\.(swf|wmv|asf|flv)$/i", $img)){
        $img2 = "<script>doc_write(flash_movie('$img', 'flash$i', '300', '200', 'transparent'));</script>";

    } else {

 $img2 = "<img src='$board_skin_path/img/noimage.gif' width='300' height='200' border='0' title='이미지 없음'>";
  }
            echo "{$img2}";

      ?>

</td>
<td align=center width="50">
  <?     
if ($list[$i][wr_4] == "팝니다") {  // 팝니다      
echo "<img src=\"{$board_skin_path}/img/icon_01.gif\" width='40' height='19' align='absmiddle' border=0>";
}
    else if ($list[$i][wr_4] == "삽니다") {  // 삽니다         
echo "<img src=\"{$board_skin_path}/img/icon_02.gif\" width='40' height='19' align='absmiddle' border=0>";
}
       
            ?></td>
    <td align=center width="150"><a href='<?=$list[$i][ca_name_href]?>'><?=$list[$i][ca_name]?></a></td>
    <td>
<table cellpadding="1" cellspacing="0" width="100%">
<tr>
<td align="center"><a href="<?=$list[$i][href]?>"><strong><?=$list[$i][subject]?></strong><a>&nbsp;<span style="font-size:8pt;"><font color="#FF6600"><?=$list[$i][comment_cnt]?></font></span>&nbsp;<?=$list[$i][icon_new]?></a></td></tr>
<tr><td align="center"><span style="font-size:9pt;letter-spacing:-1px;"><font face="돋움" color="#999999"><a href="<?=$list[$i][href]?>">http://<?=$list[$i][wr_3]?></a></font></span>&nbsp;
<? 
if ($list[$i][wr_15] == "가격절충") {      
echo "<img src=\"{$board_skin_path}/img/icon_05.gif\" width='47' height='15' align='absmiddle' border=0>";
}
                ?></td></tr></table></td>
    <td width="100"><font color='#F05500'><b><?=number_format($list[$i][wr_12])?>원</b></font></td>
    <td width="150">
      <?
if ($list[$i][wr_11] == "거래중") {  // 거래중      
echo "<img src=\"{$board_skin_path}/img/icon_03.gif\" width='47' height='13' align='absmiddle' border=0>";
}
    else if ($list[$i][wr_11] == "거래마감") {  // 거래마감         
echo "<img src=\"{$board_skin_path}/img/icon_04.gif\" width='47' height='13' align='absmiddle' border=0>";
}
        ?>
</td>
</tr>
<tr><td colspan=<?=$colspan?> height=1 bgcolor=#e7e7e7></td>
</tr>
<?}?>
<? if (count($list) == 0) { echo "<tr><td colspan='$colspan' height=100 align=center>게시물이 없습니다.</td></tr>"; } ?>
</table>
-----------------------------------------------------------
위에 것을 가로 2줄로 보여지게 해야 합니다.
1    2
3    4
이런식으로 ...

http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=125554&sca=%EA%B0%A4%EB%9F%AC%EB%A6%AC&page=6

댓글 전체

전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

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