최근게시물 옆 날짜 수정

ss.jpg
더운데 수고하십니다.
최근게시물 날짜가 들쑥날쑥한데 일정하게 우측으로 나오게 하는방법 좀 답변부탁드립니다.
위에 그림파일 첨부합니다.아래는 소스 입니다.

<td><span style="font:8pt tahoma;color:#9a9a9a;"><?=$list[$i][datetime]?></span></td>

첨부파일

ss.jpg (7.4 KB)
0회 2011-06-02 15:13
|

댓글 4개

앞 TD넓이,

그리고 윗 TD의 갯수가 안맞는듯한데

일단 테이블 전체 소스를 올려보세요
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>

<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=14><img src='<?=$latest_skin_path?>/img/latest_t01.gif'></td>
<td width='100%' background='<?=$latest_skin_path?>/img/bg_latest.gif'>&nbsp;&nbsp;<strong><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><?=$board[bo_subject]?></a></strong></td>
<td width=37 background='<?=$latest_skin_path?>/img/bg_latest.gif'><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><img src='<?=$latest_skin_path?>/img/more.gif' border=0></a></td>
<td width=14><img src='<?=$latest_skin_path?>/img/latest_t02.gif'></td>
</tr>
</table>

<table width=100% cellpadding=0 cellspacing=0>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td colspan=4 align=center>
<table width=98%>
<tr>
<td height=19><img src='<?=$latest_skin_path?>/img/latest_icon.gif' align=absmiddle>&nbsp;&nbsp;
<?
echo $list[$i]['icon_reply'] . " ";
echo "<a href='{$list[$i]['href']}'>";
if ($list[$i]['is_notice'])
echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9;'><strong>{$list[$i]['subject']}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>{$list[$i]['subject']}</font>";
echo "</a>";

if ($list[$i]['comment_cnt'])
echo " <a href=\"{$list[$i]['comment_href']}\"><span style='font-family:돋움; font-size:8pt; color:#9A9A9A;'>{$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><td><span style="font:8pt tahoma;color:#9a9a9a;"><?=$list[$i][datetime]?></span></td></tr>
<tr><td bgcolor=#EBEBEB height=1></td></tr>
</table></td>
</tr>
<? } ?>

<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=50><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?>

</table>
<td height=19><img src='<?=$latest_skin_path?>/img/latest_icon.gif' align=absmiddle>&nbsp;&nbsp;


이부분 td에 너비를 정해주시고 ex) width="80%"



<td><span style="font:8pt tahoma;color:#9a9a9a;"><?=$list[$i][datetime]?></span></td>
이부분도 지정 ex) width="20%"
그리고 정렬도 지정
ex) <td width=20% align=center>

그리고 아랫줄
<tr><td bgcolor=#EBEBEB height=1></td></tr>


<tr><td bgcolor=#EBEBEB height=1 colspan=2></td></tr> 로 수정
네 아주 잘되네요..감사합니다..
수고하십시오.
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
14년 전 조회 1,963
14년 전 조회 1,691
14년 전 조회 1,516
14년 전 조회 790
14년 전 조회 1,520
14년 전 조회 776
14년 전 조회 890
14년 전 조회 765
14년 전 조회 956
14년 전 조회 1,270
14년 전 조회 1,823
14년 전 조회 706
14년 전 조회 980
14년 전 조회 1,590
14년 전 조회 816
14년 전 조회 1,258
14년 전 조회 828
14년 전 조회 992
14년 전 조회 724
14년 전 조회 973
🐛 버그신고