게시판 시간과, new아이콘이 나오게 하고싶습니다. 어떻게 해야 하나요?? 정보
게시판 시간과, new아이콘이 나오게 하고싶습니다. 어떻게 해야 하나요??본문
밑에 기본소스에서 date_time, new 아이콘이 들어가지 않아서 넣으려고 하니 어떻게 해야 하는지
모르겠네요.. 어떻게 수정을 해야 하나요??
※ 소스
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td width="5"></td>
<td height=22>
<nobr style='display:block; overflow:hidden; width:160;'>
<img src='images/icon.gif' align=absmiddle>
<a href='<?=$list[$i][href]?>'><?=$list[$i][subject]?><?$list[$i][$date_time]?></a>
<span style='font-family:돋움; font-size:9pt; color:#9A9A9A;'><?=$list[$i][comment_cnt]?></span></a></td>
</nobr>
</tr>
<? if ($i < $rows-1) { echo "<tr><td></td><td align=center background='images/line.gif'></td></tr>"; } ?>
<? } ?>
<? if (count($list) == 0) { ?>
<tr><td align=center height=30 background="<?=$latest_skin_path?>/img/board_bg_line.gif">게시물이 없습니다.</td></tr>
<? } ?>
</table>
답변부탁드려요..ㅜ.ㅡ
모르겠네요.. 어떻게 수정을 해야 하나요??
※ 소스
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td width="5"></td>
<td height=22>
<nobr style='display:block; overflow:hidden; width:160;'>
<img src='images/icon.gif' align=absmiddle>
<a href='<?=$list[$i][href]?>'><?=$list[$i][subject]?><?$list[$i][$date_time]?></a>
<span style='font-family:돋움; font-size:9pt; color:#9A9A9A;'><?=$list[$i][comment_cnt]?></span></a></td>
</nobr>
</tr>
<? if ($i < $rows-1) { echo "<tr><td></td><td align=center background='images/line.gif'></td></tr>"; } ?>
<? } ?>
<? if (count($list) == 0) { ?>
<tr><td align=center height=30 background="<?=$latest_skin_path?>/img/board_bg_line.gif">게시물이 없습니다.</td></tr>
<? } ?>
</table>
답변부탁드려요..ㅜ.ㅡ
댓글 전체
대에충 아래처럼 수정해 보세요.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td width="5"></td>
<td height=22>
<nobr style='display:block; overflow:hidden; width:160;'>
<img src='images/icon.gif' align=absmiddle>
<a href='<?=$list[$i][href]?>'><?=$list[$i][subject]?></a>
<span style='font-family:돋움; font-size:9pt; color:#9A9A9A;'><?=$list[$i][comment_cnt]?></span></a> <?=$list[$i][$date_time]?> <?=$list[$i][icon_new]?></td>
</nobr>
</tr>
<? if ($i < $rows-1) { echo "<tr><td></td><td align=center background='images/line.gif'></td></tr>"; } ?>
<? } ?>
<? if (count($list) == 0) { ?>
<tr><td align=center height=30 background="<?=$latest_skin_path?>/img/board_bg_line.gif">게시물이 없습니다.</td></tr>
<? } ?>
</table>
만약 안나오면 소스 중에...
<nobr style='display:block; overflow:hidden; width:160;'> <=== 요 녀석 중에 'width' 길이를 더 넓게 해 보세요. ^.^*
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td width="5"></td>
<td height=22>
<nobr style='display:block; overflow:hidden; width:160;'>
<img src='images/icon.gif' align=absmiddle>
<a href='<?=$list[$i][href]?>'><?=$list[$i][subject]?></a>
<span style='font-family:돋움; font-size:9pt; color:#9A9A9A;'><?=$list[$i][comment_cnt]?></span></a> <?=$list[$i][$date_time]?> <?=$list[$i][icon_new]?></td>
</nobr>
</tr>
<? if ($i < $rows-1) { echo "<tr><td></td><td align=center background='images/line.gif'></td></tr>"; } ?>
<? } ?>
<? if (count($list) == 0) { ?>
<tr><td align=center height=30 background="<?=$latest_skin_path?>/img/board_bg_line.gif">게시물이 없습니다.</td></tr>
<? } ?>
</table>
만약 안나오면 소스 중에...
<nobr style='display:block; overflow:hidden; width:160;'> <=== 요 녀석 중에 'width' 길이를 더 넓게 해 보세요. ^.^*
그래도 date_time 값이 안나오네요..ㅠㅠ
에고 지송...
위에 것만 그대로 복사해서리... 당연히 안나오네요.
다시 아래처럼 수정해 보세요.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td width="5"></td>
<td height=22>
<nobr style='display:block; overflow:hidden; width:160;'>
<img src='images/icon.gif' align=absmiddle>
<a href='<?=$list[$i][href]?>'><?=$list[$i][subject]?></a>
<span style='font-family:돋움; font-size:9pt; color:#9A9A9A;'><?=$list[$i][comment_cnt]?></span></a> <?=$list[$i][datetime]?> <?=$list[$i][icon_new]?></td>
</nobr>
</tr>
<? if ($i < $rows-1) { echo "<tr><td></td><td align=center background='images/line.gif'></td></tr>"; } ?>
<? } ?>
<? if (count($list) == 0) { ?>
<tr><td align=center height=30 background="<?=$latest_skin_path?>/img/board_bg_line.gif">게시물이 없습니다.</td></tr>
<? } ?>
</table>
위에 것만 그대로 복사해서리... 당연히 안나오네요.
다시 아래처럼 수정해 보세요.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td width="5"></td>
<td height=22>
<nobr style='display:block; overflow:hidden; width:160;'>
<img src='images/icon.gif' align=absmiddle>
<a href='<?=$list[$i][href]?>'><?=$list[$i][subject]?></a>
<span style='font-family:돋움; font-size:9pt; color:#9A9A9A;'><?=$list[$i][comment_cnt]?></span></a> <?=$list[$i][datetime]?> <?=$list[$i][icon_new]?></td>
</nobr>
</tr>
<? if ($i < $rows-1) { echo "<tr><td></td><td align=center background='images/line.gif'></td></tr>"; } ?>
<? } ?>
<? if (count($list) == 0) { ?>
<tr><td align=center height=30 background="<?=$latest_skin_path?>/img/board_bg_line.gif">게시물이 없습니다.</td></tr>
<? } ?>
</table>