최신글에서요 dot 밑줄을 3줄 간격으로 넣구 싶은데요

· 2012-07-27 (금) 18:28:12 · 786 · 2
안녕하세요 신입 디자이너 입니다

최신글 목록에서요 1줄에 하나씩 dot.gif로 나오는 경게선을

3줄에 하나씩 나오게 하고 싶은데요

어떻게 해야하는지 좀 알려주세요

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

<table width=100% cellpadding=0 cellspacing=0 border=0>

<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td align=center>
<table width=99% cellpadding=0 cellspacing=0 border=0>
<colgroup>
<colgroup width='70'>
<tr>
<td height=24 style='padding-top:3px;padding-left:5px;'> <img src='<?=$latest_skin_path?>/img/latest_icon.gif' align=absmiddle> 
<?
$style = "font-family:돋움; font-size:9pt; color:#252525;";
if ($list[$i][icon_new])
$style = " style='font-family:돋움; font-size:9pt; color:#252525;' ";
$subject = "<span $style>".cut_str($list[$i][subject],85)."</span>"; //제목 글자수 자르기

echo $list[$i][icon_reply] . " ";
echo "<a href='{$list[$i][href]}' title='{$list[$i][subject]}'><font style='font-family:돋움; font-size:9pt; color:#252525;'>{$subject}</font></a>";

if ($list[$i][comment_cnt])
//echo " <span class=mw_basic_list_comment_count>{$list[$i][comment_cnt]}</span>";
//echo " <a href=\"{$list[$i][comment_href]}\" class=mw_basic_list_comment_count>{$list[$i][comment_cnt]}</a>";
echo " <a href=\"{$list[$i][comment_href]}\" class=mw_basic_list_comment_count><font style='font-family:돋움; font-size:9pt; background-color:#e8e8e8; color:#202e96; '>(+{$list[$i][wr_comment]})</font></a>";

echo " " . $list[$i][icon_new];
if ($list[$i][icon_file])
echo "<img src='{$latest_skin_path}/img/icon_file.png' />";

if ($list[$i][icon_link])
echo "<img src='{$latest_skin_path}/img/icon_link.png' />";

if ($list[$i][icon_hot])
echo "<img src='{$latest_skin_path}/img/icon_hot.png' />";
?>
</td>
<td align='right' style='padding-top:3px;padding-right:3px;'><span style='font-size:9pt; color:#313131;'><?=$list[$i][datetime2]?></span></td></tr>
<tr><td height=1 colspan=2 background='<?=$latest_skin_path?>/img/dot.gif'></td></tr>
</table></td>
</tr>
<? } ?>

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

</table>
|

댓글 2개

<td align='right' style='padding-top:3px;padding-right:3px;'><span style='font-size:9pt; color:#313131;'><?=$list[$i][datetime2]?></span></td></tr>
<?if($i % 3 == 0){?>
<tr><td height=1 colspan=2 background='<?=$latest_skin_path?>/img/dot.gif'></td></tr>
</table></td>
<?}?>
</tr>

이렇게 수정해보세요
2012-07-27 (금) 22:48:05
고맙습니다 편안한 밤 되세요.*^^*

잘 적용이 되네요
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

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

+
제목 글쓴이 날짜 조회
12-07-28 조회 917
12-07-28 조회 855
12-07-28 조회 1,845
12-07-27 조회 800
12-07-27 조회 800
12-07-27 조회 984
12-07-27 조회 787
12-07-27 조회 851
12-07-27 조회 1,724
12-07-27 조회 999
12-07-27 조회 881
12-07-27 조회 1,138
12-07-27 조회 777
12-07-27 조회 908
12-07-27 조회 1,716
12-07-27 조회 1,710
12-07-27 조회 1,089
12-07-27 조회 1,129
12-07-27 조회 945
12-07-27 조회 974