최신글 관련 질문... > 그누3질답

그누3질답

최신글 관련 질문... 정보

그누보드 최신글 관련 질문...

본문

음..진짜 초보가 여기저기 올라온 자료 보구 짜집기 해서 만든 최신글입니다..
제가 만드는 것은 그림과 같이 카테고리와 new 아이콘, 날짜 등을 모은 최신글입니다..

함수(?)나 변수(?)도 모르구 그냥 쪼금씩 고치면서 하루걸러 원하는것을 만들긴 했는데
도저히 이미지에 있는 빨간 원안에 있는 라인을 날짜까지 연장하는 것은 모르겠습니다..

부디 보시구 어찌 고쳐야 하는지 상세히 알려 주셨으면 합니다...

*  하두 몰라서 게시판에 올라온 여러 고수님들의 소스들을 짜집기 했습니다..
    다운 받느라 인사도 못 드리구....
    부디 용서해 주시기를 ...^ ^
   
* 소스는 아래와 같습니다..

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>

<table width="370" cellpadding=0 cellspacing=0 align=center border=0>


<tr>
    <td colspan=4>
        <table width="360" bgcolor=#FFFFFF cellpadding=0 cellspacing=0 border=0>


        <? for ($i=0; $i<count($list); $i++) { ?>
        <? if ($i) { echo "<tr><td colspan=2 height=1 background='$latest_skin/dot_line.gif' width=7 height=7></td></tr>"; } ?>
 
  <tr>

  <?
if($list[$i][icon_new]){
echo "<td width=30 align=center>&nbsp;<img src='$latest_skin/icon_new.gif' align=absmiddle></td>";
}else{
echo "<td width=30 align=center>&nbsp;<img src='$latest_skin/icon_li.gif' align=absmiddle></td>";
}
?>


          <td width=60 align=center>
  <a href='<?="./index.php?doc=bbs/gnuboard.php&bo_table=$bo_table&sselect=ca_id&stext={$list[$i][ca_id]}"?>'>
  [ <?=get_category_name($cfg[write_table_prefix] . $bo_table, $list[$i][ca_id])?> ]
  </td>

            <td width='' height=20>


<a href='<?="./index.php?doc=bbs/gnuboard.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'><span class=content><?=$list[$i][subject]?>  <span style='font-size:8pt;'><?=$list[$i][commentcnt]?></span></span></a></td>

<td align=right>[ <?=$list[$i][date]?> ]</td>


        </tr>                     
        <? } ?>

        <? if (count($list) == 0) { echo "<tr><td colspan=2 align=center height=50>자료가 없습니다.</td></tr>"; } ?>

        <tr><td colspan=2 height=5></td></tr>
        </table></td>
</tr>
</table>

댓글 전체

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>

<table width="370" cellpadding=0 cellspacing=0 align=center border=0>


<tr>
    <td align=center>
        <table width="360" bgcolor=#FFFFFF cellpadding=0 cellspacing=0 border=0>


        <? for ($i=0; $i<count($list); $i++) { ?>
        <? if ($i) { echo "<tr><td colspan=4 height=1 background='$latest_skin/dot_line.gif' border=0></td></tr>"; } ?>
 
  <tr>

  <?
if($list[$i][icon_new]){
echo "<td width=30 align=center>&nbsp;<img src='$latest_skin/icon_new.gif' align=absmiddle></td>";
}else{
echo "<td width=30 align=center>&nbsp;<img src='$latest_skin/icon_li.gif' align=absmiddle></td>";
}
?>


          <td width=60 align=center>
  <a href='<?="./index.php?doc=bbs/gnuboard.php&bo_table=$bo_table&sselect=ca_id&stext={$list[$i][ca_id]}"?>'>
  [ <?=get_category_name($cfg[write_table_prefix] . $bo_table, $list[$i][ca_id])?> ]
  </td>

            <td width='' height=20>


<a href='<?="./index.php?doc=bbs/gnuboard.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'><span class=content><?=$list[$i][subject]?>  <span style='font-size:8pt;'><?=$list[$i][commentcnt]?></span></span></a></td>

<td align=right>[ <?=$list[$i][date]?> ]</td>


        </tr>                     
        <? } ?>

        <? if (count($list) == 0) { echo "<tr><td colspan=4 align=center height=50>자료가 없습니다.</td></tr>"; } ?>

        <tr><td colspan=4 height=5></td></tr>
        </table></td>
</tr>
</table>
<? if (count($list) == 0) { echo "<tr><td colspan=2 align=center height=50>자료가 없습니다.</td></tr>"; } ?>

        <tr><td colspan=2 height=5></td></tr>
여기도 마찬가지고 제일 상단에 있는 6번째 줄에 있는 colspan=4는 지우세요
<? for ($i=0; $i<count($list); $i++) { ?>
        <? if ($i) { echo "<tr><td colspan=2 height=1 background='$latest_skin/dot_line.gif' width=7 height=7></td></tr>"; } ?>
에서 colspan=2 를 4로 바꾸어 주시고요
전체 9,564
그누3질답 내용 검색

회원로그인

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